xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rv1126.dtsi (revision 9f35b08ab08b913abf65cc4ff8d2655ad7912d77)
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;
24*9f35b08aSTim Lunn		serial0 = &uart0;
25*9f35b08aSTim Lunn		serial1 = &uart1;
26*9f35b08aSTim Lunn		serial2 = &uart2;
27*9f35b08aSTim Lunn		serial3 = &uart3;
28*9f35b08aSTim Lunn		serial4 = &uart4;
29*9f35b08aSTim Lunn		serial5 = &uart5;
30724ba675SRob Herring	};
31724ba675SRob Herring
32724ba675SRob Herring	cpus {
33724ba675SRob Herring		#address-cells = <1>;
34724ba675SRob Herring		#size-cells = <0>;
35724ba675SRob Herring
36724ba675SRob Herring		cpu0: cpu@f00 {
37724ba675SRob Herring			device_type = "cpu";
38724ba675SRob Herring			compatible = "arm,cortex-a7";
39724ba675SRob Herring			reg = <0xf00>;
40724ba675SRob Herring			enable-method = "psci";
41724ba675SRob Herring			clocks = <&cru ARMCLK>;
42724ba675SRob Herring		};
43724ba675SRob Herring
44724ba675SRob Herring		cpu1: cpu@f01 {
45724ba675SRob Herring			device_type = "cpu";
46724ba675SRob Herring			compatible = "arm,cortex-a7";
47724ba675SRob Herring			reg = <0xf01>;
48724ba675SRob Herring			enable-method = "psci";
49724ba675SRob Herring			clocks = <&cru ARMCLK>;
50724ba675SRob Herring		};
51724ba675SRob Herring
52724ba675SRob Herring		cpu2: cpu@f02 {
53724ba675SRob Herring			device_type = "cpu";
54724ba675SRob Herring			compatible = "arm,cortex-a7";
55724ba675SRob Herring			reg = <0xf02>;
56724ba675SRob Herring			enable-method = "psci";
57724ba675SRob Herring			clocks = <&cru ARMCLK>;
58724ba675SRob Herring		};
59724ba675SRob Herring
60724ba675SRob Herring		cpu3: cpu@f03 {
61724ba675SRob Herring			device_type = "cpu";
62724ba675SRob Herring			compatible = "arm,cortex-a7";
63724ba675SRob Herring			reg = <0xf03>;
64724ba675SRob Herring			enable-method = "psci";
65724ba675SRob Herring			clocks = <&cru ARMCLK>;
66724ba675SRob Herring		};
67724ba675SRob Herring	};
68724ba675SRob Herring
69724ba675SRob Herring	arm-pmu {
70724ba675SRob Herring		compatible = "arm,cortex-a7-pmu";
71724ba675SRob Herring		interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
72724ba675SRob Herring			     <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
73724ba675SRob Herring			     <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
74724ba675SRob Herring			     <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
75724ba675SRob Herring		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
76724ba675SRob Herring	};
77724ba675SRob Herring
78724ba675SRob Herring	psci {
79724ba675SRob Herring		compatible = "arm,psci-1.0";
80724ba675SRob Herring		method = "smc";
81724ba675SRob Herring	};
82724ba675SRob Herring
83724ba675SRob Herring	timer {
84724ba675SRob Herring		compatible = "arm,armv7-timer";
85724ba675SRob Herring		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
86724ba675SRob Herring			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
87724ba675SRob Herring			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
88724ba675SRob Herring			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
89724ba675SRob Herring		clock-frequency = <24000000>;
90724ba675SRob Herring	};
91724ba675SRob Herring
921bf0dcb1SJagan Teki	display_subsystem {
931bf0dcb1SJagan Teki		compatible = "rockchip,display-subsystem";
941bf0dcb1SJagan Teki		ports = <&vop_out>;
951bf0dcb1SJagan Teki	};
961bf0dcb1SJagan Teki
97724ba675SRob Herring	xin24m: oscillator {
98724ba675SRob Herring		compatible = "fixed-clock";
99724ba675SRob Herring		clock-frequency = <24000000>;
100724ba675SRob Herring		clock-output-names = "xin24m";
101724ba675SRob Herring		#clock-cells = <0>;
102724ba675SRob Herring	};
103724ba675SRob Herring
104724ba675SRob Herring	grf: syscon@fe000000 {
105724ba675SRob Herring		compatible = "rockchip,rv1126-grf", "syscon", "simple-mfd";
106724ba675SRob Herring		reg = <0xfe000000 0x20000>;
107724ba675SRob Herring	};
108724ba675SRob Herring
109724ba675SRob Herring	pmugrf: syscon@fe020000 {
110724ba675SRob Herring		compatible = "rockchip,rv1126-pmugrf", "syscon", "simple-mfd";
111724ba675SRob Herring		reg = <0xfe020000 0x1000>;
112724ba675SRob Herring
113724ba675SRob Herring		pmu_io_domains: io-domains {
114724ba675SRob Herring			compatible = "rockchip,rv1126-pmu-io-voltage-domain";
115724ba675SRob Herring			status = "disabled";
116724ba675SRob Herring		};
117724ba675SRob Herring	};
118724ba675SRob Herring
119724ba675SRob Herring	qos_emmc: qos@fe860000 {
120724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
121724ba675SRob Herring		reg = <0xfe860000 0x20>;
122724ba675SRob Herring	};
123724ba675SRob Herring
124724ba675SRob Herring	qos_nandc: qos@fe860080 {
125724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
126724ba675SRob Herring		reg = <0xfe860080 0x20>;
127724ba675SRob Herring	};
128724ba675SRob Herring
129724ba675SRob Herring	qos_sfc: qos@fe860200 {
130724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
131724ba675SRob Herring		reg = <0xfe860200 0x20>;
132724ba675SRob Herring	};
133724ba675SRob Herring
134724ba675SRob Herring	qos_sdio: qos@fe86c000 {
135724ba675SRob Herring		compatible = "rockchip,rv1126-qos", "syscon";
136724ba675SRob Herring		reg = <0xfe86c000 0x20>;
137724ba675SRob Herring	};
138724ba675SRob Herring
1394fafaed5SJagan Teki	qos_iep: qos@fe8a0000 {
1404fafaed5SJagan Teki		compatible = "rockchip,rv1126-qos", "syscon";
1414fafaed5SJagan Teki		reg = <0xfe8a0000 0x20>;
1424fafaed5SJagan Teki	};
1434fafaed5SJagan Teki
1444fafaed5SJagan Teki	qos_rga_rd: qos@fe8a0080 {
1454fafaed5SJagan Teki		compatible = "rockchip,rv1126-qos", "syscon";
1464fafaed5SJagan Teki		reg = <0xfe8a0080 0x20>;
1474fafaed5SJagan Teki	};
1484fafaed5SJagan Teki
1494fafaed5SJagan Teki	qos_rga_wr: qos@fe8a0100 {
1504fafaed5SJagan Teki		compatible = "rockchip,rv1126-qos", "syscon";
1514fafaed5SJagan Teki		reg = <0xfe8a0100 0x20>;
1524fafaed5SJagan Teki	};
1534fafaed5SJagan Teki
1544fafaed5SJagan Teki	qos_vop: qos@fe8a0180 {
1554fafaed5SJagan Teki		compatible = "rockchip,rv1126-qos", "syscon";
1564fafaed5SJagan Teki		reg = <0xfe8a0180 0x20>;
1574fafaed5SJagan Teki	};
1584fafaed5SJagan Teki
159724ba675SRob Herring	gic: interrupt-controller@feff0000 {
160724ba675SRob Herring		compatible = "arm,gic-400";
161724ba675SRob Herring		interrupt-controller;
162724ba675SRob Herring		#interrupt-cells = <3>;
163724ba675SRob Herring		#address-cells = <0>;
164724ba675SRob Herring
165724ba675SRob Herring		reg = <0xfeff1000 0x1000>,
166724ba675SRob Herring		      <0xfeff2000 0x2000>,
167724ba675SRob Herring		      <0xfeff4000 0x2000>,
168724ba675SRob Herring		      <0xfeff6000 0x2000>;
169724ba675SRob Herring		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
170724ba675SRob Herring	};
171724ba675SRob Herring
172724ba675SRob Herring	pmu: power-management@ff3e0000 {
173724ba675SRob Herring		compatible = "rockchip,rv1126-pmu", "syscon", "simple-mfd";
174724ba675SRob Herring		reg = <0xff3e0000 0x1000>;
175724ba675SRob Herring
176724ba675SRob Herring		power: power-controller {
177724ba675SRob Herring			compatible = "rockchip,rv1126-power-controller";
178724ba675SRob Herring			#power-domain-cells = <1>;
179724ba675SRob Herring			#address-cells = <1>;
180724ba675SRob Herring			#size-cells = <0>;
181724ba675SRob Herring
182724ba675SRob Herring			power-domain@RV1126_PD_NVM {
183724ba675SRob Herring				reg = <RV1126_PD_NVM>;
184724ba675SRob Herring				clocks = <&cru HCLK_EMMC>,
185724ba675SRob Herring					 <&cru CLK_EMMC>,
186724ba675SRob Herring					 <&cru HCLK_NANDC>,
187724ba675SRob Herring					 <&cru CLK_NANDC>,
188724ba675SRob Herring					 <&cru HCLK_SFC>,
189724ba675SRob Herring					 <&cru HCLK_SFCXIP>,
190724ba675SRob Herring					 <&cru SCLK_SFC>;
191724ba675SRob Herring				pm_qos = <&qos_emmc>,
192724ba675SRob Herring					 <&qos_nandc>,
193724ba675SRob Herring					 <&qos_sfc>;
194724ba675SRob Herring				#power-domain-cells = <0>;
195724ba675SRob Herring			};
196724ba675SRob Herring
197724ba675SRob Herring			power-domain@RV1126_PD_SDIO {
198724ba675SRob Herring				reg = <RV1126_PD_SDIO>;
199724ba675SRob Herring				clocks = <&cru HCLK_SDIO>,
200724ba675SRob Herring					 <&cru CLK_SDIO>;
201724ba675SRob Herring				pm_qos = <&qos_sdio>;
202724ba675SRob Herring				#power-domain-cells = <0>;
203724ba675SRob Herring			};
2044fafaed5SJagan Teki
2054fafaed5SJagan Teki			power-domain@RV1126_PD_VO {
2064fafaed5SJagan Teki				reg = <RV1126_PD_VO>;
2074fafaed5SJagan Teki				clocks = <&cru ACLK_RGA>,
2084fafaed5SJagan Teki					 <&cru HCLK_RGA>,
2094fafaed5SJagan Teki					 <&cru CLK_RGA_CORE>,
2104fafaed5SJagan Teki					 <&cru ACLK_VOP>,
2114fafaed5SJagan Teki					 <&cru HCLK_VOP>,
2124fafaed5SJagan Teki					 <&cru DCLK_VOP>,
2134fafaed5SJagan Teki					 <&cru PCLK_DSIHOST>,
2144fafaed5SJagan Teki					 <&cru ACLK_IEP>,
2154fafaed5SJagan Teki					 <&cru HCLK_IEP>,
2164fafaed5SJagan Teki					 <&cru CLK_IEP_CORE>;
2174fafaed5SJagan Teki				pm_qos = <&qos_rga_rd>,
2184fafaed5SJagan Teki					 <&qos_rga_wr>,
2194fafaed5SJagan Teki					 <&qos_vop>,
2204fafaed5SJagan Teki					 <&qos_iep>;
2214fafaed5SJagan Teki				#power-domain-cells = <0>;
2224fafaed5SJagan Teki			};
223724ba675SRob Herring		};
224724ba675SRob Herring	};
225724ba675SRob Herring
226724ba675SRob Herring	i2c0: i2c@ff3f0000 {
227724ba675SRob Herring		compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c";
228724ba675SRob Herring		reg = <0xff3f0000 0x1000>;
229724ba675SRob Herring		interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
230724ba675SRob Herring		rockchip,grf = <&pmugrf>;
231724ba675SRob Herring		clocks = <&pmucru CLK_I2C0>, <&pmucru PCLK_I2C0>;
232724ba675SRob Herring		clock-names = "i2c", "pclk";
233724ba675SRob Herring		pinctrl-names = "default";
234724ba675SRob Herring		pinctrl-0 = <&i2c0_xfer>;
235724ba675SRob Herring		#address-cells = <1>;
236724ba675SRob Herring		#size-cells = <0>;
237724ba675SRob Herring		status = "disabled";
238724ba675SRob Herring	};
239724ba675SRob Herring
240724ba675SRob Herring	uart1: serial@ff410000 {
241724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
242724ba675SRob Herring		reg = <0xff410000 0x100>;
243724ba675SRob Herring		interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
244724ba675SRob Herring		clock-frequency = <24000000>;
245724ba675SRob Herring		clocks = <&pmucru SCLK_UART1>, <&pmucru PCLK_UART1>;
246724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
247724ba675SRob Herring		dmas = <&dmac 7>, <&dmac 6>;
248724ba675SRob Herring		dma-names = "tx", "rx";
249724ba675SRob Herring		pinctrl-names = "default";
250724ba675SRob Herring		pinctrl-0 = <&uart1m0_xfer>;
251724ba675SRob Herring		reg-shift = <2>;
252724ba675SRob Herring		reg-io-width = <4>;
253724ba675SRob Herring		status = "disabled";
254724ba675SRob Herring	};
255724ba675SRob Herring
25628b2ae4aSJagan Teki	pwm2: pwm@ff430020 {
25728b2ae4aSJagan Teki		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
25828b2ae4aSJagan Teki		reg = <0xff430020 0x10>;
25928b2ae4aSJagan Teki		clock-names = "pwm", "pclk";
26028b2ae4aSJagan Teki		clocks = <&pmucru CLK_PWM0>, <&pmucru PCLK_PWM0>;
26128b2ae4aSJagan Teki		pinctrl-names = "default";
26228b2ae4aSJagan Teki		pinctrl-0 = <&pwm2m0_pins>;
26328b2ae4aSJagan Teki		#pwm-cells = <3>;
26428b2ae4aSJagan Teki		status = "disabled";
26528b2ae4aSJagan Teki	};
26628b2ae4aSJagan Teki
267724ba675SRob Herring	pmucru: clock-controller@ff480000 {
268724ba675SRob Herring		compatible = "rockchip,rv1126-pmucru";
269724ba675SRob Herring		reg = <0xff480000 0x1000>;
270724ba675SRob Herring		rockchip,grf = <&grf>;
271724ba675SRob Herring		#clock-cells = <1>;
272724ba675SRob Herring		#reset-cells = <1>;
273724ba675SRob Herring	};
274724ba675SRob Herring
275724ba675SRob Herring	cru: clock-controller@ff490000 {
276724ba675SRob Herring		compatible = "rockchip,rv1126-cru";
277724ba675SRob Herring		reg = <0xff490000 0x1000>;
278724ba675SRob Herring		clocks = <&xin24m>;
279724ba675SRob Herring		clock-names = "xin24m";
280724ba675SRob Herring		rockchip,grf = <&grf>;
281724ba675SRob Herring		#clock-cells = <1>;
282724ba675SRob Herring		#reset-cells = <1>;
283724ba675SRob Herring	};
284724ba675SRob Herring
285724ba675SRob Herring	dmac: dma-controller@ff4e0000 {
286724ba675SRob Herring		compatible = "arm,pl330", "arm,primecell";
287724ba675SRob Herring		reg = <0xff4e0000 0x4000>;
288724ba675SRob Herring		interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
289724ba675SRob Herring			     <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
290724ba675SRob Herring		#dma-cells = <1>;
291724ba675SRob Herring		arm,pl330-periph-burst;
292724ba675SRob Herring		clocks = <&cru ACLK_DMAC>;
293724ba675SRob Herring		clock-names = "apb_pclk";
294724ba675SRob Herring	};
295724ba675SRob Herring
296c5cb1950SJagan Teki	pwm11: pwm@ff550030 {
297c5cb1950SJagan Teki		compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
298c5cb1950SJagan Teki		reg = <0xff550030 0x10>;
299c5cb1950SJagan Teki		clock-names = "pwm", "pclk";
300c5cb1950SJagan Teki		clocks = <&cru CLK_PWM2>, <&cru PCLK_PWM2>;
301c5cb1950SJagan Teki		pinctrl-0 = <&pwm11m0_pins>;
302c5cb1950SJagan Teki		pinctrl-names = "default";
303c5cb1950SJagan Teki		#pwm-cells = <3>;
304c5cb1950SJagan Teki		status = "disabled";
305c5cb1950SJagan Teki	};
306c5cb1950SJagan Teki
307724ba675SRob Herring	uart0: serial@ff560000 {
308724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
309724ba675SRob Herring		reg = <0xff560000 0x100>;
310724ba675SRob Herring		interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
311724ba675SRob Herring		clock-frequency = <24000000>;
312724ba675SRob Herring		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
313724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
314724ba675SRob Herring		dmas = <&dmac 5>, <&dmac 4>;
315724ba675SRob Herring		dma-names = "tx", "rx";
316724ba675SRob Herring		pinctrl-names = "default";
317724ba675SRob Herring		pinctrl-0 = <&uart0_xfer>;
318724ba675SRob Herring		reg-shift = <2>;
319724ba675SRob Herring		reg-io-width = <4>;
320724ba675SRob Herring		status = "disabled";
321724ba675SRob Herring	};
322724ba675SRob Herring
323724ba675SRob Herring	uart2: serial@ff570000 {
324724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
325724ba675SRob Herring		reg = <0xff570000 0x100>;
326724ba675SRob Herring		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
327724ba675SRob Herring		clock-frequency = <24000000>;
328724ba675SRob Herring		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
329724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
330724ba675SRob Herring		dmas = <&dmac 9>, <&dmac 8>;
331724ba675SRob Herring		dma-names = "tx", "rx";
332724ba675SRob Herring		pinctrl-names = "default";
333724ba675SRob Herring		pinctrl-0 = <&uart2m1_xfer>;
334724ba675SRob Herring		reg-shift = <2>;
335724ba675SRob Herring		reg-io-width = <4>;
336724ba675SRob Herring		status = "disabled";
337724ba675SRob Herring	};
338724ba675SRob Herring
339724ba675SRob Herring	uart3: serial@ff580000 {
340724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
341724ba675SRob Herring		reg = <0xff580000 0x100>;
342724ba675SRob Herring		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
343724ba675SRob Herring		clock-frequency = <24000000>;
344724ba675SRob Herring		clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
345724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
346724ba675SRob Herring		dmas = <&dmac 11>, <&dmac 10>;
347724ba675SRob Herring		dma-names = "tx", "rx";
348724ba675SRob Herring		pinctrl-names = "default";
349724ba675SRob Herring		pinctrl-0 = <&uart3m0_xfer>;
350724ba675SRob Herring		reg-shift = <2>;
351724ba675SRob Herring		reg-io-width = <4>;
352724ba675SRob Herring		status = "disabled";
353724ba675SRob Herring	};
354724ba675SRob Herring
355724ba675SRob Herring	uart4: serial@ff590000 {
356724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
357724ba675SRob Herring		reg = <0xff590000 0x100>;
358724ba675SRob Herring		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
359724ba675SRob Herring		clock-frequency = <24000000>;
360724ba675SRob Herring		clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
361724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
362724ba675SRob Herring		dmas = <&dmac 13>, <&dmac 12>;
363724ba675SRob Herring		dma-names = "tx", "rx";
364724ba675SRob Herring		pinctrl-names = "default";
365724ba675SRob Herring		pinctrl-0 = <&uart4m0_xfer>;
366724ba675SRob Herring		reg-shift = <2>;
367724ba675SRob Herring		reg-io-width = <4>;
368724ba675SRob Herring		status = "disabled";
369724ba675SRob Herring	};
370724ba675SRob Herring
371724ba675SRob Herring	uart5: serial@ff5a0000 {
372724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
373724ba675SRob Herring		reg = <0xff5a0000 0x100>;
374724ba675SRob Herring		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
375724ba675SRob Herring		clock-frequency = <24000000>;
376724ba675SRob Herring		clocks = <&cru SCLK_UART5>, <&cru PCLK_UART5>;
377724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
378724ba675SRob Herring		dmas = <&dmac 15>, <&dmac 14>;
379724ba675SRob Herring		dma-names = "tx", "rx";
380724ba675SRob Herring		pinctrl-names = "default";
381724ba675SRob Herring		pinctrl-0 = <&uart5m0_xfer>;
382724ba675SRob Herring		reg-shift = <2>;
383724ba675SRob Herring		reg-io-width = <4>;
384724ba675SRob Herring		status = "disabled";
385724ba675SRob Herring	};
386724ba675SRob Herring
387724ba675SRob Herring	saradc: adc@ff5e0000 {
388724ba675SRob Herring		compatible = "rockchip,rv1126-saradc", "rockchip,rk3399-saradc";
389724ba675SRob Herring		reg = <0xff5e0000 0x100>;
390724ba675SRob Herring		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
391724ba675SRob Herring		#io-channel-cells = <1>;
392724ba675SRob Herring		clocks = <&cru CLK_SARADC>, <&cru PCLK_SARADC>;
393724ba675SRob Herring		clock-names = "saradc", "apb_pclk";
394724ba675SRob Herring		resets = <&cru SRST_SARADC_P>;
395724ba675SRob Herring		reset-names = "saradc-apb";
396724ba675SRob Herring		status = "disabled";
397724ba675SRob Herring	};
398724ba675SRob Herring
399724ba675SRob Herring	timer0: timer@ff660000 {
400724ba675SRob Herring		compatible = "rockchip,rv1126-timer", "rockchip,rk3288-timer";
401724ba675SRob Herring		reg = <0xff660000 0x20>;
402724ba675SRob Herring		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
403724ba675SRob Herring		clocks = <&cru PCLK_TIMER>, <&cru CLK_TIMER0>;
404724ba675SRob Herring		clock-names = "pclk", "timer";
405724ba675SRob Herring	};
406724ba675SRob Herring
4071bf0dcb1SJagan Teki	vop: vop@ffb00000 {
4081bf0dcb1SJagan Teki		compatible = "rockchip,rv1126-vop";
4091bf0dcb1SJagan Teki		reg = <0xffb00000 0x200>, <0xffb00a00 0x400>;
4101bf0dcb1SJagan Teki		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
4111bf0dcb1SJagan Teki		clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
4121bf0dcb1SJagan Teki		clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
4131bf0dcb1SJagan Teki		reset-names = "axi", "ahb", "dclk";
4141bf0dcb1SJagan Teki		resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
4151bf0dcb1SJagan Teki		iommus = <&vop_mmu>;
4161bf0dcb1SJagan Teki		power-domains = <&power RV1126_PD_VO>;
4171bf0dcb1SJagan Teki		status = "disabled";
4181bf0dcb1SJagan Teki
4191bf0dcb1SJagan Teki		vop_out: port {
4201bf0dcb1SJagan Teki			#address-cells = <1>;
4211bf0dcb1SJagan Teki			#size-cells = <0>;
4221bf0dcb1SJagan Teki
4231bf0dcb1SJagan Teki			vop_out_rgb: endpoint@0 {
4241bf0dcb1SJagan Teki				reg = <0>;
4251bf0dcb1SJagan Teki			};
4261bf0dcb1SJagan Teki
4271bf0dcb1SJagan Teki			vop_out_dsi: endpoint@1 {
4281bf0dcb1SJagan Teki				reg = <1>;
4291bf0dcb1SJagan Teki			};
4301bf0dcb1SJagan Teki		};
4311bf0dcb1SJagan Teki	};
4321bf0dcb1SJagan Teki
4331bf0dcb1SJagan Teki	vop_mmu: iommu@ffb00f00 {
4341bf0dcb1SJagan Teki		compatible = "rockchip,iommu";
4351bf0dcb1SJagan Teki		reg = <0xffb00f00 0x100>;
4361bf0dcb1SJagan Teki		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
4371bf0dcb1SJagan Teki		clock-names = "aclk", "iface";
4381bf0dcb1SJagan Teki		clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
4391bf0dcb1SJagan Teki		#iommu-cells = <0>;
4401bf0dcb1SJagan Teki		power-domains = <&power RV1126_PD_VO>;
4411bf0dcb1SJagan Teki		status = "disabled";
4421bf0dcb1SJagan Teki	};
4431bf0dcb1SJagan Teki
444724ba675SRob Herring	gmac: ethernet@ffc40000 {
445724ba675SRob Herring		compatible = "rockchip,rv1126-gmac", "snps,dwmac-4.20a";
446724ba675SRob Herring		reg = <0xffc40000 0x4000>;
447724ba675SRob Herring		interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
448724ba675SRob Herring			     <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
449724ba675SRob Herring		interrupt-names = "macirq", "eth_wake_irq";
450724ba675SRob Herring		rockchip,grf = <&grf>;
451724ba675SRob Herring		clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>,
452724ba675SRob Herring			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_REF>,
453724ba675SRob Herring			 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>,
454724ba675SRob Herring			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_PTPREF>;
455724ba675SRob Herring		clock-names = "stmmaceth", "mac_clk_rx",
456724ba675SRob Herring			      "mac_clk_tx", "clk_mac_ref",
457724ba675SRob Herring			      "aclk_mac", "pclk_mac",
458724ba675SRob Herring			      "clk_mac_speed", "ptp_ref";
459724ba675SRob Herring		resets = <&cru SRST_GMAC_A>;
460724ba675SRob Herring		reset-names = "stmmaceth";
461724ba675SRob Herring
462724ba675SRob Herring		snps,mixed-burst;
463724ba675SRob Herring		snps,tso;
464724ba675SRob Herring
465724ba675SRob Herring		snps,axi-config = <&stmmac_axi_setup>;
466724ba675SRob Herring		snps,mtl-rx-config = <&mtl_rx_setup>;
467724ba675SRob Herring		snps,mtl-tx-config = <&mtl_tx_setup>;
468724ba675SRob Herring		status = "disabled";
469724ba675SRob Herring
470724ba675SRob Herring		mdio: mdio {
471724ba675SRob Herring			compatible = "snps,dwmac-mdio";
472724ba675SRob Herring			#address-cells = <0x1>;
473724ba675SRob Herring			#size-cells = <0x0>;
474724ba675SRob Herring		};
475724ba675SRob Herring
476724ba675SRob Herring		stmmac_axi_setup: stmmac-axi-config {
477724ba675SRob Herring			snps,wr_osr_lmt = <4>;
478724ba675SRob Herring			snps,rd_osr_lmt = <8>;
479724ba675SRob Herring			snps,blen = <0 0 0 0 16 8 4>;
480724ba675SRob Herring		};
481724ba675SRob Herring
482724ba675SRob Herring		mtl_rx_setup: rx-queues-config {
483724ba675SRob Herring			snps,rx-queues-to-use = <1>;
484724ba675SRob Herring			queue0 {};
485724ba675SRob Herring		};
486724ba675SRob Herring
487724ba675SRob Herring		mtl_tx_setup: tx-queues-config {
488724ba675SRob Herring			snps,tx-queues-to-use = <1>;
489724ba675SRob Herring			queue0 {};
490724ba675SRob Herring		};
491724ba675SRob Herring	};
492724ba675SRob Herring
493724ba675SRob Herring	emmc: mmc@ffc50000 {
494724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
495724ba675SRob Herring		reg = <0xffc50000 0x4000>;
496724ba675SRob Herring		interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
497724ba675SRob Herring		clocks = <&cru HCLK_EMMC>, <&cru CLK_EMMC>,
498724ba675SRob Herring			 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
499724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
500724ba675SRob Herring		fifo-depth = <0x100>;
501724ba675SRob Herring		max-frequency = <200000000>;
502724ba675SRob Herring		power-domains = <&power RV1126_PD_NVM>;
503724ba675SRob Herring		status = "disabled";
504724ba675SRob Herring	};
505724ba675SRob Herring
506724ba675SRob Herring	sdmmc: mmc@ffc60000 {
507724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
508724ba675SRob Herring		reg = <0xffc60000 0x4000>;
509724ba675SRob Herring		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
510724ba675SRob Herring		clocks = <&cru HCLK_SDMMC>, <&cru CLK_SDMMC>,
511724ba675SRob Herring			 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
512724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
513724ba675SRob Herring		fifo-depth = <0x100>;
514724ba675SRob Herring		max-frequency = <200000000>;
515724ba675SRob Herring		status = "disabled";
516724ba675SRob Herring	};
517724ba675SRob Herring
518724ba675SRob Herring	sdio: mmc@ffc70000 {
519724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
520724ba675SRob Herring		reg = <0xffc70000 0x4000>;
521724ba675SRob Herring		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
522724ba675SRob Herring		clocks = <&cru HCLK_SDIO>, <&cru CLK_SDIO>,
523724ba675SRob Herring			 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
524724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
525724ba675SRob Herring		fifo-depth = <0x100>;
526724ba675SRob Herring		max-frequency = <200000000>;
527724ba675SRob Herring		power-domains = <&power RV1126_PD_SDIO>;
528724ba675SRob Herring		status = "disabled";
529724ba675SRob Herring	};
530724ba675SRob Herring
531c3ae1484SJagan Teki	sfc: spi@ffc90000  {
532c3ae1484SJagan Teki		compatible = "rockchip,sfc";
533c3ae1484SJagan Teki		reg = <0xffc90000 0x4000>;
534c3ae1484SJagan Teki		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
535c3ae1484SJagan Teki		assigned-clocks = <&cru SCLK_SFC>;
536c3ae1484SJagan Teki		assigned-clock-rates = <80000000>;
537c3ae1484SJagan Teki		clock-names = "clk_sfc", "hclk_sfc";
538c3ae1484SJagan Teki		clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
539c3ae1484SJagan Teki		power-domains = <&power RV1126_PD_NVM>;
540c3ae1484SJagan Teki		status = "disabled";
541c3ae1484SJagan Teki	};
542c3ae1484SJagan Teki
543724ba675SRob Herring	pinctrl: pinctrl {
544724ba675SRob Herring		compatible = "rockchip,rv1126-pinctrl";
545724ba675SRob Herring		rockchip,grf = <&grf>;
546724ba675SRob Herring		rockchip,pmu = <&pmugrf>;
547724ba675SRob Herring		#address-cells = <1>;
548724ba675SRob Herring		#size-cells = <1>;
549724ba675SRob Herring		ranges;
550724ba675SRob Herring
551724ba675SRob Herring		gpio0: gpio@ff460000 {
552724ba675SRob Herring			compatible = "rockchip,gpio-bank";
553724ba675SRob Herring			reg = <0xff460000 0x100>;
554724ba675SRob Herring			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
555724ba675SRob Herring			clocks = <&pmucru PCLK_GPIO0>, <&pmucru DBCLK_GPIO0>;
556724ba675SRob Herring			gpio-controller;
557724ba675SRob Herring			#gpio-cells = <2>;
558724ba675SRob Herring			interrupt-controller;
559724ba675SRob Herring			#interrupt-cells = <2>;
560724ba675SRob Herring		};
561724ba675SRob Herring
562724ba675SRob Herring		gpio1: gpio@ff620000 {
563724ba675SRob Herring			compatible = "rockchip,gpio-bank";
564724ba675SRob Herring			reg = <0xff620000 0x100>;
565724ba675SRob Herring			interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
566724ba675SRob Herring			clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>;
567724ba675SRob Herring			gpio-controller;
568724ba675SRob Herring			#gpio-cells = <2>;
569724ba675SRob Herring			interrupt-controller;
570724ba675SRob Herring			#interrupt-cells = <2>;
571724ba675SRob Herring		};
572724ba675SRob Herring
573724ba675SRob Herring		gpio2: gpio@ff630000 {
574724ba675SRob Herring			compatible = "rockchip,gpio-bank";
575724ba675SRob Herring			reg = <0xff630000 0x100>;
576724ba675SRob Herring			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
577724ba675SRob Herring			clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>;
578724ba675SRob Herring			gpio-controller;
579724ba675SRob Herring			#gpio-cells = <2>;
580724ba675SRob Herring			interrupt-controller;
581724ba675SRob Herring			#interrupt-cells = <2>;
582724ba675SRob Herring		};
583724ba675SRob Herring
584724ba675SRob Herring		gpio3: gpio@ff640000 {
585724ba675SRob Herring			compatible = "rockchip,gpio-bank";
586724ba675SRob Herring			reg = <0xff640000 0x100>;
587724ba675SRob Herring			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
588724ba675SRob Herring			clocks = <&cru PCLK_GPIO3>, <&cru DBCLK_GPIO3>;
589724ba675SRob Herring			gpio-controller;
590724ba675SRob Herring			#gpio-cells = <2>;
591724ba675SRob Herring			interrupt-controller;
592724ba675SRob Herring			#interrupt-cells = <2>;
593724ba675SRob Herring		};
594724ba675SRob Herring
595724ba675SRob Herring		gpio4: gpio@ff650000 {
596724ba675SRob Herring			compatible = "rockchip,gpio-bank";
597724ba675SRob Herring			reg = <0xff650000 0x100>;
598724ba675SRob Herring			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
599724ba675SRob Herring			clocks = <&cru PCLK_GPIO4>, <&cru DBCLK_GPIO4>;
600724ba675SRob Herring			gpio-controller;
601724ba675SRob Herring			#gpio-cells = <2>;
602724ba675SRob Herring			interrupt-controller;
603724ba675SRob Herring			#interrupt-cells = <2>;
604724ba675SRob Herring		};
605724ba675SRob Herring	};
606724ba675SRob Herring};
607724ba675SRob Herring
608724ba675SRob Herring#include "rv1126-pinctrl.dtsi"
609