1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd.
4724ba675SRob Herring */
5724ba675SRob Herring
6724ba675SRob Herring#include <dt-bindings/clock/rockchip,rv1126-cru.h>
7724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
8724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h>
9724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
10724ba675SRob Herring#include <dt-bindings/pinctrl/rockchip.h>
11724ba675SRob Herring#include <dt-bindings/power/rockchip,rv1126-power.h>
12724ba675SRob Herring#include <dt-bindings/soc/rockchip,boot-mode.h>
13724ba675SRob Herring
14724ba675SRob Herring/ {
15724ba675SRob Herring	#address-cells = <1>;
16724ba675SRob Herring	#size-cells = <1>;
17724ba675SRob Herring
18724ba675SRob Herring	compatible = "rockchip,rv1126";
19724ba675SRob Herring
20724ba675SRob Herring	interrupt-parent = <&gic>;
21724ba675SRob Herring
22724ba675SRob Herring	aliases {
23724ba675SRob Herring		i2c0 = &i2c0;
24724ba675SRob Herring	};
25724ba675SRob Herring
26724ba675SRob Herring	cpus {
27724ba675SRob Herring		#address-cells = <1>;
28724ba675SRob Herring		#size-cells = <0>;
29724ba675SRob Herring
30724ba675SRob Herring		cpu0: cpu@f00 {
31724ba675SRob Herring			device_type = "cpu";
32724ba675SRob Herring			compatible = "arm,cortex-a7";
33724ba675SRob Herring			reg = <0xf00>;
34724ba675SRob Herring			enable-method = "psci";
35724ba675SRob Herring			clocks = <&cru ARMCLK>;
36724ba675SRob Herring		};
37724ba675SRob Herring
38724ba675SRob Herring		cpu1: cpu@f01 {
39724ba675SRob Herring			device_type = "cpu";
40724ba675SRob Herring			compatible = "arm,cortex-a7";
41724ba675SRob Herring			reg = <0xf01>;
42724ba675SRob Herring			enable-method = "psci";
43724ba675SRob Herring			clocks = <&cru ARMCLK>;
44724ba675SRob Herring		};
45724ba675SRob Herring
46724ba675SRob Herring		cpu2: cpu@f02 {
47724ba675SRob Herring			device_type = "cpu";
48724ba675SRob Herring			compatible = "arm,cortex-a7";
49724ba675SRob Herring			reg = <0xf02>;
50724ba675SRob Herring			enable-method = "psci";
51724ba675SRob Herring			clocks = <&cru ARMCLK>;
52724ba675SRob Herring		};
53724ba675SRob Herring
54724ba675SRob Herring		cpu3: cpu@f03 {
55724ba675SRob Herring			device_type = "cpu";
56724ba675SRob Herring			compatible = "arm,cortex-a7";
57724ba675SRob Herring			reg = <0xf03>;
58724ba675SRob Herring			enable-method = "psci";
59724ba675SRob Herring			clocks = <&cru ARMCLK>;
60724ba675SRob Herring		};
61724ba675SRob Herring	};
62724ba675SRob Herring
63724ba675SRob Herring	arm-pmu {
64724ba675SRob Herring		compatible = "arm,cortex-a7-pmu";
65724ba675SRob Herring		interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
66724ba675SRob Herring			     <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
67724ba675SRob Herring			     <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
68724ba675SRob Herring			     <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
69724ba675SRob Herring		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
70724ba675SRob Herring	};
71724ba675SRob Herring
72724ba675SRob Herring	psci {
73724ba675SRob Herring		compatible = "arm,psci-1.0";
74724ba675SRob Herring		method = "smc";
75724ba675SRob Herring	};
76724ba675SRob Herring
77724ba675SRob Herring	timer {
78724ba675SRob Herring		compatible = "arm,armv7-timer";
79724ba675SRob Herring		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
80724ba675SRob Herring			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
81724ba675SRob Herring			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
82724ba675SRob Herring			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
83724ba675SRob Herring		clock-frequency = <24000000>;
84724ba675SRob Herring	};
85724ba675SRob Herring
86724ba675SRob Herring	xin24m: oscillator {
87724ba675SRob Herring		compatible = "fixed-clock";
88724ba675SRob Herring		clock-frequency = <24000000>;
89724ba675SRob Herring		clock-output-names = "xin24m";
90724ba675SRob Herring		#clock-cells = <0>;
91724ba675SRob Herring	};
92724ba675SRob Herring
93724ba675SRob Herring	grf: syscon@fe000000 {
94724ba675SRob Herring		compatible = "rockchip,rv1126-grf", "syscon", "simple-mfd";
95724ba675SRob Herring		reg = <0xfe000000 0x20000>;
96724ba675SRob Herring	};
97724ba675SRob Herring
98724ba675SRob Herring	pmugrf: syscon@fe020000 {
99724ba675SRob Herring		compatible = "rockchip,rv1126-pmugrf", "syscon", "simple-mfd";
100724ba675SRob Herring		reg = <0xfe020000 0x1000>;
101724ba675SRob Herring
102724ba675SRob Herring		pmu_io_domains: io-domains {
103724ba675SRob Herring			compatible = "rockchip,rv1126-pmu-io-voltage-domain";
104724ba675SRob Herring			status = "disabled";
105724ba675SRob Herring		};
106724ba675SRob Herring	};
107724ba675SRob Herring
108724ba675SRob Herring	qos_emmc: qos@fe860000 {
109724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
110724ba675SRob Herring		reg = <0xfe860000 0x20>;
111724ba675SRob Herring	};
112724ba675SRob Herring
113724ba675SRob Herring	qos_nandc: qos@fe860080 {
114724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
115724ba675SRob Herring		reg = <0xfe860080 0x20>;
116724ba675SRob Herring	};
117724ba675SRob Herring
118724ba675SRob Herring	qos_sfc: qos@fe860200 {
119724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
120724ba675SRob Herring		reg = <0xfe860200 0x20>;
121724ba675SRob Herring	};
122724ba675SRob Herring
123724ba675SRob Herring	qos_sdio: qos@fe86c000 {
124724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
125724ba675SRob Herring		reg = <0xfe86c000 0x20>;
126724ba675SRob Herring	};
127724ba675SRob Herring
128724ba675SRob Herring	gic: interrupt-controller@feff0000 {
129724ba675SRob Herring		compatible = "arm,gic-400";
130724ba675SRob Herring		interrupt-controller;
131724ba675SRob Herring		#interrupt-cells = <3>;
132724ba675SRob Herring		#address-cells = <0>;
133724ba675SRob Herring
134724ba675SRob Herring		reg = <0xfeff1000 0x1000>,
135724ba675SRob Herring		      <0xfeff2000 0x2000>,
136724ba675SRob Herring		      <0xfeff4000 0x2000>,
137724ba675SRob Herring		      <0xfeff6000 0x2000>;
138724ba675SRob Herring		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
139724ba675SRob Herring	};
140724ba675SRob Herring
141724ba675SRob Herring	pmu: power-management@ff3e0000 {
142724ba675SRob Herring		compatible = "rockchip,rv1126-pmu", "syscon", "simple-mfd";
143724ba675SRob Herring		reg = <0xff3e0000 0x1000>;
144724ba675SRob Herring
145724ba675SRob Herring		power: power-controller {
146724ba675SRob Herring			compatible = "rockchip,rv1126-power-controller";
147724ba675SRob Herring			#power-domain-cells = <1>;
148724ba675SRob Herring			#address-cells = <1>;
149724ba675SRob Herring			#size-cells = <0>;
150724ba675SRob Herring
151724ba675SRob Herring			power-domain@RV1126_PD_NVM {
152724ba675SRob Herring				reg = <RV1126_PD_NVM>;
153724ba675SRob Herring				clocks = <&cru HCLK_EMMC>,
154724ba675SRob Herring					 <&cru CLK_EMMC>,
155724ba675SRob Herring					 <&cru HCLK_NANDC>,
156724ba675SRob Herring					 <&cru CLK_NANDC>,
157724ba675SRob Herring					 <&cru HCLK_SFC>,
158724ba675SRob Herring					 <&cru HCLK_SFCXIP>,
159724ba675SRob Herring					 <&cru SCLK_SFC>;
160724ba675SRob Herring				pm_qos = <&qos_emmc>,
161724ba675SRob Herring					 <&qos_nandc>,
162724ba675SRob Herring					 <&qos_sfc>;
163724ba675SRob Herring				#power-domain-cells = <0>;
164724ba675SRob Herring			};
165724ba675SRob Herring
166724ba675SRob Herring			power-domain@RV1126_PD_SDIO {
167724ba675SRob Herring				reg = <RV1126_PD_SDIO>;
168724ba675SRob Herring				clocks = <&cru HCLK_SDIO>,
169724ba675SRob Herring					 <&cru CLK_SDIO>;
170724ba675SRob Herring				pm_qos = <&qos_sdio>;
171724ba675SRob Herring				#power-domain-cells = <0>;
172724ba675SRob Herring			};
173724ba675SRob Herring		};
174724ba675SRob Herring	};
175724ba675SRob Herring
176724ba675SRob Herring	i2c0: i2c@ff3f0000 {
177724ba675SRob Herring		compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c";
178724ba675SRob Herring		reg = <0xff3f0000 0x1000>;
179724ba675SRob Herring		interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
180724ba675SRob Herring		rockchip,grf = <&pmugrf>;
181724ba675SRob Herring		clocks = <&pmucru CLK_I2C0>, <&pmucru PCLK_I2C0>;
182724ba675SRob Herring		clock-names = "i2c", "pclk";
183724ba675SRob Herring		pinctrl-names = "default";
184724ba675SRob Herring		pinctrl-0 = <&i2c0_xfer>;
185724ba675SRob Herring		#address-cells = <1>;
186724ba675SRob Herring		#size-cells = <0>;
187724ba675SRob Herring		status = "disabled";
188724ba675SRob Herring	};
189724ba675SRob Herring
190724ba675SRob Herring	uart1: serial@ff410000 {
191724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
192724ba675SRob Herring		reg = <0xff410000 0x100>;
193724ba675SRob Herring		interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
194724ba675SRob Herring		clock-frequency = <24000000>;
195724ba675SRob Herring		clocks = <&pmucru SCLK_UART1>, <&pmucru PCLK_UART1>;
196724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
197724ba675SRob Herring		dmas = <&dmac 7>, <&dmac 6>;
198724ba675SRob Herring		dma-names = "tx", "rx";
199724ba675SRob Herring		pinctrl-names = "default";
200724ba675SRob Herring		pinctrl-0 = <&uart1m0_xfer>;
201724ba675SRob Herring		reg-shift = <2>;
202724ba675SRob Herring		reg-io-width = <4>;
203724ba675SRob Herring		status = "disabled";
204724ba675SRob Herring	};
205724ba675SRob Herring
206724ba675SRob Herring	pmucru: clock-controller@ff480000 {
207724ba675SRob Herring		compatible = "rockchip,rv1126-pmucru";
208724ba675SRob Herring		reg = <0xff480000 0x1000>;
209724ba675SRob Herring		rockchip,grf = <&grf>;
210724ba675SRob Herring		#clock-cells = <1>;
211724ba675SRob Herring		#reset-cells = <1>;
212724ba675SRob Herring	};
213724ba675SRob Herring
214724ba675SRob Herring	cru: clock-controller@ff490000 {
215724ba675SRob Herring		compatible = "rockchip,rv1126-cru";
216724ba675SRob Herring		reg = <0xff490000 0x1000>;
217724ba675SRob Herring		clocks = <&xin24m>;
218724ba675SRob Herring		clock-names = "xin24m";
219724ba675SRob Herring		rockchip,grf = <&grf>;
220724ba675SRob Herring		#clock-cells = <1>;
221724ba675SRob Herring		#reset-cells = <1>;
222724ba675SRob Herring	};
223724ba675SRob Herring
224724ba675SRob Herring	dmac: dma-controller@ff4e0000 {
225724ba675SRob Herring		compatible = "arm,pl330", "arm,primecell";
226724ba675SRob Herring		reg = <0xff4e0000 0x4000>;
227724ba675SRob Herring		interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
228724ba675SRob Herring			     <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
229724ba675SRob Herring		#dma-cells = <1>;
230724ba675SRob Herring		arm,pl330-periph-burst;
231724ba675SRob Herring		clocks = <&cru ACLK_DMAC>;
232724ba675SRob Herring		clock-names = "apb_pclk";
233724ba675SRob Herring	};
234724ba675SRob Herring
235724ba675SRob Herring	uart0: serial@ff560000 {
236724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
237724ba675SRob Herring		reg = <0xff560000 0x100>;
238724ba675SRob Herring		interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
239724ba675SRob Herring		clock-frequency = <24000000>;
240724ba675SRob Herring		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
241724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
242724ba675SRob Herring		dmas = <&dmac 5>, <&dmac 4>;
243724ba675SRob Herring		dma-names = "tx", "rx";
244724ba675SRob Herring		pinctrl-names = "default";
245724ba675SRob Herring		pinctrl-0 = <&uart0_xfer>;
246724ba675SRob Herring		reg-shift = <2>;
247724ba675SRob Herring		reg-io-width = <4>;
248724ba675SRob Herring		status = "disabled";
249724ba675SRob Herring	};
250724ba675SRob Herring
251724ba675SRob Herring	uart2: serial@ff570000 {
252724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
253724ba675SRob Herring		reg = <0xff570000 0x100>;
254724ba675SRob Herring		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
255724ba675SRob Herring		clock-frequency = <24000000>;
256724ba675SRob Herring		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
257724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
258724ba675SRob Herring		dmas = <&dmac 9>, <&dmac 8>;
259724ba675SRob Herring		dma-names = "tx", "rx";
260724ba675SRob Herring		pinctrl-names = "default";
261724ba675SRob Herring		pinctrl-0 = <&uart2m1_xfer>;
262724ba675SRob Herring		reg-shift = <2>;
263724ba675SRob Herring		reg-io-width = <4>;
264724ba675SRob Herring		status = "disabled";
265724ba675SRob Herring	};
266724ba675SRob Herring
267724ba675SRob Herring	uart3: serial@ff580000 {
268724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
269724ba675SRob Herring		reg = <0xff580000 0x100>;
270724ba675SRob Herring		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
271724ba675SRob Herring		clock-frequency = <24000000>;
272724ba675SRob Herring		clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
273724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
274724ba675SRob Herring		dmas = <&dmac 11>, <&dmac 10>;
275724ba675SRob Herring		dma-names = "tx", "rx";
276724ba675SRob Herring		pinctrl-names = "default";
277724ba675SRob Herring		pinctrl-0 = <&uart3m0_xfer>;
278724ba675SRob Herring		reg-shift = <2>;
279724ba675SRob Herring		reg-io-width = <4>;
280724ba675SRob Herring		status = "disabled";
281724ba675SRob Herring	};
282724ba675SRob Herring
283724ba675SRob Herring	uart4: serial@ff590000 {
284724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
285724ba675SRob Herring		reg = <0xff590000 0x100>;
286724ba675SRob Herring		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
287724ba675SRob Herring		clock-frequency = <24000000>;
288724ba675SRob Herring		clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
289724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
290724ba675SRob Herring		dmas = <&dmac 13>, <&dmac 12>;
291724ba675SRob Herring		dma-names = "tx", "rx";
292724ba675SRob Herring		pinctrl-names = "default";
293724ba675SRob Herring		pinctrl-0 = <&uart4m0_xfer>;
294724ba675SRob Herring		reg-shift = <2>;
295724ba675SRob Herring		reg-io-width = <4>;
296724ba675SRob Herring		status = "disabled";
297724ba675SRob Herring	};
298724ba675SRob Herring
299724ba675SRob Herring	uart5: serial@ff5a0000 {
300724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
301724ba675SRob Herring		reg = <0xff5a0000 0x100>;
302724ba675SRob Herring		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
303724ba675SRob Herring		clock-frequency = <24000000>;
304724ba675SRob Herring		clocks = <&cru SCLK_UART5>, <&cru PCLK_UART5>;
305724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
306724ba675SRob Herring		dmas = <&dmac 15>, <&dmac 14>;
307724ba675SRob Herring		dma-names = "tx", "rx";
308724ba675SRob Herring		pinctrl-names = "default";
309724ba675SRob Herring		pinctrl-0 = <&uart5m0_xfer>;
310724ba675SRob Herring		reg-shift = <2>;
311724ba675SRob Herring		reg-io-width = <4>;
312724ba675SRob Herring		status = "disabled";
313724ba675SRob Herring	};
314724ba675SRob Herring
315724ba675SRob Herring	saradc: adc@ff5e0000 {
316724ba675SRob Herring		compatible = "rockchip,rv1126-saradc", "rockchip,rk3399-saradc";
317724ba675SRob Herring		reg = <0xff5e0000 0x100>;
318724ba675SRob Herring		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
319724ba675SRob Herring		#io-channel-cells = <1>;
320724ba675SRob Herring		clocks = <&cru CLK_SARADC>, <&cru PCLK_SARADC>;
321724ba675SRob Herring		clock-names = "saradc", "apb_pclk";
322724ba675SRob Herring		resets = <&cru SRST_SARADC_P>;
323724ba675SRob Herring		reset-names = "saradc-apb";
324724ba675SRob Herring		status = "disabled";
325724ba675SRob Herring	};
326724ba675SRob Herring
327724ba675SRob Herring	timer0: timer@ff660000 {
328724ba675SRob Herring		compatible = "rockchip,rv1126-timer", "rockchip,rk3288-timer";
329724ba675SRob Herring		reg = <0xff660000 0x20>;
330724ba675SRob Herring		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
331724ba675SRob Herring		clocks = <&cru PCLK_TIMER>, <&cru CLK_TIMER0>;
332724ba675SRob Herring		clock-names = "pclk", "timer";
333724ba675SRob Herring	};
334724ba675SRob Herring
335724ba675SRob Herring	gmac: ethernet@ffc40000 {
336724ba675SRob Herring		compatible = "rockchip,rv1126-gmac", "snps,dwmac-4.20a";
337724ba675SRob Herring		reg = <0xffc40000 0x4000>;
338724ba675SRob Herring		interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
339724ba675SRob Herring			     <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
340724ba675SRob Herring		interrupt-names = "macirq", "eth_wake_irq";
341724ba675SRob Herring		rockchip,grf = <&grf>;
342724ba675SRob Herring		clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>,
343724ba675SRob Herring			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_REF>,
344724ba675SRob Herring			 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>,
345724ba675SRob Herring			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_PTPREF>;
346724ba675SRob Herring		clock-names = "stmmaceth", "mac_clk_rx",
347724ba675SRob Herring			      "mac_clk_tx", "clk_mac_ref",
348724ba675SRob Herring			      "aclk_mac", "pclk_mac",
349724ba675SRob Herring			      "clk_mac_speed", "ptp_ref";
350724ba675SRob Herring		resets = <&cru SRST_GMAC_A>;
351724ba675SRob Herring		reset-names = "stmmaceth";
352724ba675SRob Herring
353724ba675SRob Herring		snps,mixed-burst;
354724ba675SRob Herring		snps,tso;
355724ba675SRob Herring
356724ba675SRob Herring		snps,axi-config = <&stmmac_axi_setup>;
357724ba675SRob Herring		snps,mtl-rx-config = <&mtl_rx_setup>;
358724ba675SRob Herring		snps,mtl-tx-config = <&mtl_tx_setup>;
359724ba675SRob Herring		status = "disabled";
360724ba675SRob Herring
361724ba675SRob Herring		mdio: mdio {
362724ba675SRob Herring			compatible = "snps,dwmac-mdio";
363724ba675SRob Herring			#address-cells = <0x1>;
364724ba675SRob Herring			#size-cells = <0x0>;
365724ba675SRob Herring		};
366724ba675SRob Herring
367724ba675SRob Herring		stmmac_axi_setup: stmmac-axi-config {
368724ba675SRob Herring			snps,wr_osr_lmt = <4>;
369724ba675SRob Herring			snps,rd_osr_lmt = <8>;
370724ba675SRob Herring			snps,blen = <0 0 0 0 16 8 4>;
371724ba675SRob Herring		};
372724ba675SRob Herring
373724ba675SRob Herring		mtl_rx_setup: rx-queues-config {
374724ba675SRob Herring			snps,rx-queues-to-use = <1>;
375724ba675SRob Herring			queue0 {};
376724ba675SRob Herring		};
377724ba675SRob Herring
378724ba675SRob Herring		mtl_tx_setup: tx-queues-config {
379724ba675SRob Herring			snps,tx-queues-to-use = <1>;
380724ba675SRob Herring			queue0 {};
381724ba675SRob Herring		};
382724ba675SRob Herring	};
383724ba675SRob Herring
384724ba675SRob Herring	emmc: mmc@ffc50000 {
385724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
386724ba675SRob Herring		reg = <0xffc50000 0x4000>;
387724ba675SRob Herring		interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
388724ba675SRob Herring		clocks = <&cru HCLK_EMMC>, <&cru CLK_EMMC>,
389724ba675SRob Herring			 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
390724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
391724ba675SRob Herring		fifo-depth = <0x100>;
392724ba675SRob Herring		max-frequency = <200000000>;
393724ba675SRob Herring		power-domains = <&power RV1126_PD_NVM>;
394724ba675SRob Herring		status = "disabled";
395724ba675SRob Herring	};
396724ba675SRob Herring
397724ba675SRob Herring	sdmmc: mmc@ffc60000 {
398724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
399724ba675SRob Herring		reg = <0xffc60000 0x4000>;
400724ba675SRob Herring		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
401724ba675SRob Herring		clocks = <&cru HCLK_SDMMC>, <&cru CLK_SDMMC>,
402724ba675SRob Herring			 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
403724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
404724ba675SRob Herring		fifo-depth = <0x100>;
405724ba675SRob Herring		max-frequency = <200000000>;
406724ba675SRob Herring		status = "disabled";
407724ba675SRob Herring	};
408724ba675SRob Herring
409724ba675SRob Herring	sdio: mmc@ffc70000 {
410724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
411724ba675SRob Herring		reg = <0xffc70000 0x4000>;
412724ba675SRob Herring		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
413724ba675SRob Herring		clocks = <&cru HCLK_SDIO>, <&cru CLK_SDIO>,
414724ba675SRob Herring			 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
415724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
416724ba675SRob Herring		fifo-depth = <0x100>;
417724ba675SRob Herring		max-frequency = <200000000>;
418724ba675SRob Herring		power-domains = <&power RV1126_PD_SDIO>;
419724ba675SRob Herring		status = "disabled";
420724ba675SRob Herring	};
421724ba675SRob Herring
422*c3ae1484SJagan Teki	sfc: spi@ffc90000  {
423*c3ae1484SJagan Teki		compatible = "rockchip,sfc";
424*c3ae1484SJagan Teki		reg = <0xffc90000 0x4000>;
425*c3ae1484SJagan Teki		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
426*c3ae1484SJagan Teki		assigned-clocks = <&cru SCLK_SFC>;
427*c3ae1484SJagan Teki		assigned-clock-rates = <80000000>;
428*c3ae1484SJagan Teki		clock-names = "clk_sfc", "hclk_sfc";
429*c3ae1484SJagan Teki		clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
430*c3ae1484SJagan Teki		power-domains = <&power RV1126_PD_NVM>;
431*c3ae1484SJagan Teki		status = "disabled";
432*c3ae1484SJagan Teki	};
433*c3ae1484SJagan Teki
434724ba675SRob Herring	pinctrl: pinctrl {
435724ba675SRob Herring		compatible = "rockchip,rv1126-pinctrl";
436724ba675SRob Herring		rockchip,grf = <&grf>;
437724ba675SRob Herring		rockchip,pmu = <&pmugrf>;
438724ba675SRob Herring		#address-cells = <1>;
439724ba675SRob Herring		#size-cells = <1>;
440724ba675SRob Herring		ranges;
441724ba675SRob Herring
442724ba675SRob Herring		gpio0: gpio@ff460000 {
443724ba675SRob Herring			compatible = "rockchip,gpio-bank";
444724ba675SRob Herring			reg = <0xff460000 0x100>;
445724ba675SRob Herring			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
446724ba675SRob Herring			clocks = <&pmucru PCLK_GPIO0>, <&pmucru DBCLK_GPIO0>;
447724ba675SRob Herring			gpio-controller;
448724ba675SRob Herring			#gpio-cells = <2>;
449724ba675SRob Herring			interrupt-controller;
450724ba675SRob Herring			#interrupt-cells = <2>;
451724ba675SRob Herring		};
452724ba675SRob Herring
453724ba675SRob Herring		gpio1: gpio@ff620000 {
454724ba675SRob Herring			compatible = "rockchip,gpio-bank";
455724ba675SRob Herring			reg = <0xff620000 0x100>;
456724ba675SRob Herring			interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
457724ba675SRob Herring			clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>;
458724ba675SRob Herring			gpio-controller;
459724ba675SRob Herring			#gpio-cells = <2>;
460724ba675SRob Herring			interrupt-controller;
461724ba675SRob Herring			#interrupt-cells = <2>;
462724ba675SRob Herring		};
463724ba675SRob Herring
464724ba675SRob Herring		gpio2: gpio@ff630000 {
465724ba675SRob Herring			compatible = "rockchip,gpio-bank";
466724ba675SRob Herring			reg = <0xff630000 0x100>;
467724ba675SRob Herring			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
468724ba675SRob Herring			clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>;
469724ba675SRob Herring			gpio-controller;
470724ba675SRob Herring			#gpio-cells = <2>;
471724ba675SRob Herring			interrupt-controller;
472724ba675SRob Herring			#interrupt-cells = <2>;
473724ba675SRob Herring		};
474724ba675SRob Herring
475724ba675SRob Herring		gpio3: gpio@ff640000 {
476724ba675SRob Herring			compatible = "rockchip,gpio-bank";
477724ba675SRob Herring			reg = <0xff640000 0x100>;
478724ba675SRob Herring			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
479724ba675SRob Herring			clocks = <&cru PCLK_GPIO3>, <&cru DBCLK_GPIO3>;
480724ba675SRob Herring			gpio-controller;
481724ba675SRob Herring			#gpio-cells = <2>;
482724ba675SRob Herring			interrupt-controller;
483724ba675SRob Herring			#interrupt-cells = <2>;
484724ba675SRob Herring		};
485724ba675SRob Herring
486724ba675SRob Herring		gpio4: gpio@ff650000 {
487724ba675SRob Herring			compatible = "rockchip,gpio-bank";
488724ba675SRob Herring			reg = <0xff650000 0x100>;
489724ba675SRob Herring			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
490724ba675SRob Herring			clocks = <&cru PCLK_GPIO4>, <&cru DBCLK_GPIO4>;
491724ba675SRob Herring			gpio-controller;
492724ba675SRob Herring			#gpio-cells = <2>;
493724ba675SRob Herring			interrupt-controller;
494724ba675SRob Herring			#interrupt-cells = <2>;
495724ba675SRob Herring		};
496724ba675SRob Herring	};
497724ba675SRob Herring};
498724ba675SRob Herring
499724ba675SRob Herring#include "rv1126-pinctrl.dtsi"
500