xref: /linux/arch/arm/boot/dts/rockchip/rk322x.dtsi (revision e6a901a00822659181c93c86d8bbc2a17779fddc)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3#include <dt-bindings/gpio/gpio.h>
4#include <dt-bindings/interrupt-controller/irq.h>
5#include <dt-bindings/interrupt-controller/arm-gic.h>
6#include <dt-bindings/pinctrl/rockchip.h>
7#include <dt-bindings/clock/rk3228-cru.h>
8#include <dt-bindings/thermal/thermal.h>
9#include <dt-bindings/power/rk3228-power.h>
10
11/ {
12	#address-cells = <1>;
13	#size-cells = <1>;
14
15	interrupt-parent = <&gic>;
16
17	aliases {
18		gpio0 = &gpio0;
19		gpio1 = &gpio1;
20		gpio2 = &gpio2;
21		gpio3 = &gpio3;
22		serial0 = &uart0;
23		serial1 = &uart1;
24		serial2 = &uart2;
25		spi0 = &spi0;
26	};
27
28	cpus {
29		#address-cells = <1>;
30		#size-cells = <0>;
31
32		cpu0: cpu@f00 {
33			device_type = "cpu";
34			compatible = "arm,cortex-a7";
35			reg = <0xf00>;
36			resets = <&cru SRST_CORE0>;
37			operating-points-v2 = <&cpu0_opp_table>;
38			#cooling-cells = <2>; /* min followed by max */
39			clock-latency = <40000>;
40			clocks = <&cru ARMCLK>;
41			enable-method = "psci";
42		};
43
44		cpu1: cpu@f01 {
45			device_type = "cpu";
46			compatible = "arm,cortex-a7";
47			reg = <0xf01>;
48			resets = <&cru SRST_CORE1>;
49			operating-points-v2 = <&cpu0_opp_table>;
50			#cooling-cells = <2>; /* min followed by max */
51			enable-method = "psci";
52		};
53
54		cpu2: cpu@f02 {
55			device_type = "cpu";
56			compatible = "arm,cortex-a7";
57			reg = <0xf02>;
58			resets = <&cru SRST_CORE2>;
59			operating-points-v2 = <&cpu0_opp_table>;
60			#cooling-cells = <2>; /* min followed by max */
61			enable-method = "psci";
62		};
63
64		cpu3: cpu@f03 {
65			device_type = "cpu";
66			compatible = "arm,cortex-a7";
67			reg = <0xf03>;
68			resets = <&cru SRST_CORE3>;
69			operating-points-v2 = <&cpu0_opp_table>;
70			#cooling-cells = <2>; /* min followed by max */
71			enable-method = "psci";
72		};
73	};
74
75	cpu0_opp_table: opp-table-0 {
76		compatible = "operating-points-v2";
77		opp-shared;
78
79		opp-408000000 {
80			opp-hz = /bits/ 64 <408000000>;
81			opp-microvolt = <950000>;
82			clock-latency-ns = <40000>;
83			opp-suspend;
84		};
85		opp-600000000 {
86			opp-hz = /bits/ 64 <600000000>;
87			opp-microvolt = <975000>;
88		};
89		opp-816000000 {
90			opp-hz = /bits/ 64 <816000000>;
91			opp-microvolt = <1000000>;
92		};
93		opp-1008000000 {
94			opp-hz = /bits/ 64 <1008000000>;
95			opp-microvolt = <1175000>;
96		};
97		opp-1200000000 {
98			opp-hz = /bits/ 64 <1200000000>;
99			opp-microvolt = <1275000>;
100		};
101	};
102
103	arm-pmu {
104		compatible = "arm,cortex-a7-pmu";
105		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
106			     <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
107			     <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
108			     <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
109		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
110	};
111
112	psci {
113		compatible = "arm,psci-1.0", "arm,psci-0.2";
114		method = "smc";
115	};
116
117	timer {
118		compatible = "arm,armv7-timer";
119		arm,cpu-registers-not-fw-configured;
120		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
121			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
122			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
123			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
124		clock-frequency = <24000000>;
125	};
126
127	xin24m: oscillator {
128		compatible = "fixed-clock";
129		clock-frequency = <24000000>;
130		clock-output-names = "xin24m";
131		#clock-cells = <0>;
132	};
133
134	display_subsystem: display-subsystem {
135		compatible = "rockchip,display-subsystem";
136		ports = <&vop_out>;
137	};
138
139	i2s1: i2s1@100b0000 {
140		compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
141		reg = <0x100b0000 0x4000>;
142		interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
143		clock-names = "i2s_clk", "i2s_hclk";
144		clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
145		dmas = <&pdma 14>, <&pdma 15>;
146		dma-names = "tx", "rx";
147		pinctrl-names = "default";
148		pinctrl-0 = <&i2s1_bus>;
149		status = "disabled";
150	};
151
152	i2s0: i2s0@100c0000 {
153		compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
154		reg = <0x100c0000 0x4000>;
155		interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
156		clock-names = "i2s_clk", "i2s_hclk";
157		clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
158		dmas = <&pdma 11>, <&pdma 12>;
159		dma-names = "tx", "rx";
160		status = "disabled";
161	};
162
163	spdif: spdif@100d0000 {
164		compatible = "rockchip,rk3228-spdif";
165		reg = <0x100d0000 0x1000>;
166		interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
167		clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
168		clock-names = "mclk", "hclk";
169		dmas = <&pdma 10>;
170		dma-names = "tx";
171		pinctrl-names = "default";
172		pinctrl-0 = <&spdif_tx>;
173		status = "disabled";
174	};
175
176	i2s2: i2s2@100e0000 {
177		compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
178		reg = <0x100e0000 0x4000>;
179		interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
180		clock-names = "i2s_clk", "i2s_hclk";
181		clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
182		dmas = <&pdma 0>, <&pdma 1>;
183		dma-names = "tx", "rx";
184		status = "disabled";
185	};
186
187	grf: syscon@11000000 {
188		compatible = "rockchip,rk3228-grf", "syscon", "simple-mfd";
189		reg = <0x11000000 0x1000>;
190		#address-cells = <1>;
191		#size-cells = <1>;
192
193		io_domains: io-domains {
194			compatible = "rockchip,rk3228-io-voltage-domain";
195			status = "disabled";
196		};
197
198		power: power-controller {
199			compatible = "rockchip,rk3228-power-controller";
200			#power-domain-cells = <1>;
201			#address-cells = <1>;
202			#size-cells = <0>;
203
204			power-domain@RK3228_PD_VIO {
205				reg = <RK3228_PD_VIO>;
206				clocks = <&cru ACLK_HDCP>,
207					 <&cru SCLK_HDCP>,
208					 <&cru ACLK_IEP>,
209					 <&cru HCLK_IEP>,
210					 <&cru ACLK_RGA>,
211					 <&cru HCLK_RGA>,
212					 <&cru SCLK_RGA>;
213				pm_qos = <&qos_hdcp>,
214					 <&qos_iep>,
215					 <&qos_rga_r>,
216					 <&qos_rga_w>;
217				#power-domain-cells = <0>;
218			};
219
220			power-domain@RK3228_PD_VOP {
221				reg = <RK3228_PD_VOP>;
222				clocks = <&cru ACLK_VOP>,
223					 <&cru DCLK_VOP>,
224					 <&cru HCLK_VOP>;
225				pm_qos = <&qos_vop>;
226				#power-domain-cells = <0>;
227			};
228
229			power-domain@RK3228_PD_VPU {
230				reg = <RK3228_PD_VPU>;
231				clocks = <&cru ACLK_VPU>,
232					 <&cru HCLK_VPU>;
233				pm_qos = <&qos_vpu>;
234				#power-domain-cells = <0>;
235			};
236
237			power-domain@RK3228_PD_RKVDEC {
238				reg = <RK3228_PD_RKVDEC>;
239				clocks = <&cru ACLK_RKVDEC>,
240					 <&cru HCLK_RKVDEC>,
241					 <&cru SCLK_VDEC_CABAC>,
242					 <&cru SCLK_VDEC_CORE>;
243				pm_qos = <&qos_rkvdec_r>,
244					 <&qos_rkvdec_w>;
245				#power-domain-cells = <0>;
246			};
247
248			power-domain@RK3228_PD_GPU {
249				reg = <RK3228_PD_GPU>;
250				clocks = <&cru ACLK_GPU>;
251				pm_qos = <&qos_gpu>;
252				#power-domain-cells = <0>;
253			};
254		};
255
256		u2phy0: usb2phy@760 {
257			compatible = "rockchip,rk3228-usb2phy";
258			reg = <0x0760 0x0c>;
259			clocks = <&cru SCLK_OTGPHY0>;
260			clock-names = "phyclk";
261			clock-output-names = "usb480m_phy0";
262			#clock-cells = <0>;
263			status = "disabled";
264
265			u2phy0_otg: otg-port {
266				interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
267					     <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
268					     <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
269				interrupt-names = "otg-bvalid", "otg-id",
270						  "linestate";
271				#phy-cells = <0>;
272				status = "disabled";
273			};
274
275			u2phy0_host: host-port {
276				interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
277				interrupt-names = "linestate";
278				#phy-cells = <0>;
279				status = "disabled";
280			};
281		};
282
283		u2phy1: usb2phy@800 {
284			compatible = "rockchip,rk3228-usb2phy";
285			reg = <0x0800 0x0c>;
286			clocks = <&cru SCLK_OTGPHY1>;
287			clock-names = "phyclk";
288			clock-output-names = "usb480m_phy1";
289			#clock-cells = <0>;
290			status = "disabled";
291
292			u2phy1_otg: otg-port {
293				interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
294				interrupt-names = "linestate";
295				#phy-cells = <0>;
296				status = "disabled";
297			};
298
299			u2phy1_host: host-port {
300				interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
301				interrupt-names = "linestate";
302				#phy-cells = <0>;
303				status = "disabled";
304			};
305		};
306	};
307
308	uart0: serial@11010000 {
309		compatible = "snps,dw-apb-uart";
310		reg = <0x11010000 0x100>;
311		interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
312		clock-frequency = <24000000>;
313		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
314		clock-names = "baudclk", "apb_pclk";
315		pinctrl-names = "default";
316		pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
317		reg-shift = <2>;
318		reg-io-width = <4>;
319		status = "disabled";
320	};
321
322	uart1: serial@11020000 {
323		compatible = "snps,dw-apb-uart";
324		reg = <0x11020000 0x100>;
325		interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
326		clock-frequency = <24000000>;
327		clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
328		clock-names = "baudclk", "apb_pclk";
329		pinctrl-names = "default";
330		pinctrl-0 = <&uart1_xfer>;
331		reg-shift = <2>;
332		reg-io-width = <4>;
333		status = "disabled";
334	};
335
336	uart2: serial@11030000 {
337		compatible = "snps,dw-apb-uart";
338		reg = <0x11030000 0x100>;
339		interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
340		clock-frequency = <24000000>;
341		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
342		clock-names = "baudclk", "apb_pclk";
343		pinctrl-names = "default";
344		pinctrl-0 = <&uart2_xfer>;
345		reg-shift = <2>;
346		reg-io-width = <4>;
347		status = "disabled";
348	};
349
350	efuse: efuse@11040000 {
351		compatible = "rockchip,rk3228-efuse";
352		reg = <0x11040000 0x20>;
353		clocks = <&cru PCLK_EFUSE_256>;
354		clock-names = "pclk_efuse";
355		#address-cells = <1>;
356		#size-cells = <1>;
357
358		/* Data cells */
359		efuse_id: id@7 {
360			reg = <0x7 0x10>;
361		};
362		cpu_leakage: cpu_leakage@17 {
363			reg = <0x17 0x1>;
364		};
365	};
366
367	i2c0: i2c@11050000 {
368		compatible = "rockchip,rk3228-i2c";
369		reg = <0x11050000 0x1000>;
370		interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
371		#address-cells = <1>;
372		#size-cells = <0>;
373		clock-names = "i2c";
374		clocks = <&cru PCLK_I2C0>;
375		pinctrl-names = "default";
376		pinctrl-0 = <&i2c0_xfer>;
377		status = "disabled";
378	};
379
380	i2c1: i2c@11060000 {
381		compatible = "rockchip,rk3228-i2c";
382		reg = <0x11060000 0x1000>;
383		interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
384		#address-cells = <1>;
385		#size-cells = <0>;
386		clock-names = "i2c";
387		clocks = <&cru PCLK_I2C1>;
388		pinctrl-names = "default";
389		pinctrl-0 = <&i2c1_xfer>;
390		status = "disabled";
391	};
392
393	i2c2: i2c@11070000 {
394		compatible = "rockchip,rk3228-i2c";
395		reg = <0x11070000 0x1000>;
396		interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
397		#address-cells = <1>;
398		#size-cells = <0>;
399		clock-names = "i2c";
400		clocks = <&cru PCLK_I2C2>;
401		pinctrl-names = "default";
402		pinctrl-0 = <&i2c2_xfer>;
403		status = "disabled";
404	};
405
406	i2c3: i2c@11080000 {
407		compatible = "rockchip,rk3228-i2c";
408		reg = <0x11080000 0x1000>;
409		interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
410		#address-cells = <1>;
411		#size-cells = <0>;
412		clock-names = "i2c";
413		clocks = <&cru PCLK_I2C3>;
414		pinctrl-names = "default";
415		pinctrl-0 = <&i2c3_xfer>;
416		status = "disabled";
417	};
418
419	spi0: spi@11090000 {
420		compatible = "rockchip,rk3228-spi";
421		reg = <0x11090000 0x1000>;
422		interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
423		#address-cells = <1>;
424		#size-cells = <0>;
425		clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
426		clock-names = "spiclk", "apb_pclk";
427		pinctrl-names = "default";
428		pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0 &spi0_cs1>;
429		status = "disabled";
430	};
431
432	wdt: watchdog@110a0000 {
433		compatible = "rockchip,rk3228-wdt", "snps,dw-wdt";
434		reg = <0x110a0000 0x100>;
435		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
436		clocks = <&cru PCLK_CPU>;
437		status = "disabled";
438	};
439
440	pwm0: pwm@110b0000 {
441		compatible = "rockchip,rk3288-pwm";
442		reg = <0x110b0000 0x10>;
443		#pwm-cells = <3>;
444		clocks = <&cru PCLK_PWM>;
445		pinctrl-names = "default";
446		pinctrl-0 = <&pwm0_pin>;
447		status = "disabled";
448	};
449
450	pwm1: pwm@110b0010 {
451		compatible = "rockchip,rk3288-pwm";
452		reg = <0x110b0010 0x10>;
453		#pwm-cells = <3>;
454		clocks = <&cru PCLK_PWM>;
455		pinctrl-names = "default";
456		pinctrl-0 = <&pwm1_pin>;
457		status = "disabled";
458	};
459
460	pwm2: pwm@110b0020 {
461		compatible = "rockchip,rk3288-pwm";
462		reg = <0x110b0020 0x10>;
463		#pwm-cells = <3>;
464		clocks = <&cru PCLK_PWM>;
465		pinctrl-names = "default";
466		pinctrl-0 = <&pwm2_pin>;
467		status = "disabled";
468	};
469
470	pwm3: pwm@110b0030 {
471		compatible = "rockchip,rk3288-pwm";
472		reg = <0x110b0030 0x10>;
473		#pwm-cells = <2>;
474		clocks = <&cru PCLK_PWM>;
475		pinctrl-names = "default";
476		pinctrl-0 = <&pwm3_pin>;
477		status = "disabled";
478	};
479
480	timer: timer@110c0000 {
481		compatible = "rockchip,rk3228-timer", "rockchip,rk3288-timer";
482		reg = <0x110c0000 0x20>;
483		interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
484		clocks = <&cru PCLK_TIMER>, <&xin24m>;
485		clock-names = "pclk", "timer";
486	};
487
488	cru: clock-controller@110e0000 {
489		compatible = "rockchip,rk3228-cru";
490		reg = <0x110e0000 0x1000>;
491		clocks = <&xin24m>;
492		clock-names = "xin24m";
493		rockchip,grf = <&grf>;
494		#clock-cells = <1>;
495		#reset-cells = <1>;
496		assigned-clocks =
497			<&cru PLL_GPLL>, <&cru ARMCLK>,
498			<&cru PLL_CPLL>, <&cru ACLK_PERI>,
499			<&cru HCLK_PERI>, <&cru PCLK_PERI>,
500			<&cru ACLK_CPU>, <&cru HCLK_CPU>,
501			<&cru PCLK_CPU>;
502		assigned-clock-rates =
503			<594000000>, <816000000>,
504			<500000000>, <150000000>,
505			<150000000>, <75000000>,
506			<150000000>, <150000000>,
507			<75000000>;
508	};
509
510	pdma: dma-controller@110f0000 {
511		compatible = "arm,pl330", "arm,primecell";
512		reg = <0x110f0000 0x4000>;
513		interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
514			     <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
515		#dma-cells = <1>;
516		arm,pl330-periph-burst;
517		clocks = <&cru ACLK_DMAC>;
518		clock-names = "apb_pclk";
519	};
520
521	thermal-zones {
522		cpu_thermal: cpu-thermal {
523			polling-delay-passive = <100>; /* milliseconds */
524			polling-delay = <5000>; /* milliseconds */
525
526			thermal-sensors = <&tsadc 0>;
527
528			trips {
529				cpu_alert0: cpu_alert0 {
530					temperature = <70000>; /* millicelsius */
531					hysteresis = <2000>; /* millicelsius */
532					type = "passive";
533				};
534				cpu_alert1: cpu_alert1 {
535					temperature = <75000>; /* millicelsius */
536					hysteresis = <2000>; /* millicelsius */
537					type = "passive";
538				};
539				cpu_crit: cpu_crit {
540					temperature = <90000>; /* millicelsius */
541					hysteresis = <2000>; /* millicelsius */
542					type = "critical";
543				};
544			};
545
546			cooling-maps {
547				map0 {
548					trip = <&cpu_alert0>;
549					cooling-device =
550						<&cpu0 THERMAL_NO_LIMIT 6>,
551						<&cpu1 THERMAL_NO_LIMIT 6>,
552						<&cpu2 THERMAL_NO_LIMIT 6>,
553						<&cpu3 THERMAL_NO_LIMIT 6>;
554				};
555				map1 {
556					trip = <&cpu_alert1>;
557					cooling-device =
558						<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
559						<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
560						<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
561						<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
562				};
563			};
564		};
565	};
566
567	tsadc: tsadc@11150000 {
568		compatible = "rockchip,rk3228-tsadc";
569		reg = <0x11150000 0x100>;
570		interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
571		clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
572		clock-names = "tsadc", "apb_pclk";
573		assigned-clocks = <&cru SCLK_TSADC>;
574		assigned-clock-rates = <32768>;
575		resets = <&cru SRST_TSADC>;
576		reset-names = "tsadc-apb";
577		pinctrl-names = "init", "default", "sleep";
578		pinctrl-0 = <&otp_pin>;
579		pinctrl-1 = <&otp_out>;
580		pinctrl-2 = <&otp_pin>;
581		#thermal-sensor-cells = <1>;
582		rockchip,hw-tshut-temp = <95000>;
583		status = "disabled";
584	};
585
586	hdmi_phy: hdmi-phy@12030000 {
587		compatible = "rockchip,rk3228-hdmi-phy";
588		reg = <0x12030000 0x10000>;
589		clocks = <&cru PCLK_HDMI_PHY>, <&xin24m>, <&cru DCLK_HDMI_PHY>;
590		clock-names = "sysclk", "refoclk", "refpclk";
591		#clock-cells = <0>;
592		clock-output-names = "hdmiphy_phy";
593		#phy-cells = <0>;
594		status = "disabled";
595	};
596
597	gpu: gpu@20000000 {
598		compatible = "rockchip,rk3228-mali", "arm,mali-400";
599		reg = <0x20000000 0x10000>;
600		interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
601			     <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
602			     <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
603			     <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
604			     <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
605			     <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
606		interrupt-names = "gp",
607				  "gpmmu",
608				  "pp0",
609				  "ppmmu0",
610				  "pp1",
611				  "ppmmu1";
612		clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
613		clock-names = "bus", "core";
614		power-domains = <&power RK3228_PD_GPU>;
615		resets = <&cru SRST_GPU_A>;
616		status = "disabled";
617	};
618
619	vpu: video-codec@20020000 {
620		compatible = "rockchip,rk3228-vpu", "rockchip,rk3399-vpu";
621		reg = <0x20020000 0x800>;
622		interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
623			     <GIC_SPI  9 IRQ_TYPE_LEVEL_HIGH>;
624		interrupt-names = "vepu", "vdpu";
625		clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
626		clock-names = "aclk", "hclk";
627		iommus = <&vpu_mmu>;
628		power-domains = <&power RK3228_PD_VPU>;
629	};
630
631	vpu_mmu: iommu@20020800 {
632		compatible = "rockchip,iommu";
633		reg = <0x20020800 0x100>;
634		interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
635		clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
636		clock-names = "aclk", "iface";
637		power-domains = <&power RK3228_PD_VPU>;
638		#iommu-cells = <0>;
639	};
640
641	vdec: video-codec@20030000 {
642		compatible = "rockchip,rk3228-vdec", "rockchip,rk3399-vdec";
643		reg = <0x20030000 0x480>;
644		interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
645		clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>,
646			 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>;
647		clock-names = "axi", "ahb", "cabac", "core";
648		assigned-clocks = <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>;
649		assigned-clock-rates = <300000000>, <300000000>;
650		iommus = <&vdec_mmu>;
651		power-domains = <&power RK3228_PD_RKVDEC>;
652	};
653
654	vdec_mmu: iommu@20030480 {
655		compatible = "rockchip,iommu";
656		reg = <0x20030480 0x40>, <0x200304c0 0x40>;
657		interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
658		clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>;
659		clock-names = "aclk", "iface";
660		power-domains = <&power RK3228_PD_RKVDEC>;
661		#iommu-cells = <0>;
662	};
663
664	vop: vop@20050000 {
665		compatible = "rockchip,rk3228-vop";
666		reg = <0x20050000 0x1ffc>;
667		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
668		clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
669		clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
670		resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
671		reset-names = "axi", "ahb", "dclk";
672		iommus = <&vop_mmu>;
673		power-domains = <&power RK3228_PD_VOP>;
674		status = "disabled";
675
676		vop_out: port {
677			#address-cells = <1>;
678			#size-cells = <0>;
679
680			vop_out_hdmi: endpoint@0 {
681				reg = <0>;
682				remote-endpoint = <&hdmi_in_vop>;
683			};
684		};
685	};
686
687	vop_mmu: iommu@20053f00 {
688		compatible = "rockchip,iommu";
689		reg = <0x20053f00 0x100>;
690		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
691		clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
692		clock-names = "aclk", "iface";
693		power-domains = <&power RK3228_PD_VOP>;
694		#iommu-cells = <0>;
695		status = "disabled";
696	};
697
698	rga: rga@20060000 {
699		compatible = "rockchip,rk3228-rga", "rockchip,rk3288-rga";
700		reg = <0x20060000 0x1000>;
701		interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
702		clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
703		clock-names = "aclk", "hclk", "sclk";
704		power-domains = <&power RK3228_PD_VIO>;
705		resets = <&cru SRST_RGA>, <&cru SRST_RGA_A>, <&cru SRST_RGA_H>;
706		reset-names = "core", "axi", "ahb";
707	};
708
709	iep_mmu: iommu@20070800 {
710		compatible = "rockchip,iommu";
711		reg = <0x20070800 0x100>;
712		interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
713		clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
714		clock-names = "aclk", "iface";
715		power-domains = <&power RK3228_PD_VIO>;
716		#iommu-cells = <0>;
717		status = "disabled";
718	};
719
720	hdmi: hdmi@200a0000 {
721		compatible = "rockchip,rk3228-dw-hdmi";
722		reg = <0x200a0000 0x20000>;
723		reg-io-width = <4>;
724		interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
725		assigned-clocks = <&cru SCLK_HDMI_PHY>;
726		assigned-clock-parents = <&hdmi_phy>;
727		clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>, <&cru SCLK_HDMI_CEC>;
728		clock-names = "iahb", "isfr", "cec";
729		pinctrl-names = "default";
730		pinctrl-0 = <&hdmii2c_xfer &hdmi_hpd &hdmi_cec>;
731		resets = <&cru SRST_HDMI_P>;
732		reset-names = "hdmi";
733		phys = <&hdmi_phy>;
734		phy-names = "hdmi";
735		rockchip,grf = <&grf>;
736		status = "disabled";
737
738		ports {
739			#address-cells = <1>;
740			#size-cells = <0>;
741
742			hdmi_in: port@0 {
743				reg = <0>;
744
745				hdmi_in_vop: endpoint {
746					remote-endpoint = <&vop_out_hdmi>;
747				};
748			};
749
750			hdmi_out: port@1 {
751				reg = <1>;
752			};
753		};
754	};
755
756	sdmmc: mmc@30000000 {
757		compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc";
758		reg = <0x30000000 0x4000>;
759		interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
760		clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
761			 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
762		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
763		fifo-depth = <0x100>;
764		pinctrl-names = "default";
765		pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
766		status = "disabled";
767	};
768
769	sdio: mmc@30010000 {
770		compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc";
771		reg = <0x30010000 0x4000>;
772		interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
773		clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
774			 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
775		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
776		fifo-depth = <0x100>;
777		pinctrl-names = "default";
778		pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>;
779		status = "disabled";
780	};
781
782	emmc: mmc@30020000 {
783		compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc";
784		reg = <0x30020000 0x4000>;
785		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
786		clock-frequency = <37500000>;
787		max-frequency = <37500000>;
788		clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
789			 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
790		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
791		bus-width = <8>;
792		rockchip,default-sample-phase = <158>;
793		fifo-depth = <0x100>;
794		pinctrl-names = "default";
795		pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
796		resets = <&cru SRST_EMMC>;
797		reset-names = "reset";
798		status = "disabled";
799	};
800
801	usb_otg: usb@30040000 {
802		compatible = "rockchip,rk3228-usb", "rockchip,rk3066-usb",
803			     "snps,dwc2";
804		reg = <0x30040000 0x40000>;
805		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
806		clocks = <&cru HCLK_OTG>;
807		clock-names = "otg";
808		dr_mode = "otg";
809		g-np-tx-fifo-size = <16>;
810		g-rx-fifo-size = <280>;
811		g-tx-fifo-size = <256 128 128 64 32 16>;
812		phys = <&u2phy0_otg>;
813		phy-names = "usb2-phy";
814		status = "disabled";
815	};
816
817	usb_host0_ehci: usb@30080000 {
818		compatible = "generic-ehci";
819		reg = <0x30080000 0x20000>;
820		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
821		clocks = <&cru HCLK_HOST0>, <&u2phy0>;
822		phys = <&u2phy0_host>;
823		phy-names = "usb";
824		status = "disabled";
825	};
826
827	usb_host0_ohci: usb@300a0000 {
828		compatible = "generic-ohci";
829		reg = <0x300a0000 0x20000>;
830		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
831		clocks = <&cru HCLK_HOST0>, <&u2phy0>;
832		phys = <&u2phy0_host>;
833		phy-names = "usb";
834		status = "disabled";
835	};
836
837	usb_host1_ehci: usb@300c0000 {
838		compatible = "generic-ehci";
839		reg = <0x300c0000 0x20000>;
840		interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
841		clocks = <&cru HCLK_HOST1>, <&u2phy1>;
842		phys = <&u2phy1_otg>;
843		phy-names = "usb";
844		status = "disabled";
845	};
846
847	usb_host1_ohci: usb@300e0000 {
848		compatible = "generic-ohci";
849		reg = <0x300e0000 0x20000>;
850		interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
851		clocks = <&cru HCLK_HOST1>, <&u2phy1>;
852		phys = <&u2phy1_otg>;
853		phy-names = "usb";
854		status = "disabled";
855	};
856
857	usb_host2_ehci: usb@30100000 {
858		compatible = "generic-ehci";
859		reg = <0x30100000 0x20000>;
860		interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
861		clocks = <&cru HCLK_HOST2>, <&u2phy1>;
862		phys = <&u2phy1_host>;
863		phy-names = "usb";
864		status = "disabled";
865	};
866
867	usb_host2_ohci: usb@30120000 {
868		compatible = "generic-ohci";
869		reg = <0x30120000 0x20000>;
870		interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
871		clocks = <&cru HCLK_HOST2>, <&u2phy1>;
872		phys = <&u2phy1_host>;
873		phy-names = "usb";
874		status = "disabled";
875	};
876
877	gmac: ethernet@30200000 {
878		compatible = "rockchip,rk3228-gmac";
879		reg = <0x30200000 0x10000>;
880		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
881		interrupt-names = "macirq";
882		clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
883			<&cru SCLK_MAC_TX>, <&cru SCLK_MAC_REF>,
884			<&cru SCLK_MAC_REFOUT>, <&cru ACLK_GMAC>,
885			<&cru PCLK_GMAC>;
886		clock-names = "stmmaceth", "mac_clk_rx",
887			"mac_clk_tx", "clk_mac_ref",
888			"clk_mac_refout", "aclk_mac",
889			"pclk_mac";
890		resets = <&cru SRST_GMAC>;
891		reset-names = "stmmaceth";
892		rockchip,grf = <&grf>;
893		status = "disabled";
894	};
895
896	qos_iep: qos@31030080 {
897		compatible = "rockchip,rk3228-qos", "syscon";
898		reg = <0x31030080 0x20>;
899	};
900
901	qos_rga_w: qos@31030100 {
902		compatible = "rockchip,rk3228-qos", "syscon";
903		reg = <0x31030100 0x20>;
904	};
905
906	qos_hdcp: qos@31030180 {
907		compatible = "rockchip,rk3228-qos", "syscon";
908		reg = <0x31030180 0x20>;
909	};
910
911	qos_rga_r: qos@31030200 {
912		compatible = "rockchip,rk3228-qos", "syscon";
913		reg = <0x31030200 0x20>;
914	};
915
916	qos_vpu: qos@31040000 {
917		compatible = "rockchip,rk3228-qos", "syscon";
918		reg = <0x31040000 0x20>;
919	};
920
921	qos_gpu: qos@31050000 {
922		compatible = "rockchip,rk3228-qos", "syscon";
923		reg = <0x31050000 0x20>;
924	};
925
926	qos_vop: qos@31060000 {
927		compatible = "rockchip,rk3228-qos", "syscon";
928		reg = <0x31060000 0x20>;
929	};
930
931	qos_rkvdec_r: qos@31070000 {
932		compatible = "rockchip,rk3228-qos", "syscon";
933		reg = <0x31070000 0x20>;
934	};
935
936	qos_rkvdec_w: qos@31070080 {
937		compatible = "rockchip,rk3228-qos", "syscon";
938		reg = <0x31070080 0x20>;
939	};
940
941	gic: interrupt-controller@32010000 {
942		compatible = "arm,gic-400";
943		interrupt-controller;
944		#interrupt-cells = <3>;
945		#address-cells = <0>;
946
947		reg = <0x32011000 0x1000>,
948		      <0x32012000 0x2000>,
949		      <0x32014000 0x2000>,
950		      <0x32016000 0x2000>;
951		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
952	};
953
954	pinctrl: pinctrl {
955		compatible = "rockchip,rk3228-pinctrl";
956		rockchip,grf = <&grf>;
957		#address-cells = <1>;
958		#size-cells = <1>;
959		ranges;
960
961		gpio0: gpio@11110000 {
962			compatible = "rockchip,gpio-bank";
963			reg = <0x11110000 0x100>;
964			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
965			clocks = <&cru PCLK_GPIO0>;
966
967			gpio-controller;
968			#gpio-cells = <2>;
969
970			interrupt-controller;
971			#interrupt-cells = <2>;
972		};
973
974		gpio1: gpio@11120000 {
975			compatible = "rockchip,gpio-bank";
976			reg = <0x11120000 0x100>;
977			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
978			clocks = <&cru PCLK_GPIO1>;
979
980			gpio-controller;
981			#gpio-cells = <2>;
982
983			interrupt-controller;
984			#interrupt-cells = <2>;
985		};
986
987		gpio2: gpio@11130000 {
988			compatible = "rockchip,gpio-bank";
989			reg = <0x11130000 0x100>;
990			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
991			clocks = <&cru PCLK_GPIO2>;
992
993			gpio-controller;
994			#gpio-cells = <2>;
995
996			interrupt-controller;
997			#interrupt-cells = <2>;
998		};
999
1000		gpio3: gpio@11140000 {
1001			compatible = "rockchip,gpio-bank";
1002			reg = <0x11140000 0x100>;
1003			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
1004			clocks = <&cru PCLK_GPIO3>;
1005
1006			gpio-controller;
1007			#gpio-cells = <2>;
1008
1009			interrupt-controller;
1010			#interrupt-cells = <2>;
1011		};
1012
1013		pcfg_pull_up: pcfg-pull-up {
1014			bias-pull-up;
1015		};
1016
1017		pcfg_pull_down: pcfg-pull-down {
1018			bias-pull-down;
1019		};
1020
1021		pcfg_pull_none: pcfg-pull-none {
1022			bias-disable;
1023		};
1024
1025		pcfg_pull_none_drv_12ma: pcfg-pull-none-drv-12ma {
1026			drive-strength = <12>;
1027		};
1028
1029		sdmmc {
1030			sdmmc_clk: sdmmc-clk {
1031				rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none_drv_12ma>;
1032			};
1033
1034			sdmmc_cmd: sdmmc-cmd {
1035				rockchip,pins = <1 RK_PB7 1 &pcfg_pull_none_drv_12ma>;
1036			};
1037
1038			sdmmc_bus4: sdmmc-bus4 {
1039				rockchip,pins = <1 RK_PC2 1 &pcfg_pull_none_drv_12ma>,
1040						<1 RK_PC3 1 &pcfg_pull_none_drv_12ma>,
1041						<1 RK_PC4 1 &pcfg_pull_none_drv_12ma>,
1042						<1 RK_PC5 1 &pcfg_pull_none_drv_12ma>;
1043			};
1044		};
1045
1046		sdio {
1047			sdio_clk: sdio-clk {
1048				rockchip,pins = <3 RK_PA0 1 &pcfg_pull_none_drv_12ma>;
1049			};
1050
1051			sdio_cmd: sdio-cmd {
1052				rockchip,pins = <3 RK_PA1 1 &pcfg_pull_none_drv_12ma>;
1053			};
1054
1055			sdio_bus4: sdio-bus4 {
1056				rockchip,pins = <3 RK_PA2 1 &pcfg_pull_none_drv_12ma>,
1057						<3 RK_PA3 1 &pcfg_pull_none_drv_12ma>,
1058						<3 RK_PA4 1 &pcfg_pull_none_drv_12ma>,
1059						<3 RK_PA5 1 &pcfg_pull_none_drv_12ma>;
1060			};
1061		};
1062
1063		emmc {
1064			emmc_clk: emmc-clk {
1065				rockchip,pins = <2 RK_PA7 2 &pcfg_pull_none>;
1066			};
1067
1068			emmc_cmd: emmc-cmd {
1069				rockchip,pins = <1 RK_PC6 2 &pcfg_pull_none>;
1070			};
1071
1072			emmc_bus8: emmc-bus8 {
1073				rockchip,pins = <1 RK_PD0 2 &pcfg_pull_none>,
1074						<1 RK_PD1 2 &pcfg_pull_none>,
1075						<1 RK_PD2 2 &pcfg_pull_none>,
1076						<1 RK_PD3 2 &pcfg_pull_none>,
1077						<1 RK_PD4 2 &pcfg_pull_none>,
1078						<1 RK_PD5 2 &pcfg_pull_none>,
1079						<1 RK_PD6 2 &pcfg_pull_none>,
1080						<1 RK_PD7 2 &pcfg_pull_none>;
1081			};
1082		};
1083
1084		gmac {
1085			rgmii_pins: rgmii-pins {
1086				rockchip,pins = <2 RK_PB6 1 &pcfg_pull_none>,
1087						<2 RK_PB4 1 &pcfg_pull_none>,
1088						<2 RK_PD1 1 &pcfg_pull_none>,
1089						<2 RK_PC3 1 &pcfg_pull_none_drv_12ma>,
1090						<2 RK_PC2 1 &pcfg_pull_none_drv_12ma>,
1091						<2 RK_PC6 1 &pcfg_pull_none_drv_12ma>,
1092						<2 RK_PC7 1 &pcfg_pull_none_drv_12ma>,
1093						<2 RK_PB1 1 &pcfg_pull_none_drv_12ma>,
1094						<2 RK_PB5 1 &pcfg_pull_none_drv_12ma>,
1095						<2 RK_PC1 1 &pcfg_pull_none>,
1096						<2 RK_PC0 1 &pcfg_pull_none>,
1097						<2 RK_PC5 2 &pcfg_pull_none>,
1098						<2 RK_PC4 2 &pcfg_pull_none>,
1099						<2 RK_PB3 1 &pcfg_pull_none>,
1100						<2 RK_PB0 1 &pcfg_pull_none>;
1101			};
1102
1103			rmii_pins: rmii-pins {
1104				rockchip,pins = <2 RK_PB6 1 &pcfg_pull_none>,
1105						<2 RK_PB4 1 &pcfg_pull_none>,
1106						<2 RK_PD1 1 &pcfg_pull_none>,
1107						<2 RK_PC3 1 &pcfg_pull_none_drv_12ma>,
1108						<2 RK_PC2 1 &pcfg_pull_none_drv_12ma>,
1109						<2 RK_PB5 1 &pcfg_pull_none_drv_12ma>,
1110						<2 RK_PC1 1 &pcfg_pull_none>,
1111						<2 RK_PC0 1 &pcfg_pull_none>,
1112						<2 RK_PB0 1 &pcfg_pull_none>,
1113						<2 RK_PB7 1 &pcfg_pull_none>;
1114			};
1115
1116			phy_pins: phy-pins {
1117				rockchip,pins = <2 RK_PB6 2 &pcfg_pull_none>,
1118						<2 RK_PB0 2 &pcfg_pull_none>;
1119			};
1120		};
1121
1122		hdmi {
1123			hdmi_hpd: hdmi-hpd {
1124				rockchip,pins = <0 RK_PB7 1 &pcfg_pull_down>;
1125			};
1126
1127			hdmii2c_xfer: hdmii2c-xfer {
1128				rockchip,pins = <0 RK_PA6 2 &pcfg_pull_none>,
1129						<0 RK_PA7 2 &pcfg_pull_none>;
1130			};
1131
1132			hdmi_cec: hdmi-cec {
1133				rockchip,pins = <0 RK_PC4 1 &pcfg_pull_none>;
1134			};
1135		};
1136
1137		i2c0 {
1138			i2c0_xfer: i2c0-xfer {
1139				rockchip,pins = <0 RK_PA0 1 &pcfg_pull_none>,
1140						<0 RK_PA1 1 &pcfg_pull_none>;
1141			};
1142		};
1143
1144		i2c1 {
1145			i2c1_xfer: i2c1-xfer {
1146				rockchip,pins = <0 RK_PA2 1 &pcfg_pull_none>,
1147						<0 RK_PA3 1 &pcfg_pull_none>;
1148			};
1149		};
1150
1151		i2c2 {
1152			i2c2_xfer: i2c2-xfer {
1153				rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>,
1154						<2 RK_PC5 1 &pcfg_pull_none>;
1155			};
1156		};
1157
1158		i2c3 {
1159			i2c3_xfer: i2c3-xfer {
1160				rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>,
1161						<0 RK_PA7 1 &pcfg_pull_none>;
1162			};
1163		};
1164
1165		spi0 {
1166			spi0_clk: spi0-clk {
1167				rockchip,pins = <0 RK_PB1 2 &pcfg_pull_up>;
1168			};
1169			spi0_cs0: spi0-cs0 {
1170				rockchip,pins = <0 RK_PB6 2 &pcfg_pull_up>;
1171			};
1172			spi0_tx: spi0-tx {
1173				rockchip,pins = <0 RK_PB3 2 &pcfg_pull_up>;
1174			};
1175			spi0_rx: spi0-rx {
1176				rockchip,pins = <0 RK_PB5 2 &pcfg_pull_up>;
1177			};
1178			spi0_cs1: spi0-cs1 {
1179				rockchip,pins = <1 RK_PB4 1 &pcfg_pull_up>;
1180			};
1181		};
1182
1183		spi1 {
1184			spi1_clk: spi1-clk {
1185				rockchip,pins = <0 RK_PC7 2 &pcfg_pull_up>;
1186			};
1187			spi1_cs0: spi1-cs0 {
1188				rockchip,pins = <2 RK_PA2 2 &pcfg_pull_up>;
1189			};
1190			spi1_rx: spi1-rx {
1191				rockchip,pins = <2 RK_PA0 2 &pcfg_pull_up>;
1192			};
1193			spi1_tx: spi1-tx {
1194				rockchip,pins = <2 RK_PA1 2 &pcfg_pull_up>;
1195			};
1196			spi1_cs1: spi1-cs1 {
1197				rockchip,pins = <2 RK_PA3 2 &pcfg_pull_up>;
1198			};
1199		};
1200
1201		i2s1 {
1202			i2s1_bus: i2s1-bus {
1203				rockchip,pins = <0 RK_PB0 1 &pcfg_pull_none>,
1204						<0 RK_PB1 1 &pcfg_pull_none>,
1205						<0 RK_PB3 1 &pcfg_pull_none>,
1206						<0 RK_PB4 1 &pcfg_pull_none>,
1207						<0 RK_PB5 1 &pcfg_pull_none>,
1208						<0 RK_PB6 1 &pcfg_pull_none>,
1209						<1 RK_PA2 2 &pcfg_pull_none>,
1210						<1 RK_PA4 2 &pcfg_pull_none>,
1211						<1 RK_PA5 2 &pcfg_pull_none>;
1212			};
1213		};
1214
1215		pwm0 {
1216			pwm0_pin: pwm0-pin {
1217				rockchip,pins = <3 RK_PC5 1 &pcfg_pull_none>;
1218			};
1219		};
1220
1221		pwm1 {
1222			pwm1_pin: pwm1-pin {
1223				rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>;
1224			};
1225		};
1226
1227		pwm2 {
1228			pwm2_pin: pwm2-pin {
1229				rockchip,pins = <1 RK_PB4 2 &pcfg_pull_none>;
1230			};
1231		};
1232
1233		pwm3 {
1234			pwm3_pin: pwm3-pin {
1235				rockchip,pins = <1 RK_PB3 2 &pcfg_pull_none>;
1236			};
1237		};
1238
1239		spdif {
1240			spdif_tx: spdif-tx {
1241				rockchip,pins = <3 RK_PD7 2 &pcfg_pull_none>;
1242			};
1243		};
1244
1245		tsadc {
1246			otp_pin: otp-pin {
1247				rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
1248			};
1249
1250			otp_out: otp-out {
1251				rockchip,pins = <0 RK_PD0 2 &pcfg_pull_none>;
1252			};
1253		};
1254
1255		uart0 {
1256			uart0_xfer: uart0-xfer {
1257				rockchip,pins = <2 RK_PD2 1 &pcfg_pull_none>,
1258						<2 RK_PD3 1 &pcfg_pull_none>;
1259			};
1260
1261			uart0_cts: uart0-cts {
1262				rockchip,pins = <2 RK_PD5 1 &pcfg_pull_none>;
1263			};
1264
1265			uart0_rts: uart0-rts {
1266				rockchip,pins = <0 RK_PC1 1 &pcfg_pull_none>;
1267			};
1268		};
1269
1270		uart1 {
1271			uart1_xfer: uart1-xfer {
1272				rockchip,pins = <1 RK_PB1 1 &pcfg_pull_none>,
1273						<1 RK_PB2 1 &pcfg_pull_none>;
1274			};
1275
1276			uart1_cts: uart1-cts {
1277				rockchip,pins = <1 RK_PB0 1 &pcfg_pull_none>;
1278			};
1279
1280			uart1_rts: uart1-rts {
1281				rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>;
1282			};
1283		};
1284
1285		uart2 {
1286			uart2_xfer: uart2-xfer {
1287				rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
1288						<1 RK_PC3 2 &pcfg_pull_none>;
1289			};
1290
1291			uart21_xfer: uart21-xfer {
1292				rockchip,pins = <1 RK_PB2 2 &pcfg_pull_up>,
1293						<1 RK_PB1 2 &pcfg_pull_none>;
1294			};
1295
1296			uart2_cts: uart2-cts {
1297				rockchip,pins = <0 RK_PD1 1 &pcfg_pull_none>;
1298			};
1299
1300			uart2_rts: uart2-rts {
1301				rockchip,pins = <0 RK_PD0 1 &pcfg_pull_none>;
1302			};
1303		};
1304	};
1305};
1306