xref: /freebsd-src/sys/contrib/device-tree/src/arm/rockchip/rv1126.dtsi (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd.
4f126890aSEmmanuel Vadot */
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot#include <dt-bindings/clock/rockchip,rv1126-cru.h>
7f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
8f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
9f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
10f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h>
11f126890aSEmmanuel Vadot#include <dt-bindings/power/rockchip,rv1126-power.h>
12f126890aSEmmanuel Vadot#include <dt-bindings/soc/rockchip,boot-mode.h>
13f126890aSEmmanuel Vadot
14f126890aSEmmanuel Vadot/ {
15f126890aSEmmanuel Vadot	#address-cells = <1>;
16f126890aSEmmanuel Vadot	#size-cells = <1>;
17f126890aSEmmanuel Vadot
18f126890aSEmmanuel Vadot	compatible = "rockchip,rv1126";
19f126890aSEmmanuel Vadot
20f126890aSEmmanuel Vadot	interrupt-parent = <&gic>;
21f126890aSEmmanuel Vadot
22f126890aSEmmanuel Vadot	aliases {
23f126890aSEmmanuel Vadot		i2c0 = &i2c0;
248d13bc63SEmmanuel Vadot		i2c2 = &i2c2;
25*b2d2a78aSEmmanuel Vadot		i2c3 = &i2c3;
268d13bc63SEmmanuel Vadot		serial0 = &uart0;
278d13bc63SEmmanuel Vadot		serial1 = &uart1;
288d13bc63SEmmanuel Vadot		serial2 = &uart2;
298d13bc63SEmmanuel Vadot		serial3 = &uart3;
308d13bc63SEmmanuel Vadot		serial4 = &uart4;
318d13bc63SEmmanuel Vadot		serial5 = &uart5;
32f126890aSEmmanuel Vadot	};
33f126890aSEmmanuel Vadot
34f126890aSEmmanuel Vadot	cpus {
35f126890aSEmmanuel Vadot		#address-cells = <1>;
36f126890aSEmmanuel Vadot		#size-cells = <0>;
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot		cpu0: cpu@f00 {
39f126890aSEmmanuel Vadot			device_type = "cpu";
40f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
41f126890aSEmmanuel Vadot			reg = <0xf00>;
42f126890aSEmmanuel Vadot			enable-method = "psci";
43f126890aSEmmanuel Vadot			clocks = <&cru ARMCLK>;
44f126890aSEmmanuel Vadot		};
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot		cpu1: cpu@f01 {
47f126890aSEmmanuel Vadot			device_type = "cpu";
48f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
49f126890aSEmmanuel Vadot			reg = <0xf01>;
50f126890aSEmmanuel Vadot			enable-method = "psci";
51f126890aSEmmanuel Vadot			clocks = <&cru ARMCLK>;
52f126890aSEmmanuel Vadot		};
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot		cpu2: cpu@f02 {
55f126890aSEmmanuel Vadot			device_type = "cpu";
56f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
57f126890aSEmmanuel Vadot			reg = <0xf02>;
58f126890aSEmmanuel Vadot			enable-method = "psci";
59f126890aSEmmanuel Vadot			clocks = <&cru ARMCLK>;
60f126890aSEmmanuel Vadot		};
61f126890aSEmmanuel Vadot
62f126890aSEmmanuel Vadot		cpu3: cpu@f03 {
63f126890aSEmmanuel Vadot			device_type = "cpu";
64f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7";
65f126890aSEmmanuel Vadot			reg = <0xf03>;
66f126890aSEmmanuel Vadot			enable-method = "psci";
67f126890aSEmmanuel Vadot			clocks = <&cru ARMCLK>;
68f126890aSEmmanuel Vadot		};
69f126890aSEmmanuel Vadot	};
70f126890aSEmmanuel Vadot
71f126890aSEmmanuel Vadot	arm-pmu {
72f126890aSEmmanuel Vadot		compatible = "arm,cortex-a7-pmu";
73f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
74f126890aSEmmanuel Vadot			     <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
75f126890aSEmmanuel Vadot			     <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
76f126890aSEmmanuel Vadot			     <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
77f126890aSEmmanuel Vadot		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
78f126890aSEmmanuel Vadot	};
79f126890aSEmmanuel Vadot
80f126890aSEmmanuel Vadot	psci {
81f126890aSEmmanuel Vadot		compatible = "arm,psci-1.0";
82f126890aSEmmanuel Vadot		method = "smc";
83f126890aSEmmanuel Vadot	};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot	timer {
86f126890aSEmmanuel Vadot		compatible = "arm,armv7-timer";
87f126890aSEmmanuel Vadot		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
88f126890aSEmmanuel Vadot			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
89f126890aSEmmanuel Vadot			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
90f126890aSEmmanuel Vadot			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
91f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
92f126890aSEmmanuel Vadot	};
93f126890aSEmmanuel Vadot
94aa1a8ff2SEmmanuel Vadot	display_subsystem {
95aa1a8ff2SEmmanuel Vadot		compatible = "rockchip,display-subsystem";
96aa1a8ff2SEmmanuel Vadot		ports = <&vop_out>;
97aa1a8ff2SEmmanuel Vadot	};
98aa1a8ff2SEmmanuel Vadot
99f126890aSEmmanuel Vadot	xin24m: oscillator {
100f126890aSEmmanuel Vadot		compatible = "fixed-clock";
101f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
102f126890aSEmmanuel Vadot		clock-output-names = "xin24m";
103f126890aSEmmanuel Vadot		#clock-cells = <0>;
104f126890aSEmmanuel Vadot	};
105f126890aSEmmanuel Vadot
106f126890aSEmmanuel Vadot	grf: syscon@fe000000 {
107f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-grf", "syscon", "simple-mfd";
108f126890aSEmmanuel Vadot		reg = <0xfe000000 0x20000>;
109f126890aSEmmanuel Vadot	};
110f126890aSEmmanuel Vadot
111f126890aSEmmanuel Vadot	pmugrf: syscon@fe020000 {
112f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-pmugrf", "syscon", "simple-mfd";
113f126890aSEmmanuel Vadot		reg = <0xfe020000 0x1000>;
114f126890aSEmmanuel Vadot
115f126890aSEmmanuel Vadot		pmu_io_domains: io-domains {
116f126890aSEmmanuel Vadot			compatible = "rockchip,rv1126-pmu-io-voltage-domain";
117f126890aSEmmanuel Vadot			status = "disabled";
118f126890aSEmmanuel Vadot		};
119f126890aSEmmanuel Vadot	};
120f126890aSEmmanuel Vadot
121f126890aSEmmanuel Vadot	qos_emmc: qos@fe860000 {
122f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-qos", "syscon";
123f126890aSEmmanuel Vadot		reg = <0xfe860000 0x20>;
124f126890aSEmmanuel Vadot	};
125f126890aSEmmanuel Vadot
126f126890aSEmmanuel Vadot	qos_nandc: qos@fe860080 {
127f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-qos", "syscon";
128f126890aSEmmanuel Vadot		reg = <0xfe860080 0x20>;
129f126890aSEmmanuel Vadot	};
130f126890aSEmmanuel Vadot
131f126890aSEmmanuel Vadot	qos_sfc: qos@fe860200 {
132f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-qos", "syscon";
133f126890aSEmmanuel Vadot		reg = <0xfe860200 0x20>;
134f126890aSEmmanuel Vadot	};
135f126890aSEmmanuel Vadot
136f126890aSEmmanuel Vadot	qos_sdio: qos@fe86c000 {
137f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-qos", "syscon";
138f126890aSEmmanuel Vadot		reg = <0xfe86c000 0x20>;
139f126890aSEmmanuel Vadot	};
140f126890aSEmmanuel Vadot
141aa1a8ff2SEmmanuel Vadot	qos_iep: qos@fe8a0000 {
142aa1a8ff2SEmmanuel Vadot		compatible = "rockchip,rv1126-qos", "syscon";
143aa1a8ff2SEmmanuel Vadot		reg = <0xfe8a0000 0x20>;
144aa1a8ff2SEmmanuel Vadot	};
145aa1a8ff2SEmmanuel Vadot
146aa1a8ff2SEmmanuel Vadot	qos_rga_rd: qos@fe8a0080 {
147aa1a8ff2SEmmanuel Vadot		compatible = "rockchip,rv1126-qos", "syscon";
148aa1a8ff2SEmmanuel Vadot		reg = <0xfe8a0080 0x20>;
149aa1a8ff2SEmmanuel Vadot	};
150aa1a8ff2SEmmanuel Vadot
151aa1a8ff2SEmmanuel Vadot	qos_rga_wr: qos@fe8a0100 {
152aa1a8ff2SEmmanuel Vadot		compatible = "rockchip,rv1126-qos", "syscon";
153aa1a8ff2SEmmanuel Vadot		reg = <0xfe8a0100 0x20>;
154aa1a8ff2SEmmanuel Vadot	};
155aa1a8ff2SEmmanuel Vadot
156aa1a8ff2SEmmanuel Vadot	qos_vop: qos@fe8a0180 {
157aa1a8ff2SEmmanuel Vadot		compatible = "rockchip,rv1126-qos", "syscon";
158aa1a8ff2SEmmanuel Vadot		reg = <0xfe8a0180 0x20>;
159aa1a8ff2SEmmanuel Vadot	};
160aa1a8ff2SEmmanuel Vadot
161f126890aSEmmanuel Vadot	gic: interrupt-controller@feff0000 {
162f126890aSEmmanuel Vadot		compatible = "arm,gic-400";
163f126890aSEmmanuel Vadot		interrupt-controller;
164f126890aSEmmanuel Vadot		#interrupt-cells = <3>;
165f126890aSEmmanuel Vadot		#address-cells = <0>;
166f126890aSEmmanuel Vadot
167f126890aSEmmanuel Vadot		reg = <0xfeff1000 0x1000>,
168f126890aSEmmanuel Vadot		      <0xfeff2000 0x2000>,
169f126890aSEmmanuel Vadot		      <0xfeff4000 0x2000>,
170f126890aSEmmanuel Vadot		      <0xfeff6000 0x2000>;
171f126890aSEmmanuel Vadot		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
172f126890aSEmmanuel Vadot	};
173f126890aSEmmanuel Vadot
174f126890aSEmmanuel Vadot	pmu: power-management@ff3e0000 {
175f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-pmu", "syscon", "simple-mfd";
176f126890aSEmmanuel Vadot		reg = <0xff3e0000 0x1000>;
177f126890aSEmmanuel Vadot
178f126890aSEmmanuel Vadot		power: power-controller {
179f126890aSEmmanuel Vadot			compatible = "rockchip,rv1126-power-controller";
180f126890aSEmmanuel Vadot			#power-domain-cells = <1>;
181f126890aSEmmanuel Vadot			#address-cells = <1>;
182f126890aSEmmanuel Vadot			#size-cells = <0>;
183f126890aSEmmanuel Vadot
184f126890aSEmmanuel Vadot			power-domain@RV1126_PD_NVM {
185f126890aSEmmanuel Vadot				reg = <RV1126_PD_NVM>;
186f126890aSEmmanuel Vadot				clocks = <&cru HCLK_EMMC>,
187f126890aSEmmanuel Vadot					 <&cru CLK_EMMC>,
188f126890aSEmmanuel Vadot					 <&cru HCLK_NANDC>,
189f126890aSEmmanuel Vadot					 <&cru CLK_NANDC>,
190f126890aSEmmanuel Vadot					 <&cru HCLK_SFC>,
191f126890aSEmmanuel Vadot					 <&cru HCLK_SFCXIP>,
192f126890aSEmmanuel Vadot					 <&cru SCLK_SFC>;
193f126890aSEmmanuel Vadot				pm_qos = <&qos_emmc>,
194f126890aSEmmanuel Vadot					 <&qos_nandc>,
195f126890aSEmmanuel Vadot					 <&qos_sfc>;
196f126890aSEmmanuel Vadot				#power-domain-cells = <0>;
197f126890aSEmmanuel Vadot			};
198f126890aSEmmanuel Vadot
199f126890aSEmmanuel Vadot			power-domain@RV1126_PD_SDIO {
200f126890aSEmmanuel Vadot				reg = <RV1126_PD_SDIO>;
201f126890aSEmmanuel Vadot				clocks = <&cru HCLK_SDIO>,
202f126890aSEmmanuel Vadot					 <&cru CLK_SDIO>;
203f126890aSEmmanuel Vadot				pm_qos = <&qos_sdio>;
204f126890aSEmmanuel Vadot				#power-domain-cells = <0>;
205f126890aSEmmanuel Vadot			};
206aa1a8ff2SEmmanuel Vadot
207aa1a8ff2SEmmanuel Vadot			power-domain@RV1126_PD_VO {
208aa1a8ff2SEmmanuel Vadot				reg = <RV1126_PD_VO>;
209aa1a8ff2SEmmanuel Vadot				clocks = <&cru ACLK_RGA>,
210aa1a8ff2SEmmanuel Vadot					 <&cru HCLK_RGA>,
211aa1a8ff2SEmmanuel Vadot					 <&cru CLK_RGA_CORE>,
212aa1a8ff2SEmmanuel Vadot					 <&cru ACLK_VOP>,
213aa1a8ff2SEmmanuel Vadot					 <&cru HCLK_VOP>,
214aa1a8ff2SEmmanuel Vadot					 <&cru DCLK_VOP>,
215aa1a8ff2SEmmanuel Vadot					 <&cru PCLK_DSIHOST>,
216aa1a8ff2SEmmanuel Vadot					 <&cru ACLK_IEP>,
217aa1a8ff2SEmmanuel Vadot					 <&cru HCLK_IEP>,
218aa1a8ff2SEmmanuel Vadot					 <&cru CLK_IEP_CORE>;
219aa1a8ff2SEmmanuel Vadot				pm_qos = <&qos_rga_rd>,
220aa1a8ff2SEmmanuel Vadot					 <&qos_rga_wr>,
221aa1a8ff2SEmmanuel Vadot					 <&qos_vop>,
222aa1a8ff2SEmmanuel Vadot					 <&qos_iep>;
223aa1a8ff2SEmmanuel Vadot				#power-domain-cells = <0>;
224aa1a8ff2SEmmanuel Vadot			};
225f126890aSEmmanuel Vadot		};
226f126890aSEmmanuel Vadot	};
227f126890aSEmmanuel Vadot
228f126890aSEmmanuel Vadot	i2c0: i2c@ff3f0000 {
229f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c";
230f126890aSEmmanuel Vadot		reg = <0xff3f0000 0x1000>;
231f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
232f126890aSEmmanuel Vadot		rockchip,grf = <&pmugrf>;
233f126890aSEmmanuel Vadot		clocks = <&pmucru CLK_I2C0>, <&pmucru PCLK_I2C0>;
234f126890aSEmmanuel Vadot		clock-names = "i2c", "pclk";
235f126890aSEmmanuel Vadot		pinctrl-names = "default";
236f126890aSEmmanuel Vadot		pinctrl-0 = <&i2c0_xfer>;
237f126890aSEmmanuel Vadot		#address-cells = <1>;
238f126890aSEmmanuel Vadot		#size-cells = <0>;
239f126890aSEmmanuel Vadot		status = "disabled";
240f126890aSEmmanuel Vadot	};
241f126890aSEmmanuel Vadot
2428d13bc63SEmmanuel Vadot	i2c2: i2c@ff400000 {
2438d13bc63SEmmanuel Vadot		compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c";
2448d13bc63SEmmanuel Vadot		reg = <0xff400000 0x1000>;
2458d13bc63SEmmanuel Vadot		interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
2468d13bc63SEmmanuel Vadot		rockchip,grf = <&pmugrf>;
2478d13bc63SEmmanuel Vadot		clocks = <&pmucru CLK_I2C2>, <&pmucru PCLK_I2C2>;
2488d13bc63SEmmanuel Vadot		clock-names = "i2c", "pclk";
2498d13bc63SEmmanuel Vadot		pinctrl-names = "default";
2508d13bc63SEmmanuel Vadot		pinctrl-0 = <&i2c2_xfer>;
2518d13bc63SEmmanuel Vadot		#address-cells = <1>;
2528d13bc63SEmmanuel Vadot		#size-cells = <0>;
2538d13bc63SEmmanuel Vadot		status = "disabled";
2548d13bc63SEmmanuel Vadot	};
2558d13bc63SEmmanuel Vadot
256f126890aSEmmanuel Vadot	uart1: serial@ff410000 {
257f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
258f126890aSEmmanuel Vadot		reg = <0xff410000 0x100>;
259f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
260f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
261f126890aSEmmanuel Vadot		clocks = <&pmucru SCLK_UART1>, <&pmucru PCLK_UART1>;
262f126890aSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
263f126890aSEmmanuel Vadot		dmas = <&dmac 7>, <&dmac 6>;
264f126890aSEmmanuel Vadot		dma-names = "tx", "rx";
265f126890aSEmmanuel Vadot		pinctrl-names = "default";
266f126890aSEmmanuel Vadot		pinctrl-0 = <&uart1m0_xfer>;
267f126890aSEmmanuel Vadot		reg-shift = <2>;
268f126890aSEmmanuel Vadot		reg-io-width = <4>;
269f126890aSEmmanuel Vadot		status = "disabled";
270f126890aSEmmanuel Vadot	};
271f126890aSEmmanuel Vadot
272*b2d2a78aSEmmanuel Vadot	pwm0: pwm@ff430000 {
273*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
274*b2d2a78aSEmmanuel Vadot		reg = <0xff430000 0x10>;
275*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
276*b2d2a78aSEmmanuel Vadot		clocks = <&pmucru CLK_PWM0>, <&pmucru PCLK_PWM0>;
277*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
278*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm0m0_pins>;
279*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
280*b2d2a78aSEmmanuel Vadot		status = "disabled";
281*b2d2a78aSEmmanuel Vadot	};
282*b2d2a78aSEmmanuel Vadot
283*b2d2a78aSEmmanuel Vadot	pwm1: pwm@ff430010 {
284*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
285*b2d2a78aSEmmanuel Vadot		reg = <0xff430010 0x10>;
286*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
287*b2d2a78aSEmmanuel Vadot		clocks = <&pmucru CLK_PWM0>, <&pmucru PCLK_PWM0>;
288*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
289*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm1m0_pins>;
290*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
291*b2d2a78aSEmmanuel Vadot		status = "disabled";
292*b2d2a78aSEmmanuel Vadot	};
293*b2d2a78aSEmmanuel Vadot
29484943d6fSEmmanuel Vadot	pwm2: pwm@ff430020 {
29584943d6fSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
29684943d6fSEmmanuel Vadot		reg = <0xff430020 0x10>;
29784943d6fSEmmanuel Vadot		clock-names = "pwm", "pclk";
29884943d6fSEmmanuel Vadot		clocks = <&pmucru CLK_PWM0>, <&pmucru PCLK_PWM0>;
29984943d6fSEmmanuel Vadot		pinctrl-names = "default";
30084943d6fSEmmanuel Vadot		pinctrl-0 = <&pwm2m0_pins>;
30184943d6fSEmmanuel Vadot		#pwm-cells = <3>;
30284943d6fSEmmanuel Vadot		status = "disabled";
30384943d6fSEmmanuel Vadot	};
30484943d6fSEmmanuel Vadot
305*b2d2a78aSEmmanuel Vadot	pwm3: pwm@ff430030 {
306*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
307*b2d2a78aSEmmanuel Vadot		reg = <0xff430030 0x10>;
308*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
309*b2d2a78aSEmmanuel Vadot		clocks = <&pmucru CLK_PWM0>, <&pmucru PCLK_PWM0>;
310*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
311*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm3m0_pins>;
312*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
313*b2d2a78aSEmmanuel Vadot		status = "disabled";
314*b2d2a78aSEmmanuel Vadot	};
315*b2d2a78aSEmmanuel Vadot
316*b2d2a78aSEmmanuel Vadot	pwm4: pwm@ff440000 {
317*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
318*b2d2a78aSEmmanuel Vadot		reg = <0xff440000 0x10>;
319*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
320*b2d2a78aSEmmanuel Vadot		clocks = <&pmucru CLK_PWM1>, <&pmucru PCLK_PWM1>;
321*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
322*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm4m0_pins>;
323*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
324*b2d2a78aSEmmanuel Vadot		status = "disabled";
325*b2d2a78aSEmmanuel Vadot	};
326*b2d2a78aSEmmanuel Vadot
327*b2d2a78aSEmmanuel Vadot	pwm5: pwm@ff440010 {
328*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
329*b2d2a78aSEmmanuel Vadot		reg = <0xff440010 0x10>;
330*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
331*b2d2a78aSEmmanuel Vadot		clocks = <&pmucru CLK_PWM1>, <&pmucru PCLK_PWM1>;
332*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
333*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm5m0_pins>;
334*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
335*b2d2a78aSEmmanuel Vadot		status = "disabled";
336*b2d2a78aSEmmanuel Vadot	};
337*b2d2a78aSEmmanuel Vadot
338*b2d2a78aSEmmanuel Vadot	pwm6: pwm@ff440020 {
339*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
340*b2d2a78aSEmmanuel Vadot		reg = <0xff440020 0x10>;
341*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
342*b2d2a78aSEmmanuel Vadot		clocks = <&pmucru CLK_PWM1>, <&pmucru PCLK_PWM1>;
343*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
344*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm6m0_pins>;
345*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
346*b2d2a78aSEmmanuel Vadot		status = "disabled";
347*b2d2a78aSEmmanuel Vadot	};
348*b2d2a78aSEmmanuel Vadot
349*b2d2a78aSEmmanuel Vadot	pwm7: pwm@ff440030 {
350*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
351*b2d2a78aSEmmanuel Vadot		reg = <0xff440030 0x10>;
352*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
353*b2d2a78aSEmmanuel Vadot		clocks = <&pmucru CLK_PWM1>, <&pmucru PCLK_PWM1>;
354*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
355*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm7m0_pins>;
356*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
357*b2d2a78aSEmmanuel Vadot		status = "disabled";
358*b2d2a78aSEmmanuel Vadot	};
359*b2d2a78aSEmmanuel Vadot
360f126890aSEmmanuel Vadot	pmucru: clock-controller@ff480000 {
361f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-pmucru";
362f126890aSEmmanuel Vadot		reg = <0xff480000 0x1000>;
363f126890aSEmmanuel Vadot		rockchip,grf = <&grf>;
364f126890aSEmmanuel Vadot		#clock-cells = <1>;
365f126890aSEmmanuel Vadot		#reset-cells = <1>;
366f126890aSEmmanuel Vadot	};
367f126890aSEmmanuel Vadot
368f126890aSEmmanuel Vadot	cru: clock-controller@ff490000 {
369f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-cru";
370f126890aSEmmanuel Vadot		reg = <0xff490000 0x1000>;
371f126890aSEmmanuel Vadot		clocks = <&xin24m>;
372f126890aSEmmanuel Vadot		clock-names = "xin24m";
373f126890aSEmmanuel Vadot		rockchip,grf = <&grf>;
374f126890aSEmmanuel Vadot		#clock-cells = <1>;
375f126890aSEmmanuel Vadot		#reset-cells = <1>;
376f126890aSEmmanuel Vadot	};
377f126890aSEmmanuel Vadot
378f126890aSEmmanuel Vadot	dmac: dma-controller@ff4e0000 {
379f126890aSEmmanuel Vadot		compatible = "arm,pl330", "arm,primecell";
380f126890aSEmmanuel Vadot		reg = <0xff4e0000 0x4000>;
381f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
382f126890aSEmmanuel Vadot			     <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
383f126890aSEmmanuel Vadot		#dma-cells = <1>;
384f126890aSEmmanuel Vadot		arm,pl330-periph-burst;
385f126890aSEmmanuel Vadot		clocks = <&cru ACLK_DMAC>;
386f126890aSEmmanuel Vadot		clock-names = "apb_pclk";
387f126890aSEmmanuel Vadot	};
388f126890aSEmmanuel Vadot
389*b2d2a78aSEmmanuel Vadot	i2c3: i2c@ff520000 {
390*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c";
391*b2d2a78aSEmmanuel Vadot		reg = <0xff520000 0x1000>;
392*b2d2a78aSEmmanuel Vadot		interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
393*b2d2a78aSEmmanuel Vadot		clocks = <&cru CLK_I2C3>, <&cru PCLK_I2C3>;
394*b2d2a78aSEmmanuel Vadot		clock-names = "i2c", "pclk";
395*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
396*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&i2c3m0_xfer>;
397*b2d2a78aSEmmanuel Vadot		rockchip,grf = <&pmugrf>;
398*b2d2a78aSEmmanuel Vadot		#address-cells = <1>;
399*b2d2a78aSEmmanuel Vadot		#size-cells = <0>;
400*b2d2a78aSEmmanuel Vadot		status = "disabled";
401*b2d2a78aSEmmanuel Vadot	};
402*b2d2a78aSEmmanuel Vadot
403*b2d2a78aSEmmanuel Vadot	pwm8: pwm@ff550000 {
404*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
405*b2d2a78aSEmmanuel Vadot		reg = <0xff550000 0x10>;
406*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
407*b2d2a78aSEmmanuel Vadot		clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
408*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm8m0_pins>;
409*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
410*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
411*b2d2a78aSEmmanuel Vadot		status = "disabled";
412*b2d2a78aSEmmanuel Vadot	};
413*b2d2a78aSEmmanuel Vadot
414*b2d2a78aSEmmanuel Vadot	pwm9: pwm@ff550010 {
415*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
416*b2d2a78aSEmmanuel Vadot		reg = <0xff550010 0x10>;
417*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
418*b2d2a78aSEmmanuel Vadot		clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
419*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm9m0_pins>;
420*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
421*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
422*b2d2a78aSEmmanuel Vadot		status = "disabled";
423*b2d2a78aSEmmanuel Vadot	};
424*b2d2a78aSEmmanuel Vadot
425*b2d2a78aSEmmanuel Vadot	pwm10: pwm@ff550020 {
426*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
427*b2d2a78aSEmmanuel Vadot		reg = <0xff550020 0x10>;
428*b2d2a78aSEmmanuel Vadot		clock-names = "pwm", "pclk";
429*b2d2a78aSEmmanuel Vadot		clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
430*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&pwm10m0_pins>;
431*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
432*b2d2a78aSEmmanuel Vadot		#pwm-cells = <3>;
433*b2d2a78aSEmmanuel Vadot		status = "disabled";
434*b2d2a78aSEmmanuel Vadot	};
435*b2d2a78aSEmmanuel Vadot
43684943d6fSEmmanuel Vadot	pwm11: pwm@ff550030 {
43784943d6fSEmmanuel Vadot		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
43884943d6fSEmmanuel Vadot		reg = <0xff550030 0x10>;
43984943d6fSEmmanuel Vadot		clock-names = "pwm", "pclk";
44084943d6fSEmmanuel Vadot		clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
44184943d6fSEmmanuel Vadot		pinctrl-0 = <&pwm11m0_pins>;
44284943d6fSEmmanuel Vadot		pinctrl-names = "default";
44384943d6fSEmmanuel Vadot		#pwm-cells = <3>;
44484943d6fSEmmanuel Vadot		status = "disabled";
44584943d6fSEmmanuel Vadot	};
44684943d6fSEmmanuel Vadot
447f126890aSEmmanuel Vadot	uart0: serial@ff560000 {
448f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
449f126890aSEmmanuel Vadot		reg = <0xff560000 0x100>;
450f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
451f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
452f126890aSEmmanuel Vadot		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
453f126890aSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
454f126890aSEmmanuel Vadot		dmas = <&dmac 5>, <&dmac 4>;
455f126890aSEmmanuel Vadot		dma-names = "tx", "rx";
456f126890aSEmmanuel Vadot		pinctrl-names = "default";
457f126890aSEmmanuel Vadot		pinctrl-0 = <&uart0_xfer>;
458f126890aSEmmanuel Vadot		reg-shift = <2>;
459f126890aSEmmanuel Vadot		reg-io-width = <4>;
460f126890aSEmmanuel Vadot		status = "disabled";
461f126890aSEmmanuel Vadot	};
462f126890aSEmmanuel Vadot
463f126890aSEmmanuel Vadot	uart2: serial@ff570000 {
464f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
465f126890aSEmmanuel Vadot		reg = <0xff570000 0x100>;
466f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
467f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
468f126890aSEmmanuel Vadot		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
469f126890aSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
470f126890aSEmmanuel Vadot		dmas = <&dmac 9>, <&dmac 8>;
471f126890aSEmmanuel Vadot		dma-names = "tx", "rx";
472f126890aSEmmanuel Vadot		pinctrl-names = "default";
473f126890aSEmmanuel Vadot		pinctrl-0 = <&uart2m1_xfer>;
474f126890aSEmmanuel Vadot		reg-shift = <2>;
475f126890aSEmmanuel Vadot		reg-io-width = <4>;
476f126890aSEmmanuel Vadot		status = "disabled";
477f126890aSEmmanuel Vadot	};
478f126890aSEmmanuel Vadot
479f126890aSEmmanuel Vadot	uart3: serial@ff580000 {
480f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
481f126890aSEmmanuel Vadot		reg = <0xff580000 0x100>;
482f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
483f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
484f126890aSEmmanuel Vadot		clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
485f126890aSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
486f126890aSEmmanuel Vadot		dmas = <&dmac 11>, <&dmac 10>;
487f126890aSEmmanuel Vadot		dma-names = "tx", "rx";
488f126890aSEmmanuel Vadot		pinctrl-names = "default";
489f126890aSEmmanuel Vadot		pinctrl-0 = <&uart3m0_xfer>;
490f126890aSEmmanuel Vadot		reg-shift = <2>;
491f126890aSEmmanuel Vadot		reg-io-width = <4>;
492f126890aSEmmanuel Vadot		status = "disabled";
493f126890aSEmmanuel Vadot	};
494f126890aSEmmanuel Vadot
495f126890aSEmmanuel Vadot	uart4: serial@ff590000 {
496f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
497f126890aSEmmanuel Vadot		reg = <0xff590000 0x100>;
498f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
499f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
500f126890aSEmmanuel Vadot		clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
501f126890aSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
502f126890aSEmmanuel Vadot		dmas = <&dmac 13>, <&dmac 12>;
503f126890aSEmmanuel Vadot		dma-names = "tx", "rx";
504f126890aSEmmanuel Vadot		pinctrl-names = "default";
505f126890aSEmmanuel Vadot		pinctrl-0 = <&uart4m0_xfer>;
506f126890aSEmmanuel Vadot		reg-shift = <2>;
507f126890aSEmmanuel Vadot		reg-io-width = <4>;
508f126890aSEmmanuel Vadot		status = "disabled";
509f126890aSEmmanuel Vadot	};
510f126890aSEmmanuel Vadot
511f126890aSEmmanuel Vadot	uart5: serial@ff5a0000 {
512f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
513f126890aSEmmanuel Vadot		reg = <0xff5a0000 0x100>;
514f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
515f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
516f126890aSEmmanuel Vadot		clocks = <&cru SCLK_UART5>, <&cru PCLK_UART5>;
517f126890aSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
518f126890aSEmmanuel Vadot		dmas = <&dmac 15>, <&dmac 14>;
519f126890aSEmmanuel Vadot		dma-names = "tx", "rx";
520f126890aSEmmanuel Vadot		pinctrl-names = "default";
521f126890aSEmmanuel Vadot		pinctrl-0 = <&uart5m0_xfer>;
522f126890aSEmmanuel Vadot		reg-shift = <2>;
523f126890aSEmmanuel Vadot		reg-io-width = <4>;
524f126890aSEmmanuel Vadot		status = "disabled";
525f126890aSEmmanuel Vadot	};
526f126890aSEmmanuel Vadot
527f126890aSEmmanuel Vadot	saradc: adc@ff5e0000 {
528f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-saradc", "rockchip,rk3399-saradc";
529f126890aSEmmanuel Vadot		reg = <0xff5e0000 0x100>;
530f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
531f126890aSEmmanuel Vadot		#io-channel-cells = <1>;
532f126890aSEmmanuel Vadot		clocks = <&cru CLK_SARADC>, <&cru PCLK_SARADC>;
533f126890aSEmmanuel Vadot		clock-names = "saradc", "apb_pclk";
534f126890aSEmmanuel Vadot		resets = <&cru SRST_SARADC_P>;
535f126890aSEmmanuel Vadot		reset-names = "saradc-apb";
536f126890aSEmmanuel Vadot		status = "disabled";
537f126890aSEmmanuel Vadot	};
538f126890aSEmmanuel Vadot
539f126890aSEmmanuel Vadot	timer0: timer@ff660000 {
540f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-timer", "rockchip,rk3288-timer";
541f126890aSEmmanuel Vadot		reg = <0xff660000 0x20>;
542f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
543f126890aSEmmanuel Vadot		clocks = <&cru PCLK_TIMER>, <&cru CLK_TIMER0>;
544f126890aSEmmanuel Vadot		clock-names = "pclk", "timer";
545f126890aSEmmanuel Vadot	};
546f126890aSEmmanuel Vadot
547*b2d2a78aSEmmanuel Vadot	i2s0: i2s@ff800000 {
548*b2d2a78aSEmmanuel Vadot		compatible = "rockchip,rv1126-i2s-tdm";
549*b2d2a78aSEmmanuel Vadot		reg = <0xff800000 0x1000>;
550*b2d2a78aSEmmanuel Vadot		interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
551*b2d2a78aSEmmanuel Vadot		clocks = <&cru MCLK_I2S0_TX>, <&cru MCLK_I2S0_RX>, <&cru HCLK_I2S0>;
552*b2d2a78aSEmmanuel Vadot		clock-names = "mclk_tx", "mclk_rx", "hclk";
553*b2d2a78aSEmmanuel Vadot		dmas = <&dmac 20>, <&dmac 19>;
554*b2d2a78aSEmmanuel Vadot		dma-names = "tx", "rx";
555*b2d2a78aSEmmanuel Vadot		pinctrl-names = "default";
556*b2d2a78aSEmmanuel Vadot		pinctrl-0 = <&i2s0m0_sclk_tx>,
557*b2d2a78aSEmmanuel Vadot			     <&i2s0m0_sclk_rx>,
558*b2d2a78aSEmmanuel Vadot			     <&i2s0m0_mclk>,
559*b2d2a78aSEmmanuel Vadot			     <&i2s0m0_lrck_tx>,
560*b2d2a78aSEmmanuel Vadot			     <&i2s0m0_lrck_rx>,
561*b2d2a78aSEmmanuel Vadot			     <&i2s0m0_sdi0>,
562*b2d2a78aSEmmanuel Vadot			     <&i2s0m0_sdo0>,
563*b2d2a78aSEmmanuel Vadot			     <&i2s0m0_sdo1_sdi3>,
564*b2d2a78aSEmmanuel Vadot			     <&i2s0m0_sdo2_sdi2>,
565*b2d2a78aSEmmanuel Vadot			     <&i2s0m0_sdo3_sdi1>;
566*b2d2a78aSEmmanuel Vadot		resets = <&cru SRST_I2S0_TX_M>, <&cru SRST_I2S0_RX_M>;
567*b2d2a78aSEmmanuel Vadot		reset-names = "tx-m", "rx-m";
568*b2d2a78aSEmmanuel Vadot		rockchip,grf = <&grf>;
569*b2d2a78aSEmmanuel Vadot		#sound-dai-cells = <0>;
570*b2d2a78aSEmmanuel Vadot		status = "disabled";
571*b2d2a78aSEmmanuel Vadot	};
572*b2d2a78aSEmmanuel Vadot
573aa1a8ff2SEmmanuel Vadot	vop: vop@ffb00000 {
574aa1a8ff2SEmmanuel Vadot		compatible = "rockchip,rv1126-vop";
575aa1a8ff2SEmmanuel Vadot		reg = <0xffb00000 0x200>, <0xffb00a00 0x400>;
576aa1a8ff2SEmmanuel Vadot		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
577aa1a8ff2SEmmanuel Vadot		clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
578aa1a8ff2SEmmanuel Vadot		clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
579aa1a8ff2SEmmanuel Vadot		reset-names = "axi", "ahb", "dclk";
580aa1a8ff2SEmmanuel Vadot		resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
581aa1a8ff2SEmmanuel Vadot		iommus = <&vop_mmu>;
582aa1a8ff2SEmmanuel Vadot		power-domains = <&power RV1126_PD_VO>;
583aa1a8ff2SEmmanuel Vadot		status = "disabled";
584aa1a8ff2SEmmanuel Vadot
585aa1a8ff2SEmmanuel Vadot		vop_out: port {
586aa1a8ff2SEmmanuel Vadot			#address-cells = <1>;
587aa1a8ff2SEmmanuel Vadot			#size-cells = <0>;
588aa1a8ff2SEmmanuel Vadot
589aa1a8ff2SEmmanuel Vadot			vop_out_rgb: endpoint@0 {
590aa1a8ff2SEmmanuel Vadot				reg = <0>;
591aa1a8ff2SEmmanuel Vadot			};
592aa1a8ff2SEmmanuel Vadot
593aa1a8ff2SEmmanuel Vadot			vop_out_dsi: endpoint@1 {
594aa1a8ff2SEmmanuel Vadot				reg = <1>;
595aa1a8ff2SEmmanuel Vadot			};
596aa1a8ff2SEmmanuel Vadot		};
597aa1a8ff2SEmmanuel Vadot	};
598aa1a8ff2SEmmanuel Vadot
599aa1a8ff2SEmmanuel Vadot	vop_mmu: iommu@ffb00f00 {
600aa1a8ff2SEmmanuel Vadot		compatible = "rockchip,iommu";
601aa1a8ff2SEmmanuel Vadot		reg = <0xffb00f00 0x100>;
602aa1a8ff2SEmmanuel Vadot		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
603aa1a8ff2SEmmanuel Vadot		clock-names = "aclk", "iface";
604aa1a8ff2SEmmanuel Vadot		clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
605aa1a8ff2SEmmanuel Vadot		#iommu-cells = <0>;
606aa1a8ff2SEmmanuel Vadot		power-domains = <&power RV1126_PD_VO>;
607aa1a8ff2SEmmanuel Vadot		status = "disabled";
608aa1a8ff2SEmmanuel Vadot	};
609aa1a8ff2SEmmanuel Vadot
610f126890aSEmmanuel Vadot	gmac: ethernet@ffc40000 {
611f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-gmac", "snps,dwmac-4.20a";
612f126890aSEmmanuel Vadot		reg = <0xffc40000 0x4000>;
613f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
614f126890aSEmmanuel Vadot			     <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
615f126890aSEmmanuel Vadot		interrupt-names = "macirq", "eth_wake_irq";
616f126890aSEmmanuel Vadot		rockchip,grf = <&grf>;
617f126890aSEmmanuel Vadot		clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>,
618f126890aSEmmanuel Vadot			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_REF>,
619f126890aSEmmanuel Vadot			 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>,
620f126890aSEmmanuel Vadot			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_PTPREF>;
621f126890aSEmmanuel Vadot		clock-names = "stmmaceth", "mac_clk_rx",
622f126890aSEmmanuel Vadot			      "mac_clk_tx", "clk_mac_ref",
623f126890aSEmmanuel Vadot			      "aclk_mac", "pclk_mac",
624f126890aSEmmanuel Vadot			      "clk_mac_speed", "ptp_ref";
625f126890aSEmmanuel Vadot		resets = <&cru SRST_GMAC_A>;
626f126890aSEmmanuel Vadot		reset-names = "stmmaceth";
627f126890aSEmmanuel Vadot
628f126890aSEmmanuel Vadot		snps,mixed-burst;
629f126890aSEmmanuel Vadot		snps,tso;
630f126890aSEmmanuel Vadot
631f126890aSEmmanuel Vadot		snps,axi-config = <&stmmac_axi_setup>;
632f126890aSEmmanuel Vadot		snps,mtl-rx-config = <&mtl_rx_setup>;
633f126890aSEmmanuel Vadot		snps,mtl-tx-config = <&mtl_tx_setup>;
634f126890aSEmmanuel Vadot		status = "disabled";
635f126890aSEmmanuel Vadot
636f126890aSEmmanuel Vadot		mdio: mdio {
637f126890aSEmmanuel Vadot			compatible = "snps,dwmac-mdio";
638f126890aSEmmanuel Vadot			#address-cells = <0x1>;
639f126890aSEmmanuel Vadot			#size-cells = <0x0>;
640f126890aSEmmanuel Vadot		};
641f126890aSEmmanuel Vadot
642f126890aSEmmanuel Vadot		stmmac_axi_setup: stmmac-axi-config {
643f126890aSEmmanuel Vadot			snps,wr_osr_lmt = <4>;
644f126890aSEmmanuel Vadot			snps,rd_osr_lmt = <8>;
645f126890aSEmmanuel Vadot			snps,blen = <0 0 0 0 16 8 4>;
646f126890aSEmmanuel Vadot		};
647f126890aSEmmanuel Vadot
648f126890aSEmmanuel Vadot		mtl_rx_setup: rx-queues-config {
649f126890aSEmmanuel Vadot			snps,rx-queues-to-use = <1>;
650f126890aSEmmanuel Vadot			queue0 {};
651f126890aSEmmanuel Vadot		};
652f126890aSEmmanuel Vadot
653f126890aSEmmanuel Vadot		mtl_tx_setup: tx-queues-config {
654f126890aSEmmanuel Vadot			snps,tx-queues-to-use = <1>;
655f126890aSEmmanuel Vadot			queue0 {};
656f126890aSEmmanuel Vadot		};
657f126890aSEmmanuel Vadot	};
658f126890aSEmmanuel Vadot
659f126890aSEmmanuel Vadot	emmc: mmc@ffc50000 {
660f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
661f126890aSEmmanuel Vadot		reg = <0xffc50000 0x4000>;
662f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
663f126890aSEmmanuel Vadot		clocks = <&cru HCLK_EMMC>, <&cru CLK_EMMC>,
664f126890aSEmmanuel Vadot			 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
665f126890aSEmmanuel Vadot		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
666f126890aSEmmanuel Vadot		fifo-depth = <0x100>;
667f126890aSEmmanuel Vadot		max-frequency = <200000000>;
668f126890aSEmmanuel Vadot		power-domains = <&power RV1126_PD_NVM>;
669f126890aSEmmanuel Vadot		status = "disabled";
670f126890aSEmmanuel Vadot	};
671f126890aSEmmanuel Vadot
672f126890aSEmmanuel Vadot	sdmmc: mmc@ffc60000 {
673f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
674f126890aSEmmanuel Vadot		reg = <0xffc60000 0x4000>;
675f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
676f126890aSEmmanuel Vadot		clocks = <&cru HCLK_SDMMC>, <&cru CLK_SDMMC>,
677f126890aSEmmanuel Vadot			 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
678f126890aSEmmanuel Vadot		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
679f126890aSEmmanuel Vadot		fifo-depth = <0x100>;
680f126890aSEmmanuel Vadot		max-frequency = <200000000>;
681f126890aSEmmanuel Vadot		status = "disabled";
682f126890aSEmmanuel Vadot	};
683f126890aSEmmanuel Vadot
684f126890aSEmmanuel Vadot	sdio: mmc@ffc70000 {
685f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
686f126890aSEmmanuel Vadot		reg = <0xffc70000 0x4000>;
687f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
688f126890aSEmmanuel Vadot		clocks = <&cru HCLK_SDIO>, <&cru CLK_SDIO>,
689f126890aSEmmanuel Vadot			 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
690f126890aSEmmanuel Vadot		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
691f126890aSEmmanuel Vadot		fifo-depth = <0x100>;
692f126890aSEmmanuel Vadot		max-frequency = <200000000>;
693f126890aSEmmanuel Vadot		power-domains = <&power RV1126_PD_SDIO>;
694f126890aSEmmanuel Vadot		status = "disabled";
695f126890aSEmmanuel Vadot	};
696f126890aSEmmanuel Vadot
697aa1a8ff2SEmmanuel Vadot	sfc: spi@ffc90000  {
698aa1a8ff2SEmmanuel Vadot		compatible = "rockchip,sfc";
699aa1a8ff2SEmmanuel Vadot		reg = <0xffc90000 0x4000>;
700aa1a8ff2SEmmanuel Vadot		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
701aa1a8ff2SEmmanuel Vadot		assigned-clocks = <&cru SCLK_SFC>;
702aa1a8ff2SEmmanuel Vadot		assigned-clock-rates = <80000000>;
703aa1a8ff2SEmmanuel Vadot		clock-names = "clk_sfc", "hclk_sfc";
704aa1a8ff2SEmmanuel Vadot		clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
705aa1a8ff2SEmmanuel Vadot		power-domains = <&power RV1126_PD_NVM>;
706aa1a8ff2SEmmanuel Vadot		status = "disabled";
707aa1a8ff2SEmmanuel Vadot	};
708aa1a8ff2SEmmanuel Vadot
709f126890aSEmmanuel Vadot	pinctrl: pinctrl {
710f126890aSEmmanuel Vadot		compatible = "rockchip,rv1126-pinctrl";
711f126890aSEmmanuel Vadot		rockchip,grf = <&grf>;
712f126890aSEmmanuel Vadot		rockchip,pmu = <&pmugrf>;
713f126890aSEmmanuel Vadot		#address-cells = <1>;
714f126890aSEmmanuel Vadot		#size-cells = <1>;
715f126890aSEmmanuel Vadot		ranges;
716f126890aSEmmanuel Vadot
717f126890aSEmmanuel Vadot		gpio0: gpio@ff460000 {
718f126890aSEmmanuel Vadot			compatible = "rockchip,gpio-bank";
719f126890aSEmmanuel Vadot			reg = <0xff460000 0x100>;
720f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
721f126890aSEmmanuel Vadot			clocks = <&pmucru PCLK_GPIO0>, <&pmucru DBCLK_GPIO0>;
722f126890aSEmmanuel Vadot			gpio-controller;
723f126890aSEmmanuel Vadot			#gpio-cells = <2>;
724f126890aSEmmanuel Vadot			interrupt-controller;
725f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
726f126890aSEmmanuel Vadot		};
727f126890aSEmmanuel Vadot
728f126890aSEmmanuel Vadot		gpio1: gpio@ff620000 {
729f126890aSEmmanuel Vadot			compatible = "rockchip,gpio-bank";
730f126890aSEmmanuel Vadot			reg = <0xff620000 0x100>;
731f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
732f126890aSEmmanuel Vadot			clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>;
733f126890aSEmmanuel Vadot			gpio-controller;
734f126890aSEmmanuel Vadot			#gpio-cells = <2>;
735f126890aSEmmanuel Vadot			interrupt-controller;
736f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
737f126890aSEmmanuel Vadot		};
738f126890aSEmmanuel Vadot
739f126890aSEmmanuel Vadot		gpio2: gpio@ff630000 {
740f126890aSEmmanuel Vadot			compatible = "rockchip,gpio-bank";
741f126890aSEmmanuel Vadot			reg = <0xff630000 0x100>;
742f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
743f126890aSEmmanuel Vadot			clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>;
744f126890aSEmmanuel Vadot			gpio-controller;
745f126890aSEmmanuel Vadot			#gpio-cells = <2>;
746f126890aSEmmanuel Vadot			interrupt-controller;
747f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
748f126890aSEmmanuel Vadot		};
749f126890aSEmmanuel Vadot
750f126890aSEmmanuel Vadot		gpio3: gpio@ff640000 {
751f126890aSEmmanuel Vadot			compatible = "rockchip,gpio-bank";
752f126890aSEmmanuel Vadot			reg = <0xff640000 0x100>;
753f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
754f126890aSEmmanuel Vadot			clocks = <&cru PCLK_GPIO3>, <&cru DBCLK_GPIO3>;
755f126890aSEmmanuel Vadot			gpio-controller;
756f126890aSEmmanuel Vadot			#gpio-cells = <2>;
757f126890aSEmmanuel Vadot			interrupt-controller;
758f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
759f126890aSEmmanuel Vadot		};
760f126890aSEmmanuel Vadot
761f126890aSEmmanuel Vadot		gpio4: gpio@ff650000 {
762f126890aSEmmanuel Vadot			compatible = "rockchip,gpio-bank";
763f126890aSEmmanuel Vadot			reg = <0xff650000 0x100>;
764f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
765f126890aSEmmanuel Vadot			clocks = <&cru PCLK_GPIO4>, <&cru DBCLK_GPIO4>;
766f126890aSEmmanuel Vadot			gpio-controller;
767f126890aSEmmanuel Vadot			#gpio-cells = <2>;
768f126890aSEmmanuel Vadot			interrupt-controller;
769f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
770f126890aSEmmanuel Vadot		};
771f126890aSEmmanuel Vadot	};
772f126890aSEmmanuel Vadot};
773f126890aSEmmanuel Vadot
774f126890aSEmmanuel Vadot#include "rv1126-pinctrl.dtsi"
775