1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de>
4c66ec88fSEmmanuel Vadot */
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel Vadot#include <dt-bindings/clock/rk3368-cru.h>
7c66ec88fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
8c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
9c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
10c66ec88fSEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h>
118cc087a1SEmmanuel Vadot#include <dt-bindings/power/rk3368-power.h>
12c66ec88fSEmmanuel Vadot#include <dt-bindings/soc/rockchip,boot-mode.h>
13c66ec88fSEmmanuel Vadot#include <dt-bindings/thermal/thermal.h>
14c66ec88fSEmmanuel Vadot
15c66ec88fSEmmanuel Vadot/ {
16c66ec88fSEmmanuel Vadot	compatible = "rockchip,rk3368";
17c66ec88fSEmmanuel Vadot	interrupt-parent = <&gic>;
18c66ec88fSEmmanuel Vadot	#address-cells = <2>;
19c66ec88fSEmmanuel Vadot	#size-cells = <2>;
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot	aliases {
22*8d13bc63SEmmanuel Vadot		gpio0 = &gpio0;
23*8d13bc63SEmmanuel Vadot		gpio1 = &gpio1;
24*8d13bc63SEmmanuel Vadot		gpio2 = &gpio2;
25*8d13bc63SEmmanuel Vadot		gpio3 = &gpio3;
26c66ec88fSEmmanuel Vadot		i2c0 = &i2c0;
27c66ec88fSEmmanuel Vadot		i2c1 = &i2c1;
28c66ec88fSEmmanuel Vadot		i2c2 = &i2c2;
29c66ec88fSEmmanuel Vadot		i2c3 = &i2c3;
30c66ec88fSEmmanuel Vadot		i2c4 = &i2c4;
31c66ec88fSEmmanuel Vadot		i2c5 = &i2c5;
32c66ec88fSEmmanuel Vadot		serial0 = &uart0;
33c66ec88fSEmmanuel Vadot		serial1 = &uart1;
34c66ec88fSEmmanuel Vadot		serial2 = &uart2;
35c66ec88fSEmmanuel Vadot		serial3 = &uart3;
36c66ec88fSEmmanuel Vadot		serial4 = &uart4;
37c66ec88fSEmmanuel Vadot		spi0 = &spi0;
38c66ec88fSEmmanuel Vadot		spi1 = &spi1;
39c66ec88fSEmmanuel Vadot		spi2 = &spi2;
40c66ec88fSEmmanuel Vadot	};
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot	cpus {
43c66ec88fSEmmanuel Vadot		#address-cells = <0x2>;
44c66ec88fSEmmanuel Vadot		#size-cells = <0x0>;
45c66ec88fSEmmanuel Vadot
46c66ec88fSEmmanuel Vadot		cpu-map {
47c66ec88fSEmmanuel Vadot			cluster0 {
48c66ec88fSEmmanuel Vadot				core0 {
49c66ec88fSEmmanuel Vadot					cpu = <&cpu_b0>;
50c66ec88fSEmmanuel Vadot				};
51c66ec88fSEmmanuel Vadot				core1 {
52c66ec88fSEmmanuel Vadot					cpu = <&cpu_b1>;
53c66ec88fSEmmanuel Vadot				};
54c66ec88fSEmmanuel Vadot				core2 {
55c66ec88fSEmmanuel Vadot					cpu = <&cpu_b2>;
56c66ec88fSEmmanuel Vadot				};
57c66ec88fSEmmanuel Vadot				core3 {
58c66ec88fSEmmanuel Vadot					cpu = <&cpu_b3>;
59c66ec88fSEmmanuel Vadot				};
60c66ec88fSEmmanuel Vadot			};
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel Vadot			cluster1 {
63c66ec88fSEmmanuel Vadot				core0 {
64c66ec88fSEmmanuel Vadot					cpu = <&cpu_l0>;
65c66ec88fSEmmanuel Vadot				};
66c66ec88fSEmmanuel Vadot				core1 {
67c66ec88fSEmmanuel Vadot					cpu = <&cpu_l1>;
68c66ec88fSEmmanuel Vadot				};
69c66ec88fSEmmanuel Vadot				core2 {
70c66ec88fSEmmanuel Vadot					cpu = <&cpu_l2>;
71c66ec88fSEmmanuel Vadot				};
72c66ec88fSEmmanuel Vadot				core3 {
73c66ec88fSEmmanuel Vadot					cpu = <&cpu_l3>;
74c66ec88fSEmmanuel Vadot				};
75c66ec88fSEmmanuel Vadot			};
76c66ec88fSEmmanuel Vadot		};
77c66ec88fSEmmanuel Vadot
78c66ec88fSEmmanuel Vadot		cpu_l0: cpu@0 {
79c66ec88fSEmmanuel Vadot			device_type = "cpu";
80c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
81c66ec88fSEmmanuel Vadot			reg = <0x0 0x0>;
82c66ec88fSEmmanuel Vadot			enable-method = "psci";
83c66ec88fSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
84c66ec88fSEmmanuel Vadot		};
85c66ec88fSEmmanuel Vadot
86c66ec88fSEmmanuel Vadot		cpu_l1: cpu@1 {
87c66ec88fSEmmanuel Vadot			device_type = "cpu";
88c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
89c66ec88fSEmmanuel Vadot			reg = <0x0 0x1>;
90c66ec88fSEmmanuel Vadot			enable-method = "psci";
91c66ec88fSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
92c66ec88fSEmmanuel Vadot		};
93c66ec88fSEmmanuel Vadot
94c66ec88fSEmmanuel Vadot		cpu_l2: cpu@2 {
95c66ec88fSEmmanuel Vadot			device_type = "cpu";
96c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
97c66ec88fSEmmanuel Vadot			reg = <0x0 0x2>;
98c66ec88fSEmmanuel Vadot			enable-method = "psci";
99c66ec88fSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
100c66ec88fSEmmanuel Vadot		};
101c66ec88fSEmmanuel Vadot
102c66ec88fSEmmanuel Vadot		cpu_l3: cpu@3 {
103c66ec88fSEmmanuel Vadot			device_type = "cpu";
104c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
105c66ec88fSEmmanuel Vadot			reg = <0x0 0x3>;
106c66ec88fSEmmanuel Vadot			enable-method = "psci";
107c66ec88fSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
108c66ec88fSEmmanuel Vadot		};
109c66ec88fSEmmanuel Vadot
110c66ec88fSEmmanuel Vadot		cpu_b0: cpu@100 {
111c66ec88fSEmmanuel Vadot			device_type = "cpu";
112c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
113c66ec88fSEmmanuel Vadot			reg = <0x0 0x100>;
114c66ec88fSEmmanuel Vadot			enable-method = "psci";
115c66ec88fSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
116c66ec88fSEmmanuel Vadot		};
117c66ec88fSEmmanuel Vadot
118c66ec88fSEmmanuel Vadot		cpu_b1: cpu@101 {
119c66ec88fSEmmanuel Vadot			device_type = "cpu";
120c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
121c66ec88fSEmmanuel Vadot			reg = <0x0 0x101>;
122c66ec88fSEmmanuel Vadot			enable-method = "psci";
123c66ec88fSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
124c66ec88fSEmmanuel Vadot		};
125c66ec88fSEmmanuel Vadot
126c66ec88fSEmmanuel Vadot		cpu_b2: cpu@102 {
127c66ec88fSEmmanuel Vadot			device_type = "cpu";
128c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
129c66ec88fSEmmanuel Vadot			reg = <0x0 0x102>;
130c66ec88fSEmmanuel Vadot			enable-method = "psci";
131c66ec88fSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
132c66ec88fSEmmanuel Vadot		};
133c66ec88fSEmmanuel Vadot
134c66ec88fSEmmanuel Vadot		cpu_b3: cpu@103 {
135c66ec88fSEmmanuel Vadot			device_type = "cpu";
136c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a53";
137c66ec88fSEmmanuel Vadot			reg = <0x0 0x103>;
138c66ec88fSEmmanuel Vadot			enable-method = "psci";
139c66ec88fSEmmanuel Vadot			#cooling-cells = <2>; /* min followed by max */
140c66ec88fSEmmanuel Vadot		};
141c66ec88fSEmmanuel Vadot	};
142c66ec88fSEmmanuel Vadot
143c66ec88fSEmmanuel Vadot	arm-pmu {
144c66ec88fSEmmanuel Vadot		compatible = "arm,armv8-pmuv3";
145c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
146c66ec88fSEmmanuel Vadot			     <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
147c66ec88fSEmmanuel Vadot			     <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
148c66ec88fSEmmanuel Vadot			     <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
149c66ec88fSEmmanuel Vadot			     <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
150c66ec88fSEmmanuel Vadot			     <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
151c66ec88fSEmmanuel Vadot			     <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
152c66ec88fSEmmanuel Vadot			     <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
153c66ec88fSEmmanuel Vadot		interrupt-affinity = <&cpu_l0>, <&cpu_l1>, <&cpu_l2>,
154c66ec88fSEmmanuel Vadot				     <&cpu_l3>, <&cpu_b0>, <&cpu_b1>,
155c66ec88fSEmmanuel Vadot				     <&cpu_b2>, <&cpu_b3>;
156c66ec88fSEmmanuel Vadot	};
157c66ec88fSEmmanuel Vadot
158c66ec88fSEmmanuel Vadot	psci {
159c66ec88fSEmmanuel Vadot		compatible = "arm,psci-0.2";
160c66ec88fSEmmanuel Vadot		method = "smc";
161c66ec88fSEmmanuel Vadot	};
162c66ec88fSEmmanuel Vadot
163c66ec88fSEmmanuel Vadot	timer {
164c66ec88fSEmmanuel Vadot		compatible = "arm,armv8-timer";
165c66ec88fSEmmanuel Vadot		interrupts = <GIC_PPI 13
166c66ec88fSEmmanuel Vadot			(GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
167c66ec88fSEmmanuel Vadot			     <GIC_PPI 14
168c66ec88fSEmmanuel Vadot			(GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
169c66ec88fSEmmanuel Vadot			     <GIC_PPI 11
170c66ec88fSEmmanuel Vadot			(GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
171c66ec88fSEmmanuel Vadot			     <GIC_PPI 10
172c66ec88fSEmmanuel Vadot			(GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
173c66ec88fSEmmanuel Vadot	};
174c66ec88fSEmmanuel Vadot
175c66ec88fSEmmanuel Vadot	xin24m: oscillator {
176c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
177c66ec88fSEmmanuel Vadot		clock-frequency = <24000000>;
178c66ec88fSEmmanuel Vadot		clock-output-names = "xin24m";
179c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
180c66ec88fSEmmanuel Vadot	};
181c66ec88fSEmmanuel Vadot
182c66ec88fSEmmanuel Vadot	sdmmc: mmc@ff0c0000 {
183c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
184c66ec88fSEmmanuel Vadot		reg = <0x0 0xff0c0000 0x0 0x4000>;
185c66ec88fSEmmanuel Vadot		max-frequency = <150000000>;
186c66ec88fSEmmanuel Vadot		clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
187c66ec88fSEmmanuel Vadot			 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
188c66ec88fSEmmanuel Vadot		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
189c66ec88fSEmmanuel Vadot		fifo-depth = <0x100>;
190c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
191c66ec88fSEmmanuel Vadot		resets = <&cru SRST_MMC0>;
192c66ec88fSEmmanuel Vadot		reset-names = "reset";
193c66ec88fSEmmanuel Vadot		status = "disabled";
194c66ec88fSEmmanuel Vadot	};
195c66ec88fSEmmanuel Vadot
196c66ec88fSEmmanuel Vadot	sdio0: mmc@ff0d0000 {
197c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
198c66ec88fSEmmanuel Vadot		reg = <0x0 0xff0d0000 0x0 0x4000>;
199c66ec88fSEmmanuel Vadot		max-frequency = <150000000>;
200c66ec88fSEmmanuel Vadot		clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>,
201c66ec88fSEmmanuel Vadot			 <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
202c66ec88fSEmmanuel Vadot		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
203c66ec88fSEmmanuel Vadot		fifo-depth = <0x100>;
204c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
205c66ec88fSEmmanuel Vadot		resets = <&cru SRST_SDIO0>;
206c66ec88fSEmmanuel Vadot		reset-names = "reset";
207c66ec88fSEmmanuel Vadot		status = "disabled";
208c66ec88fSEmmanuel Vadot	};
209c66ec88fSEmmanuel Vadot
210c66ec88fSEmmanuel Vadot	emmc: mmc@ff0f0000 {
211c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
212c66ec88fSEmmanuel Vadot		reg = <0x0 0xff0f0000 0x0 0x4000>;
213c66ec88fSEmmanuel Vadot		max-frequency = <150000000>;
214c66ec88fSEmmanuel Vadot		clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
215c66ec88fSEmmanuel Vadot			 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
216c66ec88fSEmmanuel Vadot		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
217c66ec88fSEmmanuel Vadot		fifo-depth = <0x100>;
218c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
219c66ec88fSEmmanuel Vadot		resets = <&cru SRST_EMMC>;
220c66ec88fSEmmanuel Vadot		reset-names = "reset";
221c66ec88fSEmmanuel Vadot		status = "disabled";
222c66ec88fSEmmanuel Vadot	};
223c66ec88fSEmmanuel Vadot
224c66ec88fSEmmanuel Vadot	saradc: saradc@ff100000 {
225c66ec88fSEmmanuel Vadot		compatible = "rockchip,saradc";
226c66ec88fSEmmanuel Vadot		reg = <0x0 0xff100000 0x0 0x100>;
227c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
228c66ec88fSEmmanuel Vadot		#io-channel-cells = <1>;
229c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
230c66ec88fSEmmanuel Vadot		clock-names = "saradc", "apb_pclk";
231c66ec88fSEmmanuel Vadot		resets = <&cru SRST_SARADC>;
232c66ec88fSEmmanuel Vadot		reset-names = "saradc-apb";
233c66ec88fSEmmanuel Vadot		status = "disabled";
234c66ec88fSEmmanuel Vadot	};
235c66ec88fSEmmanuel Vadot
236c66ec88fSEmmanuel Vadot	spi0: spi@ff110000 {
237c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
238c66ec88fSEmmanuel Vadot		reg = <0x0 0xff110000 0x0 0x1000>;
239c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
240c66ec88fSEmmanuel Vadot		clock-names = "spiclk", "apb_pclk";
241c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
242c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
243c66ec88fSEmmanuel Vadot		pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
244c66ec88fSEmmanuel Vadot		#address-cells = <1>;
245c66ec88fSEmmanuel Vadot		#size-cells = <0>;
246c66ec88fSEmmanuel Vadot		status = "disabled";
247c66ec88fSEmmanuel Vadot	};
248c66ec88fSEmmanuel Vadot
249c66ec88fSEmmanuel Vadot	spi1: spi@ff120000 {
250c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
251c66ec88fSEmmanuel Vadot		reg = <0x0 0xff120000 0x0 0x1000>;
252c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
253c66ec88fSEmmanuel Vadot		clock-names = "spiclk", "apb_pclk";
254c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
255c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
256c66ec88fSEmmanuel Vadot		pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
257c66ec88fSEmmanuel Vadot		#address-cells = <1>;
258c66ec88fSEmmanuel Vadot		#size-cells = <0>;
259c66ec88fSEmmanuel Vadot		status = "disabled";
260c66ec88fSEmmanuel Vadot	};
261c66ec88fSEmmanuel Vadot
262c66ec88fSEmmanuel Vadot	spi2: spi@ff130000 {
263c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
264c66ec88fSEmmanuel Vadot		reg = <0x0 0xff130000 0x0 0x1000>;
265c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
266c66ec88fSEmmanuel Vadot		clock-names = "spiclk", "apb_pclk";
267c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
268c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
269c66ec88fSEmmanuel Vadot		pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
270c66ec88fSEmmanuel Vadot		#address-cells = <1>;
271c66ec88fSEmmanuel Vadot		#size-cells = <0>;
272c66ec88fSEmmanuel Vadot		status = "disabled";
273c66ec88fSEmmanuel Vadot	};
274c66ec88fSEmmanuel Vadot
275c66ec88fSEmmanuel Vadot	i2c2: i2c@ff140000 {
276c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
277c66ec88fSEmmanuel Vadot		reg = <0x0 0xff140000 0x0 0x1000>;
278c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
279c66ec88fSEmmanuel Vadot		#address-cells = <1>;
280c66ec88fSEmmanuel Vadot		#size-cells = <0>;
281c66ec88fSEmmanuel Vadot		clock-names = "i2c";
282c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_I2C2>;
283c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
284c66ec88fSEmmanuel Vadot		pinctrl-0 = <&i2c2_xfer>;
285c66ec88fSEmmanuel Vadot		status = "disabled";
286c66ec88fSEmmanuel Vadot	};
287c66ec88fSEmmanuel Vadot
288c66ec88fSEmmanuel Vadot	i2c3: i2c@ff150000 {
289c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
290c66ec88fSEmmanuel Vadot		reg = <0x0 0xff150000 0x0 0x1000>;
291c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
292c66ec88fSEmmanuel Vadot		#address-cells = <1>;
293c66ec88fSEmmanuel Vadot		#size-cells = <0>;
294c66ec88fSEmmanuel Vadot		clock-names = "i2c";
295c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_I2C3>;
296c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
297c66ec88fSEmmanuel Vadot		pinctrl-0 = <&i2c3_xfer>;
298c66ec88fSEmmanuel Vadot		status = "disabled";
299c66ec88fSEmmanuel Vadot	};
300c66ec88fSEmmanuel Vadot
301c66ec88fSEmmanuel Vadot	i2c4: i2c@ff160000 {
302c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
303c66ec88fSEmmanuel Vadot		reg = <0x0 0xff160000 0x0 0x1000>;
304c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
305c66ec88fSEmmanuel Vadot		#address-cells = <1>;
306c66ec88fSEmmanuel Vadot		#size-cells = <0>;
307c66ec88fSEmmanuel Vadot		clock-names = "i2c";
308c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_I2C4>;
309c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
310c66ec88fSEmmanuel Vadot		pinctrl-0 = <&i2c4_xfer>;
311c66ec88fSEmmanuel Vadot		status = "disabled";
312c66ec88fSEmmanuel Vadot	};
313c66ec88fSEmmanuel Vadot
314c66ec88fSEmmanuel Vadot	i2c5: i2c@ff170000 {
315c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
316c66ec88fSEmmanuel Vadot		reg = <0x0 0xff170000 0x0 0x1000>;
317c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
318c66ec88fSEmmanuel Vadot		#address-cells = <1>;
319c66ec88fSEmmanuel Vadot		#size-cells = <0>;
320c66ec88fSEmmanuel Vadot		clock-names = "i2c";
321c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_I2C5>;
322c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
323c66ec88fSEmmanuel Vadot		pinctrl-0 = <&i2c5_xfer>;
324c66ec88fSEmmanuel Vadot		status = "disabled";
325c66ec88fSEmmanuel Vadot	};
326c66ec88fSEmmanuel Vadot
327c66ec88fSEmmanuel Vadot	uart0: serial@ff180000 {
328c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
329c66ec88fSEmmanuel Vadot		reg = <0x0 0xff180000 0x0 0x100>;
330c66ec88fSEmmanuel Vadot		clock-frequency = <24000000>;
331c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
332c66ec88fSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
333c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
334c66ec88fSEmmanuel Vadot		reg-shift = <2>;
335c66ec88fSEmmanuel Vadot		reg-io-width = <4>;
336c66ec88fSEmmanuel Vadot		status = "disabled";
337c66ec88fSEmmanuel Vadot	};
338c66ec88fSEmmanuel Vadot
339c66ec88fSEmmanuel Vadot	uart1: serial@ff190000 {
340c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
341c66ec88fSEmmanuel Vadot		reg = <0x0 0xff190000 0x0 0x100>;
342c66ec88fSEmmanuel Vadot		clock-frequency = <24000000>;
343c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
344c66ec88fSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
345c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
346c66ec88fSEmmanuel Vadot		reg-shift = <2>;
347c66ec88fSEmmanuel Vadot		reg-io-width = <4>;
348c66ec88fSEmmanuel Vadot		status = "disabled";
349c66ec88fSEmmanuel Vadot	};
350c66ec88fSEmmanuel Vadot
351c66ec88fSEmmanuel Vadot	uart3: serial@ff1b0000 {
352c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
353c66ec88fSEmmanuel Vadot		reg = <0x0 0xff1b0000 0x0 0x100>;
354c66ec88fSEmmanuel Vadot		clock-frequency = <24000000>;
355c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
356c66ec88fSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
357c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
358c66ec88fSEmmanuel Vadot		reg-shift = <2>;
359c66ec88fSEmmanuel Vadot		reg-io-width = <4>;
360c66ec88fSEmmanuel Vadot		status = "disabled";
361c66ec88fSEmmanuel Vadot	};
362c66ec88fSEmmanuel Vadot
363c66ec88fSEmmanuel Vadot	uart4: serial@ff1c0000 {
364c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
365c66ec88fSEmmanuel Vadot		reg = <0x0 0xff1c0000 0x0 0x100>;
366c66ec88fSEmmanuel Vadot		clock-frequency = <24000000>;
367c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
368c66ec88fSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
369c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
370c66ec88fSEmmanuel Vadot		reg-shift = <2>;
371c66ec88fSEmmanuel Vadot		reg-io-width = <4>;
372c66ec88fSEmmanuel Vadot		status = "disabled";
373c66ec88fSEmmanuel Vadot	};
374c66ec88fSEmmanuel Vadot
3755def4c47SEmmanuel Vadot	dmac_peri: dma-controller@ff250000 {
3765def4c47SEmmanuel Vadot		compatible = "arm,pl330", "arm,primecell";
3775def4c47SEmmanuel Vadot		reg = <0x0 0xff250000 0x0 0x4000>;
3785def4c47SEmmanuel Vadot		interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
3795def4c47SEmmanuel Vadot			     <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
3805def4c47SEmmanuel Vadot		#dma-cells = <1>;
3815def4c47SEmmanuel Vadot		arm,pl330-broken-no-flushp;
3825def4c47SEmmanuel Vadot		arm,pl330-periph-burst;
3835def4c47SEmmanuel Vadot		clocks = <&cru ACLK_DMAC_PERI>;
3845def4c47SEmmanuel Vadot		clock-names = "apb_pclk";
3855def4c47SEmmanuel Vadot	};
3865def4c47SEmmanuel Vadot
387c66ec88fSEmmanuel Vadot	thermal-zones {
3885def4c47SEmmanuel Vadot		cpu_thermal: cpu-thermal {
389c66ec88fSEmmanuel Vadot			polling-delay-passive = <100>; /* milliseconds */
390c66ec88fSEmmanuel Vadot			polling-delay = <5000>; /* milliseconds */
391c66ec88fSEmmanuel Vadot
392c66ec88fSEmmanuel Vadot			thermal-sensors = <&tsadc 0>;
393c66ec88fSEmmanuel Vadot
394c66ec88fSEmmanuel Vadot			trips {
395c66ec88fSEmmanuel Vadot				cpu_alert0: cpu_alert0 {
396c66ec88fSEmmanuel Vadot					temperature = <75000>; /* millicelsius */
397c66ec88fSEmmanuel Vadot					hysteresis = <2000>; /* millicelsius */
398c66ec88fSEmmanuel Vadot					type = "passive";
399c66ec88fSEmmanuel Vadot				};
400c66ec88fSEmmanuel Vadot				cpu_alert1: cpu_alert1 {
401c66ec88fSEmmanuel Vadot					temperature = <80000>; /* millicelsius */
402c66ec88fSEmmanuel Vadot					hysteresis = <2000>; /* millicelsius */
403c66ec88fSEmmanuel Vadot					type = "passive";
404c66ec88fSEmmanuel Vadot				};
405c66ec88fSEmmanuel Vadot				cpu_crit: cpu_crit {
406c66ec88fSEmmanuel Vadot					temperature = <95000>; /* millicelsius */
407c66ec88fSEmmanuel Vadot					hysteresis = <2000>; /* millicelsius */
408c66ec88fSEmmanuel Vadot					type = "critical";
409c66ec88fSEmmanuel Vadot				};
410c66ec88fSEmmanuel Vadot			};
411c66ec88fSEmmanuel Vadot
412c66ec88fSEmmanuel Vadot			cooling-maps {
413c66ec88fSEmmanuel Vadot				map0 {
414c66ec88fSEmmanuel Vadot					trip = <&cpu_alert0>;
415c66ec88fSEmmanuel Vadot					cooling-device =
416c66ec88fSEmmanuel Vadot					<&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
417c66ec88fSEmmanuel Vadot					<&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
418c66ec88fSEmmanuel Vadot					<&cpu_b2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
419c66ec88fSEmmanuel Vadot					<&cpu_b3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
420c66ec88fSEmmanuel Vadot				};
421c66ec88fSEmmanuel Vadot				map1 {
422c66ec88fSEmmanuel Vadot					trip = <&cpu_alert1>;
423c66ec88fSEmmanuel Vadot					cooling-device =
424c66ec88fSEmmanuel Vadot					<&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
425c66ec88fSEmmanuel Vadot					<&cpu_l1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
426c66ec88fSEmmanuel Vadot					<&cpu_l2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
427c66ec88fSEmmanuel Vadot					<&cpu_l3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
428c66ec88fSEmmanuel Vadot				};
429c66ec88fSEmmanuel Vadot			};
430c66ec88fSEmmanuel Vadot		};
431c66ec88fSEmmanuel Vadot
4325def4c47SEmmanuel Vadot		gpu_thermal: gpu-thermal {
433c66ec88fSEmmanuel Vadot			polling-delay-passive = <100>; /* milliseconds */
434c66ec88fSEmmanuel Vadot			polling-delay = <5000>; /* milliseconds */
435c66ec88fSEmmanuel Vadot
436c66ec88fSEmmanuel Vadot			thermal-sensors = <&tsadc 1>;
437c66ec88fSEmmanuel Vadot
438c66ec88fSEmmanuel Vadot			trips {
439c66ec88fSEmmanuel Vadot				gpu_alert0: gpu_alert0 {
440c66ec88fSEmmanuel Vadot					temperature = <80000>; /* millicelsius */
441c66ec88fSEmmanuel Vadot					hysteresis = <2000>; /* millicelsius */
442c66ec88fSEmmanuel Vadot					type = "passive";
443c66ec88fSEmmanuel Vadot				};
444c66ec88fSEmmanuel Vadot				gpu_crit: gpu_crit {
445c66ec88fSEmmanuel Vadot					temperature = <115000>; /* millicelsius */
446c66ec88fSEmmanuel Vadot					hysteresis = <2000>; /* millicelsius */
447c66ec88fSEmmanuel Vadot					type = "critical";
448c66ec88fSEmmanuel Vadot				};
449c66ec88fSEmmanuel Vadot			};
450c66ec88fSEmmanuel Vadot
451c66ec88fSEmmanuel Vadot			cooling-maps {
452c66ec88fSEmmanuel Vadot				map0 {
453c66ec88fSEmmanuel Vadot					trip = <&gpu_alert0>;
454c66ec88fSEmmanuel Vadot					cooling-device =
455c66ec88fSEmmanuel Vadot					<&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
456c66ec88fSEmmanuel Vadot					<&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
457c66ec88fSEmmanuel Vadot					<&cpu_b2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
458c66ec88fSEmmanuel Vadot					<&cpu_b3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
459c66ec88fSEmmanuel Vadot				};
460c66ec88fSEmmanuel Vadot			};
461c66ec88fSEmmanuel Vadot		};
462c66ec88fSEmmanuel Vadot	};
463c66ec88fSEmmanuel Vadot
464c66ec88fSEmmanuel Vadot	tsadc: tsadc@ff280000 {
465c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-tsadc";
466c66ec88fSEmmanuel Vadot		reg = <0x0 0xff280000 0x0 0x100>;
467c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
468c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
469c66ec88fSEmmanuel Vadot		clock-names = "tsadc", "apb_pclk";
470c66ec88fSEmmanuel Vadot		resets = <&cru SRST_TSADC>;
471c66ec88fSEmmanuel Vadot		reset-names = "tsadc-apb";
472c66ec88fSEmmanuel Vadot		pinctrl-names = "init", "default", "sleep";
473c66ec88fSEmmanuel Vadot		pinctrl-0 = <&otp_pin>;
474c66ec88fSEmmanuel Vadot		pinctrl-1 = <&otp_out>;
475c66ec88fSEmmanuel Vadot		pinctrl-2 = <&otp_pin>;
476c66ec88fSEmmanuel Vadot		#thermal-sensor-cells = <1>;
477c66ec88fSEmmanuel Vadot		rockchip,hw-tshut-temp = <95000>;
478c66ec88fSEmmanuel Vadot		status = "disabled";
479c66ec88fSEmmanuel Vadot	};
480c66ec88fSEmmanuel Vadot
481c66ec88fSEmmanuel Vadot	gmac: ethernet@ff290000 {
482c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-gmac";
483c66ec88fSEmmanuel Vadot		reg = <0x0 0xff290000 0x0 0x10000>;
484c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
485c66ec88fSEmmanuel Vadot		interrupt-names = "macirq";
486c66ec88fSEmmanuel Vadot		rockchip,grf = <&grf>;
487c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_MAC>,
488c66ec88fSEmmanuel Vadot			<&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
489c66ec88fSEmmanuel Vadot			<&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
490c66ec88fSEmmanuel Vadot			<&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
491c66ec88fSEmmanuel Vadot		clock-names = "stmmaceth",
492c66ec88fSEmmanuel Vadot			"mac_clk_rx", "mac_clk_tx",
493c66ec88fSEmmanuel Vadot			"clk_mac_ref", "clk_mac_refout",
494c66ec88fSEmmanuel Vadot			"aclk_mac", "pclk_mac";
495c66ec88fSEmmanuel Vadot		status = "disabled";
496c66ec88fSEmmanuel Vadot	};
497c66ec88fSEmmanuel Vadot
498c66ec88fSEmmanuel Vadot	usb_host0_ehci: usb@ff500000 {
499c66ec88fSEmmanuel Vadot		compatible = "generic-ehci";
500c66ec88fSEmmanuel Vadot		reg = <0x0 0xff500000 0x0 0x100>;
501c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
502c66ec88fSEmmanuel Vadot		clocks = <&cru HCLK_HOST0>;
503c66ec88fSEmmanuel Vadot		status = "disabled";
504c66ec88fSEmmanuel Vadot	};
505c66ec88fSEmmanuel Vadot
506c66ec88fSEmmanuel Vadot	usb_otg: usb@ff580000 {
507c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
508c66ec88fSEmmanuel Vadot				"snps,dwc2";
509c66ec88fSEmmanuel Vadot		reg = <0x0 0xff580000 0x0 0x40000>;
510c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
511c66ec88fSEmmanuel Vadot		clocks = <&cru HCLK_OTG0>;
512c66ec88fSEmmanuel Vadot		clock-names = "otg";
513c66ec88fSEmmanuel Vadot		dr_mode = "otg";
514c66ec88fSEmmanuel Vadot		g-np-tx-fifo-size = <16>;
515c66ec88fSEmmanuel Vadot		g-rx-fifo-size = <275>;
516c66ec88fSEmmanuel Vadot		g-tx-fifo-size = <256 128 128 64 64 32>;
517c66ec88fSEmmanuel Vadot		status = "disabled";
518c66ec88fSEmmanuel Vadot	};
519c66ec88fSEmmanuel Vadot
5205def4c47SEmmanuel Vadot	dmac_bus: dma-controller@ff600000 {
5215def4c47SEmmanuel Vadot		compatible = "arm,pl330", "arm,primecell";
5225def4c47SEmmanuel Vadot		reg = <0x0 0xff600000 0x0 0x4000>;
5235def4c47SEmmanuel Vadot		interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
5245def4c47SEmmanuel Vadot			     <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
5255def4c47SEmmanuel Vadot		#dma-cells = <1>;
5265def4c47SEmmanuel Vadot		arm,pl330-broken-no-flushp;
5275def4c47SEmmanuel Vadot		arm,pl330-periph-burst;
5285def4c47SEmmanuel Vadot		clocks = <&cru ACLK_DMAC_BUS>;
5295def4c47SEmmanuel Vadot		clock-names = "apb_pclk";
5305def4c47SEmmanuel Vadot	};
5315def4c47SEmmanuel Vadot
532c66ec88fSEmmanuel Vadot	i2c0: i2c@ff650000 {
533c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
534c66ec88fSEmmanuel Vadot		reg = <0x0 0xff650000 0x0 0x1000>;
535c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_I2C0>;
536c66ec88fSEmmanuel Vadot		clock-names = "i2c";
537c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
538c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
539c66ec88fSEmmanuel Vadot		pinctrl-0 = <&i2c0_xfer>;
540c66ec88fSEmmanuel Vadot		#address-cells = <1>;
541c66ec88fSEmmanuel Vadot		#size-cells = <0>;
542c66ec88fSEmmanuel Vadot		status = "disabled";
543c66ec88fSEmmanuel Vadot	};
544c66ec88fSEmmanuel Vadot
545c66ec88fSEmmanuel Vadot	i2c1: i2c@ff660000 {
546c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
547c66ec88fSEmmanuel Vadot		reg = <0x0 0xff660000 0x0 0x1000>;
548c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
549c66ec88fSEmmanuel Vadot		#address-cells = <1>;
550c66ec88fSEmmanuel Vadot		#size-cells = <0>;
551c66ec88fSEmmanuel Vadot		clock-names = "i2c";
552c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_I2C1>;
553c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
554c66ec88fSEmmanuel Vadot		pinctrl-0 = <&i2c1_xfer>;
555c66ec88fSEmmanuel Vadot		status = "disabled";
556c66ec88fSEmmanuel Vadot	};
557c66ec88fSEmmanuel Vadot
558c66ec88fSEmmanuel Vadot	pwm0: pwm@ff680000 {
559c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
560c66ec88fSEmmanuel Vadot		reg = <0x0 0xff680000 0x0 0x10>;
561c66ec88fSEmmanuel Vadot		#pwm-cells = <3>;
562c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
563c66ec88fSEmmanuel Vadot		pinctrl-0 = <&pwm0_pin>;
564c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_PWM1>;
565c66ec88fSEmmanuel Vadot		status = "disabled";
566c66ec88fSEmmanuel Vadot	};
567c66ec88fSEmmanuel Vadot
568c66ec88fSEmmanuel Vadot	pwm1: pwm@ff680010 {
569c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
570c66ec88fSEmmanuel Vadot		reg = <0x0 0xff680010 0x0 0x10>;
571c66ec88fSEmmanuel Vadot		#pwm-cells = <3>;
572c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
573c66ec88fSEmmanuel Vadot		pinctrl-0 = <&pwm1_pin>;
574c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_PWM1>;
575c66ec88fSEmmanuel Vadot		status = "disabled";
576c66ec88fSEmmanuel Vadot	};
577c66ec88fSEmmanuel Vadot
578c66ec88fSEmmanuel Vadot	pwm2: pwm@ff680020 {
579c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
580c66ec88fSEmmanuel Vadot		reg = <0x0 0xff680020 0x0 0x10>;
581c66ec88fSEmmanuel Vadot		#pwm-cells = <3>;
582c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_PWM1>;
583c66ec88fSEmmanuel Vadot		status = "disabled";
584c66ec88fSEmmanuel Vadot	};
585c66ec88fSEmmanuel Vadot
586c66ec88fSEmmanuel Vadot	pwm3: pwm@ff680030 {
587c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
588c66ec88fSEmmanuel Vadot		reg = <0x0 0xff680030 0x0 0x10>;
589c66ec88fSEmmanuel Vadot		#pwm-cells = <3>;
590c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
591c66ec88fSEmmanuel Vadot		pinctrl-0 = <&pwm3_pin>;
592c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_PWM1>;
593c66ec88fSEmmanuel Vadot		status = "disabled";
594c66ec88fSEmmanuel Vadot	};
595c66ec88fSEmmanuel Vadot
596c66ec88fSEmmanuel Vadot	uart2: serial@ff690000 {
597c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
598c66ec88fSEmmanuel Vadot		reg = <0x0 0xff690000 0x0 0x100>;
599c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
600c66ec88fSEmmanuel Vadot		clock-names = "baudclk", "apb_pclk";
601c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
602c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
603c66ec88fSEmmanuel Vadot		pinctrl-0 = <&uart2_xfer>;
604c66ec88fSEmmanuel Vadot		reg-shift = <2>;
605c66ec88fSEmmanuel Vadot		reg-io-width = <4>;
606c66ec88fSEmmanuel Vadot		status = "disabled";
607c66ec88fSEmmanuel Vadot	};
608c66ec88fSEmmanuel Vadot
609c66ec88fSEmmanuel Vadot	mbox: mbox@ff6b0000 {
610c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-mailbox";
611c66ec88fSEmmanuel Vadot		reg = <0x0 0xff6b0000 0x0 0x1000>;
612c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
613c66ec88fSEmmanuel Vadot			     <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
614c66ec88fSEmmanuel Vadot			     <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
615c66ec88fSEmmanuel Vadot			     <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
616c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_MAILBOX>;
617c66ec88fSEmmanuel Vadot		clock-names = "pclk_mailbox";
618c66ec88fSEmmanuel Vadot		#mbox-cells = <1>;
619c66ec88fSEmmanuel Vadot		status = "disabled";
620c66ec88fSEmmanuel Vadot	};
621c66ec88fSEmmanuel Vadot
6228cc087a1SEmmanuel Vadot	pmu: power-management@ff730000 {
6238cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-pmu", "syscon", "simple-mfd";
6248cc087a1SEmmanuel Vadot		reg = <0x0 0xff730000 0x0 0x1000>;
6258cc087a1SEmmanuel Vadot
6268cc087a1SEmmanuel Vadot		power: power-controller {
6278cc087a1SEmmanuel Vadot			compatible = "rockchip,rk3368-power-controller";
6288cc087a1SEmmanuel Vadot			#power-domain-cells = <1>;
6298cc087a1SEmmanuel Vadot			#address-cells = <1>;
6308cc087a1SEmmanuel Vadot			#size-cells = <0>;
6318cc087a1SEmmanuel Vadot
6328cc087a1SEmmanuel Vadot			/*
6338cc087a1SEmmanuel Vadot			 * Note: Although SCLK_* are the working clocks
6348cc087a1SEmmanuel Vadot			 * of device without including on the NOC, needed for
6358cc087a1SEmmanuel Vadot			 * synchronous reset.
6368cc087a1SEmmanuel Vadot			 *
6378cc087a1SEmmanuel Vadot			 * The clocks on the which NOC:
6388cc087a1SEmmanuel Vadot			 * ACLK_IEP/ACLK_VIP/ACLK_VOP0 are on ACLK_VIO0_NIU.
6398cc087a1SEmmanuel Vadot			 * ACLK_ISP/ACLK_VOP1 are on ACLK_VIO1_NIU.
6408cc087a1SEmmanuel Vadot			 * ACLK_RGA is on ACLK_RGA_NIU.
6418cc087a1SEmmanuel Vadot			 * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
6428cc087a1SEmmanuel Vadot			 *
6438cc087a1SEmmanuel Vadot			 * Which clock are device clocks:
6448cc087a1SEmmanuel Vadot			 *	clocks		devices
6458cc087a1SEmmanuel Vadot			 *	*_IEP		IEP:Image Enhancement Processor
6468cc087a1SEmmanuel Vadot			 *	*_ISP		ISP:Image Signal Processing
6478cc087a1SEmmanuel Vadot			 *	*_VIP		VIP:Video Input Processor
6488cc087a1SEmmanuel Vadot			 *	*_VOP*		VOP:Visual Output Processor
6498cc087a1SEmmanuel Vadot			 *	*_RGA		RGA
6508cc087a1SEmmanuel Vadot			 *	*_EDP*		EDP
6518cc087a1SEmmanuel Vadot			 *	*_DPHY*		LVDS
6528cc087a1SEmmanuel Vadot			 *	*_HDMI		HDMI
6538cc087a1SEmmanuel Vadot			 *	*_MIPI_*	MIPI
6548cc087a1SEmmanuel Vadot			 */
6558cc087a1SEmmanuel Vadot			power-domain@RK3368_PD_VIO {
6568cc087a1SEmmanuel Vadot				reg = <RK3368_PD_VIO>;
6578cc087a1SEmmanuel Vadot				clocks = <&cru ACLK_IEP>,
6588cc087a1SEmmanuel Vadot					 <&cru ACLK_ISP>,
6598cc087a1SEmmanuel Vadot					 <&cru ACLK_VIP>,
6608cc087a1SEmmanuel Vadot					 <&cru ACLK_RGA>,
6618cc087a1SEmmanuel Vadot					 <&cru ACLK_VOP>,
6628cc087a1SEmmanuel Vadot					 <&cru ACLK_VOP_IEP>,
6638cc087a1SEmmanuel Vadot					 <&cru DCLK_VOP>,
6648cc087a1SEmmanuel Vadot					 <&cru HCLK_IEP>,
6658cc087a1SEmmanuel Vadot					 <&cru HCLK_ISP>,
6668cc087a1SEmmanuel Vadot					 <&cru HCLK_RGA>,
6678cc087a1SEmmanuel Vadot					 <&cru HCLK_VIP>,
6688cc087a1SEmmanuel Vadot					 <&cru HCLK_VOP>,
6698cc087a1SEmmanuel Vadot					 <&cru HCLK_VIO_HDCPMMU>,
6708cc087a1SEmmanuel Vadot					 <&cru PCLK_EDP_CTRL>,
6718cc087a1SEmmanuel Vadot					 <&cru PCLK_HDMI_CTRL>,
6728cc087a1SEmmanuel Vadot					 <&cru PCLK_HDCP>,
6738cc087a1SEmmanuel Vadot					 <&cru PCLK_ISP>,
6748cc087a1SEmmanuel Vadot					 <&cru PCLK_VIP>,
6758cc087a1SEmmanuel Vadot					 <&cru PCLK_DPHYRX>,
6768cc087a1SEmmanuel Vadot					 <&cru PCLK_DPHYTX0>,
6778cc087a1SEmmanuel Vadot					 <&cru PCLK_MIPI_CSI>,
6788cc087a1SEmmanuel Vadot					 <&cru PCLK_MIPI_DSI0>,
6798cc087a1SEmmanuel Vadot					 <&cru SCLK_VOP0_PWM>,
6808cc087a1SEmmanuel Vadot					 <&cru SCLK_EDP_24M>,
6818cc087a1SEmmanuel Vadot					 <&cru SCLK_EDP>,
6828cc087a1SEmmanuel Vadot					 <&cru SCLK_HDCP>,
6838cc087a1SEmmanuel Vadot					 <&cru SCLK_ISP>,
6848cc087a1SEmmanuel Vadot					 <&cru SCLK_RGA>,
6858cc087a1SEmmanuel Vadot					 <&cru SCLK_HDMI_CEC>,
6868cc087a1SEmmanuel Vadot					 <&cru SCLK_HDMI_HDCP>;
6878cc087a1SEmmanuel Vadot				pm_qos = <&qos_iep>,
6888cc087a1SEmmanuel Vadot					 <&qos_isp_r0>,
6898cc087a1SEmmanuel Vadot					 <&qos_isp_r1>,
6908cc087a1SEmmanuel Vadot					 <&qos_isp_w0>,
6918cc087a1SEmmanuel Vadot					 <&qos_isp_w1>,
6928cc087a1SEmmanuel Vadot					 <&qos_vip>,
6938cc087a1SEmmanuel Vadot					 <&qos_vop>,
6948cc087a1SEmmanuel Vadot					 <&qos_rga_r>,
6958cc087a1SEmmanuel Vadot					 <&qos_rga_w>;
6968cc087a1SEmmanuel Vadot				#power-domain-cells = <0>;
6978cc087a1SEmmanuel Vadot			};
6988cc087a1SEmmanuel Vadot
6998cc087a1SEmmanuel Vadot			/*
7008cc087a1SEmmanuel Vadot			 * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
7018cc087a1SEmmanuel Vadot			 * (video endecoder & decoder) clocks that on the
7028cc087a1SEmmanuel Vadot			 * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
7038cc087a1SEmmanuel Vadot			 */
7048cc087a1SEmmanuel Vadot			power-domain@RK3368_PD_VIDEO {
7058cc087a1SEmmanuel Vadot				reg = <RK3368_PD_VIDEO>;
7068cc087a1SEmmanuel Vadot				clocks = <&cru ACLK_VIDEO>,
7078cc087a1SEmmanuel Vadot					 <&cru HCLK_VIDEO>,
7088cc087a1SEmmanuel Vadot					 <&cru SCLK_HEVC_CABAC>,
7098cc087a1SEmmanuel Vadot					 <&cru SCLK_HEVC_CORE>;
7108cc087a1SEmmanuel Vadot				pm_qos = <&qos_hevc_r>,
7118cc087a1SEmmanuel Vadot					 <&qos_vpu_r>,
7128cc087a1SEmmanuel Vadot					 <&qos_vpu_w>;
7138cc087a1SEmmanuel Vadot				#power-domain-cells = <0>;
7148cc087a1SEmmanuel Vadot			};
7158cc087a1SEmmanuel Vadot
7168cc087a1SEmmanuel Vadot			/*
7178cc087a1SEmmanuel Vadot			 * Note: ACLK_GPU is the GPU clock,
7188cc087a1SEmmanuel Vadot			 * and on the ACLK_GPU_NIU (NOC).
7198cc087a1SEmmanuel Vadot			 */
7208cc087a1SEmmanuel Vadot			power-domain@RK3368_PD_GPU_1 {
7218cc087a1SEmmanuel Vadot				reg = <RK3368_PD_GPU_1>;
7228cc087a1SEmmanuel Vadot				clocks = <&cru ACLK_GPU_CFG>,
7238cc087a1SEmmanuel Vadot					 <&cru ACLK_GPU_MEM>,
7248cc087a1SEmmanuel Vadot					 <&cru SCLK_GPU_CORE>;
7258cc087a1SEmmanuel Vadot				pm_qos = <&qos_gpu>;
7268cc087a1SEmmanuel Vadot				#power-domain-cells = <0>;
7278cc087a1SEmmanuel Vadot			};
7288cc087a1SEmmanuel Vadot		};
7298cc087a1SEmmanuel Vadot	};
7308cc087a1SEmmanuel Vadot
731c66ec88fSEmmanuel Vadot	pmugrf: syscon@ff738000 {
732c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-pmugrf", "syscon", "simple-mfd";
733c66ec88fSEmmanuel Vadot		reg = <0x0 0xff738000 0x0 0x1000>;
734c66ec88fSEmmanuel Vadot
735c66ec88fSEmmanuel Vadot		pmu_io_domains: io-domains {
736c66ec88fSEmmanuel Vadot			compatible = "rockchip,rk3368-pmu-io-voltage-domain";
737c66ec88fSEmmanuel Vadot			status = "disabled";
738c66ec88fSEmmanuel Vadot		};
739c66ec88fSEmmanuel Vadot
740c66ec88fSEmmanuel Vadot		reboot-mode {
741c66ec88fSEmmanuel Vadot			compatible = "syscon-reboot-mode";
742c66ec88fSEmmanuel Vadot			offset = <0x200>;
743c66ec88fSEmmanuel Vadot			mode-normal = <BOOT_NORMAL>;
744c66ec88fSEmmanuel Vadot			mode-recovery = <BOOT_RECOVERY>;
745c66ec88fSEmmanuel Vadot			mode-bootloader = <BOOT_FASTBOOT>;
746c66ec88fSEmmanuel Vadot			mode-loader = <BOOT_BL_DOWNLOAD>;
747c66ec88fSEmmanuel Vadot		};
748c66ec88fSEmmanuel Vadot	};
749c66ec88fSEmmanuel Vadot
750c66ec88fSEmmanuel Vadot	cru: clock-controller@ff760000 {
751c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-cru";
752c66ec88fSEmmanuel Vadot		reg = <0x0 0xff760000 0x0 0x1000>;
753d5b0e70fSEmmanuel Vadot		clocks = <&xin24m>;
754d5b0e70fSEmmanuel Vadot		clock-names = "xin24m";
755c66ec88fSEmmanuel Vadot		rockchip,grf = <&grf>;
756c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
757c66ec88fSEmmanuel Vadot		#reset-cells = <1>;
758c66ec88fSEmmanuel Vadot	};
759c66ec88fSEmmanuel Vadot
760c66ec88fSEmmanuel Vadot	grf: syscon@ff770000 {
761c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-grf", "syscon", "simple-mfd";
762c66ec88fSEmmanuel Vadot		reg = <0x0 0xff770000 0x0 0x1000>;
763c66ec88fSEmmanuel Vadot
764c66ec88fSEmmanuel Vadot		io_domains: io-domains {
765c66ec88fSEmmanuel Vadot			compatible = "rockchip,rk3368-io-voltage-domain";
766c66ec88fSEmmanuel Vadot			status = "disabled";
767c66ec88fSEmmanuel Vadot		};
768c66ec88fSEmmanuel Vadot	};
769c66ec88fSEmmanuel Vadot
770c66ec88fSEmmanuel Vadot	wdt: watchdog@ff800000 {
771c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-wdt", "snps,dw-wdt";
772c66ec88fSEmmanuel Vadot		reg = <0x0 0xff800000 0x0 0x100>;
773c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_WDT>;
774c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
775c66ec88fSEmmanuel Vadot		status = "disabled";
776c66ec88fSEmmanuel Vadot	};
777c66ec88fSEmmanuel Vadot
7782eb4d8dcSEmmanuel Vadot	timer0: timer@ff810000 {
779c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
780c66ec88fSEmmanuel Vadot		reg = <0x0 0xff810000 0x0 0x20>;
781c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
7825956d97fSEmmanuel Vadot		clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>;
7835956d97fSEmmanuel Vadot		clock-names = "pclk", "timer";
784c66ec88fSEmmanuel Vadot	};
785c66ec88fSEmmanuel Vadot
786c66ec88fSEmmanuel Vadot	spdif: spdif@ff880000 {
787c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-spdif";
788c66ec88fSEmmanuel Vadot		reg = <0x0 0xff880000 0x0 0x1000>;
789c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
790c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
791c66ec88fSEmmanuel Vadot		clock-names = "mclk", "hclk";
792c66ec88fSEmmanuel Vadot		dmas = <&dmac_bus 3>;
793c66ec88fSEmmanuel Vadot		dma-names = "tx";
794c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
795c66ec88fSEmmanuel Vadot		pinctrl-0 = <&spdif_tx>;
796c66ec88fSEmmanuel Vadot		status = "disabled";
797c66ec88fSEmmanuel Vadot	};
798c66ec88fSEmmanuel Vadot
799c66ec88fSEmmanuel Vadot	i2s_2ch: i2s-2ch@ff890000 {
800c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
801c66ec88fSEmmanuel Vadot		reg = <0x0 0xff890000 0x0 0x1000>;
802c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
803c66ec88fSEmmanuel Vadot		clock-names = "i2s_clk", "i2s_hclk";
804c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
805c66ec88fSEmmanuel Vadot		dmas = <&dmac_bus 6>, <&dmac_bus 7>;
806c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
807c66ec88fSEmmanuel Vadot		status = "disabled";
808c66ec88fSEmmanuel Vadot	};
809c66ec88fSEmmanuel Vadot
810c66ec88fSEmmanuel Vadot	i2s_8ch: i2s-8ch@ff898000 {
811c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
812c66ec88fSEmmanuel Vadot		reg = <0x0 0xff898000 0x0 0x1000>;
813c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
814c66ec88fSEmmanuel Vadot		clock-names = "i2s_clk", "i2s_hclk";
815c66ec88fSEmmanuel Vadot		clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
816c66ec88fSEmmanuel Vadot		dmas = <&dmac_bus 0>, <&dmac_bus 1>;
817c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
818c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
819c66ec88fSEmmanuel Vadot		pinctrl-0 = <&i2s_8ch_bus>;
820c66ec88fSEmmanuel Vadot		status = "disabled";
821c66ec88fSEmmanuel Vadot	};
822c66ec88fSEmmanuel Vadot
823c66ec88fSEmmanuel Vadot	iep_mmu: iommu@ff900800 {
824c66ec88fSEmmanuel Vadot		compatible = "rockchip,iommu";
825c66ec88fSEmmanuel Vadot		reg = <0x0 0xff900800 0x0 0x100>;
826c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
827c66ec88fSEmmanuel Vadot		clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
828c66ec88fSEmmanuel Vadot		clock-names = "aclk", "iface";
8298cc087a1SEmmanuel Vadot		power-domains = <&power RK3368_PD_VIO>;
830c66ec88fSEmmanuel Vadot		#iommu-cells = <0>;
831c66ec88fSEmmanuel Vadot		status = "disabled";
832c66ec88fSEmmanuel Vadot	};
833c66ec88fSEmmanuel Vadot
834c66ec88fSEmmanuel Vadot	isp_mmu: iommu@ff914000 {
835c66ec88fSEmmanuel Vadot		compatible = "rockchip,iommu";
836c66ec88fSEmmanuel Vadot		reg = <0x0 0xff914000 0x0 0x100>,
837c66ec88fSEmmanuel Vadot		      <0x0 0xff915000 0x0 0x100>;
838c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
839c66ec88fSEmmanuel Vadot		clocks = <&cru ACLK_ISP>, <&cru HCLK_ISP>;
840c66ec88fSEmmanuel Vadot		clock-names = "aclk", "iface";
841c66ec88fSEmmanuel Vadot		#iommu-cells = <0>;
8428cc087a1SEmmanuel Vadot		power-domains = <&power RK3368_PD_VIO>;
843c66ec88fSEmmanuel Vadot		rockchip,disable-mmu-reset;
844c66ec88fSEmmanuel Vadot		status = "disabled";
845c66ec88fSEmmanuel Vadot	};
846c66ec88fSEmmanuel Vadot
847c66ec88fSEmmanuel Vadot	vop_mmu: iommu@ff930300 {
848c66ec88fSEmmanuel Vadot		compatible = "rockchip,iommu";
849c66ec88fSEmmanuel Vadot		reg = <0x0 0xff930300 0x0 0x100>;
850c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
851c66ec88fSEmmanuel Vadot		clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
852c66ec88fSEmmanuel Vadot		clock-names = "aclk", "iface";
8538cc087a1SEmmanuel Vadot		power-domains = <&power RK3368_PD_VIO>;
854c66ec88fSEmmanuel Vadot		#iommu-cells = <0>;
855c66ec88fSEmmanuel Vadot		status = "disabled";
856c66ec88fSEmmanuel Vadot	};
857c66ec88fSEmmanuel Vadot
858c66ec88fSEmmanuel Vadot	hevc_mmu: iommu@ff9a0440 {
859c66ec88fSEmmanuel Vadot		compatible = "rockchip,iommu";
860c66ec88fSEmmanuel Vadot		reg = <0x0 0xff9a0440 0x0 0x40>,
861c66ec88fSEmmanuel Vadot		      <0x0 0xff9a0480 0x0 0x40>;
862c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
863c66ec88fSEmmanuel Vadot		clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
864c66ec88fSEmmanuel Vadot		clock-names = "aclk", "iface";
865c66ec88fSEmmanuel Vadot		#iommu-cells = <0>;
866c66ec88fSEmmanuel Vadot		status = "disabled";
867c66ec88fSEmmanuel Vadot	};
868c66ec88fSEmmanuel Vadot
869c66ec88fSEmmanuel Vadot	vpu_mmu: iommu@ff9a0800 {
870c66ec88fSEmmanuel Vadot		compatible = "rockchip,iommu";
871c66ec88fSEmmanuel Vadot		reg = <0x0 0xff9a0800 0x0 0x100>;
872c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
873c66ec88fSEmmanuel Vadot			     <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
874c66ec88fSEmmanuel Vadot		clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
875c66ec88fSEmmanuel Vadot		clock-names = "aclk", "iface";
876c66ec88fSEmmanuel Vadot		#iommu-cells = <0>;
877c66ec88fSEmmanuel Vadot		status = "disabled";
878c66ec88fSEmmanuel Vadot	};
879c66ec88fSEmmanuel Vadot
8808cc087a1SEmmanuel Vadot	qos_iep: qos@ffad0000 {
8818cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
8828cc087a1SEmmanuel Vadot		reg = <0x0 0xffad0000 0x0 0x20>;
8838cc087a1SEmmanuel Vadot	};
8848cc087a1SEmmanuel Vadot
8858cc087a1SEmmanuel Vadot	qos_isp_r0: qos@ffad0080 {
8868cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
8878cc087a1SEmmanuel Vadot		reg = <0x0 0xffad0080 0x0 0x20>;
8888cc087a1SEmmanuel Vadot	};
8898cc087a1SEmmanuel Vadot
8908cc087a1SEmmanuel Vadot	qos_isp_r1: qos@ffad0100 {
8918cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
8928cc087a1SEmmanuel Vadot		reg = <0x0 0xffad0100 0x0 0x20>;
8938cc087a1SEmmanuel Vadot	};
8948cc087a1SEmmanuel Vadot
8958cc087a1SEmmanuel Vadot	qos_isp_w0: qos@ffad0180 {
8968cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
8978cc087a1SEmmanuel Vadot		reg = <0x0 0xffad0180 0x0 0x20>;
8988cc087a1SEmmanuel Vadot	};
8998cc087a1SEmmanuel Vadot
9008cc087a1SEmmanuel Vadot	qos_isp_w1: qos@ffad0200 {
9018cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
9028cc087a1SEmmanuel Vadot		reg = <0x0 0xffad0200 0x0 0x20>;
9038cc087a1SEmmanuel Vadot	};
9048cc087a1SEmmanuel Vadot
9058cc087a1SEmmanuel Vadot	qos_vip: qos@ffad0280 {
9068cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
9078cc087a1SEmmanuel Vadot		reg = <0x0 0xffad0280 0x0 0x20>;
9088cc087a1SEmmanuel Vadot	};
9098cc087a1SEmmanuel Vadot
9108cc087a1SEmmanuel Vadot	qos_vop: qos@ffad0300 {
9118cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
9128cc087a1SEmmanuel Vadot		reg = <0x0 0xffad0300 0x0 0x20>;
9138cc087a1SEmmanuel Vadot	};
9148cc087a1SEmmanuel Vadot
9158cc087a1SEmmanuel Vadot	qos_rga_r: qos@ffad0380 {
9168cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
9178cc087a1SEmmanuel Vadot		reg = <0x0 0xffad0380 0x0 0x20>;
9188cc087a1SEmmanuel Vadot	};
9198cc087a1SEmmanuel Vadot
9208cc087a1SEmmanuel Vadot	qos_rga_w: qos@ffad0400 {
9218cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
9228cc087a1SEmmanuel Vadot		reg = <0x0 0xffad0400 0x0 0x20>;
9238cc087a1SEmmanuel Vadot	};
9248cc087a1SEmmanuel Vadot
9258cc087a1SEmmanuel Vadot	qos_hevc_r: qos@ffae0000 {
9268cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
9278cc087a1SEmmanuel Vadot		reg = <0x0 0xffae0000 0x0 0x20>;
9288cc087a1SEmmanuel Vadot	};
9298cc087a1SEmmanuel Vadot
9308cc087a1SEmmanuel Vadot	qos_vpu_r: qos@ffae0100 {
9318cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
9328cc087a1SEmmanuel Vadot		reg = <0x0 0xffae0100 0x0 0x20>;
9338cc087a1SEmmanuel Vadot	};
9348cc087a1SEmmanuel Vadot
9358cc087a1SEmmanuel Vadot	qos_vpu_w: qos@ffae0180 {
9368cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
9378cc087a1SEmmanuel Vadot		reg = <0x0 0xffae0180 0x0 0x20>;
9388cc087a1SEmmanuel Vadot	};
9398cc087a1SEmmanuel Vadot
9408cc087a1SEmmanuel Vadot	qos_gpu: qos@ffaf0000 {
9418cc087a1SEmmanuel Vadot		compatible = "rockchip,rk3368-qos", "syscon";
9428cc087a1SEmmanuel Vadot		reg = <0x0 0xffaf0000 0x0 0x20>;
9438cc087a1SEmmanuel Vadot	};
9448cc087a1SEmmanuel Vadot
945c66ec88fSEmmanuel Vadot	efuse256: efuse@ffb00000 {
946c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-efuse";
947c66ec88fSEmmanuel Vadot		reg = <0x0 0xffb00000 0x0 0x20>;
948c66ec88fSEmmanuel Vadot		#address-cells = <1>;
949c66ec88fSEmmanuel Vadot		#size-cells = <1>;
950c66ec88fSEmmanuel Vadot		clocks = <&cru PCLK_EFUSE256>;
951c66ec88fSEmmanuel Vadot		clock-names = "pclk_efuse";
952c66ec88fSEmmanuel Vadot
953c66ec88fSEmmanuel Vadot		cpu_leakage: cpu-leakage@17 {
954c66ec88fSEmmanuel Vadot			reg = <0x17 0x1>;
955c66ec88fSEmmanuel Vadot		};
956c66ec88fSEmmanuel Vadot		temp_adjust: temp-adjust@1f {
957c66ec88fSEmmanuel Vadot			reg = <0x1f 0x1>;
958c66ec88fSEmmanuel Vadot		};
959c66ec88fSEmmanuel Vadot	};
960c66ec88fSEmmanuel Vadot
961c66ec88fSEmmanuel Vadot	gic: interrupt-controller@ffb71000 {
962c66ec88fSEmmanuel Vadot		compatible = "arm,gic-400";
963c66ec88fSEmmanuel Vadot		interrupt-controller;
964c66ec88fSEmmanuel Vadot		#interrupt-cells = <3>;
965c66ec88fSEmmanuel Vadot		#address-cells = <0>;
966c66ec88fSEmmanuel Vadot
967c66ec88fSEmmanuel Vadot		reg = <0x0 0xffb71000 0x0 0x1000>,
968c66ec88fSEmmanuel Vadot		      <0x0 0xffb72000 0x0 0x2000>,
969c66ec88fSEmmanuel Vadot		      <0x0 0xffb74000 0x0 0x2000>,
970c66ec88fSEmmanuel Vadot		      <0x0 0xffb76000 0x0 0x2000>;
971c66ec88fSEmmanuel Vadot		interrupts = <GIC_PPI 9
972c66ec88fSEmmanuel Vadot		      (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
973c66ec88fSEmmanuel Vadot	};
974c66ec88fSEmmanuel Vadot
975c66ec88fSEmmanuel Vadot	pinctrl: pinctrl {
976c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3368-pinctrl";
977c66ec88fSEmmanuel Vadot		rockchip,grf = <&grf>;
978c66ec88fSEmmanuel Vadot		rockchip,pmu = <&pmugrf>;
979c66ec88fSEmmanuel Vadot		#address-cells = <0x2>;
980c66ec88fSEmmanuel Vadot		#size-cells = <0x2>;
981c66ec88fSEmmanuel Vadot		ranges;
982c66ec88fSEmmanuel Vadot
9838cc087a1SEmmanuel Vadot		gpio0: gpio@ff750000 {
984c66ec88fSEmmanuel Vadot			compatible = "rockchip,gpio-bank";
985c66ec88fSEmmanuel Vadot			reg = <0x0 0xff750000 0x0 0x100>;
986c66ec88fSEmmanuel Vadot			clocks = <&cru PCLK_GPIO0>;
987c66ec88fSEmmanuel Vadot			interrupts = <GIC_SPI 0x51 IRQ_TYPE_LEVEL_HIGH>;
988c66ec88fSEmmanuel Vadot
989c66ec88fSEmmanuel Vadot			gpio-controller;
990c66ec88fSEmmanuel Vadot			#gpio-cells = <0x2>;
991c66ec88fSEmmanuel Vadot
992c66ec88fSEmmanuel Vadot			interrupt-controller;
993c66ec88fSEmmanuel Vadot			#interrupt-cells = <0x2>;
994c66ec88fSEmmanuel Vadot		};
995c66ec88fSEmmanuel Vadot
9968cc087a1SEmmanuel Vadot		gpio1: gpio@ff780000 {
997c66ec88fSEmmanuel Vadot			compatible = "rockchip,gpio-bank";
998c66ec88fSEmmanuel Vadot			reg = <0x0 0xff780000 0x0 0x100>;
999c66ec88fSEmmanuel Vadot			clocks = <&cru PCLK_GPIO1>;
1000c66ec88fSEmmanuel Vadot			interrupts = <GIC_SPI 0x52 IRQ_TYPE_LEVEL_HIGH>;
1001c66ec88fSEmmanuel Vadot
1002c66ec88fSEmmanuel Vadot			gpio-controller;
1003c66ec88fSEmmanuel Vadot			#gpio-cells = <0x2>;
1004c66ec88fSEmmanuel Vadot
1005c66ec88fSEmmanuel Vadot			interrupt-controller;
1006c66ec88fSEmmanuel Vadot			#interrupt-cells = <0x2>;
1007c66ec88fSEmmanuel Vadot		};
1008c66ec88fSEmmanuel Vadot
10098cc087a1SEmmanuel Vadot		gpio2: gpio@ff790000 {
1010c66ec88fSEmmanuel Vadot			compatible = "rockchip,gpio-bank";
1011c66ec88fSEmmanuel Vadot			reg = <0x0 0xff790000 0x0 0x100>;
1012c66ec88fSEmmanuel Vadot			clocks = <&cru PCLK_GPIO2>;
1013c66ec88fSEmmanuel Vadot			interrupts = <GIC_SPI 0x53 IRQ_TYPE_LEVEL_HIGH>;
1014c66ec88fSEmmanuel Vadot
1015c66ec88fSEmmanuel Vadot			gpio-controller;
1016c66ec88fSEmmanuel Vadot			#gpio-cells = <0x2>;
1017c66ec88fSEmmanuel Vadot
1018c66ec88fSEmmanuel Vadot			interrupt-controller;
1019c66ec88fSEmmanuel Vadot			#interrupt-cells = <0x2>;
1020c66ec88fSEmmanuel Vadot		};
1021c66ec88fSEmmanuel Vadot
10228cc087a1SEmmanuel Vadot		gpio3: gpio@ff7a0000 {
1023c66ec88fSEmmanuel Vadot			compatible = "rockchip,gpio-bank";
1024c66ec88fSEmmanuel Vadot			reg = <0x0 0xff7a0000 0x0 0x100>;
1025c66ec88fSEmmanuel Vadot			clocks = <&cru PCLK_GPIO3>;
1026c66ec88fSEmmanuel Vadot			interrupts = <GIC_SPI 0x54 IRQ_TYPE_LEVEL_HIGH>;
1027c66ec88fSEmmanuel Vadot
1028c66ec88fSEmmanuel Vadot			gpio-controller;
1029c66ec88fSEmmanuel Vadot			#gpio-cells = <0x2>;
1030c66ec88fSEmmanuel Vadot
1031c66ec88fSEmmanuel Vadot			interrupt-controller;
1032c66ec88fSEmmanuel Vadot			#interrupt-cells = <0x2>;
1033c66ec88fSEmmanuel Vadot		};
1034c66ec88fSEmmanuel Vadot
1035c66ec88fSEmmanuel Vadot		pcfg_pull_up: pcfg-pull-up {
1036c66ec88fSEmmanuel Vadot			bias-pull-up;
1037c66ec88fSEmmanuel Vadot		};
1038c66ec88fSEmmanuel Vadot
1039c66ec88fSEmmanuel Vadot		pcfg_pull_down: pcfg-pull-down {
1040c66ec88fSEmmanuel Vadot			bias-pull-down;
1041c66ec88fSEmmanuel Vadot		};
1042c66ec88fSEmmanuel Vadot
1043c66ec88fSEmmanuel Vadot		pcfg_pull_none: pcfg-pull-none {
1044c66ec88fSEmmanuel Vadot			bias-disable;
1045c66ec88fSEmmanuel Vadot		};
1046c66ec88fSEmmanuel Vadot
1047c66ec88fSEmmanuel Vadot		pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1048c66ec88fSEmmanuel Vadot			bias-disable;
1049c66ec88fSEmmanuel Vadot			drive-strength = <12>;
1050c66ec88fSEmmanuel Vadot		};
1051c66ec88fSEmmanuel Vadot
1052c66ec88fSEmmanuel Vadot		emmc {
1053c66ec88fSEmmanuel Vadot			emmc_clk: emmc-clk {
1054c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>;
1055c66ec88fSEmmanuel Vadot			};
1056c66ec88fSEmmanuel Vadot
1057c66ec88fSEmmanuel Vadot			emmc_cmd: emmc-cmd {
1058c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PD2 2 &pcfg_pull_up>;
1059c66ec88fSEmmanuel Vadot			};
1060c66ec88fSEmmanuel Vadot
1061c66ec88fSEmmanuel Vadot			emmc_pwr: emmc-pwr {
1062c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PD3 2 &pcfg_pull_up>;
1063c66ec88fSEmmanuel Vadot			};
1064c66ec88fSEmmanuel Vadot
1065c66ec88fSEmmanuel Vadot			emmc_bus1: emmc-bus1 {
1066c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>;
1067c66ec88fSEmmanuel Vadot			};
1068c66ec88fSEmmanuel Vadot
1069c66ec88fSEmmanuel Vadot			emmc_bus4: emmc-bus4 {
1070c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
1071c66ec88fSEmmanuel Vadot						<1 RK_PC3 2 &pcfg_pull_up>,
1072c66ec88fSEmmanuel Vadot						<1 RK_PC4 2 &pcfg_pull_up>,
1073c66ec88fSEmmanuel Vadot						<1 RK_PC5 2 &pcfg_pull_up>;
1074c66ec88fSEmmanuel Vadot			};
1075c66ec88fSEmmanuel Vadot
1076c66ec88fSEmmanuel Vadot			emmc_bus8: emmc-bus8 {
1077c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
1078c66ec88fSEmmanuel Vadot						<1 RK_PC3 2 &pcfg_pull_up>,
1079c66ec88fSEmmanuel Vadot						<1 RK_PC4 2 &pcfg_pull_up>,
1080c66ec88fSEmmanuel Vadot						<1 RK_PC5 2 &pcfg_pull_up>,
1081c66ec88fSEmmanuel Vadot						<1 RK_PC6 2 &pcfg_pull_up>,
1082c66ec88fSEmmanuel Vadot						<1 RK_PC7 2 &pcfg_pull_up>,
1083c66ec88fSEmmanuel Vadot						<1 RK_PD0 2 &pcfg_pull_up>,
1084c66ec88fSEmmanuel Vadot						<1 RK_PD1 2 &pcfg_pull_up>;
1085c66ec88fSEmmanuel Vadot			};
1086c66ec88fSEmmanuel Vadot		};
1087c66ec88fSEmmanuel Vadot
1088c66ec88fSEmmanuel Vadot		gmac {
1089c66ec88fSEmmanuel Vadot			rgmii_pins: rgmii-pins {
1090c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>,
1091c66ec88fSEmmanuel Vadot						<3 RK_PD0 1 &pcfg_pull_none>,
1092c66ec88fSEmmanuel Vadot						<3 RK_PC3 1 &pcfg_pull_none>,
1093c66ec88fSEmmanuel Vadot						<3 RK_PB0 1 &pcfg_pull_none_12ma>,
1094c66ec88fSEmmanuel Vadot						<3 RK_PB1 1 &pcfg_pull_none_12ma>,
1095c66ec88fSEmmanuel Vadot						<3 RK_PB2 1 &pcfg_pull_none_12ma>,
1096c66ec88fSEmmanuel Vadot						<3 RK_PB6 1 &pcfg_pull_none_12ma>,
1097c66ec88fSEmmanuel Vadot						<3 RK_PD4 1 &pcfg_pull_none_12ma>,
1098c66ec88fSEmmanuel Vadot						<3 RK_PB5 1 &pcfg_pull_none_12ma>,
1099c66ec88fSEmmanuel Vadot						<3 RK_PB7 1 &pcfg_pull_none>,
1100c66ec88fSEmmanuel Vadot						<3 RK_PC0 1 &pcfg_pull_none>,
1101c66ec88fSEmmanuel Vadot						<3 RK_PC1 1 &pcfg_pull_none>,
1102c66ec88fSEmmanuel Vadot						<3 RK_PC2 1 &pcfg_pull_none>,
1103c66ec88fSEmmanuel Vadot						<3 RK_PD1 1 &pcfg_pull_none>,
1104c66ec88fSEmmanuel Vadot						<3 RK_PC4 1 &pcfg_pull_none>;
1105c66ec88fSEmmanuel Vadot			};
1106c66ec88fSEmmanuel Vadot
1107c66ec88fSEmmanuel Vadot			rmii_pins: rmii-pins {
1108c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>,
1109c66ec88fSEmmanuel Vadot						<3 RK_PD0 1 &pcfg_pull_none>,
1110c66ec88fSEmmanuel Vadot						<3 RK_PC3 1 &pcfg_pull_none>,
1111c66ec88fSEmmanuel Vadot						<3 RK_PB0 1 &pcfg_pull_none_12ma>,
1112c66ec88fSEmmanuel Vadot						<3 RK_PB1 1 &pcfg_pull_none_12ma>,
1113c66ec88fSEmmanuel Vadot						<3 RK_PB5 1 &pcfg_pull_none_12ma>,
1114c66ec88fSEmmanuel Vadot						<3 RK_PB7 1 &pcfg_pull_none>,
1115c66ec88fSEmmanuel Vadot						<3 RK_PC0 1 &pcfg_pull_none>,
1116c66ec88fSEmmanuel Vadot						<3 RK_PC4 1 &pcfg_pull_none>,
1117c66ec88fSEmmanuel Vadot						<3 RK_PC5 1 &pcfg_pull_none>;
1118c66ec88fSEmmanuel Vadot			};
1119c66ec88fSEmmanuel Vadot		};
1120c66ec88fSEmmanuel Vadot
1121c66ec88fSEmmanuel Vadot		i2c0 {
1122c66ec88fSEmmanuel Vadot			i2c0_xfer: i2c0-xfer {
1123c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>,
1124c66ec88fSEmmanuel Vadot						<0 RK_PA7 1 &pcfg_pull_none>;
1125c66ec88fSEmmanuel Vadot			};
1126c66ec88fSEmmanuel Vadot		};
1127c66ec88fSEmmanuel Vadot
1128c66ec88fSEmmanuel Vadot		i2c1 {
1129c66ec88fSEmmanuel Vadot			i2c1_xfer: i2c1-xfer {
1130c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>,
1131c66ec88fSEmmanuel Vadot						<2 RK_PC6 1 &pcfg_pull_none>;
1132c66ec88fSEmmanuel Vadot			};
1133c66ec88fSEmmanuel Vadot		};
1134c66ec88fSEmmanuel Vadot
1135c66ec88fSEmmanuel Vadot		i2c2 {
1136c66ec88fSEmmanuel Vadot			i2c2_xfer: i2c2-xfer {
1137c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PB1 2 &pcfg_pull_none>,
1138c66ec88fSEmmanuel Vadot						<3 RK_PD7 2 &pcfg_pull_none>;
1139c66ec88fSEmmanuel Vadot			};
1140c66ec88fSEmmanuel Vadot		};
1141c66ec88fSEmmanuel Vadot
1142c66ec88fSEmmanuel Vadot		i2c3 {
1143c66ec88fSEmmanuel Vadot			i2c3_xfer: i2c3-xfer {
1144c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>,
1145c66ec88fSEmmanuel Vadot						<1 RK_PC1 1 &pcfg_pull_none>;
1146c66ec88fSEmmanuel Vadot			};
1147c66ec88fSEmmanuel Vadot		};
1148c66ec88fSEmmanuel Vadot
1149c66ec88fSEmmanuel Vadot		i2c4 {
1150c66ec88fSEmmanuel Vadot			i2c4_xfer: i2c4-xfer {
1151c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PD0 2 &pcfg_pull_none>,
1152c66ec88fSEmmanuel Vadot						<3 RK_PD1 2 &pcfg_pull_none>;
1153c66ec88fSEmmanuel Vadot			};
1154c66ec88fSEmmanuel Vadot		};
1155c66ec88fSEmmanuel Vadot
1156c66ec88fSEmmanuel Vadot		i2c5 {
1157c66ec88fSEmmanuel Vadot			i2c5_xfer: i2c5-xfer {
1158c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PD2 2 &pcfg_pull_none>,
1159c66ec88fSEmmanuel Vadot						<3 RK_PD3 2 &pcfg_pull_none>;
1160c66ec88fSEmmanuel Vadot			};
1161c66ec88fSEmmanuel Vadot		};
1162c66ec88fSEmmanuel Vadot
1163c66ec88fSEmmanuel Vadot		i2s {
1164c66ec88fSEmmanuel Vadot			i2s_8ch_bus: i2s-8ch-bus {
1165c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PB4 1 &pcfg_pull_none>,
1166c66ec88fSEmmanuel Vadot						<2 RK_PB5 1 &pcfg_pull_none>,
1167c66ec88fSEmmanuel Vadot						<2 RK_PB6 1 &pcfg_pull_none>,
1168c66ec88fSEmmanuel Vadot						<2 RK_PB7 1 &pcfg_pull_none>,
1169c66ec88fSEmmanuel Vadot						<2 RK_PC0 1 &pcfg_pull_none>,
1170c66ec88fSEmmanuel Vadot						<2 RK_PC1 1 &pcfg_pull_none>,
1171c66ec88fSEmmanuel Vadot						<2 RK_PC2 1 &pcfg_pull_none>,
1172c66ec88fSEmmanuel Vadot						<2 RK_PC3 1 &pcfg_pull_none>,
1173c66ec88fSEmmanuel Vadot						<2 RK_PC4 1 &pcfg_pull_none>;
1174c66ec88fSEmmanuel Vadot			};
1175c66ec88fSEmmanuel Vadot		};
1176c66ec88fSEmmanuel Vadot
1177c66ec88fSEmmanuel Vadot		pwm0 {
1178c66ec88fSEmmanuel Vadot			pwm0_pin: pwm0-pin {
1179c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PB0 2 &pcfg_pull_none>;
1180c66ec88fSEmmanuel Vadot			};
1181c66ec88fSEmmanuel Vadot		};
1182c66ec88fSEmmanuel Vadot
1183c66ec88fSEmmanuel Vadot		pwm1 {
1184c66ec88fSEmmanuel Vadot			pwm1_pin: pwm1-pin {
1185c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PB0 2 &pcfg_pull_none>;
1186c66ec88fSEmmanuel Vadot			};
1187c66ec88fSEmmanuel Vadot		};
1188c66ec88fSEmmanuel Vadot
1189c66ec88fSEmmanuel Vadot		pwm3 {
1190c66ec88fSEmmanuel Vadot			pwm3_pin: pwm3-pin {
1191c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PD5 3 &pcfg_pull_none>;
1192c66ec88fSEmmanuel Vadot			};
1193c66ec88fSEmmanuel Vadot		};
1194c66ec88fSEmmanuel Vadot
1195c66ec88fSEmmanuel Vadot		sdio0 {
1196c66ec88fSEmmanuel Vadot			sdio0_bus1: sdio0-bus1 {
1197c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>;
1198c66ec88fSEmmanuel Vadot			};
1199c66ec88fSEmmanuel Vadot
1200c66ec88fSEmmanuel Vadot			sdio0_bus4: sdio0-bus4 {
1201c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>,
1202c66ec88fSEmmanuel Vadot						<2 RK_PD5 1 &pcfg_pull_up>,
1203c66ec88fSEmmanuel Vadot						<2 RK_PD6 1 &pcfg_pull_up>,
1204c66ec88fSEmmanuel Vadot						<2 RK_PD7 1 &pcfg_pull_up>;
1205c66ec88fSEmmanuel Vadot			};
1206c66ec88fSEmmanuel Vadot
1207c66ec88fSEmmanuel Vadot			sdio0_cmd: sdio0-cmd {
1208c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PA0 1 &pcfg_pull_up>;
1209c66ec88fSEmmanuel Vadot			};
1210c66ec88fSEmmanuel Vadot
1211c66ec88fSEmmanuel Vadot			sdio0_clk: sdio0-clk {
1212c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PA1 1 &pcfg_pull_none>;
1213c66ec88fSEmmanuel Vadot			};
1214c66ec88fSEmmanuel Vadot
1215c66ec88fSEmmanuel Vadot			sdio0_cd: sdio0-cd {
1216c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PA2 1 &pcfg_pull_up>;
1217c66ec88fSEmmanuel Vadot			};
1218c66ec88fSEmmanuel Vadot
1219c66ec88fSEmmanuel Vadot			sdio0_wp: sdio0-wp {
1220c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PA3 1 &pcfg_pull_up>;
1221c66ec88fSEmmanuel Vadot			};
1222c66ec88fSEmmanuel Vadot
1223c66ec88fSEmmanuel Vadot			sdio0_pwr: sdio0-pwr {
1224c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PA4 1 &pcfg_pull_up>;
1225c66ec88fSEmmanuel Vadot			};
1226c66ec88fSEmmanuel Vadot
1227c66ec88fSEmmanuel Vadot			sdio0_bkpwr: sdio0-bkpwr {
1228c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PA5 1 &pcfg_pull_up>;
1229c66ec88fSEmmanuel Vadot			};
1230c66ec88fSEmmanuel Vadot
1231c66ec88fSEmmanuel Vadot			sdio0_int: sdio0-int {
1232c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PA6 1 &pcfg_pull_up>;
1233c66ec88fSEmmanuel Vadot			};
1234c66ec88fSEmmanuel Vadot		};
1235c66ec88fSEmmanuel Vadot
1236c66ec88fSEmmanuel Vadot		sdmmc {
1237c66ec88fSEmmanuel Vadot			sdmmc_clk: sdmmc-clk {
1238c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PB1 1 &pcfg_pull_none>;
1239c66ec88fSEmmanuel Vadot			};
1240c66ec88fSEmmanuel Vadot
1241c66ec88fSEmmanuel Vadot			sdmmc_cmd: sdmmc-cmd {
1242c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
1243c66ec88fSEmmanuel Vadot			};
1244c66ec88fSEmmanuel Vadot
1245c66ec88fSEmmanuel Vadot			sdmmc_cd: sdmmc-cd {
1246c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
1247c66ec88fSEmmanuel Vadot			};
1248c66ec88fSEmmanuel Vadot
1249c66ec88fSEmmanuel Vadot			sdmmc_bus1: sdmmc-bus1 {
1250c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>;
1251c66ec88fSEmmanuel Vadot			};
1252c66ec88fSEmmanuel Vadot
1253c66ec88fSEmmanuel Vadot			sdmmc_bus4: sdmmc-bus4 {
1254c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>,
1255c66ec88fSEmmanuel Vadot						<2 RK_PA6 1 &pcfg_pull_up>,
1256c66ec88fSEmmanuel Vadot						<2 RK_PA7 1 &pcfg_pull_up>,
1257c66ec88fSEmmanuel Vadot						<2 RK_PB0 1 &pcfg_pull_up>;
1258c66ec88fSEmmanuel Vadot			};
1259c66ec88fSEmmanuel Vadot		};
1260c66ec88fSEmmanuel Vadot
1261c66ec88fSEmmanuel Vadot		spdif {
1262c66ec88fSEmmanuel Vadot			spdif_tx: spdif-tx {
1263c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
1264c66ec88fSEmmanuel Vadot			};
1265c66ec88fSEmmanuel Vadot		};
1266c66ec88fSEmmanuel Vadot
1267c66ec88fSEmmanuel Vadot		spi0 {
1268c66ec88fSEmmanuel Vadot			spi0_clk: spi0-clk {
1269c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PD5 2 &pcfg_pull_up>;
1270c66ec88fSEmmanuel Vadot			};
1271c66ec88fSEmmanuel Vadot			spi0_cs0: spi0-cs0 {
1272c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PD0 3 &pcfg_pull_up>;
1273c66ec88fSEmmanuel Vadot			};
1274c66ec88fSEmmanuel Vadot			spi0_cs1: spi0-cs1 {
1275c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PD1 3 &pcfg_pull_up>;
1276c66ec88fSEmmanuel Vadot			};
1277c66ec88fSEmmanuel Vadot			spi0_tx: spi0-tx {
1278c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PC7 3 &pcfg_pull_up>;
1279c66ec88fSEmmanuel Vadot			};
1280c66ec88fSEmmanuel Vadot			spi0_rx: spi0-rx {
1281c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PC6 3 &pcfg_pull_up>;
1282c66ec88fSEmmanuel Vadot			};
1283c66ec88fSEmmanuel Vadot		};
1284c66ec88fSEmmanuel Vadot
1285c66ec88fSEmmanuel Vadot		spi1 {
1286c66ec88fSEmmanuel Vadot			spi1_clk: spi1-clk {
1287c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PB6 2 &pcfg_pull_up>;
1288c66ec88fSEmmanuel Vadot			};
1289c66ec88fSEmmanuel Vadot			spi1_cs0: spi1-cs0 {
1290c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PB7 2 &pcfg_pull_up>;
1291c66ec88fSEmmanuel Vadot			};
1292c66ec88fSEmmanuel Vadot			spi1_cs1: spi1-cs1 {
1293c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PD4 2 &pcfg_pull_up>;
1294c66ec88fSEmmanuel Vadot			};
1295c66ec88fSEmmanuel Vadot			spi1_rx: spi1-rx {
1296c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PC0 2 &pcfg_pull_up>;
1297c66ec88fSEmmanuel Vadot			};
1298c66ec88fSEmmanuel Vadot			spi1_tx: spi1-tx {
1299c66ec88fSEmmanuel Vadot				rockchip,pins = <1 RK_PC1 2 &pcfg_pull_up>;
1300c66ec88fSEmmanuel Vadot			};
1301c66ec88fSEmmanuel Vadot		};
1302c66ec88fSEmmanuel Vadot
1303c66ec88fSEmmanuel Vadot		spi2 {
1304c66ec88fSEmmanuel Vadot			spi2_clk: spi2-clk {
1305c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PB4 2 &pcfg_pull_up>;
1306c66ec88fSEmmanuel Vadot			};
1307c66ec88fSEmmanuel Vadot			spi2_cs0: spi2-cs0 {
1308c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PB5 2 &pcfg_pull_up>;
1309c66ec88fSEmmanuel Vadot			};
1310c66ec88fSEmmanuel Vadot			spi2_rx: spi2-rx {
1311c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PB2 2 &pcfg_pull_up>;
1312c66ec88fSEmmanuel Vadot			};
1313c66ec88fSEmmanuel Vadot			spi2_tx: spi2-tx {
1314c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PB3 2 &pcfg_pull_up>;
1315c66ec88fSEmmanuel Vadot			};
1316c66ec88fSEmmanuel Vadot		};
1317c66ec88fSEmmanuel Vadot
1318c66ec88fSEmmanuel Vadot		tsadc {
1319c66ec88fSEmmanuel Vadot			otp_pin: otp-pin {
1320c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
1321c66ec88fSEmmanuel Vadot			};
1322c66ec88fSEmmanuel Vadot
1323c66ec88fSEmmanuel Vadot			otp_out: otp-out {
1324c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
1325c66ec88fSEmmanuel Vadot			};
1326c66ec88fSEmmanuel Vadot		};
1327c66ec88fSEmmanuel Vadot
1328c66ec88fSEmmanuel Vadot		uart0 {
1329c66ec88fSEmmanuel Vadot			uart0_xfer: uart0-xfer {
1330c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PD0 1 &pcfg_pull_up>,
1331c66ec88fSEmmanuel Vadot						<2 RK_PD1 1 &pcfg_pull_none>;
1332c66ec88fSEmmanuel Vadot			};
1333c66ec88fSEmmanuel Vadot
1334c66ec88fSEmmanuel Vadot			uart0_cts: uart0-cts {
1335c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PD2 1 &pcfg_pull_none>;
1336c66ec88fSEmmanuel Vadot			};
1337c66ec88fSEmmanuel Vadot
1338c66ec88fSEmmanuel Vadot			uart0_rts: uart0-rts {
1339c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PD3 1 &pcfg_pull_none>;
1340c66ec88fSEmmanuel Vadot			};
1341c66ec88fSEmmanuel Vadot		};
1342c66ec88fSEmmanuel Vadot
1343c66ec88fSEmmanuel Vadot		uart1 {
1344c66ec88fSEmmanuel Vadot			uart1_xfer: uart1-xfer {
1345c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PC4 3 &pcfg_pull_up>,
1346c66ec88fSEmmanuel Vadot						<0 RK_PC5 3 &pcfg_pull_none>;
1347c66ec88fSEmmanuel Vadot			};
1348c66ec88fSEmmanuel Vadot
1349c66ec88fSEmmanuel Vadot			uart1_cts: uart1-cts {
1350c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PC6 3 &pcfg_pull_none>;
1351c66ec88fSEmmanuel Vadot			};
1352c66ec88fSEmmanuel Vadot
1353c66ec88fSEmmanuel Vadot			uart1_rts: uart1-rts {
1354c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PC7 3 &pcfg_pull_none>;
1355c66ec88fSEmmanuel Vadot			};
1356c66ec88fSEmmanuel Vadot		};
1357c66ec88fSEmmanuel Vadot
1358c66ec88fSEmmanuel Vadot		uart2 {
1359c66ec88fSEmmanuel Vadot			uart2_xfer: uart2-xfer {
1360c66ec88fSEmmanuel Vadot				rockchip,pins = <2 RK_PA6 2 &pcfg_pull_up>,
1361c66ec88fSEmmanuel Vadot						<2 RK_PA5 2 &pcfg_pull_none>;
1362c66ec88fSEmmanuel Vadot			};
1363c66ec88fSEmmanuel Vadot			/* no rts / cts for uart2 */
1364c66ec88fSEmmanuel Vadot		};
1365c66ec88fSEmmanuel Vadot
1366c66ec88fSEmmanuel Vadot		uart3 {
1367c66ec88fSEmmanuel Vadot			uart3_xfer: uart3-xfer {
1368c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PD5 2 &pcfg_pull_up>,
1369c66ec88fSEmmanuel Vadot						<3 RK_PD6 3 &pcfg_pull_none>;
1370c66ec88fSEmmanuel Vadot			};
1371c66ec88fSEmmanuel Vadot
1372c66ec88fSEmmanuel Vadot			uart3_cts: uart3-cts {
1373c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PC0 2 &pcfg_pull_none>;
1374c66ec88fSEmmanuel Vadot			};
1375c66ec88fSEmmanuel Vadot
1376c66ec88fSEmmanuel Vadot			uart3_rts: uart3-rts {
1377c66ec88fSEmmanuel Vadot				rockchip,pins = <3 RK_PC1 2 &pcfg_pull_none>;
1378c66ec88fSEmmanuel Vadot			};
1379c66ec88fSEmmanuel Vadot		};
1380c66ec88fSEmmanuel Vadot
1381c66ec88fSEmmanuel Vadot		uart4 {
1382c66ec88fSEmmanuel Vadot			uart4_xfer: uart4-xfer {
1383c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PD3 3 &pcfg_pull_up>,
1384c66ec88fSEmmanuel Vadot						<0 RK_PD2 3 &pcfg_pull_none>;
1385c66ec88fSEmmanuel Vadot			};
1386c66ec88fSEmmanuel Vadot
1387c66ec88fSEmmanuel Vadot			uart4_cts: uart4-cts {
1388c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PD0 3 &pcfg_pull_none>;
1389c66ec88fSEmmanuel Vadot			};
1390c66ec88fSEmmanuel Vadot
1391c66ec88fSEmmanuel Vadot			uart4_rts: uart4-rts {
1392c66ec88fSEmmanuel Vadot				rockchip,pins = <0 RK_PD1 3 &pcfg_pull_none>;
1393c66ec88fSEmmanuel Vadot			};
1394c66ec88fSEmmanuel Vadot		};
1395c66ec88fSEmmanuel Vadot	};
1396c66ec88fSEmmanuel Vadot};
1397