xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rv1126.dtsi (revision 28b2ae4ab0d139b5e1d64e4cbb245f2661a83036)
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
861bf0dcb1SJagan Teki	display_subsystem {
871bf0dcb1SJagan Teki		compatible = "rockchip,display-subsystem";
881bf0dcb1SJagan Teki		ports = <&vop_out>;
891bf0dcb1SJagan Teki	};
901bf0dcb1SJagan Teki
91724ba675SRob Herring	xin24m: oscillator {
92724ba675SRob Herring		compatible = "fixed-clock";
93724ba675SRob Herring		clock-frequency = <24000000>;
94724ba675SRob Herring		clock-output-names = "xin24m";
95724ba675SRob Herring		#clock-cells = <0>;
96724ba675SRob Herring	};
97724ba675SRob Herring
98724ba675SRob Herring	grf: syscon@fe000000 {
99724ba675SRob Herring		compatible = "rockchip,rv1126-grf", "syscon", "simple-mfd";
100724ba675SRob Herring		reg = <0xfe000000 0x20000>;
101724ba675SRob Herring	};
102724ba675SRob Herring
103724ba675SRob Herring	pmugrf: syscon@fe020000 {
104724ba675SRob Herring		compatible = "rockchip,rv1126-pmugrf", "syscon", "simple-mfd";
105724ba675SRob Herring		reg = <0xfe020000 0x1000>;
106724ba675SRob Herring
107724ba675SRob Herring		pmu_io_domains: io-domains {
108724ba675SRob Herring			compatible = "rockchip,rv1126-pmu-io-voltage-domain";
109724ba675SRob Herring			status = "disabled";
110724ba675SRob Herring		};
111724ba675SRob Herring	};
112724ba675SRob Herring
113724ba675SRob Herring	qos_emmc: qos@fe860000 {
114724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
115724ba675SRob Herring		reg = <0xfe860000 0x20>;
116724ba675SRob Herring	};
117724ba675SRob Herring
118724ba675SRob Herring	qos_nandc: qos@fe860080 {
119724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
120724ba675SRob Herring		reg = <0xfe860080 0x20>;
121724ba675SRob Herring	};
122724ba675SRob Herring
123724ba675SRob Herring	qos_sfc: qos@fe860200 {
124724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
125724ba675SRob Herring		reg = <0xfe860200 0x20>;
126724ba675SRob Herring	};
127724ba675SRob Herring
128724ba675SRob Herring	qos_sdio: qos@fe86c000 {
129724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
130724ba675SRob Herring		reg = <0xfe86c000 0x20>;
131724ba675SRob Herring	};
132724ba675SRob Herring
1334fafaed5SJagan Teki	qos_iep: qos@fe8a0000 {
1344fafaed5SJagan Teki		compatible = "rockchip,rv1126-qos", "syscon";
1354fafaed5SJagan Teki		reg = <0xfe8a0000 0x20>;
1364fafaed5SJagan Teki	};
1374fafaed5SJagan Teki
1384fafaed5SJagan Teki	qos_rga_rd: qos@fe8a0080 {
1394fafaed5SJagan Teki		compatible = "rockchip,rv1126-qos", "syscon";
1404fafaed5SJagan Teki		reg = <0xfe8a0080 0x20>;
1414fafaed5SJagan Teki	};
1424fafaed5SJagan Teki
1434fafaed5SJagan Teki	qos_rga_wr: qos@fe8a0100 {
1444fafaed5SJagan Teki		compatible = "rockchip,rv1126-qos", "syscon";
1454fafaed5SJagan Teki		reg = <0xfe8a0100 0x20>;
1464fafaed5SJagan Teki	};
1474fafaed5SJagan Teki
1484fafaed5SJagan Teki	qos_vop: qos@fe8a0180 {
1494fafaed5SJagan Teki		compatible = "rockchip,rv1126-qos", "syscon";
1504fafaed5SJagan Teki		reg = <0xfe8a0180 0x20>;
1514fafaed5SJagan Teki	};
1524fafaed5SJagan Teki
153724ba675SRob Herring	gic: interrupt-controller@feff0000 {
154724ba675SRob Herring		compatible = "arm,gic-400";
155724ba675SRob Herring		interrupt-controller;
156724ba675SRob Herring		#interrupt-cells = <3>;
157724ba675SRob Herring		#address-cells = <0>;
158724ba675SRob Herring
159724ba675SRob Herring		reg = <0xfeff1000 0x1000>,
160724ba675SRob Herring		      <0xfeff2000 0x2000>,
161724ba675SRob Herring		      <0xfeff4000 0x2000>,
162724ba675SRob Herring		      <0xfeff6000 0x2000>;
163724ba675SRob Herring		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
164724ba675SRob Herring	};
165724ba675SRob Herring
166724ba675SRob Herring	pmu: power-management@ff3e0000 {
167724ba675SRob Herring		compatible = "rockchip,rv1126-pmu", "syscon", "simple-mfd";
168724ba675SRob Herring		reg = <0xff3e0000 0x1000>;
169724ba675SRob Herring
170724ba675SRob Herring		power: power-controller {
171724ba675SRob Herring			compatible = "rockchip,rv1126-power-controller";
172724ba675SRob Herring			#power-domain-cells = <1>;
173724ba675SRob Herring			#address-cells = <1>;
174724ba675SRob Herring			#size-cells = <0>;
175724ba675SRob Herring
176724ba675SRob Herring			power-domain@RV1126_PD_NVM {
177724ba675SRob Herring				reg = <RV1126_PD_NVM>;
178724ba675SRob Herring				clocks = <&cru HCLK_EMMC>,
179724ba675SRob Herring					 <&cru CLK_EMMC>,
180724ba675SRob Herring					 <&cru HCLK_NANDC>,
181724ba675SRob Herring					 <&cru CLK_NANDC>,
182724ba675SRob Herring					 <&cru HCLK_SFC>,
183724ba675SRob Herring					 <&cru HCLK_SFCXIP>,
184724ba675SRob Herring					 <&cru SCLK_SFC>;
185724ba675SRob Herring				pm_qos = <&qos_emmc>,
186724ba675SRob Herring					 <&qos_nandc>,
187724ba675SRob Herring					 <&qos_sfc>;
188724ba675SRob Herring				#power-domain-cells = <0>;
189724ba675SRob Herring			};
190724ba675SRob Herring
191724ba675SRob Herring			power-domain@RV1126_PD_SDIO {
192724ba675SRob Herring				reg = <RV1126_PD_SDIO>;
193724ba675SRob Herring				clocks = <&cru HCLK_SDIO>,
194724ba675SRob Herring					 <&cru CLK_SDIO>;
195724ba675SRob Herring				pm_qos = <&qos_sdio>;
196724ba675SRob Herring				#power-domain-cells = <0>;
197724ba675SRob Herring			};
1984fafaed5SJagan Teki
1994fafaed5SJagan Teki			power-domain@RV1126_PD_VO {
2004fafaed5SJagan Teki				reg = <RV1126_PD_VO>;
2014fafaed5SJagan Teki				clocks = <&cru ACLK_RGA>,
2024fafaed5SJagan Teki					 <&cru HCLK_RGA>,
2034fafaed5SJagan Teki					 <&cru CLK_RGA_CORE>,
2044fafaed5SJagan Teki					 <&cru ACLK_VOP>,
2054fafaed5SJagan Teki					 <&cru HCLK_VOP>,
2064fafaed5SJagan Teki					 <&cru DCLK_VOP>,
2074fafaed5SJagan Teki					 <&cru PCLK_DSIHOST>,
2084fafaed5SJagan Teki					 <&cru ACLK_IEP>,
2094fafaed5SJagan Teki					 <&cru HCLK_IEP>,
2104fafaed5SJagan Teki					 <&cru CLK_IEP_CORE>;
2114fafaed5SJagan Teki				pm_qos = <&qos_rga_rd>,
2124fafaed5SJagan Teki					 <&qos_rga_wr>,
2134fafaed5SJagan Teki					 <&qos_vop>,
2144fafaed5SJagan Teki					 <&qos_iep>;
2154fafaed5SJagan Teki				#power-domain-cells = <0>;
2164fafaed5SJagan Teki			};
217724ba675SRob Herring		};
218724ba675SRob Herring	};
219724ba675SRob Herring
220724ba675SRob Herring	i2c0: i2c@ff3f0000 {
221724ba675SRob Herring		compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c";
222724ba675SRob Herring		reg = <0xff3f0000 0x1000>;
223724ba675SRob Herring		interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
224724ba675SRob Herring		rockchip,grf = <&pmugrf>;
225724ba675SRob Herring		clocks = <&pmucru CLK_I2C0>, <&pmucru PCLK_I2C0>;
226724ba675SRob Herring		clock-names = "i2c", "pclk";
227724ba675SRob Herring		pinctrl-names = "default";
228724ba675SRob Herring		pinctrl-0 = <&i2c0_xfer>;
229724ba675SRob Herring		#address-cells = <1>;
230724ba675SRob Herring		#size-cells = <0>;
231724ba675SRob Herring		status = "disabled";
232724ba675SRob Herring	};
233724ba675SRob Herring
234724ba675SRob Herring	uart1: serial@ff410000 {
235724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
236724ba675SRob Herring		reg = <0xff410000 0x100>;
237724ba675SRob Herring		interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
238724ba675SRob Herring		clock-frequency = <24000000>;
239724ba675SRob Herring		clocks = <&pmucru SCLK_UART1>, <&pmucru PCLK_UART1>;
240724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
241724ba675SRob Herring		dmas = <&dmac 7>, <&dmac 6>;
242724ba675SRob Herring		dma-names = "tx", "rx";
243724ba675SRob Herring		pinctrl-names = "default";
244724ba675SRob Herring		pinctrl-0 = <&uart1m0_xfer>;
245724ba675SRob Herring		reg-shift = <2>;
246724ba675SRob Herring		reg-io-width = <4>;
247724ba675SRob Herring		status = "disabled";
248724ba675SRob Herring	};
249724ba675SRob Herring
250*28b2ae4aSJagan Teki	pwm2: pwm@ff430020 {
251*28b2ae4aSJagan Teki		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
252*28b2ae4aSJagan Teki		reg = <0xff430020 0x10>;
253*28b2ae4aSJagan Teki		clock-names = "pwm", "pclk";
254*28b2ae4aSJagan Teki		clocks = <&pmucru CLK_PWM0>, <&pmucru PCLK_PWM0>;
255*28b2ae4aSJagan Teki		pinctrl-names = "default";
256*28b2ae4aSJagan Teki		pinctrl-0 = <&pwm2m0_pins>;
257*28b2ae4aSJagan Teki		#pwm-cells = <3>;
258*28b2ae4aSJagan Teki		status = "disabled";
259*28b2ae4aSJagan Teki	};
260*28b2ae4aSJagan Teki
261724ba675SRob Herring	pmucru: clock-controller@ff480000 {
262724ba675SRob Herring		compatible = "rockchip,rv1126-pmucru";
263724ba675SRob Herring		reg = <0xff480000 0x1000>;
264724ba675SRob Herring		rockchip,grf = <&grf>;
265724ba675SRob Herring		#clock-cells = <1>;
266724ba675SRob Herring		#reset-cells = <1>;
267724ba675SRob Herring	};
268724ba675SRob Herring
269724ba675SRob Herring	cru: clock-controller@ff490000 {
270724ba675SRob Herring		compatible = "rockchip,rv1126-cru";
271724ba675SRob Herring		reg = <0xff490000 0x1000>;
272724ba675SRob Herring		clocks = <&xin24m>;
273724ba675SRob Herring		clock-names = "xin24m";
274724ba675SRob Herring		rockchip,grf = <&grf>;
275724ba675SRob Herring		#clock-cells = <1>;
276724ba675SRob Herring		#reset-cells = <1>;
277724ba675SRob Herring	};
278724ba675SRob Herring
279724ba675SRob Herring	dmac: dma-controller@ff4e0000 {
280724ba675SRob Herring		compatible = "arm,pl330", "arm,primecell";
281724ba675SRob Herring		reg = <0xff4e0000 0x4000>;
282724ba675SRob Herring		interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
283724ba675SRob Herring			     <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
284724ba675SRob Herring		#dma-cells = <1>;
285724ba675SRob Herring		arm,pl330-periph-burst;
286724ba675SRob Herring		clocks = <&cru ACLK_DMAC>;
287724ba675SRob Herring		clock-names = "apb_pclk";
288724ba675SRob Herring	};
289724ba675SRob Herring
290724ba675SRob Herring	uart0: serial@ff560000 {
291724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
292724ba675SRob Herring		reg = <0xff560000 0x100>;
293724ba675SRob Herring		interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
294724ba675SRob Herring		clock-frequency = <24000000>;
295724ba675SRob Herring		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
296724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
297724ba675SRob Herring		dmas = <&dmac 5>, <&dmac 4>;
298724ba675SRob Herring		dma-names = "tx", "rx";
299724ba675SRob Herring		pinctrl-names = "default";
300724ba675SRob Herring		pinctrl-0 = <&uart0_xfer>;
301724ba675SRob Herring		reg-shift = <2>;
302724ba675SRob Herring		reg-io-width = <4>;
303724ba675SRob Herring		status = "disabled";
304724ba675SRob Herring	};
305724ba675SRob Herring
306724ba675SRob Herring	uart2: serial@ff570000 {
307724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
308724ba675SRob Herring		reg = <0xff570000 0x100>;
309724ba675SRob Herring		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
310724ba675SRob Herring		clock-frequency = <24000000>;
311724ba675SRob Herring		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
312724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
313724ba675SRob Herring		dmas = <&dmac 9>, <&dmac 8>;
314724ba675SRob Herring		dma-names = "tx", "rx";
315724ba675SRob Herring		pinctrl-names = "default";
316724ba675SRob Herring		pinctrl-0 = <&uart2m1_xfer>;
317724ba675SRob Herring		reg-shift = <2>;
318724ba675SRob Herring		reg-io-width = <4>;
319724ba675SRob Herring		status = "disabled";
320724ba675SRob Herring	};
321724ba675SRob Herring
322724ba675SRob Herring	uart3: serial@ff580000 {
323724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
324724ba675SRob Herring		reg = <0xff580000 0x100>;
325724ba675SRob Herring		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
326724ba675SRob Herring		clock-frequency = <24000000>;
327724ba675SRob Herring		clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
328724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
329724ba675SRob Herring		dmas = <&dmac 11>, <&dmac 10>;
330724ba675SRob Herring		dma-names = "tx", "rx";
331724ba675SRob Herring		pinctrl-names = "default";
332724ba675SRob Herring		pinctrl-0 = <&uart3m0_xfer>;
333724ba675SRob Herring		reg-shift = <2>;
334724ba675SRob Herring		reg-io-width = <4>;
335724ba675SRob Herring		status = "disabled";
336724ba675SRob Herring	};
337724ba675SRob Herring
338724ba675SRob Herring	uart4: serial@ff590000 {
339724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
340724ba675SRob Herring		reg = <0xff590000 0x100>;
341724ba675SRob Herring		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
342724ba675SRob Herring		clock-frequency = <24000000>;
343724ba675SRob Herring		clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
344724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
345724ba675SRob Herring		dmas = <&dmac 13>, <&dmac 12>;
346724ba675SRob Herring		dma-names = "tx", "rx";
347724ba675SRob Herring		pinctrl-names = "default";
348724ba675SRob Herring		pinctrl-0 = <&uart4m0_xfer>;
349724ba675SRob Herring		reg-shift = <2>;
350724ba675SRob Herring		reg-io-width = <4>;
351724ba675SRob Herring		status = "disabled";
352724ba675SRob Herring	};
353724ba675SRob Herring
354724ba675SRob Herring	uart5: serial@ff5a0000 {
355724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
356724ba675SRob Herring		reg = <0xff5a0000 0x100>;
357724ba675SRob Herring		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
358724ba675SRob Herring		clock-frequency = <24000000>;
359724ba675SRob Herring		clocks = <&cru SCLK_UART5>, <&cru PCLK_UART5>;
360724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
361724ba675SRob Herring		dmas = <&dmac 15>, <&dmac 14>;
362724ba675SRob Herring		dma-names = "tx", "rx";
363724ba675SRob Herring		pinctrl-names = "default";
364724ba675SRob Herring		pinctrl-0 = <&uart5m0_xfer>;
365724ba675SRob Herring		reg-shift = <2>;
366724ba675SRob Herring		reg-io-width = <4>;
367724ba675SRob Herring		status = "disabled";
368724ba675SRob Herring	};
369724ba675SRob Herring
370724ba675SRob Herring	saradc: adc@ff5e0000 {
371724ba675SRob Herring		compatible = "rockchip,rv1126-saradc", "rockchip,rk3399-saradc";
372724ba675SRob Herring		reg = <0xff5e0000 0x100>;
373724ba675SRob Herring		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
374724ba675SRob Herring		#io-channel-cells = <1>;
375724ba675SRob Herring		clocks = <&cru CLK_SARADC>, <&cru PCLK_SARADC>;
376724ba675SRob Herring		clock-names = "saradc", "apb_pclk";
377724ba675SRob Herring		resets = <&cru SRST_SARADC_P>;
378724ba675SRob Herring		reset-names = "saradc-apb";
379724ba675SRob Herring		status = "disabled";
380724ba675SRob Herring	};
381724ba675SRob Herring
382724ba675SRob Herring	timer0: timer@ff660000 {
383724ba675SRob Herring		compatible = "rockchip,rv1126-timer", "rockchip,rk3288-timer";
384724ba675SRob Herring		reg = <0xff660000 0x20>;
385724ba675SRob Herring		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
386724ba675SRob Herring		clocks = <&cru PCLK_TIMER>, <&cru CLK_TIMER0>;
387724ba675SRob Herring		clock-names = "pclk", "timer";
388724ba675SRob Herring	};
389724ba675SRob Herring
3901bf0dcb1SJagan Teki	vop: vop@ffb00000 {
3911bf0dcb1SJagan Teki		compatible = "rockchip,rv1126-vop";
3921bf0dcb1SJagan Teki		reg = <0xffb00000 0x200>, <0xffb00a00 0x400>;
3931bf0dcb1SJagan Teki		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
3941bf0dcb1SJagan Teki		clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
3951bf0dcb1SJagan Teki		clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
3961bf0dcb1SJagan Teki		reset-names = "axi", "ahb", "dclk";
3971bf0dcb1SJagan Teki		resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
3981bf0dcb1SJagan Teki		iommus = <&vop_mmu>;
3991bf0dcb1SJagan Teki		power-domains = <&power RV1126_PD_VO>;
4001bf0dcb1SJagan Teki		status = "disabled";
4011bf0dcb1SJagan Teki
4021bf0dcb1SJagan Teki		vop_out: port {
4031bf0dcb1SJagan Teki			#address-cells = <1>;
4041bf0dcb1SJagan Teki			#size-cells = <0>;
4051bf0dcb1SJagan Teki
4061bf0dcb1SJagan Teki			vop_out_rgb: endpoint@0 {
4071bf0dcb1SJagan Teki				reg = <0>;
4081bf0dcb1SJagan Teki			};
4091bf0dcb1SJagan Teki
4101bf0dcb1SJagan Teki			vop_out_dsi: endpoint@1 {
4111bf0dcb1SJagan Teki				reg = <1>;
4121bf0dcb1SJagan Teki			};
4131bf0dcb1SJagan Teki		};
4141bf0dcb1SJagan Teki	};
4151bf0dcb1SJagan Teki
4161bf0dcb1SJagan Teki	vop_mmu: iommu@ffb00f00 {
4171bf0dcb1SJagan Teki		compatible = "rockchip,iommu";
4181bf0dcb1SJagan Teki		reg = <0xffb00f00 0x100>;
4191bf0dcb1SJagan Teki		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
4201bf0dcb1SJagan Teki		clock-names = "aclk", "iface";
4211bf0dcb1SJagan Teki		clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
4221bf0dcb1SJagan Teki		#iommu-cells = <0>;
4231bf0dcb1SJagan Teki		power-domains = <&power RV1126_PD_VO>;
4241bf0dcb1SJagan Teki		status = "disabled";
4251bf0dcb1SJagan Teki	};
4261bf0dcb1SJagan Teki
427724ba675SRob Herring	gmac: ethernet@ffc40000 {
428724ba675SRob Herring		compatible = "rockchip,rv1126-gmac", "snps,dwmac-4.20a";
429724ba675SRob Herring		reg = <0xffc40000 0x4000>;
430724ba675SRob Herring		interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
431724ba675SRob Herring			     <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
432724ba675SRob Herring		interrupt-names = "macirq", "eth_wake_irq";
433724ba675SRob Herring		rockchip,grf = <&grf>;
434724ba675SRob Herring		clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>,
435724ba675SRob Herring			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_REF>,
436724ba675SRob Herring			 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>,
437724ba675SRob Herring			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_PTPREF>;
438724ba675SRob Herring		clock-names = "stmmaceth", "mac_clk_rx",
439724ba675SRob Herring			      "mac_clk_tx", "clk_mac_ref",
440724ba675SRob Herring			      "aclk_mac", "pclk_mac",
441724ba675SRob Herring			      "clk_mac_speed", "ptp_ref";
442724ba675SRob Herring		resets = <&cru SRST_GMAC_A>;
443724ba675SRob Herring		reset-names = "stmmaceth";
444724ba675SRob Herring
445724ba675SRob Herring		snps,mixed-burst;
446724ba675SRob Herring		snps,tso;
447724ba675SRob Herring
448724ba675SRob Herring		snps,axi-config = <&stmmac_axi_setup>;
449724ba675SRob Herring		snps,mtl-rx-config = <&mtl_rx_setup>;
450724ba675SRob Herring		snps,mtl-tx-config = <&mtl_tx_setup>;
451724ba675SRob Herring		status = "disabled";
452724ba675SRob Herring
453724ba675SRob Herring		mdio: mdio {
454724ba675SRob Herring			compatible = "snps,dwmac-mdio";
455724ba675SRob Herring			#address-cells = <0x1>;
456724ba675SRob Herring			#size-cells = <0x0>;
457724ba675SRob Herring		};
458724ba675SRob Herring
459724ba675SRob Herring		stmmac_axi_setup: stmmac-axi-config {
460724ba675SRob Herring			snps,wr_osr_lmt = <4>;
461724ba675SRob Herring			snps,rd_osr_lmt = <8>;
462724ba675SRob Herring			snps,blen = <0 0 0 0 16 8 4>;
463724ba675SRob Herring		};
464724ba675SRob Herring
465724ba675SRob Herring		mtl_rx_setup: rx-queues-config {
466724ba675SRob Herring			snps,rx-queues-to-use = <1>;
467724ba675SRob Herring			queue0 {};
468724ba675SRob Herring		};
469724ba675SRob Herring
470724ba675SRob Herring		mtl_tx_setup: tx-queues-config {
471724ba675SRob Herring			snps,tx-queues-to-use = <1>;
472724ba675SRob Herring			queue0 {};
473724ba675SRob Herring		};
474724ba675SRob Herring	};
475724ba675SRob Herring
476724ba675SRob Herring	emmc: mmc@ffc50000 {
477724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
478724ba675SRob Herring		reg = <0xffc50000 0x4000>;
479724ba675SRob Herring		interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
480724ba675SRob Herring		clocks = <&cru HCLK_EMMC>, <&cru CLK_EMMC>,
481724ba675SRob Herring			 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
482724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
483724ba675SRob Herring		fifo-depth = <0x100>;
484724ba675SRob Herring		max-frequency = <200000000>;
485724ba675SRob Herring		power-domains = <&power RV1126_PD_NVM>;
486724ba675SRob Herring		status = "disabled";
487724ba675SRob Herring	};
488724ba675SRob Herring
489724ba675SRob Herring	sdmmc: mmc@ffc60000 {
490724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
491724ba675SRob Herring		reg = <0xffc60000 0x4000>;
492724ba675SRob Herring		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
493724ba675SRob Herring		clocks = <&cru HCLK_SDMMC>, <&cru CLK_SDMMC>,
494724ba675SRob Herring			 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
495724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
496724ba675SRob Herring		fifo-depth = <0x100>;
497724ba675SRob Herring		max-frequency = <200000000>;
498724ba675SRob Herring		status = "disabled";
499724ba675SRob Herring	};
500724ba675SRob Herring
501724ba675SRob Herring	sdio: mmc@ffc70000 {
502724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
503724ba675SRob Herring		reg = <0xffc70000 0x4000>;
504724ba675SRob Herring		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
505724ba675SRob Herring		clocks = <&cru HCLK_SDIO>, <&cru CLK_SDIO>,
506724ba675SRob Herring			 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
507724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
508724ba675SRob Herring		fifo-depth = <0x100>;
509724ba675SRob Herring		max-frequency = <200000000>;
510724ba675SRob Herring		power-domains = <&power RV1126_PD_SDIO>;
511724ba675SRob Herring		status = "disabled";
512724ba675SRob Herring	};
513724ba675SRob Herring
514c3ae1484SJagan Teki	sfc: spi@ffc90000  {
515c3ae1484SJagan Teki		compatible = "rockchip,sfc";
516c3ae1484SJagan Teki		reg = <0xffc90000 0x4000>;
517c3ae1484SJagan Teki		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
518c3ae1484SJagan Teki		assigned-clocks = <&cru SCLK_SFC>;
519c3ae1484SJagan Teki		assigned-clock-rates = <80000000>;
520c3ae1484SJagan Teki		clock-names = "clk_sfc", "hclk_sfc";
521c3ae1484SJagan Teki		clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
522c3ae1484SJagan Teki		power-domains = <&power RV1126_PD_NVM>;
523c3ae1484SJagan Teki		status = "disabled";
524c3ae1484SJagan Teki	};
525c3ae1484SJagan Teki
526724ba675SRob Herring	pinctrl: pinctrl {
527724ba675SRob Herring		compatible = "rockchip,rv1126-pinctrl";
528724ba675SRob Herring		rockchip,grf = <&grf>;
529724ba675SRob Herring		rockchip,pmu = <&pmugrf>;
530724ba675SRob Herring		#address-cells = <1>;
531724ba675SRob Herring		#size-cells = <1>;
532724ba675SRob Herring		ranges;
533724ba675SRob Herring
534724ba675SRob Herring		gpio0: gpio@ff460000 {
535724ba675SRob Herring			compatible = "rockchip,gpio-bank";
536724ba675SRob Herring			reg = <0xff460000 0x100>;
537724ba675SRob Herring			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
538724ba675SRob Herring			clocks = <&pmucru PCLK_GPIO0>, <&pmucru DBCLK_GPIO0>;
539724ba675SRob Herring			gpio-controller;
540724ba675SRob Herring			#gpio-cells = <2>;
541724ba675SRob Herring			interrupt-controller;
542724ba675SRob Herring			#interrupt-cells = <2>;
543724ba675SRob Herring		};
544724ba675SRob Herring
545724ba675SRob Herring		gpio1: gpio@ff620000 {
546724ba675SRob Herring			compatible = "rockchip,gpio-bank";
547724ba675SRob Herring			reg = <0xff620000 0x100>;
548724ba675SRob Herring			interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
549724ba675SRob Herring			clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>;
550724ba675SRob Herring			gpio-controller;
551724ba675SRob Herring			#gpio-cells = <2>;
552724ba675SRob Herring			interrupt-controller;
553724ba675SRob Herring			#interrupt-cells = <2>;
554724ba675SRob Herring		};
555724ba675SRob Herring
556724ba675SRob Herring		gpio2: gpio@ff630000 {
557724ba675SRob Herring			compatible = "rockchip,gpio-bank";
558724ba675SRob Herring			reg = <0xff630000 0x100>;
559724ba675SRob Herring			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
560724ba675SRob Herring			clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>;
561724ba675SRob Herring			gpio-controller;
562724ba675SRob Herring			#gpio-cells = <2>;
563724ba675SRob Herring			interrupt-controller;
564724ba675SRob Herring			#interrupt-cells = <2>;
565724ba675SRob Herring		};
566724ba675SRob Herring
567724ba675SRob Herring		gpio3: gpio@ff640000 {
568724ba675SRob Herring			compatible = "rockchip,gpio-bank";
569724ba675SRob Herring			reg = <0xff640000 0x100>;
570724ba675SRob Herring			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
571724ba675SRob Herring			clocks = <&cru PCLK_GPIO3>, <&cru DBCLK_GPIO3>;
572724ba675SRob Herring			gpio-controller;
573724ba675SRob Herring			#gpio-cells = <2>;
574724ba675SRob Herring			interrupt-controller;
575724ba675SRob Herring			#interrupt-cells = <2>;
576724ba675SRob Herring		};
577724ba675SRob Herring
578724ba675SRob Herring		gpio4: gpio@ff650000 {
579724ba675SRob Herring			compatible = "rockchip,gpio-bank";
580724ba675SRob Herring			reg = <0xff650000 0x100>;
581724ba675SRob Herring			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
582724ba675SRob Herring			clocks = <&cru PCLK_GPIO4>, <&cru DBCLK_GPIO4>;
583724ba675SRob Herring			gpio-controller;
584724ba675SRob Herring			#gpio-cells = <2>;
585724ba675SRob Herring			interrupt-controller;
586724ba675SRob Herring			#interrupt-cells = <2>;
587724ba675SRob Herring		};
588724ba675SRob Herring	};
589724ba675SRob Herring};
590724ba675SRob Herring
591724ba675SRob Herring#include "rv1126-pinctrl.dtsi"
592