xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rv1126.dtsi (revision 1bf0dcb1e2a987a9281ae91f94e10c0de52c4952)
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
86*1bf0dcb1SJagan Teki	display_subsystem {
87*1bf0dcb1SJagan Teki		compatible = "rockchip,display-subsystem";
88*1bf0dcb1SJagan Teki		ports = <&vop_out>;
89*1bf0dcb1SJagan Teki	};
90*1bf0dcb1SJagan 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
250724ba675SRob Herring	pmucru: clock-controller@ff480000 {
251724ba675SRob Herring		compatible = "rockchip,rv1126-pmucru";
252724ba675SRob Herring		reg = <0xff480000 0x1000>;
253724ba675SRob Herring		rockchip,grf = <&grf>;
254724ba675SRob Herring		#clock-cells = <1>;
255724ba675SRob Herring		#reset-cells = <1>;
256724ba675SRob Herring	};
257724ba675SRob Herring
258724ba675SRob Herring	cru: clock-controller@ff490000 {
259724ba675SRob Herring		compatible = "rockchip,rv1126-cru";
260724ba675SRob Herring		reg = <0xff490000 0x1000>;
261724ba675SRob Herring		clocks = <&xin24m>;
262724ba675SRob Herring		clock-names = "xin24m";
263724ba675SRob Herring		rockchip,grf = <&grf>;
264724ba675SRob Herring		#clock-cells = <1>;
265724ba675SRob Herring		#reset-cells = <1>;
266724ba675SRob Herring	};
267724ba675SRob Herring
268724ba675SRob Herring	dmac: dma-controller@ff4e0000 {
269724ba675SRob Herring		compatible = "arm,pl330", "arm,primecell";
270724ba675SRob Herring		reg = <0xff4e0000 0x4000>;
271724ba675SRob Herring		interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
272724ba675SRob Herring			     <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
273724ba675SRob Herring		#dma-cells = <1>;
274724ba675SRob Herring		arm,pl330-periph-burst;
275724ba675SRob Herring		clocks = <&cru ACLK_DMAC>;
276724ba675SRob Herring		clock-names = "apb_pclk";
277724ba675SRob Herring	};
278724ba675SRob Herring
279724ba675SRob Herring	uart0: serial@ff560000 {
280724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
281724ba675SRob Herring		reg = <0xff560000 0x100>;
282724ba675SRob Herring		interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
283724ba675SRob Herring		clock-frequency = <24000000>;
284724ba675SRob Herring		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
285724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
286724ba675SRob Herring		dmas = <&dmac 5>, <&dmac 4>;
287724ba675SRob Herring		dma-names = "tx", "rx";
288724ba675SRob Herring		pinctrl-names = "default";
289724ba675SRob Herring		pinctrl-0 = <&uart0_xfer>;
290724ba675SRob Herring		reg-shift = <2>;
291724ba675SRob Herring		reg-io-width = <4>;
292724ba675SRob Herring		status = "disabled";
293724ba675SRob Herring	};
294724ba675SRob Herring
295724ba675SRob Herring	uart2: serial@ff570000 {
296724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
297724ba675SRob Herring		reg = <0xff570000 0x100>;
298724ba675SRob Herring		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
299724ba675SRob Herring		clock-frequency = <24000000>;
300724ba675SRob Herring		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
301724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
302724ba675SRob Herring		dmas = <&dmac 9>, <&dmac 8>;
303724ba675SRob Herring		dma-names = "tx", "rx";
304724ba675SRob Herring		pinctrl-names = "default";
305724ba675SRob Herring		pinctrl-0 = <&uart2m1_xfer>;
306724ba675SRob Herring		reg-shift = <2>;
307724ba675SRob Herring		reg-io-width = <4>;
308724ba675SRob Herring		status = "disabled";
309724ba675SRob Herring	};
310724ba675SRob Herring
311724ba675SRob Herring	uart3: serial@ff580000 {
312724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
313724ba675SRob Herring		reg = <0xff580000 0x100>;
314724ba675SRob Herring		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
315724ba675SRob Herring		clock-frequency = <24000000>;
316724ba675SRob Herring		clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
317724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
318724ba675SRob Herring		dmas = <&dmac 11>, <&dmac 10>;
319724ba675SRob Herring		dma-names = "tx", "rx";
320724ba675SRob Herring		pinctrl-names = "default";
321724ba675SRob Herring		pinctrl-0 = <&uart3m0_xfer>;
322724ba675SRob Herring		reg-shift = <2>;
323724ba675SRob Herring		reg-io-width = <4>;
324724ba675SRob Herring		status = "disabled";
325724ba675SRob Herring	};
326724ba675SRob Herring
327724ba675SRob Herring	uart4: serial@ff590000 {
328724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
329724ba675SRob Herring		reg = <0xff590000 0x100>;
330724ba675SRob Herring		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
331724ba675SRob Herring		clock-frequency = <24000000>;
332724ba675SRob Herring		clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
333724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
334724ba675SRob Herring		dmas = <&dmac 13>, <&dmac 12>;
335724ba675SRob Herring		dma-names = "tx", "rx";
336724ba675SRob Herring		pinctrl-names = "default";
337724ba675SRob Herring		pinctrl-0 = <&uart4m0_xfer>;
338724ba675SRob Herring		reg-shift = <2>;
339724ba675SRob Herring		reg-io-width = <4>;
340724ba675SRob Herring		status = "disabled";
341724ba675SRob Herring	};
342724ba675SRob Herring
343724ba675SRob Herring	uart5: serial@ff5a0000 {
344724ba675SRob Herring		compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
345724ba675SRob Herring		reg = <0xff5a0000 0x100>;
346724ba675SRob Herring		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
347724ba675SRob Herring		clock-frequency = <24000000>;
348724ba675SRob Herring		clocks = <&cru SCLK_UART5>, <&cru PCLK_UART5>;
349724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
350724ba675SRob Herring		dmas = <&dmac 15>, <&dmac 14>;
351724ba675SRob Herring		dma-names = "tx", "rx";
352724ba675SRob Herring		pinctrl-names = "default";
353724ba675SRob Herring		pinctrl-0 = <&uart5m0_xfer>;
354724ba675SRob Herring		reg-shift = <2>;
355724ba675SRob Herring		reg-io-width = <4>;
356724ba675SRob Herring		status = "disabled";
357724ba675SRob Herring	};
358724ba675SRob Herring
359724ba675SRob Herring	saradc: adc@ff5e0000 {
360724ba675SRob Herring		compatible = "rockchip,rv1126-saradc", "rockchip,rk3399-saradc";
361724ba675SRob Herring		reg = <0xff5e0000 0x100>;
362724ba675SRob Herring		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
363724ba675SRob Herring		#io-channel-cells = <1>;
364724ba675SRob Herring		clocks = <&cru CLK_SARADC>, <&cru PCLK_SARADC>;
365724ba675SRob Herring		clock-names = "saradc", "apb_pclk";
366724ba675SRob Herring		resets = <&cru SRST_SARADC_P>;
367724ba675SRob Herring		reset-names = "saradc-apb";
368724ba675SRob Herring		status = "disabled";
369724ba675SRob Herring	};
370724ba675SRob Herring
371724ba675SRob Herring	timer0: timer@ff660000 {
372724ba675SRob Herring		compatible = "rockchip,rv1126-timer", "rockchip,rk3288-timer";
373724ba675SRob Herring		reg = <0xff660000 0x20>;
374724ba675SRob Herring		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
375724ba675SRob Herring		clocks = <&cru PCLK_TIMER>, <&cru CLK_TIMER0>;
376724ba675SRob Herring		clock-names = "pclk", "timer";
377724ba675SRob Herring	};
378724ba675SRob Herring
379*1bf0dcb1SJagan Teki	vop: vop@ffb00000 {
380*1bf0dcb1SJagan Teki		compatible = "rockchip,rv1126-vop";
381*1bf0dcb1SJagan Teki		reg = <0xffb00000 0x200>, <0xffb00a00 0x400>;
382*1bf0dcb1SJagan Teki		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
383*1bf0dcb1SJagan Teki		clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
384*1bf0dcb1SJagan Teki		clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
385*1bf0dcb1SJagan Teki		reset-names = "axi", "ahb", "dclk";
386*1bf0dcb1SJagan Teki		resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
387*1bf0dcb1SJagan Teki		iommus = <&vop_mmu>;
388*1bf0dcb1SJagan Teki		power-domains = <&power RV1126_PD_VO>;
389*1bf0dcb1SJagan Teki		status = "disabled";
390*1bf0dcb1SJagan Teki
391*1bf0dcb1SJagan Teki		vop_out: port {
392*1bf0dcb1SJagan Teki			#address-cells = <1>;
393*1bf0dcb1SJagan Teki			#size-cells = <0>;
394*1bf0dcb1SJagan Teki
395*1bf0dcb1SJagan Teki			vop_out_rgb: endpoint@0 {
396*1bf0dcb1SJagan Teki				reg = <0>;
397*1bf0dcb1SJagan Teki			};
398*1bf0dcb1SJagan Teki
399*1bf0dcb1SJagan Teki			vop_out_dsi: endpoint@1 {
400*1bf0dcb1SJagan Teki				reg = <1>;
401*1bf0dcb1SJagan Teki			};
402*1bf0dcb1SJagan Teki		};
403*1bf0dcb1SJagan Teki	};
404*1bf0dcb1SJagan Teki
405*1bf0dcb1SJagan Teki	vop_mmu: iommu@ffb00f00 {
406*1bf0dcb1SJagan Teki		compatible = "rockchip,iommu";
407*1bf0dcb1SJagan Teki		reg = <0xffb00f00 0x100>;
408*1bf0dcb1SJagan Teki		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
409*1bf0dcb1SJagan Teki		clock-names = "aclk", "iface";
410*1bf0dcb1SJagan Teki		clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
411*1bf0dcb1SJagan Teki		#iommu-cells = <0>;
412*1bf0dcb1SJagan Teki		power-domains = <&power RV1126_PD_VO>;
413*1bf0dcb1SJagan Teki		status = "disabled";
414*1bf0dcb1SJagan Teki	};
415*1bf0dcb1SJagan Teki
416724ba675SRob Herring	gmac: ethernet@ffc40000 {
417724ba675SRob Herring		compatible = "rockchip,rv1126-gmac", "snps,dwmac-4.20a";
418724ba675SRob Herring		reg = <0xffc40000 0x4000>;
419724ba675SRob Herring		interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
420724ba675SRob Herring			     <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
421724ba675SRob Herring		interrupt-names = "macirq", "eth_wake_irq";
422724ba675SRob Herring		rockchip,grf = <&grf>;
423724ba675SRob Herring		clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>,
424724ba675SRob Herring			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_REF>,
425724ba675SRob Herring			 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>,
426724ba675SRob Herring			 <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_PTPREF>;
427724ba675SRob Herring		clock-names = "stmmaceth", "mac_clk_rx",
428724ba675SRob Herring			      "mac_clk_tx", "clk_mac_ref",
429724ba675SRob Herring			      "aclk_mac", "pclk_mac",
430724ba675SRob Herring			      "clk_mac_speed", "ptp_ref";
431724ba675SRob Herring		resets = <&cru SRST_GMAC_A>;
432724ba675SRob Herring		reset-names = "stmmaceth";
433724ba675SRob Herring
434724ba675SRob Herring		snps,mixed-burst;
435724ba675SRob Herring		snps,tso;
436724ba675SRob Herring
437724ba675SRob Herring		snps,axi-config = <&stmmac_axi_setup>;
438724ba675SRob Herring		snps,mtl-rx-config = <&mtl_rx_setup>;
439724ba675SRob Herring		snps,mtl-tx-config = <&mtl_tx_setup>;
440724ba675SRob Herring		status = "disabled";
441724ba675SRob Herring
442724ba675SRob Herring		mdio: mdio {
443724ba675SRob Herring			compatible = "snps,dwmac-mdio";
444724ba675SRob Herring			#address-cells = <0x1>;
445724ba675SRob Herring			#size-cells = <0x0>;
446724ba675SRob Herring		};
447724ba675SRob Herring
448724ba675SRob Herring		stmmac_axi_setup: stmmac-axi-config {
449724ba675SRob Herring			snps,wr_osr_lmt = <4>;
450724ba675SRob Herring			snps,rd_osr_lmt = <8>;
451724ba675SRob Herring			snps,blen = <0 0 0 0 16 8 4>;
452724ba675SRob Herring		};
453724ba675SRob Herring
454724ba675SRob Herring		mtl_rx_setup: rx-queues-config {
455724ba675SRob Herring			snps,rx-queues-to-use = <1>;
456724ba675SRob Herring			queue0 {};
457724ba675SRob Herring		};
458724ba675SRob Herring
459724ba675SRob Herring		mtl_tx_setup: tx-queues-config {
460724ba675SRob Herring			snps,tx-queues-to-use = <1>;
461724ba675SRob Herring			queue0 {};
462724ba675SRob Herring		};
463724ba675SRob Herring	};
464724ba675SRob Herring
465724ba675SRob Herring	emmc: mmc@ffc50000 {
466724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
467724ba675SRob Herring		reg = <0xffc50000 0x4000>;
468724ba675SRob Herring		interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
469724ba675SRob Herring		clocks = <&cru HCLK_EMMC>, <&cru CLK_EMMC>,
470724ba675SRob Herring			 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
471724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
472724ba675SRob Herring		fifo-depth = <0x100>;
473724ba675SRob Herring		max-frequency = <200000000>;
474724ba675SRob Herring		power-domains = <&power RV1126_PD_NVM>;
475724ba675SRob Herring		status = "disabled";
476724ba675SRob Herring	};
477724ba675SRob Herring
478724ba675SRob Herring	sdmmc: mmc@ffc60000 {
479724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
480724ba675SRob Herring		reg = <0xffc60000 0x4000>;
481724ba675SRob Herring		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
482724ba675SRob Herring		clocks = <&cru HCLK_SDMMC>, <&cru CLK_SDMMC>,
483724ba675SRob Herring			 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
484724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
485724ba675SRob Herring		fifo-depth = <0x100>;
486724ba675SRob Herring		max-frequency = <200000000>;
487724ba675SRob Herring		status = "disabled";
488724ba675SRob Herring	};
489724ba675SRob Herring
490724ba675SRob Herring	sdio: mmc@ffc70000 {
491724ba675SRob Herring		compatible = "rockchip,rv1126-dw-mshc", "rockchip,rk3288-dw-mshc";
492724ba675SRob Herring		reg = <0xffc70000 0x4000>;
493724ba675SRob Herring		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
494724ba675SRob Herring		clocks = <&cru HCLK_SDIO>, <&cru CLK_SDIO>,
495724ba675SRob Herring			 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
496724ba675SRob Herring		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
497724ba675SRob Herring		fifo-depth = <0x100>;
498724ba675SRob Herring		max-frequency = <200000000>;
499724ba675SRob Herring		power-domains = <&power RV1126_PD_SDIO>;
500724ba675SRob Herring		status = "disabled";
501724ba675SRob Herring	};
502724ba675SRob Herring
503c3ae1484SJagan Teki	sfc: spi@ffc90000  {
504c3ae1484SJagan Teki		compatible = "rockchip,sfc";
505c3ae1484SJagan Teki		reg = <0xffc90000 0x4000>;
506c3ae1484SJagan Teki		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
507c3ae1484SJagan Teki		assigned-clocks = <&cru SCLK_SFC>;
508c3ae1484SJagan Teki		assigned-clock-rates = <80000000>;
509c3ae1484SJagan Teki		clock-names = "clk_sfc", "hclk_sfc";
510c3ae1484SJagan Teki		clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
511c3ae1484SJagan Teki		power-domains = <&power RV1126_PD_NVM>;
512c3ae1484SJagan Teki		status = "disabled";
513c3ae1484SJagan Teki	};
514c3ae1484SJagan Teki
515724ba675SRob Herring	pinctrl: pinctrl {
516724ba675SRob Herring		compatible = "rockchip,rv1126-pinctrl";
517724ba675SRob Herring		rockchip,grf = <&grf>;
518724ba675SRob Herring		rockchip,pmu = <&pmugrf>;
519724ba675SRob Herring		#address-cells = <1>;
520724ba675SRob Herring		#size-cells = <1>;
521724ba675SRob Herring		ranges;
522724ba675SRob Herring
523724ba675SRob Herring		gpio0: gpio@ff460000 {
524724ba675SRob Herring			compatible = "rockchip,gpio-bank";
525724ba675SRob Herring			reg = <0xff460000 0x100>;
526724ba675SRob Herring			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
527724ba675SRob Herring			clocks = <&pmucru PCLK_GPIO0>, <&pmucru DBCLK_GPIO0>;
528724ba675SRob Herring			gpio-controller;
529724ba675SRob Herring			#gpio-cells = <2>;
530724ba675SRob Herring			interrupt-controller;
531724ba675SRob Herring			#interrupt-cells = <2>;
532724ba675SRob Herring		};
533724ba675SRob Herring
534724ba675SRob Herring		gpio1: gpio@ff620000 {
535724ba675SRob Herring			compatible = "rockchip,gpio-bank";
536724ba675SRob Herring			reg = <0xff620000 0x100>;
537724ba675SRob Herring			interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
538724ba675SRob Herring			clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>;
539724ba675SRob Herring			gpio-controller;
540724ba675SRob Herring			#gpio-cells = <2>;
541724ba675SRob Herring			interrupt-controller;
542724ba675SRob Herring			#interrupt-cells = <2>;
543724ba675SRob Herring		};
544724ba675SRob Herring
545724ba675SRob Herring		gpio2: gpio@ff630000 {
546724ba675SRob Herring			compatible = "rockchip,gpio-bank";
547724ba675SRob Herring			reg = <0xff630000 0x100>;
548724ba675SRob Herring			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
549724ba675SRob Herring			clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>;
550724ba675SRob Herring			gpio-controller;
551724ba675SRob Herring			#gpio-cells = <2>;
552724ba675SRob Herring			interrupt-controller;
553724ba675SRob Herring			#interrupt-cells = <2>;
554724ba675SRob Herring		};
555724ba675SRob Herring
556724ba675SRob Herring		gpio3: gpio@ff640000 {
557724ba675SRob Herring			compatible = "rockchip,gpio-bank";
558724ba675SRob Herring			reg = <0xff640000 0x100>;
559724ba675SRob Herring			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
560724ba675SRob Herring			clocks = <&cru PCLK_GPIO3>, <&cru DBCLK_GPIO3>;
561724ba675SRob Herring			gpio-controller;
562724ba675SRob Herring			#gpio-cells = <2>;
563724ba675SRob Herring			interrupt-controller;
564724ba675SRob Herring			#interrupt-cells = <2>;
565724ba675SRob Herring		};
566724ba675SRob Herring
567724ba675SRob Herring		gpio4: gpio@ff650000 {
568724ba675SRob Herring			compatible = "rockchip,gpio-bank";
569724ba675SRob Herring			reg = <0xff650000 0x100>;
570724ba675SRob Herring			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
571724ba675SRob Herring			clocks = <&cru PCLK_GPIO4>, <&cru DBCLK_GPIO4>;
572724ba675SRob Herring			gpio-controller;
573724ba675SRob Herring			#gpio-cells = <2>;
574724ba675SRob Herring			interrupt-controller;
575724ba675SRob Herring			#interrupt-cells = <2>;
576724ba675SRob Herring		};
577724ba675SRob Herring	};
578724ba675SRob Herring};
579724ba675SRob Herring
580724ba675SRob Herring#include "rv1126-pinctrl.dtsi"
581