• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
4 */
5
6#include <dt-bindings/clock/rk3328-cru.h>
7#include <dt-bindings/gpio/gpio.h>
8#include <dt-bindings/interrupt-controller/arm-gic.h>
9#include <dt-bindings/interrupt-controller/irq.h>
10#include <dt-bindings/pinctrl/rockchip.h>
11#include <dt-bindings/power/rk3328-power.h>
12#include <dt-bindings/soc/rockchip,boot-mode.h>
13#include <dt-bindings/thermal/thermal.h>
14
15/ {
16	compatible = "rockchip,rk3328";
17
18	interrupt-parent = <&gic>;
19	#address-cells = <2>;
20	#size-cells = <2>;
21
22	aliases {
23		serial0 = &uart0;
24		serial1 = &uart1;
25		serial2 = &uart2;
26		i2c0 = &i2c0;
27		i2c1 = &i2c1;
28		i2c2 = &i2c2;
29		i2c3 = &i2c3;
30		ethernet0 = &gmac2io;
31		ethernet1 = &gmac2phy;
32	};
33
34	cpus {
35		#address-cells = <2>;
36		#size-cells = <0>;
37
38		cpu0: cpu@0 {
39			device_type = "cpu";
40			compatible = "arm,cortex-a53";
41			reg = <0x0 0x0>;
42			clocks = <&cru ARMCLK>;
43			#cooling-cells = <2>;
44			cpu-idle-states = <&CPU_SLEEP>;
45			dynamic-power-coefficient = <120>;
46			enable-method = "psci";
47			next-level-cache = <&l2>;
48			operating-points-v2 = <&cpu0_opp_table>;
49		};
50
51		cpu1: cpu@1 {
52			device_type = "cpu";
53			compatible = "arm,cortex-a53";
54			reg = <0x0 0x1>;
55			clocks = <&cru ARMCLK>;
56			#cooling-cells = <2>;
57			cpu-idle-states = <&CPU_SLEEP>;
58			dynamic-power-coefficient = <120>;
59			enable-method = "psci";
60			next-level-cache = <&l2>;
61			operating-points-v2 = <&cpu0_opp_table>;
62		};
63
64		cpu2: cpu@2 {
65			device_type = "cpu";
66			compatible = "arm,cortex-a53";
67			reg = <0x0 0x2>;
68			clocks = <&cru ARMCLK>;
69			#cooling-cells = <2>;
70			cpu-idle-states = <&CPU_SLEEP>;
71			dynamic-power-coefficient = <120>;
72			enable-method = "psci";
73			next-level-cache = <&l2>;
74			operating-points-v2 = <&cpu0_opp_table>;
75		};
76
77		cpu3: cpu@3 {
78			device_type = "cpu";
79			compatible = "arm,cortex-a53";
80			reg = <0x0 0x3>;
81			clocks = <&cru ARMCLK>;
82			#cooling-cells = <2>;
83			cpu-idle-states = <&CPU_SLEEP>;
84			dynamic-power-coefficient = <120>;
85			enable-method = "psci";
86			next-level-cache = <&l2>;
87			operating-points-v2 = <&cpu0_opp_table>;
88		};
89
90		idle-states {
91			entry-method = "psci";
92
93			CPU_SLEEP: cpu-sleep {
94				compatible = "arm,idle-state";
95				local-timer-stop;
96				arm,psci-suspend-param = <0x0010000>;
97				entry-latency-us = <120>;
98				exit-latency-us = <250>;
99				min-residency-us = <900>;
100			};
101		};
102
103		l2: l2-cache0 {
104			compatible = "cache";
105		};
106	};
107
108	cpu0_opp_table: opp_table0 {
109		compatible = "operating-points-v2";
110		opp-shared;
111
112		opp-408000000 {
113			opp-hz = /bits/ 64 <408000000>;
114			opp-microvolt = <950000>;
115			clock-latency-ns = <40000>;
116			opp-suspend;
117		};
118		opp-600000000 {
119			opp-hz = /bits/ 64 <600000000>;
120			opp-microvolt = <950000>;
121			clock-latency-ns = <40000>;
122		};
123		opp-816000000 {
124			opp-hz = /bits/ 64 <816000000>;
125			opp-microvolt = <1000000>;
126			clock-latency-ns = <40000>;
127		};
128		opp-1008000000 {
129			opp-hz = /bits/ 64 <1008000000>;
130			opp-microvolt = <1100000>;
131			clock-latency-ns = <40000>;
132		};
133		opp-1200000000 {
134			opp-hz = /bits/ 64 <1200000000>;
135			opp-microvolt = <1225000>;
136			clock-latency-ns = <40000>;
137		};
138		opp-1296000000 {
139			opp-hz = /bits/ 64 <1296000000>;
140			opp-microvolt = <1300000>;
141			clock-latency-ns = <40000>;
142		};
143	};
144
145	amba: bus {
146		compatible = "simple-bus";
147		#address-cells = <2>;
148		#size-cells = <2>;
149		ranges;
150
151		dmac: dmac@ff1f0000 {
152			compatible = "arm,pl330", "arm,primecell";
153			reg = <0x0 0xff1f0000 0x0 0x4000>;
154			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
155				     <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
156			arm,pl330-periph-burst;
157			clocks = <&cru ACLK_DMAC>;
158			clock-names = "apb_pclk";
159			#dma-cells = <1>;
160		};
161	};
162
163	analog_sound: analog-sound {
164		compatible = "simple-audio-card";
165		simple-audio-card,format = "i2s";
166		simple-audio-card,mclk-fs = <256>;
167		simple-audio-card,name = "Analog";
168		status = "disabled";
169
170		simple-audio-card,cpu {
171			sound-dai = <&i2s1>;
172		};
173
174		simple-audio-card,codec {
175			sound-dai = <&codec>;
176		};
177	};
178
179	arm-pmu {
180		compatible = "arm,cortex-a53-pmu";
181		interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
182			     <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
183			     <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
184			     <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
185		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
186	};
187
188	display_subsystem: display-subsystem {
189		compatible = "rockchip,display-subsystem";
190		ports = <&vop_out>;
191	};
192
193	hdmi_sound: hdmi-sound {
194		compatible = "simple-audio-card";
195		simple-audio-card,format = "i2s";
196		simple-audio-card,mclk-fs = <128>;
197		simple-audio-card,name = "HDMI";
198		status = "disabled";
199
200		simple-audio-card,cpu {
201			sound-dai = <&i2s0>;
202		};
203
204		simple-audio-card,codec {
205			sound-dai = <&hdmi>;
206		};
207	};
208
209	psci {
210		compatible = "arm,psci-1.0", "arm,psci-0.2";
211		method = "smc";
212	};
213
214	timer {
215		compatible = "arm,armv8-timer";
216		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
217			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
218			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
219			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
220	};
221
222	xin24m: xin24m {
223		compatible = "fixed-clock";
224		#clock-cells = <0>;
225		clock-frequency = <24000000>;
226		clock-output-names = "xin24m";
227	};
228
229	i2s0: i2s@ff000000 {
230		compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
231		reg = <0x0 0xff000000 0x0 0x1000>;
232		interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
233		clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
234		clock-names = "i2s_clk", "i2s_hclk";
235		dmas = <&dmac 11>, <&dmac 12>;
236		dma-names = "tx", "rx";
237		#sound-dai-cells = <0>;
238		status = "disabled";
239	};
240
241	i2s1: i2s@ff010000 {
242		compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
243		reg = <0x0 0xff010000 0x0 0x1000>;
244		interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
245		clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
246		clock-names = "i2s_clk", "i2s_hclk";
247		dmas = <&dmac 14>, <&dmac 15>;
248		dma-names = "tx", "rx";
249		#sound-dai-cells = <0>;
250		status = "disabled";
251	};
252
253	i2s2: i2s@ff020000 {
254		compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
255		reg = <0x0 0xff020000 0x0 0x1000>;
256		interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
257		clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
258		clock-names = "i2s_clk", "i2s_hclk";
259		dmas = <&dmac 0>, <&dmac 1>;
260		dma-names = "tx", "rx";
261		#sound-dai-cells = <0>;
262		status = "disabled";
263	};
264
265	spdif: spdif@ff030000 {
266		compatible = "rockchip,rk3328-spdif";
267		reg = <0x0 0xff030000 0x0 0x1000>;
268		interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
269		clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
270		clock-names = "mclk", "hclk";
271		dmas = <&dmac 10>;
272		dma-names = "tx";
273		pinctrl-names = "default";
274		pinctrl-0 = <&spdifm2_tx>;
275		#sound-dai-cells = <0>;
276		status = "disabled";
277	};
278
279	pdm: pdm@ff040000 {
280		compatible = "rockchip,pdm";
281		reg = <0x0 0xff040000 0x0 0x1000>;
282		clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
283		clock-names = "pdm_clk", "pdm_hclk";
284		dmas = <&dmac 16>;
285		dma-names = "rx";
286		pinctrl-names = "default", "sleep";
287		pinctrl-0 = <&pdmm0_clk
288			     &pdmm0_sdi0
289			     &pdmm0_sdi1
290			     &pdmm0_sdi2
291			     &pdmm0_sdi3>;
292		pinctrl-1 = <&pdmm0_clk_sleep
293			     &pdmm0_sdi0_sleep
294			     &pdmm0_sdi1_sleep
295			     &pdmm0_sdi2_sleep
296			     &pdmm0_sdi3_sleep>;
297		status = "disabled";
298	};
299
300	grf: syscon@ff100000 {
301		compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
302		reg = <0x0 0xff100000 0x0 0x1000>;
303
304		io_domains: io-domains {
305			compatible = "rockchip,rk3328-io-voltage-domain";
306			status = "disabled";
307		};
308
309		grf_gpio: grf-gpio {
310			compatible = "rockchip,rk3328-grf-gpio";
311			gpio-controller;
312			#gpio-cells = <2>;
313		};
314
315		power: power-controller {
316			compatible = "rockchip,rk3328-power-controller";
317			#power-domain-cells = <1>;
318			#address-cells = <1>;
319			#size-cells = <0>;
320
321			power-domain@RK3328_PD_HEVC {
322				reg = <RK3328_PD_HEVC>;
323			};
324			power-domain@RK3328_PD_VIDEO {
325				reg = <RK3328_PD_VIDEO>;
326			};
327			power-domain@RK3328_PD_VPU {
328				reg = <RK3328_PD_VPU>;
329				clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
330			};
331		};
332
333		reboot-mode {
334			compatible = "syscon-reboot-mode";
335			offset = <0x5c8>;
336			mode-normal = <BOOT_NORMAL>;
337			mode-recovery = <BOOT_RECOVERY>;
338			mode-bootloader = <BOOT_FASTBOOT>;
339			mode-loader = <BOOT_BL_DOWNLOAD>;
340		};
341	};
342
343	uart0: serial@ff110000 {
344		compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
345		reg = <0x0 0xff110000 0x0 0x100>;
346		interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
347		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
348		clock-names = "baudclk", "apb_pclk";
349		dmas = <&dmac 2>, <&dmac 3>;
350		dma-names = "tx", "rx";
351		pinctrl-names = "default";
352		pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
353		reg-io-width = <4>;
354		reg-shift = <2>;
355		status = "disabled";
356	};
357
358	uart1: serial@ff120000 {
359		compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
360		reg = <0x0 0xff120000 0x0 0x100>;
361		interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
362		clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
363		clock-names = "baudclk", "apb_pclk";
364		dmas = <&dmac 4>, <&dmac 5>;
365		dma-names = "tx", "rx";
366		pinctrl-names = "default";
367		pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
368		reg-io-width = <4>;
369		reg-shift = <2>;
370		status = "disabled";
371	};
372
373	uart2: serial@ff130000 {
374		compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
375		reg = <0x0 0xff130000 0x0 0x100>;
376		interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
377		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
378		clock-names = "baudclk", "apb_pclk";
379		dmas = <&dmac 6>, <&dmac 7>;
380		dma-names = "tx", "rx";
381		pinctrl-names = "default";
382		pinctrl-0 = <&uart2m1_xfer>;
383		reg-io-width = <4>;
384		reg-shift = <2>;
385		status = "disabled";
386	};
387
388	i2c0: i2c@ff150000 {
389		compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
390		reg = <0x0 0xff150000 0x0 0x1000>;
391		interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
392		#address-cells = <1>;
393		#size-cells = <0>;
394		clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>;
395		clock-names = "i2c", "pclk";
396		pinctrl-names = "default";
397		pinctrl-0 = <&i2c0_xfer>;
398		status = "disabled";
399	};
400
401	i2c1: i2c@ff160000 {
402		compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
403		reg = <0x0 0xff160000 0x0 0x1000>;
404		interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
405		#address-cells = <1>;
406		#size-cells = <0>;
407		clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
408		clock-names = "i2c", "pclk";
409		pinctrl-names = "default";
410		pinctrl-0 = <&i2c1_xfer>;
411		status = "disabled";
412	};
413
414	i2c2: i2c@ff170000 {
415		compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
416		reg = <0x0 0xff170000 0x0 0x1000>;
417		interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
418		#address-cells = <1>;
419		#size-cells = <0>;
420		clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
421		clock-names = "i2c", "pclk";
422		pinctrl-names = "default";
423		pinctrl-0 = <&i2c2_xfer>;
424		status = "disabled";
425	};
426
427	i2c3: i2c@ff180000 {
428		compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
429		reg = <0x0 0xff180000 0x0 0x1000>;
430		interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
431		#address-cells = <1>;
432		#size-cells = <0>;
433		clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
434		clock-names = "i2c", "pclk";
435		pinctrl-names = "default";
436		pinctrl-0 = <&i2c3_xfer>;
437		status = "disabled";
438	};
439
440	spi0: spi@ff190000 {
441		compatible = "rockchip,rk3328-spi", "rockchip,rk3066-spi";
442		reg = <0x0 0xff190000 0x0 0x1000>;
443		interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
444		#address-cells = <1>;
445		#size-cells = <0>;
446		clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
447		clock-names = "spiclk", "apb_pclk";
448		dmas = <&dmac 8>, <&dmac 9>;
449		dma-names = "tx", "rx";
450		pinctrl-names = "default";
451		pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>;
452		status = "disabled";
453	};
454
455	wdt: watchdog@ff1a0000 {
456		compatible = "snps,dw-wdt";
457		reg = <0x0 0xff1a0000 0x0 0x100>;
458		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
459		clocks = <&cru PCLK_WDT>;
460	};
461
462	pwm0: pwm@ff1b0000 {
463		compatible = "rockchip,rk3328-pwm";
464		reg = <0x0 0xff1b0000 0x0 0x10>;
465		clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
466		clock-names = "pwm", "pclk";
467		pinctrl-names = "default";
468		pinctrl-0 = <&pwm0_pin>;
469		#pwm-cells = <3>;
470		status = "disabled";
471	};
472
473	pwm1: pwm@ff1b0010 {
474		compatible = "rockchip,rk3328-pwm";
475		reg = <0x0 0xff1b0010 0x0 0x10>;
476		clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
477		clock-names = "pwm", "pclk";
478		pinctrl-names = "default";
479		pinctrl-0 = <&pwm1_pin>;
480		#pwm-cells = <3>;
481		status = "disabled";
482	};
483
484	pwm2: pwm@ff1b0020 {
485		compatible = "rockchip,rk3328-pwm";
486		reg = <0x0 0xff1b0020 0x0 0x10>;
487		clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
488		clock-names = "pwm", "pclk";
489		pinctrl-names = "default";
490		pinctrl-0 = <&pwm2_pin>;
491		#pwm-cells = <3>;
492		status = "disabled";
493	};
494
495	pwm3: pwm@ff1b0030 {
496		compatible = "rockchip,rk3328-pwm";
497		reg = <0x0 0xff1b0030 0x0 0x10>;
498		interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
499		clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
500		clock-names = "pwm", "pclk";
501		pinctrl-names = "default";
502		pinctrl-0 = <&pwmir_pin>;
503		#pwm-cells = <3>;
504		status = "disabled";
505	};
506
507	thermal-zones {
508		soc_thermal: soc-thermal {
509			polling-delay-passive = <20>;
510			polling-delay = <1000>;
511			sustainable-power = <1000>;
512
513			thermal-sensors = <&tsadc 0>;
514
515			trips {
516				threshold: trip-point0 {
517					temperature = <70000>;
518					hysteresis = <2000>;
519					type = "passive";
520				};
521				target: trip-point1 {
522					temperature = <85000>;
523					hysteresis = <2000>;
524					type = "passive";
525				};
526				soc_crit: soc-crit {
527					temperature = <95000>;
528					hysteresis = <2000>;
529					type = "critical";
530				};
531			};
532
533			cooling-maps {
534				map0 {
535					trip = <&target>;
536					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
537							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
538							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
539							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
540					contribution = <4096>;
541				};
542			};
543		};
544
545	};
546
547	tsadc: tsadc@ff250000 {
548		compatible = "rockchip,rk3328-tsadc";
549		reg = <0x0 0xff250000 0x0 0x100>;
550		interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
551		assigned-clocks = <&cru SCLK_TSADC>;
552		assigned-clock-rates = <50000>;
553		clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
554		clock-names = "tsadc", "apb_pclk";
555		pinctrl-names = "init", "default", "sleep";
556		pinctrl-0 = <&otp_pin>;
557		pinctrl-1 = <&otp_out>;
558		pinctrl-2 = <&otp_pin>;
559		resets = <&cru SRST_TSADC>;
560		reset-names = "tsadc-apb";
561		rockchip,grf = <&grf>;
562		rockchip,hw-tshut-temp = <100000>;
563		#thermal-sensor-cells = <1>;
564		status = "disabled";
565	};
566
567	efuse: efuse@ff260000 {
568		compatible = "rockchip,rk3328-efuse";
569		reg = <0x0 0xff260000 0x0 0x50>;
570		#address-cells = <1>;
571		#size-cells = <1>;
572		clocks = <&cru SCLK_EFUSE>;
573		clock-names = "pclk_efuse";
574		rockchip,efuse-size = <0x20>;
575
576		/* Data cells */
577		efuse_id: id@7 {
578			reg = <0x07 0x10>;
579		};
580		cpu_leakage: cpu-leakage@17 {
581			reg = <0x17 0x1>;
582		};
583		logic_leakage: logic-leakage@19 {
584			reg = <0x19 0x1>;
585		};
586		efuse_cpu_version: cpu-version@1a {
587			reg = <0x1a 0x1>;
588			bits = <3 3>;
589		};
590	};
591
592	saradc: adc@ff280000 {
593		compatible = "rockchip,rk3328-saradc", "rockchip,rk3399-saradc";
594		reg = <0x0 0xff280000 0x0 0x100>;
595		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
596		#io-channel-cells = <1>;
597		clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
598		clock-names = "saradc", "apb_pclk";
599		resets = <&cru SRST_SARADC_P>;
600		reset-names = "saradc-apb";
601		status = "disabled";
602	};
603
604	gpu: gpu@ff300000 {
605		compatible = "rockchip,rk3328-mali", "arm,mali-450";
606		reg = <0x0 0xff300000 0x0 0x30000>;
607		interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
608			     <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
609			     <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
610			     <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
611			     <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
612			     <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
613			     <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
614		interrupt-names = "gp",
615				  "gpmmu",
616				  "pp",
617				  "pp0",
618				  "ppmmu0",
619				  "pp1",
620				  "ppmmu1";
621		clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
622		clock-names = "bus", "core";
623		resets = <&cru SRST_GPU_A>;
624	};
625
626	h265e_mmu: iommu@ff330200 {
627		compatible = "rockchip,iommu";
628		reg = <0x0 0xff330200 0 0x100>;
629		interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
630		interrupt-names = "h265e_mmu";
631		clocks = <&cru ACLK_H265>, <&cru PCLK_H265>;
632		clock-names = "aclk", "iface";
633		#iommu-cells = <0>;
634		status = "disabled";
635	};
636
637	vepu_mmu: iommu@ff340800 {
638		compatible = "rockchip,iommu";
639		reg = <0x0 0xff340800 0x0 0x40>;
640		interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
641		interrupt-names = "vepu_mmu";
642		clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
643		clock-names = "aclk", "iface";
644		#iommu-cells = <0>;
645		status = "disabled";
646	};
647
648	vpu: video-codec@ff350000 {
649		compatible = "rockchip,rk3328-vpu";
650		reg = <0x0 0xff350000 0x0 0x800>;
651		interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
652		interrupt-names = "vdpu";
653		clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
654		clock-names = "aclk", "hclk";
655		iommus = <&vpu_mmu>;
656		power-domains = <&power RK3328_PD_VPU>;
657	};
658
659	vpu_mmu: iommu@ff350800 {
660		compatible = "rockchip,iommu";
661		reg = <0x0 0xff350800 0x0 0x40>;
662		interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
663		interrupt-names = "vpu_mmu";
664		clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
665		clock-names = "aclk", "iface";
666		#iommu-cells = <0>;
667		power-domains = <&power RK3328_PD_VPU>;
668	};
669
670	rkvdec_mmu: iommu@ff360480 {
671		compatible = "rockchip,iommu";
672		reg = <0x0 0xff360480 0x0 0x40>, <0x0 0xff3604c0 0x0 0x40>;
673		interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
674		interrupt-names = "rkvdec_mmu";
675		clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>;
676		clock-names = "aclk", "iface";
677		#iommu-cells = <0>;
678		status = "disabled";
679	};
680
681	vop: vop@ff370000 {
682		compatible = "rockchip,rk3328-vop";
683		reg = <0x0 0xff370000 0x0 0x3efc>;
684		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
685		clocks = <&cru ACLK_VOP>, <&cru DCLK_LCDC>, <&cru HCLK_VOP>;
686		clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
687		resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
688		reset-names = "axi", "ahb", "dclk";
689		iommus = <&vop_mmu>;
690		status = "disabled";
691
692		vop_out: port {
693			#address-cells = <1>;
694			#size-cells = <0>;
695
696			vop_out_hdmi: endpoint@0 {
697				reg = <0>;
698				remote-endpoint = <&hdmi_in_vop>;
699			};
700		};
701	};
702
703	vop_mmu: iommu@ff373f00 {
704		compatible = "rockchip,iommu";
705		reg = <0x0 0xff373f00 0x0 0x100>;
706		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
707		interrupt-names = "vop_mmu";
708		clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
709		clock-names = "aclk", "iface";
710		#iommu-cells = <0>;
711		status = "disabled";
712	};
713
714	hdmi: hdmi@ff3c0000 {
715		compatible = "rockchip,rk3328-dw-hdmi";
716		reg = <0x0 0xff3c0000 0x0 0x20000>;
717		reg-io-width = <4>;
718		interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
719			     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
720		clocks = <&cru PCLK_HDMI>,
721			 <&cru SCLK_HDMI_SFC>,
722			 <&cru SCLK_RTC32K>;
723		clock-names = "iahb",
724			      "isfr",
725			      "cec";
726		phys = <&hdmiphy>;
727		phy-names = "hdmi";
728		pinctrl-names = "default";
729		pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>;
730		rockchip,grf = <&grf>;
731		#sound-dai-cells = <0>;
732		status = "disabled";
733
734		ports {
735			hdmi_in: port {
736				hdmi_in_vop: endpoint {
737					remote-endpoint = <&vop_out_hdmi>;
738				};
739			};
740		};
741	};
742
743	codec: codec@ff410000 {
744		compatible = "rockchip,rk3328-codec";
745		reg = <0x0 0xff410000 0x0 0x1000>;
746		clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
747		clock-names = "pclk", "mclk";
748		rockchip,grf = <&grf>;
749		#sound-dai-cells = <0>;
750		status = "disabled";
751	};
752
753	hdmiphy: phy@ff430000 {
754		compatible = "rockchip,rk3328-hdmi-phy";
755		reg = <0x0 0xff430000 0x0 0x10000>;
756		interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
757		clocks = <&cru PCLK_HDMIPHY>, <&xin24m>, <&cru DCLK_HDMIPHY>;
758		clock-names = "sysclk", "refoclk", "refpclk";
759		clock-output-names = "hdmi_phy";
760		#clock-cells = <0>;
761		nvmem-cells = <&efuse_cpu_version>;
762		nvmem-cell-names = "cpu-version";
763		#phy-cells = <0>;
764		status = "disabled";
765	};
766
767	cru: clock-controller@ff440000 {
768		compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon";
769		reg = <0x0 0xff440000 0x0 0x1000>;
770		rockchip,grf = <&grf>;
771		#clock-cells = <1>;
772		#reset-cells = <1>;
773		assigned-clocks =
774			/*
775			 * CPLL should run at 1200, but that is to high for
776			 * the initial dividers of most of its children.
777			 * We need set cpll child clk div first,
778			 * and then set the cpll frequency.
779			 */
780			<&cru DCLK_LCDC>, <&cru SCLK_PDM>,
781			<&cru SCLK_RTC32K>, <&cru SCLK_UART0>,
782			<&cru SCLK_UART1>, <&cru SCLK_UART2>,
783			<&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
784			<&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>,
785			<&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
786			<&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
787			<&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
788			<&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
789			<&cru SCLK_SDIO>, <&cru SCLK_TSP>,
790			<&cru SCLK_WIFI>, <&cru ARMCLK>,
791			<&cru PLL_GPLL>, <&cru PLL_CPLL>,
792			<&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>,
793			<&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
794			<&cru HCLK_PERI>, <&cru PCLK_PERI>,
795			<&cru SCLK_RTC32K>;
796		assigned-clock-parents =
797			<&cru HDMIPHY>, <&cru PLL_APLL>,
798			<&cru PLL_GPLL>, <&xin24m>,
799			<&xin24m>, <&xin24m>;
800		assigned-clock-rates =
801			<0>, <61440000>,
802			<0>, <24000000>,
803			<24000000>, <24000000>,
804			<15000000>, <15000000>,
805			<100000000>, <100000000>,
806			<100000000>, <100000000>,
807			<50000000>, <100000000>,
808			<100000000>, <100000000>,
809			<50000000>, <50000000>,
810			<50000000>, <50000000>,
811			<24000000>, <600000000>,
812			<491520000>, <1200000000>,
813			<150000000>, <75000000>,
814			<75000000>, <150000000>,
815			<75000000>, <75000000>,
816			<32768>;
817	};
818
819	usb2phy_grf: syscon@ff450000 {
820		compatible = "rockchip,rk3328-usb2phy-grf", "syscon",
821			     "simple-mfd";
822		reg = <0x0 0xff450000 0x0 0x10000>;
823		#address-cells = <1>;
824		#size-cells = <1>;
825
826		u2phy: usb2-phy@100 {
827			compatible = "rockchip,rk3328-usb2phy";
828			reg = <0x100 0x10>;
829			clocks = <&xin24m>;
830			clock-names = "phyclk";
831			clock-output-names = "usb480m_phy";
832			#clock-cells = <0>;
833			assigned-clocks = <&cru USB480M>;
834			assigned-clock-parents = <&u2phy>;
835			status = "disabled";
836
837			u2phy_otg: otg-port {
838				#phy-cells = <0>;
839				interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
840					     <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
841					     <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
842				interrupt-names = "otg-bvalid", "otg-id",
843						  "linestate";
844				status = "disabled";
845			};
846
847			u2phy_host: host-port {
848				#phy-cells = <0>;
849				interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
850				interrupt-names = "linestate";
851				status = "disabled";
852			};
853		};
854	};
855
856	sdmmc: mmc@ff500000 {
857		compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
858		reg = <0x0 0xff500000 0x0 0x4000>;
859		interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
860		clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
861			 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
862		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
863		fifo-depth = <0x100>;
864		max-frequency = <150000000>;
865		status = "disabled";
866	};
867
868	sdio: mmc@ff510000 {
869		compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
870		reg = <0x0 0xff510000 0x0 0x4000>;
871		interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
872		clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
873			 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
874		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
875		fifo-depth = <0x100>;
876		max-frequency = <150000000>;
877		status = "disabled";
878	};
879
880	emmc: mmc@ff520000 {
881		compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
882		reg = <0x0 0xff520000 0x0 0x4000>;
883		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
884		clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
885			 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
886		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
887		fifo-depth = <0x100>;
888		max-frequency = <150000000>;
889		status = "disabled";
890	};
891
892	gmac2io: ethernet@ff540000 {
893		compatible = "rockchip,rk3328-gmac";
894		reg = <0x0 0xff540000 0x0 0x10000>;
895		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
896		interrupt-names = "macirq";
897		clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_RX>,
898			 <&cru SCLK_MAC2IO_TX>, <&cru SCLK_MAC2IO_REF>,
899			 <&cru SCLK_MAC2IO_REFOUT>, <&cru ACLK_MAC2IO>,
900			 <&cru PCLK_MAC2IO>;
901		clock-names = "stmmaceth", "mac_clk_rx",
902			      "mac_clk_tx", "clk_mac_ref",
903			      "clk_mac_refout", "aclk_mac",
904			      "pclk_mac";
905		resets = <&cru SRST_GMAC2IO_A>;
906		reset-names = "stmmaceth";
907		rockchip,grf = <&grf>;
908		snps,txpbl = <0x4>;
909		status = "disabled";
910	};
911
912	gmac2phy: ethernet@ff550000 {
913		compatible = "rockchip,rk3328-gmac";
914		reg = <0x0 0xff550000 0x0 0x10000>;
915		rockchip,grf = <&grf>;
916		interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
917		interrupt-names = "macirq";
918		clocks = <&cru SCLK_MAC2PHY_SRC>, <&cru SCLK_MAC2PHY_RXTX>,
919			 <&cru SCLK_MAC2PHY_RXTX>, <&cru SCLK_MAC2PHY_REF>,
920			 <&cru ACLK_MAC2PHY>, <&cru PCLK_MAC2PHY>,
921			 <&cru SCLK_MAC2PHY_OUT>;
922		clock-names = "stmmaceth", "mac_clk_rx",
923			      "mac_clk_tx", "clk_mac_ref",
924			      "aclk_mac", "pclk_mac",
925			      "clk_macphy";
926		resets = <&cru SRST_GMAC2PHY_A>, <&cru SRST_MACPHY>;
927		reset-names = "stmmaceth", "mac-phy";
928		phy-mode = "rmii";
929		phy-handle = <&phy>;
930		snps,txpbl = <0x4>;
931		clock_in_out = "output";
932		status = "disabled";
933
934		mdio {
935			compatible = "snps,dwmac-mdio";
936			#address-cells = <1>;
937			#size-cells = <0>;
938
939			phy: ethernet-phy@0 {
940				compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
941				reg = <0>;
942				clocks = <&cru SCLK_MAC2PHY_OUT>;
943				resets = <&cru SRST_MACPHY>;
944				pinctrl-names = "default";
945				pinctrl-0 = <&fephyled_rxm1 &fephyled_linkm1>;
946				phy-is-integrated;
947			};
948		};
949	};
950
951	usb20_otg: usb@ff580000 {
952		compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
953			     "snps,dwc2";
954		reg = <0x0 0xff580000 0x0 0x40000>;
955		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
956		clocks = <&cru HCLK_OTG>;
957		clock-names = "otg";
958		dr_mode = "otg";
959		g-np-tx-fifo-size = <16>;
960		g-rx-fifo-size = <280>;
961		g-tx-fifo-size = <256 128 128 64 32 16>;
962		phys = <&u2phy_otg>;
963		phy-names = "usb2-phy";
964		status = "disabled";
965	};
966
967	usb_host0_ehci: usb@ff5c0000 {
968		compatible = "generic-ehci";
969		reg = <0x0 0xff5c0000 0x0 0x10000>;
970		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
971		clocks = <&cru HCLK_HOST0>, <&u2phy>;
972		phys = <&u2phy_host>;
973		phy-names = "usb";
974		status = "disabled";
975	};
976
977	usb_host0_ohci: usb@ff5d0000 {
978		compatible = "generic-ohci";
979		reg = <0x0 0xff5d0000 0x0 0x10000>;
980		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
981		clocks = <&cru HCLK_HOST0>, <&u2phy>;
982		phys = <&u2phy_host>;
983		phy-names = "usb";
984		status = "disabled";
985	};
986
987	usbdrd3: usb@ff600000 {
988		compatible = "rockchip,rk3328-dwc3", "snps,dwc3";
989		reg = <0x0 0xff600000 0x0 0x100000>;
990		interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
991		clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>,
992			 <&cru ACLK_USB3OTG>;
993		clock-names = "ref_clk", "suspend_clk",
994			      "bus_clk";
995		dr_mode = "otg";
996		phy_type = "utmi_wide";
997		snps,dis-del-phy-power-chg-quirk;
998		snps,dis_enblslpm_quirk;
999		snps,dis-tx-ipgap-linecheck-quirk;
1000		snps,dis-u2-freeclk-exists-quirk;
1001		snps,dis_u2_susphy_quirk;
1002		snps,dis_u3_susphy_quirk;
1003		status = "disabled";
1004	};
1005
1006	gic: interrupt-controller@ff811000 {
1007		compatible = "arm,gic-400";
1008		#interrupt-cells = <3>;
1009		#address-cells = <0>;
1010		interrupt-controller;
1011		reg = <0x0 0xff811000 0 0x1000>,
1012		      <0x0 0xff812000 0 0x2000>,
1013		      <0x0 0xff814000 0 0x2000>,
1014		      <0x0 0xff816000 0 0x2000>;
1015		interrupts = <GIC_PPI 9
1016		      (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1017	};
1018
1019	pinctrl: pinctrl {
1020		compatible = "rockchip,rk3328-pinctrl";
1021		rockchip,grf = <&grf>;
1022		#address-cells = <2>;
1023		#size-cells = <2>;
1024		ranges;
1025
1026		gpio0: gpio0@ff210000 {
1027			compatible = "rockchip,gpio-bank";
1028			reg = <0x0 0xff210000 0x0 0x100>;
1029			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
1030			clocks = <&cru PCLK_GPIO0>;
1031
1032			gpio-controller;
1033			#gpio-cells = <2>;
1034
1035			interrupt-controller;
1036			#interrupt-cells = <2>;
1037		};
1038
1039		gpio1: gpio1@ff220000 {
1040			compatible = "rockchip,gpio-bank";
1041			reg = <0x0 0xff220000 0x0 0x100>;
1042			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
1043			clocks = <&cru PCLK_GPIO1>;
1044
1045			gpio-controller;
1046			#gpio-cells = <2>;
1047
1048			interrupt-controller;
1049			#interrupt-cells = <2>;
1050		};
1051
1052		gpio2: gpio2@ff230000 {
1053			compatible = "rockchip,gpio-bank";
1054			reg = <0x0 0xff230000 0x0 0x100>;
1055			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
1056			clocks = <&cru PCLK_GPIO2>;
1057
1058			gpio-controller;
1059			#gpio-cells = <2>;
1060
1061			interrupt-controller;
1062			#interrupt-cells = <2>;
1063		};
1064
1065		gpio3: gpio3@ff240000 {
1066			compatible = "rockchip,gpio-bank";
1067			reg = <0x0 0xff240000 0x0 0x100>;
1068			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
1069			clocks = <&cru PCLK_GPIO3>;
1070
1071			gpio-controller;
1072			#gpio-cells = <2>;
1073
1074			interrupt-controller;
1075			#interrupt-cells = <2>;
1076		};
1077
1078		pcfg_pull_up: pcfg-pull-up {
1079			bias-pull-up;
1080		};
1081
1082		pcfg_pull_down: pcfg-pull-down {
1083			bias-pull-down;
1084		};
1085
1086		pcfg_pull_none: pcfg-pull-none {
1087			bias-disable;
1088		};
1089
1090		pcfg_pull_none_2ma: pcfg-pull-none-2ma {
1091			bias-disable;
1092			drive-strength = <2>;
1093		};
1094
1095		pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1096			bias-pull-up;
1097			drive-strength = <2>;
1098		};
1099
1100		pcfg_pull_up_4ma: pcfg-pull-up-4ma {
1101			bias-pull-up;
1102			drive-strength = <4>;
1103		};
1104
1105		pcfg_pull_none_4ma: pcfg-pull-none-4ma {
1106			bias-disable;
1107			drive-strength = <4>;
1108		};
1109
1110		pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1111			bias-pull-down;
1112			drive-strength = <4>;
1113		};
1114
1115		pcfg_pull_none_8ma: pcfg-pull-none-8ma {
1116			bias-disable;
1117			drive-strength = <8>;
1118		};
1119
1120		pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1121			bias-pull-up;
1122			drive-strength = <8>;
1123		};
1124
1125		pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1126			bias-disable;
1127			drive-strength = <12>;
1128		};
1129
1130		pcfg_pull_up_12ma: pcfg-pull-up-12ma {
1131			bias-pull-up;
1132			drive-strength = <12>;
1133		};
1134
1135		pcfg_output_high: pcfg-output-high {
1136			output-high;
1137		};
1138
1139		pcfg_output_low: pcfg-output-low {
1140			output-low;
1141		};
1142
1143		pcfg_input_high: pcfg-input-high {
1144			bias-pull-up;
1145			input-enable;
1146		};
1147
1148		pcfg_input: pcfg-input {
1149			input-enable;
1150		};
1151
1152		i2c0 {
1153			i2c0_xfer: i2c0-xfer {
1154				rockchip,pins = <2 RK_PD0 1 &pcfg_pull_none>,
1155						<2 RK_PD1 1 &pcfg_pull_none>;
1156			};
1157		};
1158
1159		i2c1 {
1160			i2c1_xfer: i2c1-xfer {
1161				rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>,
1162						<2 RK_PA5 2 &pcfg_pull_none>;
1163			};
1164		};
1165
1166		i2c2 {
1167			i2c2_xfer: i2c2-xfer {
1168				rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>,
1169						<2 RK_PB6 1 &pcfg_pull_none>;
1170			};
1171		};
1172
1173		i2c3 {
1174			i2c3_xfer: i2c3-xfer {
1175				rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>,
1176						<0 RK_PA6 2 &pcfg_pull_none>;
1177			};
1178			i2c3_pins: i2c3-pins {
1179				rockchip,pins =
1180					<0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
1181					<0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
1182			};
1183		};
1184
1185		hdmi_i2c {
1186			hdmii2c_xfer: hdmii2c-xfer {
1187				rockchip,pins = <0 RK_PA5 1 &pcfg_pull_none>,
1188						<0 RK_PA6 1 &pcfg_pull_none>;
1189			};
1190		};
1191
1192		pdm-0 {
1193			pdmm0_clk: pdmm0-clk {
1194				rockchip,pins = <2 RK_PC2 2 &pcfg_pull_none>;
1195			};
1196
1197			pdmm0_fsync: pdmm0-fsync {
1198				rockchip,pins = <2 RK_PC7 2 &pcfg_pull_none>;
1199			};
1200
1201			pdmm0_sdi0: pdmm0-sdi0 {
1202				rockchip,pins = <2 RK_PC3 2 &pcfg_pull_none>;
1203			};
1204
1205			pdmm0_sdi1: pdmm0-sdi1 {
1206				rockchip,pins = <2 RK_PC4 2 &pcfg_pull_none>;
1207			};
1208
1209			pdmm0_sdi2: pdmm0-sdi2 {
1210				rockchip,pins = <2 RK_PC5 2 &pcfg_pull_none>;
1211			};
1212
1213			pdmm0_sdi3: pdmm0-sdi3 {
1214				rockchip,pins = <2 RK_PC6 2 &pcfg_pull_none>;
1215			};
1216
1217			pdmm0_clk_sleep: pdmm0-clk-sleep {
1218				rockchip,pins =
1219					<2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>;
1220			};
1221
1222			pdmm0_sdi0_sleep: pdmm0-sdi0-sleep {
1223				rockchip,pins =
1224					<2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>;
1225			};
1226
1227			pdmm0_sdi1_sleep: pdmm0-sdi1-sleep {
1228				rockchip,pins =
1229					<2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>;
1230			};
1231
1232			pdmm0_sdi2_sleep: pdmm0-sdi2-sleep {
1233				rockchip,pins =
1234					<2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>;
1235			};
1236
1237			pdmm0_sdi3_sleep: pdmm0-sdi3-sleep {
1238				rockchip,pins =
1239					<2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>;
1240			};
1241
1242			pdmm0_fsync_sleep: pdmm0-fsync-sleep {
1243				rockchip,pins =
1244					<2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1245			};
1246		};
1247
1248		tsadc {
1249			otp_pin: otp-pin {
1250				rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1251			};
1252
1253			otp_out: otp-out {
1254				rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>;
1255			};
1256		};
1257
1258		uart0 {
1259			uart0_xfer: uart0-xfer {
1260				rockchip,pins = <1 RK_PB1 1 &pcfg_pull_none>,
1261						<1 RK_PB0 1 &pcfg_pull_up>;
1262			};
1263
1264			uart0_cts: uart0-cts {
1265				rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>;
1266			};
1267
1268			uart0_rts: uart0-rts {
1269				rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>;
1270			};
1271
1272			uart0_rts_pin: uart0-rts-pin {
1273				rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
1274			};
1275		};
1276
1277		uart1 {
1278			uart1_xfer: uart1-xfer {
1279				rockchip,pins = <3 RK_PA4 4 &pcfg_pull_none>,
1280						<3 RK_PA6 4 &pcfg_pull_up>;
1281			};
1282
1283			uart1_cts: uart1-cts {
1284				rockchip,pins = <3 RK_PA7 4 &pcfg_pull_none>;
1285			};
1286
1287			uart1_rts: uart1-rts {
1288				rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>;
1289			};
1290
1291			uart1_rts_pin: uart1-rts-pin {
1292				rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
1293			};
1294		};
1295
1296		uart2-0 {
1297			uart2m0_xfer: uart2m0-xfer {
1298				rockchip,pins = <1 RK_PA0 2 &pcfg_pull_none>,
1299						<1 RK_PA1 2 &pcfg_pull_up>;
1300			};
1301		};
1302
1303		uart2-1 {
1304			uart2m1_xfer: uart2m1-xfer {
1305				rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>,
1306						<2 RK_PA1 1 &pcfg_pull_up>;
1307			};
1308		};
1309
1310		spi0-0 {
1311			spi0m0_clk: spi0m0-clk {
1312				rockchip,pins = <2 RK_PB0 1 &pcfg_pull_up>;
1313			};
1314
1315			spi0m0_cs0: spi0m0-cs0 {
1316				rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
1317			};
1318
1319			spi0m0_tx: spi0m0-tx {
1320				rockchip,pins = <2 RK_PB1 1 &pcfg_pull_up>;
1321			};
1322
1323			spi0m0_rx: spi0m0-rx {
1324				rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
1325			};
1326
1327			spi0m0_cs1: spi0m0-cs1 {
1328				rockchip,pins = <2 RK_PB4 1 &pcfg_pull_up>;
1329			};
1330		};
1331
1332		spi0-1 {
1333			spi0m1_clk: spi0m1-clk {
1334				rockchip,pins = <3 RK_PC7 2 &pcfg_pull_up>;
1335			};
1336
1337			spi0m1_cs0: spi0m1-cs0 {
1338				rockchip,pins = <3 RK_PD2 2 &pcfg_pull_up>;
1339			};
1340
1341			spi0m1_tx: spi0m1-tx {
1342				rockchip,pins = <3 RK_PD1 2 &pcfg_pull_up>;
1343			};
1344
1345			spi0m1_rx: spi0m1-rx {
1346				rockchip,pins = <3 RK_PD0 2 &pcfg_pull_up>;
1347			};
1348
1349			spi0m1_cs1: spi0m1-cs1 {
1350				rockchip,pins = <3 RK_PD3 2 &pcfg_pull_up>;
1351			};
1352		};
1353
1354		spi0-2 {
1355			spi0m2_clk: spi0m2-clk {
1356				rockchip,pins = <3 RK_PA0 4 &pcfg_pull_up>;
1357			};
1358
1359			spi0m2_cs0: spi0m2-cs0 {
1360				rockchip,pins = <3 RK_PB0 3 &pcfg_pull_up>;
1361			};
1362
1363			spi0m2_tx: spi0m2-tx {
1364				rockchip,pins = <3 RK_PA1 4 &pcfg_pull_up>;
1365			};
1366
1367			spi0m2_rx: spi0m2-rx {
1368				rockchip,pins = <3 RK_PA2 4 &pcfg_pull_up>;
1369			};
1370		};
1371
1372		i2s1 {
1373			i2s1_mclk: i2s1-mclk {
1374				rockchip,pins = <2 RK_PB7 1 &pcfg_pull_none>;
1375			};
1376
1377			i2s1_sclk: i2s1-sclk {
1378				rockchip,pins = <2 RK_PC2 1 &pcfg_pull_none>;
1379			};
1380
1381			i2s1_lrckrx: i2s1-lrckrx {
1382				rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>;
1383			};
1384
1385			i2s1_lrcktx: i2s1-lrcktx {
1386				rockchip,pins = <2 RK_PC1 1 &pcfg_pull_none>;
1387			};
1388
1389			i2s1_sdi: i2s1-sdi {
1390				rockchip,pins = <2 RK_PC3 1 &pcfg_pull_none>;
1391			};
1392
1393			i2s1_sdo: i2s1-sdo {
1394				rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
1395			};
1396
1397			i2s1_sdio1: i2s1-sdio1 {
1398				rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>;
1399			};
1400
1401			i2s1_sdio2: i2s1-sdio2 {
1402				rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>;
1403			};
1404
1405			i2s1_sdio3: i2s1-sdio3 {
1406				rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
1407			};
1408
1409			i2s1_sleep: i2s1-sleep {
1410				rockchip,pins =
1411					<2 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>,
1412					<2 RK_PC0 RK_FUNC_GPIO &pcfg_input_high>,
1413					<2 RK_PC1 RK_FUNC_GPIO &pcfg_input_high>,
1414					<2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>,
1415					<2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>,
1416					<2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>,
1417					<2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1418					<2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1419					<2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1420			};
1421		};
1422
1423		i2s2-0 {
1424			i2s2m0_mclk: i2s2m0-mclk {
1425				rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
1426			};
1427
1428			i2s2m0_sclk: i2s2m0-sclk {
1429				rockchip,pins = <1 RK_PC6 1 &pcfg_pull_none>;
1430			};
1431
1432			i2s2m0_lrckrx: i2s2m0-lrckrx {
1433				rockchip,pins = <1 RK_PD2 1 &pcfg_pull_none>;
1434			};
1435
1436			i2s2m0_lrcktx: i2s2m0-lrcktx {
1437				rockchip,pins = <1 RK_PC7 1 &pcfg_pull_none>;
1438			};
1439
1440			i2s2m0_sdi: i2s2m0-sdi {
1441				rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>;
1442			};
1443
1444			i2s2m0_sdo: i2s2m0-sdo {
1445				rockchip,pins = <1 RK_PD1 1 &pcfg_pull_none>;
1446			};
1447
1448			i2s2m0_sleep: i2s2m0-sleep {
1449				rockchip,pins =
1450					<1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1451					<1 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1452					<1 RK_PD2 RK_FUNC_GPIO &pcfg_input_high>,
1453					<1 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>,
1454					<1 RK_PD0 RK_FUNC_GPIO &pcfg_input_high>,
1455					<1 RK_PD1 RK_FUNC_GPIO &pcfg_input_high>;
1456			};
1457		};
1458
1459		i2s2-1 {
1460			i2s2m1_mclk: i2s2m1-mclk {
1461				rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
1462			};
1463
1464			i2s2m1_sclk: i2s2m1-sclk {
1465				rockchip,pins = <3 RK_PA0 6 &pcfg_pull_none>;
1466			};
1467
1468			i2s2m1_lrckrx: i2sm1-lrckrx {
1469				rockchip,pins = <3 RK_PB0 6 &pcfg_pull_none>;
1470			};
1471
1472			i2s2m1_lrcktx: i2s2m1-lrcktx {
1473				rockchip,pins = <3 RK_PB0 4 &pcfg_pull_none>;
1474			};
1475
1476			i2s2m1_sdi: i2s2m1-sdi {
1477				rockchip,pins = <3 RK_PA2 6 &pcfg_pull_none>;
1478			};
1479
1480			i2s2m1_sdo: i2s2m1-sdo {
1481				rockchip,pins = <3 RK_PA1 6 &pcfg_pull_none>;
1482			};
1483
1484			i2s2m1_sleep: i2s2m1-sleep {
1485				rockchip,pins =
1486					<1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1487					<3 RK_PA0 RK_FUNC_GPIO &pcfg_input_high>,
1488					<3 RK_PB0 RK_FUNC_GPIO &pcfg_input_high>,
1489					<3 RK_PA2 RK_FUNC_GPIO &pcfg_input_high>,
1490					<3 RK_PA1 RK_FUNC_GPIO &pcfg_input_high>;
1491			};
1492		};
1493
1494		spdif-0 {
1495			spdifm0_tx: spdifm0-tx {
1496				rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>;
1497			};
1498		};
1499
1500		spdif-1 {
1501			spdifm1_tx: spdifm1-tx {
1502				rockchip,pins = <2 RK_PC1 2 &pcfg_pull_none>;
1503			};
1504		};
1505
1506		spdif-2 {
1507			spdifm2_tx: spdifm2-tx {
1508				rockchip,pins = <0 RK_PA2 2 &pcfg_pull_none>;
1509			};
1510		};
1511
1512		sdmmc0-0 {
1513			sdmmc0m0_pwren: sdmmc0m0-pwren {
1514				rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>;
1515			};
1516
1517			sdmmc0m0_pin: sdmmc0m0-pin {
1518				rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1519			};
1520		};
1521
1522		sdmmc0-1 {
1523			sdmmc0m1_pwren: sdmmc0m1-pwren {
1524				rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>;
1525			};
1526
1527			sdmmc0m1_pin: sdmmc0m1-pin {
1528				rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1529			};
1530		};
1531
1532		sdmmc0 {
1533			sdmmc0_clk: sdmmc0-clk {
1534				rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none_8ma>;
1535			};
1536
1537			sdmmc0_cmd: sdmmc0-cmd {
1538				rockchip,pins = <1 RK_PA4 1 &pcfg_pull_up_8ma>;
1539			};
1540
1541			sdmmc0_dectn: sdmmc0-dectn {
1542				rockchip,pins = <1 RK_PA5 1 &pcfg_pull_up_4ma>;
1543			};
1544
1545			sdmmc0_wrprt: sdmmc0-wrprt {
1546				rockchip,pins = <1 RK_PA7 1 &pcfg_pull_up_4ma>;
1547			};
1548
1549			sdmmc0_bus1: sdmmc0-bus1 {
1550				rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>;
1551			};
1552
1553			sdmmc0_bus4: sdmmc0-bus4 {
1554				rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>,
1555						<1 RK_PA1 1 &pcfg_pull_up_8ma>,
1556						<1 RK_PA2 1 &pcfg_pull_up_8ma>,
1557						<1 RK_PA3 1 &pcfg_pull_up_8ma>;
1558			};
1559
1560			sdmmc0_pins: sdmmc0-pins {
1561				rockchip,pins =
1562					<1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1563					<1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1564					<1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1565					<1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1566					<1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1567					<1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1568					<1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1569					<1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1570			};
1571		};
1572
1573		sdmmc0ext {
1574			sdmmc0ext_clk: sdmmc0ext-clk {
1575				rockchip,pins = <3 RK_PA2 3 &pcfg_pull_none_4ma>;
1576			};
1577
1578			sdmmc0ext_cmd: sdmmc0ext-cmd {
1579				rockchip,pins = <3 RK_PA0 3 &pcfg_pull_up_4ma>;
1580			};
1581
1582			sdmmc0ext_wrprt: sdmmc0ext-wrprt {
1583				rockchip,pins = <3 RK_PA3 3 &pcfg_pull_up_4ma>;
1584			};
1585
1586			sdmmc0ext_dectn: sdmmc0ext-dectn {
1587				rockchip,pins = <3 RK_PA1 3 &pcfg_pull_up_4ma>;
1588			};
1589
1590			sdmmc0ext_bus1: sdmmc0ext-bus1 {
1591				rockchip,pins = <3 RK_PA4 3 &pcfg_pull_up_4ma>;
1592			};
1593
1594			sdmmc0ext_bus4: sdmmc0ext-bus4 {
1595				rockchip,pins =
1596					<3 RK_PA4 3 &pcfg_pull_up_4ma>,
1597					<3 RK_PA5 3 &pcfg_pull_up_4ma>,
1598					<3 RK_PA6 3 &pcfg_pull_up_4ma>,
1599					<3 RK_PA7 3 &pcfg_pull_up_4ma>;
1600			};
1601
1602			sdmmc0ext_pins: sdmmc0ext-pins {
1603				rockchip,pins =
1604					<3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1605					<3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1606					<3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1607					<3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1608					<3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1609					<3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1610					<3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1611					<3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1612			};
1613		};
1614
1615		sdmmc1 {
1616			sdmmc1_clk: sdmmc1-clk {
1617				rockchip,pins = <1 RK_PB4 1 &pcfg_pull_none_8ma>;
1618			};
1619
1620			sdmmc1_cmd: sdmmc1-cmd {
1621				rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_8ma>;
1622			};
1623
1624			sdmmc1_pwren: sdmmc1-pwren {
1625				rockchip,pins = <1 RK_PC2 1 &pcfg_pull_up_8ma>;
1626			};
1627
1628			sdmmc1_wrprt: sdmmc1-wrprt {
1629				rockchip,pins = <1 RK_PC4 1 &pcfg_pull_up_8ma>;
1630			};
1631
1632			sdmmc1_dectn: sdmmc1-dectn {
1633				rockchip,pins = <1 RK_PC3 1 &pcfg_pull_up_8ma>;
1634			};
1635
1636			sdmmc1_bus1: sdmmc1-bus1 {
1637				rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>;
1638			};
1639
1640			sdmmc1_bus4: sdmmc1-bus4 {
1641				rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>,
1642						<1 RK_PB7 1 &pcfg_pull_up_8ma>,
1643						<1 RK_PC0 1 &pcfg_pull_up_8ma>,
1644						<1 RK_PC1 1 &pcfg_pull_up_8ma>;
1645			};
1646
1647			sdmmc1_pins: sdmmc1-pins {
1648				rockchip,pins =
1649					<1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1650					<1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1651					<1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1652					<1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1653					<1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1654					<1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1655					<1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1656					<1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1657					<1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1658			};
1659		};
1660
1661		emmc {
1662			emmc_clk: emmc-clk {
1663				rockchip,pins = <3 RK_PC5 2 &pcfg_pull_none_12ma>;
1664			};
1665
1666			emmc_cmd: emmc-cmd {
1667				rockchip,pins = <3 RK_PC3 2 &pcfg_pull_up_12ma>;
1668			};
1669
1670			emmc_pwren: emmc-pwren {
1671				rockchip,pins = <3 RK_PC6 2 &pcfg_pull_none>;
1672			};
1673
1674			emmc_rstnout: emmc-rstnout {
1675				rockchip,pins = <3 RK_PC4 2 &pcfg_pull_none>;
1676			};
1677
1678			emmc_bus1: emmc-bus1 {
1679				rockchip,pins = <0 RK_PA7 2 &pcfg_pull_up_12ma>;
1680			};
1681
1682			emmc_bus4: emmc-bus4 {
1683				rockchip,pins =
1684					<0 RK_PA7 2 &pcfg_pull_up_12ma>,
1685					<2 RK_PD4 2 &pcfg_pull_up_12ma>,
1686					<2 RK_PD5 2 &pcfg_pull_up_12ma>,
1687					<2 RK_PD6 2 &pcfg_pull_up_12ma>;
1688			};
1689
1690			emmc_bus8: emmc-bus8 {
1691				rockchip,pins =
1692					<0 RK_PA7 2 &pcfg_pull_up_12ma>,
1693					<2 RK_PD4 2 &pcfg_pull_up_12ma>,
1694					<2 RK_PD5 2 &pcfg_pull_up_12ma>,
1695					<2 RK_PD6 2 &pcfg_pull_up_12ma>,
1696					<2 RK_PD7 2 &pcfg_pull_up_12ma>,
1697					<3 RK_PC0 2 &pcfg_pull_up_12ma>,
1698					<3 RK_PC1 2 &pcfg_pull_up_12ma>,
1699					<3 RK_PC2 2 &pcfg_pull_up_12ma>;
1700			};
1701		};
1702
1703		pwm0 {
1704			pwm0_pin: pwm0-pin {
1705				rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>;
1706			};
1707		};
1708
1709		pwm1 {
1710			pwm1_pin: pwm1-pin {
1711				rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>;
1712			};
1713		};
1714
1715		pwm2 {
1716			pwm2_pin: pwm2-pin {
1717				rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>;
1718			};
1719		};
1720
1721		pwmir {
1722			pwmir_pin: pwmir-pin {
1723				rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>;
1724			};
1725		};
1726
1727		gmac-1 {
1728			rgmiim1_pins: rgmiim1-pins {
1729				rockchip,pins =
1730					/* mac_txclk */
1731					<1 RK_PB4 2 &pcfg_pull_none_8ma>,
1732					/* mac_rxclk */
1733					<1 RK_PB5 2 &pcfg_pull_none_4ma>,
1734					/* mac_mdio */
1735					<1 RK_PC3 2 &pcfg_pull_none_4ma>,
1736					/* mac_txen */
1737					<1 RK_PD1 2 &pcfg_pull_none_8ma>,
1738					/* mac_clk */
1739					<1 RK_PC5 2 &pcfg_pull_none_4ma>,
1740					/* mac_rxdv */
1741					<1 RK_PC6 2 &pcfg_pull_none_4ma>,
1742					/* mac_mdc */
1743					<1 RK_PC7 2 &pcfg_pull_none_4ma>,
1744					/* mac_rxd1 */
1745					<1 RK_PB2 2 &pcfg_pull_none_4ma>,
1746					/* mac_rxd0 */
1747					<1 RK_PB3 2 &pcfg_pull_none_4ma>,
1748					/* mac_txd1 */
1749					<1 RK_PB0 2 &pcfg_pull_none_8ma>,
1750					/* mac_txd0 */
1751					<1 RK_PB1 2 &pcfg_pull_none_8ma>,
1752					/* mac_rxd3 */
1753					<1 RK_PB6 2 &pcfg_pull_none_4ma>,
1754					/* mac_rxd2 */
1755					<1 RK_PB7 2 &pcfg_pull_none_4ma>,
1756					/* mac_txd3 */
1757					<1 RK_PC0 2 &pcfg_pull_none_8ma>,
1758					/* mac_txd2 */
1759					<1 RK_PC1 2 &pcfg_pull_none_8ma>,
1760
1761					/* mac_txclk */
1762					<0 RK_PB0 1 &pcfg_pull_none_8ma>,
1763					/* mac_txen */
1764					<0 RK_PB4 1 &pcfg_pull_none_8ma>,
1765					/* mac_clk */
1766					<0 RK_PD0 1 &pcfg_pull_none_4ma>,
1767					/* mac_txd1 */
1768					<0 RK_PC0 1 &pcfg_pull_none_8ma>,
1769					/* mac_txd0 */
1770					<0 RK_PC1 1 &pcfg_pull_none_8ma>,
1771					/* mac_txd3 */
1772					<0 RK_PC7 1 &pcfg_pull_none_8ma>,
1773					/* mac_txd2 */
1774					<0 RK_PC6 1 &pcfg_pull_none_8ma>;
1775			};
1776
1777			rmiim1_pins: rmiim1-pins {
1778				rockchip,pins =
1779					/* mac_mdio */
1780					<1 RK_PC3 2 &pcfg_pull_none_2ma>,
1781					/* mac_txen */
1782					<1 RK_PD1 2 &pcfg_pull_none_12ma>,
1783					/* mac_clk */
1784					<1 RK_PC5 2 &pcfg_pull_none_2ma>,
1785					/* mac_rxer */
1786					<1 RK_PD0 2 &pcfg_pull_none_2ma>,
1787					/* mac_rxdv */
1788					<1 RK_PC6 2 &pcfg_pull_none_2ma>,
1789					/* mac_mdc */
1790					<1 RK_PC7 2 &pcfg_pull_none_2ma>,
1791					/* mac_rxd1 */
1792					<1 RK_PB2 2 &pcfg_pull_none_2ma>,
1793					/* mac_rxd0 */
1794					<1 RK_PB3 2 &pcfg_pull_none_2ma>,
1795					/* mac_txd1 */
1796					<1 RK_PB0 2 &pcfg_pull_none_12ma>,
1797					/* mac_txd0 */
1798					<1 RK_PB1 2 &pcfg_pull_none_12ma>,
1799
1800					/* mac_mdio */
1801					<0 RK_PB3 1 &pcfg_pull_none>,
1802					/* mac_txen */
1803					<0 RK_PB4 1 &pcfg_pull_none>,
1804					/* mac_clk */
1805					<0 RK_PD0 1 &pcfg_pull_none>,
1806					/* mac_mdc */
1807					<0 RK_PC3 1 &pcfg_pull_none>,
1808					/* mac_txd1 */
1809					<0 RK_PC0 1 &pcfg_pull_none>,
1810					/* mac_txd0 */
1811					<0 RK_PC1 1 &pcfg_pull_none>;
1812			};
1813		};
1814
1815		gmac2phy {
1816			fephyled_speed10: fephyled-speed10 {
1817				rockchip,pins = <0 RK_PD6 1 &pcfg_pull_none>;
1818			};
1819
1820			fephyled_duplex: fephyled-duplex {
1821				rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>;
1822			};
1823
1824			fephyled_rxm1: fephyled-rxm1 {
1825				rockchip,pins = <2 RK_PD1 2 &pcfg_pull_none>;
1826			};
1827
1828			fephyled_txm1: fephyled-txm1 {
1829				rockchip,pins = <2 RK_PD1 3 &pcfg_pull_none>;
1830			};
1831
1832			fephyled_linkm1: fephyled-linkm1 {
1833				rockchip,pins = <2 RK_PD0 2 &pcfg_pull_none>;
1834			};
1835		};
1836
1837		tsadc_pin {
1838			tsadc_int: tsadc-int {
1839				rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>;
1840			};
1841			tsadc_pin: tsadc-pin {
1842				rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1843			};
1844		};
1845
1846		hdmi_pin {
1847			hdmi_cec: hdmi-cec {
1848				rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
1849			};
1850
1851			hdmi_hpd: hdmi-hpd {
1852				rockchip,pins = <0 RK_PA4 1 &pcfg_pull_down>;
1853			};
1854		};
1855
1856		cif-0 {
1857			dvp_d2d9_m0:dvp-d2d9-m0 {
1858				rockchip,pins =
1859					/* cif_d0 */
1860					<3 RK_PA4 2 &pcfg_pull_none>,
1861					/* cif_d1 */
1862					<3 RK_PA5 2 &pcfg_pull_none>,
1863					/* cif_d2 */
1864					<3 RK_PA6 2 &pcfg_pull_none>,
1865					/* cif_d3 */
1866					<3 RK_PA7 2 &pcfg_pull_none>,
1867					/* cif_d4 */
1868					<3 RK_PB0 2 &pcfg_pull_none>,
1869					/* cif_d5m0 */
1870					<3 RK_PB1 2 &pcfg_pull_none>,
1871					/* cif_d6m0 */
1872					<3 RK_PB2 2 &pcfg_pull_none>,
1873					/* cif_d7m0 */
1874					<3 RK_PB3 2 &pcfg_pull_none>,
1875					/* cif_href */
1876					<3 RK_PA1 2 &pcfg_pull_none>,
1877					/* cif_vsync */
1878					<3 RK_PA0 2 &pcfg_pull_none>,
1879					/* cif_clkoutm0 */
1880					<3 RK_PA3 2 &pcfg_pull_none>,
1881					/* cif_clkin */
1882					<3 RK_PA2 2 &pcfg_pull_none>;
1883			};
1884		};
1885
1886		cif-1 {
1887			dvp_d2d9_m1:dvp-d2d9-m1 {
1888				rockchip,pins =
1889					/* cif_d0 */
1890					<3 RK_PA4 2 &pcfg_pull_none>,
1891					/* cif_d1 */
1892					<3 RK_PA5 2 &pcfg_pull_none>,
1893					/* cif_d2 */
1894					<3 RK_PA6 2 &pcfg_pull_none>,
1895					/* cif_d3 */
1896					<3 RK_PA7 2 &pcfg_pull_none>,
1897					/* cif_d4 */
1898					<3 RK_PB0 2 &pcfg_pull_none>,
1899					/* cif_d5m1 */
1900					<2 RK_PC0 4 &pcfg_pull_none>,
1901					/* cif_d6m1 */
1902					<2 RK_PC1 4 &pcfg_pull_none>,
1903					/* cif_d7m1 */
1904					<2 RK_PC2 4 &pcfg_pull_none>,
1905					/* cif_href */
1906					<3 RK_PA1 2 &pcfg_pull_none>,
1907					/* cif_vsync */
1908					<3 RK_PA0 2 &pcfg_pull_none>,
1909					/* cif_clkoutm1 */
1910					<2 RK_PB7 4 &pcfg_pull_none>,
1911					/* cif_clkin */
1912					<3 RK_PA2 2 &pcfg_pull_none>;
1913			};
1914		};
1915	};
1916};
1917