1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (c) 2013 MundoReader S.L.
4*724ba675SRob Herring * Author: Heiko Stuebner <heiko@sntech.de>
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
8*724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h>
9*724ba675SRob Herring#include <dt-bindings/soc/rockchip,boot-mode.h>
10*724ba675SRob Herring
11*724ba675SRob Herring/ {
12*724ba675SRob Herring	#address-cells = <1>;
13*724ba675SRob Herring	#size-cells = <1>;
14*724ba675SRob Herring
15*724ba675SRob Herring	interrupt-parent = <&gic>;
16*724ba675SRob Herring
17*724ba675SRob Herring	aliases {
18*724ba675SRob Herring		ethernet0 = &emac;
19*724ba675SRob Herring		i2c0 = &i2c0;
20*724ba675SRob Herring		i2c1 = &i2c1;
21*724ba675SRob Herring		i2c2 = &i2c2;
22*724ba675SRob Herring		i2c3 = &i2c3;
23*724ba675SRob Herring		i2c4 = &i2c4;
24*724ba675SRob Herring		serial0 = &uart0;
25*724ba675SRob Herring		serial1 = &uart1;
26*724ba675SRob Herring		serial2 = &uart2;
27*724ba675SRob Herring		serial3 = &uart3;
28*724ba675SRob Herring		spi0 = &spi0;
29*724ba675SRob Herring		spi1 = &spi1;
30*724ba675SRob Herring	};
31*724ba675SRob Herring
32*724ba675SRob Herring	xin24m: oscillator {
33*724ba675SRob Herring		compatible = "fixed-clock";
34*724ba675SRob Herring		clock-frequency = <24000000>;
35*724ba675SRob Herring		#clock-cells = <0>;
36*724ba675SRob Herring		clock-output-names = "xin24m";
37*724ba675SRob Herring	};
38*724ba675SRob Herring
39*724ba675SRob Herring	gpu: gpu@10090000 {
40*724ba675SRob Herring		compatible = "arm,mali-400";
41*724ba675SRob Herring		reg = <0x10090000 0x10000>;
42*724ba675SRob Herring		clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
43*724ba675SRob Herring		clock-names = "bus", "core";
44*724ba675SRob Herring		assigned-clocks = <&cru ACLK_GPU>;
45*724ba675SRob Herring		assigned-clock-rates = <100000000>;
46*724ba675SRob Herring		resets = <&cru SRST_GPU>;
47*724ba675SRob Herring		status = "disabled";
48*724ba675SRob Herring	};
49*724ba675SRob Herring
50*724ba675SRob Herring	vpu: video-codec@10104000 {
51*724ba675SRob Herring		compatible = "rockchip,rk3066-vpu";
52*724ba675SRob Herring		reg = <0x10104000 0x800>;
53*724ba675SRob Herring		interrupts = <GIC_SPI  9 IRQ_TYPE_LEVEL_HIGH>,
54*724ba675SRob Herring			     <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
55*724ba675SRob Herring		interrupt-names = "vepu", "vdpu";
56*724ba675SRob Herring		clocks = <&cru ACLK_VDPU>, <&cru HCLK_VDPU>,
57*724ba675SRob Herring			 <&cru ACLK_VEPU>, <&cru HCLK_VEPU>;
58*724ba675SRob Herring		clock-names = "aclk_vdpu", "hclk_vdpu",
59*724ba675SRob Herring			      "aclk_vepu", "hclk_vepu";
60*724ba675SRob Herring	};
61*724ba675SRob Herring
62*724ba675SRob Herring	L2: cache-controller@10138000 {
63*724ba675SRob Herring		compatible = "arm,pl310-cache";
64*724ba675SRob Herring		reg = <0x10138000 0x1000>;
65*724ba675SRob Herring		cache-unified;
66*724ba675SRob Herring		cache-level = <2>;
67*724ba675SRob Herring	};
68*724ba675SRob Herring
69*724ba675SRob Herring	scu@1013c000 {
70*724ba675SRob Herring		compatible = "arm,cortex-a9-scu";
71*724ba675SRob Herring		reg = <0x1013c000 0x100>;
72*724ba675SRob Herring	};
73*724ba675SRob Herring
74*724ba675SRob Herring	global_timer: global-timer@1013c200 {
75*724ba675SRob Herring		compatible = "arm,cortex-a9-global-timer";
76*724ba675SRob Herring		reg = <0x1013c200 0x20>;
77*724ba675SRob Herring		interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
78*724ba675SRob Herring		clocks = <&cru CORE_PERI>;
79*724ba675SRob Herring		status = "disabled";
80*724ba675SRob Herring		/* The clock source and the sched_clock provided by the arm_global_timer
81*724ba675SRob Herring		 * on Rockchip rk3066a/rk3188 are quite unstable because their rates
82*724ba675SRob Herring		 * depend on the CPU frequency.
83*724ba675SRob Herring		 * Keep the arm_global_timer disabled in order to have the
84*724ba675SRob Herring		 * DW_APB_TIMER (rk3066a) or ROCKCHIP_TIMER (rk3188) selected by default.
85*724ba675SRob Herring		 */
86*724ba675SRob Herring	};
87*724ba675SRob Herring
88*724ba675SRob Herring	local_timer: local-timer@1013c600 {
89*724ba675SRob Herring		compatible = "arm,cortex-a9-twd-timer";
90*724ba675SRob Herring		reg = <0x1013c600 0x20>;
91*724ba675SRob Herring		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
92*724ba675SRob Herring		clocks = <&cru CORE_PERI>;
93*724ba675SRob Herring	};
94*724ba675SRob Herring
95*724ba675SRob Herring	gic: interrupt-controller@1013d000 {
96*724ba675SRob Herring		compatible = "arm,cortex-a9-gic";
97*724ba675SRob Herring		interrupt-controller;
98*724ba675SRob Herring		#interrupt-cells = <3>;
99*724ba675SRob Herring		reg = <0x1013d000 0x1000>,
100*724ba675SRob Herring		      <0x1013c100 0x0100>;
101*724ba675SRob Herring	};
102*724ba675SRob Herring
103*724ba675SRob Herring	uart0: serial@10124000 {
104*724ba675SRob Herring		compatible = "snps,dw-apb-uart";
105*724ba675SRob Herring		reg = <0x10124000 0x400>;
106*724ba675SRob Herring		interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
107*724ba675SRob Herring		reg-shift = <2>;
108*724ba675SRob Herring		reg-io-width = <1>;
109*724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
110*724ba675SRob Herring		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
111*724ba675SRob Herring		status = "disabled";
112*724ba675SRob Herring	};
113*724ba675SRob Herring
114*724ba675SRob Herring	uart1: serial@10126000 {
115*724ba675SRob Herring		compatible = "snps,dw-apb-uart";
116*724ba675SRob Herring		reg = <0x10126000 0x400>;
117*724ba675SRob Herring		interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
118*724ba675SRob Herring		reg-shift = <2>;
119*724ba675SRob Herring		reg-io-width = <1>;
120*724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
121*724ba675SRob Herring		clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
122*724ba675SRob Herring		status = "disabled";
123*724ba675SRob Herring	};
124*724ba675SRob Herring
125*724ba675SRob Herring	qos_gpu: qos@1012d000 {
126*724ba675SRob Herring		compatible = "rockchip,rk3066-qos", "syscon";
127*724ba675SRob Herring		reg = <0x1012d000 0x20>;
128*724ba675SRob Herring	};
129*724ba675SRob Herring
130*724ba675SRob Herring	qos_vpu: qos@1012e000 {
131*724ba675SRob Herring		compatible = "rockchip,rk3066-qos", "syscon";
132*724ba675SRob Herring		reg = <0x1012e000 0x20>;
133*724ba675SRob Herring	};
134*724ba675SRob Herring
135*724ba675SRob Herring	qos_lcdc0: qos@1012f000 {
136*724ba675SRob Herring		compatible = "rockchip,rk3066-qos", "syscon";
137*724ba675SRob Herring		reg = <0x1012f000 0x20>;
138*724ba675SRob Herring	};
139*724ba675SRob Herring
140*724ba675SRob Herring	qos_cif0: qos@1012f080 {
141*724ba675SRob Herring		compatible = "rockchip,rk3066-qos", "syscon";
142*724ba675SRob Herring		reg = <0x1012f080 0x20>;
143*724ba675SRob Herring	};
144*724ba675SRob Herring
145*724ba675SRob Herring	qos_ipp: qos@1012f100 {
146*724ba675SRob Herring		compatible = "rockchip,rk3066-qos", "syscon";
147*724ba675SRob Herring		reg = <0x1012f100 0x20>;
148*724ba675SRob Herring	};
149*724ba675SRob Herring
150*724ba675SRob Herring	qos_lcdc1: qos@1012f180 {
151*724ba675SRob Herring		compatible = "rockchip,rk3066-qos", "syscon";
152*724ba675SRob Herring		reg = <0x1012f180 0x20>;
153*724ba675SRob Herring	};
154*724ba675SRob Herring
155*724ba675SRob Herring	qos_cif1: qos@1012f200 {
156*724ba675SRob Herring		compatible = "rockchip,rk3066-qos", "syscon";
157*724ba675SRob Herring		reg = <0x1012f200 0x20>;
158*724ba675SRob Herring	};
159*724ba675SRob Herring
160*724ba675SRob Herring	qos_rga: qos@1012f280 {
161*724ba675SRob Herring		compatible = "rockchip,rk3066-qos", "syscon";
162*724ba675SRob Herring		reg = <0x1012f280 0x20>;
163*724ba675SRob Herring	};
164*724ba675SRob Herring
165*724ba675SRob Herring	usb_otg: usb@10180000 {
166*724ba675SRob Herring		compatible = "rockchip,rk3066-usb", "snps,dwc2";
167*724ba675SRob Herring		reg = <0x10180000 0x40000>;
168*724ba675SRob Herring		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
169*724ba675SRob Herring		clocks = <&cru HCLK_OTG0>;
170*724ba675SRob Herring		clock-names = "otg";
171*724ba675SRob Herring		dr_mode = "otg";
172*724ba675SRob Herring		g-np-tx-fifo-size = <16>;
173*724ba675SRob Herring		g-rx-fifo-size = <275>;
174*724ba675SRob Herring		g-tx-fifo-size = <256 128 128 64 64 32>;
175*724ba675SRob Herring		phys = <&usbphy0>;
176*724ba675SRob Herring		phy-names = "usb2-phy";
177*724ba675SRob Herring		status = "disabled";
178*724ba675SRob Herring	};
179*724ba675SRob Herring
180*724ba675SRob Herring	usb_host: usb@101c0000 {
181*724ba675SRob Herring		compatible = "snps,dwc2";
182*724ba675SRob Herring		reg = <0x101c0000 0x40000>;
183*724ba675SRob Herring		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
184*724ba675SRob Herring		clocks = <&cru HCLK_OTG1>;
185*724ba675SRob Herring		clock-names = "otg";
186*724ba675SRob Herring		dr_mode = "host";
187*724ba675SRob Herring		phys = <&usbphy1>;
188*724ba675SRob Herring		phy-names = "usb2-phy";
189*724ba675SRob Herring		status = "disabled";
190*724ba675SRob Herring	};
191*724ba675SRob Herring
192*724ba675SRob Herring	emac: ethernet@10204000 {
193*724ba675SRob Herring		compatible = "snps,arc-emac";
194*724ba675SRob Herring		reg = <0x10204000 0x3c>;
195*724ba675SRob Herring		interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
196*724ba675SRob Herring
197*724ba675SRob Herring		rockchip,grf = <&grf>;
198*724ba675SRob Herring
199*724ba675SRob Herring		clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
200*724ba675SRob Herring		clock-names = "hclk", "macref";
201*724ba675SRob Herring		max-speed = <100>;
202*724ba675SRob Herring		phy-mode = "rmii";
203*724ba675SRob Herring
204*724ba675SRob Herring		status = "disabled";
205*724ba675SRob Herring	};
206*724ba675SRob Herring
207*724ba675SRob Herring	mmc0: mmc@10214000 {
208*724ba675SRob Herring		compatible = "rockchip,rk2928-dw-mshc";
209*724ba675SRob Herring		reg = <0x10214000 0x1000>;
210*724ba675SRob Herring		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
211*724ba675SRob Herring		clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
212*724ba675SRob Herring		clock-names = "biu", "ciu";
213*724ba675SRob Herring		dmas = <&dmac2 1>;
214*724ba675SRob Herring		dma-names = "rx-tx";
215*724ba675SRob Herring		fifo-depth = <256>;
216*724ba675SRob Herring		resets = <&cru SRST_SDMMC>;
217*724ba675SRob Herring		reset-names = "reset";
218*724ba675SRob Herring		status = "disabled";
219*724ba675SRob Herring	};
220*724ba675SRob Herring
221*724ba675SRob Herring	mmc1: mmc@10218000 {
222*724ba675SRob Herring		compatible = "rockchip,rk2928-dw-mshc";
223*724ba675SRob Herring		reg = <0x10218000 0x1000>;
224*724ba675SRob Herring		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
225*724ba675SRob Herring		clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
226*724ba675SRob Herring		clock-names = "biu", "ciu";
227*724ba675SRob Herring		dmas = <&dmac2 3>;
228*724ba675SRob Herring		dma-names = "rx-tx";
229*724ba675SRob Herring		fifo-depth = <256>;
230*724ba675SRob Herring		resets = <&cru SRST_SDIO>;
231*724ba675SRob Herring		reset-names = "reset";
232*724ba675SRob Herring		status = "disabled";
233*724ba675SRob Herring	};
234*724ba675SRob Herring
235*724ba675SRob Herring	emmc: mmc@1021c000 {
236*724ba675SRob Herring		compatible = "rockchip,rk2928-dw-mshc";
237*724ba675SRob Herring		reg = <0x1021c000 0x1000>;
238*724ba675SRob Herring		interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
239*724ba675SRob Herring		clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
240*724ba675SRob Herring		clock-names = "biu", "ciu";
241*724ba675SRob Herring		dmas = <&dmac2 4>;
242*724ba675SRob Herring		dma-names = "rx-tx";
243*724ba675SRob Herring		fifo-depth = <256>;
244*724ba675SRob Herring		resets = <&cru SRST_EMMC>;
245*724ba675SRob Herring		reset-names = "reset";
246*724ba675SRob Herring		status = "disabled";
247*724ba675SRob Herring	};
248*724ba675SRob Herring
249*724ba675SRob Herring	nfc: nand-controller@10500000 {
250*724ba675SRob Herring		compatible = "rockchip,rk2928-nfc";
251*724ba675SRob Herring		reg = <0x10500000 0x4000>;
252*724ba675SRob Herring		interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
253*724ba675SRob Herring		clocks = <&cru HCLK_NANDC0>;
254*724ba675SRob Herring		clock-names = "ahb";
255*724ba675SRob Herring		status = "disabled";
256*724ba675SRob Herring	};
257*724ba675SRob Herring
258*724ba675SRob Herring	pmu: pmu@20004000 {
259*724ba675SRob Herring		compatible = "rockchip,rk3066-pmu", "syscon", "simple-mfd";
260*724ba675SRob Herring		reg = <0x20004000 0x100>;
261*724ba675SRob Herring
262*724ba675SRob Herring		reboot-mode {
263*724ba675SRob Herring			compatible = "syscon-reboot-mode";
264*724ba675SRob Herring			offset = <0x40>;
265*724ba675SRob Herring			mode-normal = <BOOT_NORMAL>;
266*724ba675SRob Herring			mode-recovery = <BOOT_RECOVERY>;
267*724ba675SRob Herring			mode-bootloader = <BOOT_FASTBOOT>;
268*724ba675SRob Herring			mode-loader = <BOOT_BL_DOWNLOAD>;
269*724ba675SRob Herring		};
270*724ba675SRob Herring	};
271*724ba675SRob Herring
272*724ba675SRob Herring	grf: grf@20008000 {
273*724ba675SRob Herring		compatible = "syscon", "simple-mfd";
274*724ba675SRob Herring		reg = <0x20008000 0x200>;
275*724ba675SRob Herring	};
276*724ba675SRob Herring
277*724ba675SRob Herring	dmac1_s: dma-controller@20018000 {
278*724ba675SRob Herring		compatible = "arm,pl330", "arm,primecell";
279*724ba675SRob Herring		reg = <0x20018000 0x4000>;
280*724ba675SRob Herring		interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
281*724ba675SRob Herring			     <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
282*724ba675SRob Herring		#dma-cells = <1>;
283*724ba675SRob Herring		arm,pl330-broken-no-flushp;
284*724ba675SRob Herring		arm,pl330-periph-burst;
285*724ba675SRob Herring		clocks = <&cru ACLK_DMA1>;
286*724ba675SRob Herring		clock-names = "apb_pclk";
287*724ba675SRob Herring	};
288*724ba675SRob Herring
289*724ba675SRob Herring	dmac1_ns: dma-controller@2001c000 {
290*724ba675SRob Herring		compatible = "arm,pl330", "arm,primecell";
291*724ba675SRob Herring		reg = <0x2001c000 0x4000>;
292*724ba675SRob Herring		interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
293*724ba675SRob Herring			     <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
294*724ba675SRob Herring		#dma-cells = <1>;
295*724ba675SRob Herring		arm,pl330-broken-no-flushp;
296*724ba675SRob Herring		arm,pl330-periph-burst;
297*724ba675SRob Herring		clocks = <&cru ACLK_DMA1>;
298*724ba675SRob Herring		clock-names = "apb_pclk";
299*724ba675SRob Herring		status = "disabled";
300*724ba675SRob Herring	};
301*724ba675SRob Herring
302*724ba675SRob Herring	i2c0: i2c@2002d000 {
303*724ba675SRob Herring		compatible = "rockchip,rk3066-i2c";
304*724ba675SRob Herring		reg = <0x2002d000 0x1000>;
305*724ba675SRob Herring		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
306*724ba675SRob Herring		#address-cells = <1>;
307*724ba675SRob Herring		#size-cells = <0>;
308*724ba675SRob Herring
309*724ba675SRob Herring		rockchip,grf = <&grf>;
310*724ba675SRob Herring
311*724ba675SRob Herring		clock-names = "i2c";
312*724ba675SRob Herring		clocks = <&cru PCLK_I2C0>;
313*724ba675SRob Herring
314*724ba675SRob Herring		status = "disabled";
315*724ba675SRob Herring	};
316*724ba675SRob Herring
317*724ba675SRob Herring	i2c1: i2c@2002f000 {
318*724ba675SRob Herring		compatible = "rockchip,rk3066-i2c";
319*724ba675SRob Herring		reg = <0x2002f000 0x1000>;
320*724ba675SRob Herring		interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
321*724ba675SRob Herring		#address-cells = <1>;
322*724ba675SRob Herring		#size-cells = <0>;
323*724ba675SRob Herring
324*724ba675SRob Herring		rockchip,grf = <&grf>;
325*724ba675SRob Herring
326*724ba675SRob Herring		clocks = <&cru PCLK_I2C1>;
327*724ba675SRob Herring		clock-names = "i2c";
328*724ba675SRob Herring
329*724ba675SRob Herring		status = "disabled";
330*724ba675SRob Herring	};
331*724ba675SRob Herring
332*724ba675SRob Herring	pwm0: pwm@20030000 {
333*724ba675SRob Herring		compatible = "rockchip,rk2928-pwm";
334*724ba675SRob Herring		reg = <0x20030000 0x10>;
335*724ba675SRob Herring		#pwm-cells = <2>;
336*724ba675SRob Herring		clocks = <&cru PCLK_PWM01>;
337*724ba675SRob Herring		status = "disabled";
338*724ba675SRob Herring	};
339*724ba675SRob Herring
340*724ba675SRob Herring	pwm1: pwm@20030010 {
341*724ba675SRob Herring		compatible = "rockchip,rk2928-pwm";
342*724ba675SRob Herring		reg = <0x20030010 0x10>;
343*724ba675SRob Herring		#pwm-cells = <2>;
344*724ba675SRob Herring		clocks = <&cru PCLK_PWM01>;
345*724ba675SRob Herring		status = "disabled";
346*724ba675SRob Herring	};
347*724ba675SRob Herring
348*724ba675SRob Herring	wdt: watchdog@2004c000 {
349*724ba675SRob Herring		compatible = "snps,dw-wdt";
350*724ba675SRob Herring		reg = <0x2004c000 0x100>;
351*724ba675SRob Herring		clocks = <&cru PCLK_WDT>;
352*724ba675SRob Herring		interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
353*724ba675SRob Herring		status = "disabled";
354*724ba675SRob Herring	};
355*724ba675SRob Herring
356*724ba675SRob Herring	pwm2: pwm@20050020 {
357*724ba675SRob Herring		compatible = "rockchip,rk2928-pwm";
358*724ba675SRob Herring		reg = <0x20050020 0x10>;
359*724ba675SRob Herring		#pwm-cells = <2>;
360*724ba675SRob Herring		clocks = <&cru PCLK_PWM23>;
361*724ba675SRob Herring		status = "disabled";
362*724ba675SRob Herring	};
363*724ba675SRob Herring
364*724ba675SRob Herring	pwm3: pwm@20050030 {
365*724ba675SRob Herring		compatible = "rockchip,rk2928-pwm";
366*724ba675SRob Herring		reg = <0x20050030 0x10>;
367*724ba675SRob Herring		#pwm-cells = <2>;
368*724ba675SRob Herring		clocks = <&cru PCLK_PWM23>;
369*724ba675SRob Herring		status = "disabled";
370*724ba675SRob Herring	};
371*724ba675SRob Herring
372*724ba675SRob Herring	i2c2: i2c@20056000 {
373*724ba675SRob Herring		compatible = "rockchip,rk3066-i2c";
374*724ba675SRob Herring		reg = <0x20056000 0x1000>;
375*724ba675SRob Herring		interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
376*724ba675SRob Herring		#address-cells = <1>;
377*724ba675SRob Herring		#size-cells = <0>;
378*724ba675SRob Herring
379*724ba675SRob Herring		rockchip,grf = <&grf>;
380*724ba675SRob Herring
381*724ba675SRob Herring		clocks = <&cru PCLK_I2C2>;
382*724ba675SRob Herring		clock-names = "i2c";
383*724ba675SRob Herring
384*724ba675SRob Herring		status = "disabled";
385*724ba675SRob Herring	};
386*724ba675SRob Herring
387*724ba675SRob Herring	i2c3: i2c@2005a000 {
388*724ba675SRob Herring		compatible = "rockchip,rk3066-i2c";
389*724ba675SRob Herring		reg = <0x2005a000 0x1000>;
390*724ba675SRob Herring		interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
391*724ba675SRob Herring		#address-cells = <1>;
392*724ba675SRob Herring		#size-cells = <0>;
393*724ba675SRob Herring
394*724ba675SRob Herring		rockchip,grf = <&grf>;
395*724ba675SRob Herring
396*724ba675SRob Herring		clocks = <&cru PCLK_I2C3>;
397*724ba675SRob Herring		clock-names = "i2c";
398*724ba675SRob Herring
399*724ba675SRob Herring		status = "disabled";
400*724ba675SRob Herring	};
401*724ba675SRob Herring
402*724ba675SRob Herring	i2c4: i2c@2005e000 {
403*724ba675SRob Herring		compatible = "rockchip,rk3066-i2c";
404*724ba675SRob Herring		reg = <0x2005e000 0x1000>;
405*724ba675SRob Herring		interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
406*724ba675SRob Herring		#address-cells = <1>;
407*724ba675SRob Herring		#size-cells = <0>;
408*724ba675SRob Herring
409*724ba675SRob Herring		rockchip,grf = <&grf>;
410*724ba675SRob Herring
411*724ba675SRob Herring		clocks = <&cru PCLK_I2C4>;
412*724ba675SRob Herring		clock-names = "i2c";
413*724ba675SRob Herring
414*724ba675SRob Herring		status = "disabled";
415*724ba675SRob Herring	};
416*724ba675SRob Herring
417*724ba675SRob Herring	uart2: serial@20064000 {
418*724ba675SRob Herring		compatible = "snps,dw-apb-uart";
419*724ba675SRob Herring		reg = <0x20064000 0x400>;
420*724ba675SRob Herring		interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
421*724ba675SRob Herring		reg-shift = <2>;
422*724ba675SRob Herring		reg-io-width = <1>;
423*724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
424*724ba675SRob Herring		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
425*724ba675SRob Herring		status = "disabled";
426*724ba675SRob Herring	};
427*724ba675SRob Herring
428*724ba675SRob Herring	uart3: serial@20068000 {
429*724ba675SRob Herring		compatible = "snps,dw-apb-uart";
430*724ba675SRob Herring		reg = <0x20068000 0x400>;
431*724ba675SRob Herring		interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
432*724ba675SRob Herring		reg-shift = <2>;
433*724ba675SRob Herring		reg-io-width = <1>;
434*724ba675SRob Herring		clock-names = "baudclk", "apb_pclk";
435*724ba675SRob Herring		clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
436*724ba675SRob Herring		status = "disabled";
437*724ba675SRob Herring	};
438*724ba675SRob Herring
439*724ba675SRob Herring	saradc: saradc@2006c000 {
440*724ba675SRob Herring		compatible = "rockchip,saradc";
441*724ba675SRob Herring		reg = <0x2006c000 0x100>;
442*724ba675SRob Herring		interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
443*724ba675SRob Herring		#io-channel-cells = <1>;
444*724ba675SRob Herring		clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
445*724ba675SRob Herring		clock-names = "saradc", "apb_pclk";
446*724ba675SRob Herring		resets = <&cru SRST_SARADC>;
447*724ba675SRob Herring		reset-names = "saradc-apb";
448*724ba675SRob Herring		status = "disabled";
449*724ba675SRob Herring	};
450*724ba675SRob Herring
451*724ba675SRob Herring	spi0: spi@20070000 {
452*724ba675SRob Herring		compatible = "rockchip,rk3066-spi";
453*724ba675SRob Herring		clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
454*724ba675SRob Herring		clock-names = "spiclk", "apb_pclk";
455*724ba675SRob Herring		interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
456*724ba675SRob Herring		reg = <0x20070000 0x1000>;
457*724ba675SRob Herring		#address-cells = <1>;
458*724ba675SRob Herring		#size-cells = <0>;
459*724ba675SRob Herring		dmas = <&dmac2 10>, <&dmac2 11>;
460*724ba675SRob Herring		dma-names = "tx", "rx";
461*724ba675SRob Herring		status = "disabled";
462*724ba675SRob Herring	};
463*724ba675SRob Herring
464*724ba675SRob Herring	spi1: spi@20074000 {
465*724ba675SRob Herring		compatible = "rockchip,rk3066-spi";
466*724ba675SRob Herring		clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
467*724ba675SRob Herring		clock-names = "spiclk", "apb_pclk";
468*724ba675SRob Herring		interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
469*724ba675SRob Herring		reg = <0x20074000 0x1000>;
470*724ba675SRob Herring		#address-cells = <1>;
471*724ba675SRob Herring		#size-cells = <0>;
472*724ba675SRob Herring		dmas = <&dmac2 12>, <&dmac2 13>;
473*724ba675SRob Herring		dma-names = "tx", "rx";
474*724ba675SRob Herring		status = "disabled";
475*724ba675SRob Herring	};
476*724ba675SRob Herring
477*724ba675SRob Herring	dmac2: dma-controller@20078000 {
478*724ba675SRob Herring		compatible = "arm,pl330", "arm,primecell";
479*724ba675SRob Herring		reg = <0x20078000 0x4000>;
480*724ba675SRob Herring		interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
481*724ba675SRob Herring			     <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
482*724ba675SRob Herring		#dma-cells = <1>;
483*724ba675SRob Herring		arm,pl330-broken-no-flushp;
484*724ba675SRob Herring		arm,pl330-periph-burst;
485*724ba675SRob Herring		clocks = <&cru ACLK_DMA2>;
486*724ba675SRob Herring		clock-names = "apb_pclk";
487*724ba675SRob Herring	};
488*724ba675SRob Herring};
489