xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3128.dtsi (revision 54c799c3c4abe2c5e2c22d47dbcba5c34ec99aae)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2017 Rockchip Electronics Co., Ltd
4 */
5
6#include <dt-bindings/clock/rk3128-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/rk3128-power.h>
12
13/ {
14	compatible = "rockchip,rk3128";
15	interrupt-parent = <&gic>;
16	#address-cells = <1>;
17	#size-cells = <1>;
18
19	aliases {
20		gpio0 = &gpio0;
21		gpio1 = &gpio1;
22		gpio2 = &gpio2;
23		gpio3 = &gpio3;
24		i2c0 = &i2c0;
25		i2c1 = &i2c1;
26		i2c2 = &i2c2;
27		i2c3 = &i2c3;
28		serial0 = &uart0;
29		serial1 = &uart1;
30		serial2 = &uart2;
31	};
32
33	arm-pmu {
34		compatible = "arm,cortex-a7-pmu";
35		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
36			     <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
37			     <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
38			     <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
39		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
40	};
41
42	cpus {
43		#address-cells = <1>;
44		#size-cells = <0>;
45		enable-method = "rockchip,rk3036-smp";
46
47		cpu0: cpu@f00 {
48			device_type = "cpu";
49			compatible = "arm,cortex-a7";
50			reg = <0xf00>;
51			clock-latency = <40000>;
52			clocks = <&cru ARMCLK>;
53			resets = <&cru SRST_CORE0>;
54			operating-points-v2 = <&cpu_opp_table>;
55			#cooling-cells = <2>; /* min followed by max */
56		};
57
58		cpu1: cpu@f01 {
59			device_type = "cpu";
60			compatible = "arm,cortex-a7";
61			reg = <0xf01>;
62			resets = <&cru SRST_CORE1>;
63			operating-points-v2 = <&cpu_opp_table>;
64		};
65
66		cpu2: cpu@f02 {
67			device_type = "cpu";
68			compatible = "arm,cortex-a7";
69			reg = <0xf02>;
70			resets = <&cru SRST_CORE2>;
71			operating-points-v2 = <&cpu_opp_table>;
72		};
73
74		cpu3: cpu@f03 {
75			device_type = "cpu";
76			compatible = "arm,cortex-a7";
77			reg = <0xf03>;
78			resets = <&cru SRST_CORE3>;
79			operating-points-v2 = <&cpu_opp_table>;
80		};
81	};
82
83	cpu_opp_table: opp-table-0 {
84		compatible = "operating-points-v2";
85		opp-shared;
86
87		opp-216000000 {
88			opp-hz = /bits/ 64 <216000000>;
89			opp-microvolt = <950000 950000 1325000>;
90		};
91		opp-408000000 {
92			opp-hz = /bits/ 64 <408000000>;
93			opp-microvolt = <950000 950000 1325000>;
94		};
95		opp-600000000 {
96			opp-hz = /bits/ 64 <600000000>;
97			opp-microvolt = <950000 950000 1325000>;
98		};
99		opp-696000000 {
100			opp-hz = /bits/ 64 <696000000>;
101			opp-microvolt = <975000 975000 1325000>;
102		};
103		opp-816000000 {
104			opp-hz = /bits/ 64 <816000000>;
105			opp-microvolt = <1075000 1075000 1325000>;
106			opp-suspend;
107		};
108		opp-1008000000 {
109			opp-hz = /bits/ 64 <1008000000>;
110			opp-microvolt = <1200000 1200000 1325000>;
111		};
112		opp-1200000000 {
113			opp-hz = /bits/ 64 <1200000000>;
114			opp-microvolt = <1325000 1325000 1325000>;
115		};
116	};
117
118	display_subsystem: display-subsystem {
119		compatible = "rockchip,display-subsystem";
120		ports = <&vop_out>;
121		status = "disabled";
122	};
123
124	gpu_opp_table: opp-table-1 {
125		compatible = "operating-points-v2";
126
127		opp-200000000 {
128			opp-hz = /bits/ 64 <200000000>;
129			opp-microvolt = <975000 975000 1250000>;
130		};
131		opp-300000000 {
132			opp-hz = /bits/ 64 <300000000>;
133			opp-microvolt = <1050000 1050000 1250000>;
134		};
135		opp-400000000 {
136			opp-hz = /bits/ 64 <400000000>;
137			opp-microvolt = <1150000 1150000 1250000>;
138		};
139		opp-480000000 {
140			opp-hz = /bits/ 64 <480000000>;
141			opp-microvolt = <1250000 1250000 1250000>;
142		};
143	};
144
145	timer {
146		compatible = "arm,armv7-timer";
147		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
148			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
149			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
150			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
151		arm,cpu-registers-not-fw-configured;
152		clock-frequency = <24000000>;
153	};
154
155	xin24m: oscillator {
156		compatible = "fixed-clock";
157		clock-frequency = <24000000>;
158		clock-output-names = "xin24m";
159		#clock-cells = <0>;
160	};
161
162	imem: sram@10080000 {
163		compatible = "mmio-sram";
164		reg = <0x10080000 0x2000>;
165		#address-cells = <1>;
166		#size-cells = <1>;
167		ranges = <0 0x10080000 0x2000>;
168
169		smp-sram@0 {
170			compatible = "rockchip,rk3066-smp-sram";
171			reg = <0x00 0x10>;
172		};
173	};
174
175	gpu: gpu@10090000 {
176		compatible = "rockchip,rk3128-mali", "arm,mali-400";
177		reg = <0x10090000 0x10000>;
178		interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
179			     <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
180			     <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
181			     <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
182			     <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
183			     <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
184		interrupt-names = "gp",
185				  "gpmmu",
186				  "pp0",
187				  "ppmmu0",
188				  "pp1",
189				  "ppmmu1";
190		clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
191		clock-names = "bus", "core";
192		operating-points-v2 = <&gpu_opp_table>;
193		resets = <&cru SRST_GPU>;
194		power-domains = <&power RK3128_PD_GPU>;
195		status = "disabled";
196	};
197
198	pmu: syscon@100a0000 {
199		compatible = "rockchip,rk3128-pmu", "syscon", "simple-mfd";
200		reg = <0x100a0000 0x1000>;
201
202		power: power-controller {
203			compatible = "rockchip,rk3128-power-controller";
204			#power-domain-cells = <1>;
205			#address-cells = <1>;
206			#size-cells = <0>;
207
208			power-domain@RK3128_PD_VIO {
209				reg = <RK3128_PD_VIO>;
210				clocks = <&cru ACLK_CIF>,
211					 <&cru HCLK_CIF>,
212					 <&cru DCLK_EBC>,
213					 <&cru HCLK_EBC>,
214					 <&cru ACLK_IEP>,
215					 <&cru HCLK_IEP>,
216					 <&cru ACLK_LCDC0>,
217					 <&cru HCLK_LCDC0>,
218					 <&cru PCLK_MIPI>,
219					 <&cru PCLK_MIPIPHY>,
220					 <&cru SCLK_MIPI_24M>,
221					 <&cru ACLK_RGA>,
222					 <&cru HCLK_RGA>,
223					 <&cru ACLK_VIO0>,
224					 <&cru ACLK_VIO1>,
225					 <&cru HCLK_VIO>,
226					 <&cru HCLK_VIO_H2P>,
227					 <&cru DCLK_VOP>,
228					 <&cru SCLK_VOP>;
229				pm_qos = <&qos_ebc>,
230					 <&qos_iep>,
231					 <&qos_lcdc>,
232					 <&qos_rga>,
233					 <&qos_vip>;
234				#power-domain-cells = <0>;
235			};
236
237			power-domain@RK3128_PD_VIDEO {
238				reg = <RK3128_PD_VIDEO>;
239				clocks = <&cru ACLK_VDPU>,
240					 <&cru HCLK_VDPU>,
241					 <&cru ACLK_VEPU>,
242					 <&cru HCLK_VEPU>,
243					 <&cru SCLK_HEVC_CORE>;
244				pm_qos = <&qos_vpu>;
245				#power-domain-cells = <0>;
246			};
247
248			power-domain@RK3128_PD_GPU {
249				reg = <RK3128_PD_GPU>;
250				clocks = <&cru ACLK_GPU>;
251				pm_qos = <&qos_gpu>;
252				#power-domain-cells = <0>;
253			};
254		};
255	};
256
257	vop: vop@1010e000 {
258		compatible = "rockchip,rk3126-vop";
259		reg = <0x1010e000 0x300>;
260		interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
261		clocks = <&cru ACLK_LCDC0>, <&cru DCLK_VOP>,
262			 <&cru HCLK_LCDC0>;
263		clock-names = "aclk_vop", "dclk_vop",
264			      "hclk_vop";
265		resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>,
266			 <&cru SRST_VOP_D>;
267		reset-names = "axi", "ahb",
268			      "dclk";
269		power-domains = <&power RK3128_PD_VIO>;
270		status = "disabled";
271
272		vop_out: port {
273			#address-cells = <1>;
274			#size-cells = <0>;
275
276			vop_out_hdmi: endpoint@0 {
277				reg = <0>;
278				remote-endpoint = <&hdmi_in_vop>;
279			};
280
281			vop_out_dsi: endpoint@1 {
282				reg = <1>;
283				remote-endpoint = <&dsi_in_vop>;
284			};
285		};
286	};
287
288	dsi: dsi@10110000 {
289		compatible = "rockchip,rk3128-mipi-dsi", "snps,dw-mipi-dsi";
290		reg = <0x10110000 0x4000>;
291		interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
292		clocks = <&cru PCLK_MIPI>;
293		clock-names = "pclk";
294		phys = <&dphy>;
295		phy-names = "dphy";
296		power-domains = <&power RK3128_PD_VIO>;
297		resets = <&cru SRST_VIO_MIPI_DSI>;
298		reset-names = "apb";
299		rockchip,grf = <&grf>;
300		status = "disabled";
301
302		ports {
303			#address-cells = <1>;
304			#size-cells = <0>;
305
306			dsi_in: port@0 {
307				reg = <0>;
308
309				dsi_in_vop: endpoint {
310					remote-endpoint = <&vop_out_dsi>;
311				};
312			};
313
314			dsi_out: port@1 {
315				reg = <1>;
316			};
317		};
318	};
319
320	qos_gpu: qos@1012d000 {
321		compatible = "rockchip,rk3128-qos", "syscon";
322		reg = <0x1012d000 0x20>;
323	};
324
325	qos_vpu: qos@1012e000 {
326		compatible = "rockchip,rk3128-qos", "syscon";
327		reg = <0x1012e000 0x20>;
328	};
329
330	qos_rga: qos@1012f000 {
331		compatible = "rockchip,rk3128-qos", "syscon";
332		reg = <0x1012f000 0x20>;
333	};
334
335	qos_ebc: qos@1012f080 {
336		compatible = "rockchip,rk3128-qos", "syscon";
337		reg = <0x1012f080 0x20>;
338	};
339
340	qos_iep: qos@1012f100 {
341		compatible = "rockchip,rk3128-qos", "syscon";
342		reg = <0x1012f100 0x20>;
343	};
344
345	qos_lcdc: qos@1012f180 {
346		compatible = "rockchip,rk3128-qos", "syscon";
347		reg = <0x1012f180 0x20>;
348	};
349
350	qos_vip: qos@1012f200 {
351		compatible = "rockchip,rk3128-qos", "syscon";
352		reg = <0x1012f200 0x20>;
353	};
354
355	gic: interrupt-controller@10139000 {
356		compatible = "arm,cortex-a7-gic";
357		reg = <0x10139000 0x1000>,
358		      <0x1013a000 0x1000>,
359		      <0x1013c000 0x2000>,
360		      <0x1013e000 0x2000>;
361		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
362		interrupt-controller;
363		#interrupt-cells = <3>;
364		#address-cells = <0>;
365	};
366
367	usb_otg: usb@10180000 {
368		compatible = "rockchip,rk3128-usb", "rockchip,rk3066-usb", "snps,dwc2";
369		reg = <0x10180000 0x40000>;
370		interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
371		clocks = <&cru HCLK_OTG>;
372		clock-names = "otg";
373		dr_mode = "otg";
374		g-np-tx-fifo-size = <16>;
375		g-rx-fifo-size = <280>;
376		g-tx-fifo-size = <256 128 128 64 32 16>;
377		phys = <&usb2phy_otg>;
378		phy-names = "usb2-phy";
379		status = "disabled";
380	};
381
382	usb_host_ehci: usb@101c0000 {
383		compatible = "generic-ehci";
384		reg = <0x101c0000 0x20000>;
385		interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
386		clocks = <&cru HCLK_HOST2>;
387		phys = <&usb2phy_host>;
388		phy-names = "usb";
389		status = "disabled";
390	};
391
392	usb_host_ohci: usb@101e0000 {
393		compatible = "generic-ohci";
394		reg = <0x101e0000 0x20000>;
395		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
396		clocks = <&cru HCLK_HOST2>;
397		phys = <&usb2phy_host>;
398		phy-names = "usb";
399		status = "disabled";
400	};
401
402	i2s_8ch: i2s@10200000 {
403		compatible = "rockchip,rk3128-i2s", "rockchip,rk3066-i2s";
404		reg = <0x10200000 0x1000>;
405		interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
406		clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S_8CH>;
407		clock-names = "i2s_clk", "i2s_hclk";
408		dmas = <&pdma 14>, <&pdma 15>;
409		dma-names = "tx", "rx";
410		#sound-dai-cells = <0>;
411		status = "disabled";
412	};
413
414	spdif: spdif@10204000 {
415		compatible = "rockchip,rk3128-spdif", "rockchip,rk3066-spdif";
416		reg = <0x10204000 0x1000>;
417		interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
418		clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF>;
419		clock-names = "mclk", "hclk";
420		dmas = <&pdma 13>;
421		dma-names = "tx";
422		pinctrl-names = "default";
423		pinctrl-0 = <&spdif_tx>;
424		#sound-dai-cells = <0>;
425		status = "disabled";
426	};
427
428	sfc: spi@1020c000 {
429		compatible = "rockchip,sfc";
430		reg = <0x1020c000 0x8000>;
431		interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
432		clocks = <&cru SCLK_SFC>, <&cru 479>;
433		clock-names = "clk_sfc", "hclk_sfc";
434		status = "disabled";
435	};
436
437	sdmmc: mmc@10214000 {
438		compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc";
439		reg = <0x10214000 0x4000>;
440		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
441		clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
442			 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
443		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
444		dmas = <&pdma 10>;
445		dma-names = "rx-tx";
446		fifo-depth = <256>;
447		max-frequency = <150000000>;
448		resets = <&cru SRST_SDMMC>;
449		reset-names = "reset";
450		status = "disabled";
451	};
452
453	sdio: mmc@10218000 {
454		compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc";
455		reg = <0x10218000 0x4000>;
456		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
457		clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
458			 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
459		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
460		dmas = <&pdma 11>;
461		dma-names = "rx-tx";
462		fifo-depth = <256>;
463		max-frequency = <150000000>;
464		resets = <&cru SRST_SDIO>;
465		reset-names = "reset";
466		status = "disabled";
467	};
468
469	emmc: mmc@1021c000 {
470		compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc";
471		reg = <0x1021c000 0x4000>;
472		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
473		clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
474			 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
475		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
476		dmas = <&pdma 12>;
477		dma-names = "rx-tx";
478		fifo-depth = <256>;
479		max-frequency = <150000000>;
480		resets = <&cru SRST_EMMC>;
481		reset-names = "reset";
482		status = "disabled";
483	};
484
485	i2s_2ch: i2s@10220000 {
486		compatible = "rockchip,rk3128-i2s", "rockchip,rk3066-i2s";
487		reg = <0x10220000 0x1000>;
488		interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
489		clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S_2CH>;
490		clock-names = "i2s_clk", "i2s_hclk";
491		dmas = <&pdma 0>, <&pdma 1>;
492		dma-names = "tx", "rx";
493		rockchip,playback-channels = <2>;
494		pinctrl-names = "default";
495		pinctrl-0 = <&i2s_bus>;
496		#sound-dai-cells = <0>;
497		status = "disabled";
498	};
499
500	nfc: nand-controller@10500000 {
501		compatible = "rockchip,rk3128-nfc", "rockchip,rk2928-nfc";
502		reg = <0x10500000 0x4000>;
503		interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
504		clocks = <&cru HCLK_NANDC>, <&cru SCLK_NANDC>;
505		clock-names = "ahb", "nfc";
506		pinctrl-names = "default";
507		pinctrl-0 = <&flash_ale &flash_bus8 &flash_cle &flash_cs0
508			     &flash_dqs &flash_rdn &flash_rdy &flash_wrn>;
509		status = "disabled";
510	};
511
512	cru: clock-controller@20000000 {
513		compatible = "rockchip,rk3128-cru";
514		reg = <0x20000000 0x1000>;
515		clocks = <&xin24m>;
516		clock-names = "xin24m";
517		rockchip,grf = <&grf>;
518		#clock-cells = <1>;
519		#reset-cells = <1>;
520		assigned-clocks = <&cru PLL_GPLL>;
521		assigned-clock-rates = <594000000>;
522	};
523
524	grf: syscon@20008000 {
525		compatible = "rockchip,rk3128-grf", "syscon", "simple-mfd";
526		reg = <0x20008000 0x1000>;
527		#address-cells = <1>;
528		#size-cells = <1>;
529
530		usb2phy: usb2phy@17c {
531			compatible = "rockchip,rk3128-usb2phy";
532			reg = <0x017c 0x0c>;
533			clocks = <&cru SCLK_OTGPHY0>;
534			clock-names = "phyclk";
535			clock-output-names = "usb480m_phy";
536			assigned-clocks = <&cru SCLK_USB480M>;
537			assigned-clock-parents = <&usb2phy>;
538			#clock-cells = <0>;
539			status = "disabled";
540
541			usb2phy_host: host-port {
542				interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
543				interrupt-names = "linestate";
544				#phy-cells = <0>;
545				status = "disabled";
546			};
547
548			usb2phy_otg: otg-port {
549				interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
550					     <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
551					     <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
552				interrupt-names = "otg-bvalid", "otg-id",
553						  "linestate";
554				#phy-cells = <0>;
555				status = "disabled";
556			};
557		};
558	};
559
560	hdmi: hdmi@20034000 {
561		compatible = "rockchip,rk3128-inno-hdmi";
562		reg = <0x20034000 0x4000>;
563		interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
564		clocks = <&cru PCLK_HDMI>, <&cru DCLK_VOP>;
565		clock-names = "pclk", "ref";
566		pinctrl-names = "default";
567		pinctrl-0 = <&hdmii2c_xfer &hdmi_hpd &hdmi_cec>;
568		power-domains = <&power RK3128_PD_VIO>;
569		status = "disabled";
570
571		ports {
572			#address-cells = <1>;
573			#size-cells = <0>;
574
575			hdmi_in: port@0 {
576				reg = <0>;
577				hdmi_in_vop: endpoint {
578					remote-endpoint = <&vop_out_hdmi>;
579				};
580			};
581
582			hdmi_out: port@1 {
583				reg = <1>;
584			};
585		};
586	};
587
588	dphy: phy@20038000 {
589		compatible = "rockchip,rk3128-dsi-dphy";
590		reg = <0x20038000 0x4000>;
591		clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPIPHY>;
592		clock-names = "ref", "pclk";
593		#phy-cells = <0>;
594		power-domains = <&power RK3128_PD_VIO>;
595		resets = <&cru SRST_MIPIPHY_P>;
596		reset-names = "apb";
597		status = "disabled";
598	};
599
600	timer0: timer@20044000 {
601		compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer";
602		reg = <0x20044000 0x20>;
603		interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
604		clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER0>;
605		clock-names = "pclk", "timer";
606	};
607
608	timer1: timer@20044020 {
609		compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer";
610		reg = <0x20044020 0x20>;
611		interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
612		clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER1>;
613		clock-names = "pclk", "timer";
614	};
615
616	timer2: timer@20044040 {
617		compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer";
618		reg = <0x20044040 0x20>;
619		interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
620		clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER2>;
621		clock-names = "pclk", "timer";
622	};
623
624	timer3: timer@20044060 {
625		compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer";
626		reg = <0x20044060 0x20>;
627		interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
628		clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER3>;
629		clock-names = "pclk", "timer";
630	};
631
632	timer4: timer@20044080 {
633		compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer";
634		reg = <0x20044080 0x20>;
635		interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
636		clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER4>;
637		clock-names = "pclk", "timer";
638	};
639
640	timer5: timer@200440a0 {
641		compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer";
642		reg = <0x200440a0 0x20>;
643		interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
644		clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER5>;
645		clock-names = "pclk", "timer";
646	};
647
648	watchdog: watchdog@2004c000 {
649		compatible = "rockchip,rk3128-wdt", "snps,dw-wdt";
650		reg = <0x2004c000 0x100>;
651		interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
652		clocks = <&cru PCLK_WDT>;
653		status = "disabled";
654	};
655
656	pwm0: pwm@20050000 {
657		compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm";
658		reg = <0x20050000 0x10>;
659		clocks = <&cru PCLK_PWM>;
660		pinctrl-names = "default";
661		pinctrl-0 = <&pwm0_pin>;
662		#pwm-cells = <3>;
663		status = "disabled";
664	};
665
666	pwm1: pwm@20050010 {
667		compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm";
668		reg = <0x20050010 0x10>;
669		clocks = <&cru PCLK_PWM>;
670		pinctrl-names = "default";
671		pinctrl-0 = <&pwm1_pin>;
672		#pwm-cells = <3>;
673		status = "disabled";
674	};
675
676	pwm2: pwm@20050020 {
677		compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm";
678		reg = <0x20050020 0x10>;
679		clocks = <&cru PCLK_PWM>;
680		pinctrl-names = "default";
681		pinctrl-0 = <&pwm2_pin>;
682		#pwm-cells = <3>;
683		status = "disabled";
684	};
685
686	pwm3: pwm@20050030 {
687		compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm";
688		reg = <0x20050030 0x10>;
689		clocks = <&cru PCLK_PWM>;
690		pinctrl-names = "default";
691		pinctrl-0 = <&pwm3_pin>;
692		#pwm-cells = <3>;
693		status = "disabled";
694	};
695
696	i2c1: i2c@20056000 {
697		compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c";
698		reg = <0x20056000 0x1000>;
699		interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
700		clock-names = "i2c";
701		clocks = <&cru PCLK_I2C1>;
702		pinctrl-names = "default";
703		pinctrl-0 = <&i2c1_xfer>;
704		#address-cells = <1>;
705		#size-cells = <0>;
706		status = "disabled";
707	};
708
709	i2c2: i2c@2005a000 {
710		compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c";
711		reg = <0x2005a000 0x1000>;
712		interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
713		clock-names = "i2c";
714		clocks = <&cru PCLK_I2C2>;
715		pinctrl-names = "default";
716		pinctrl-0 = <&i2c2_xfer>;
717		#address-cells = <1>;
718		#size-cells = <0>;
719		status = "disabled";
720	};
721
722	i2c3: i2c@2005e000 {
723		compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c";
724		reg = <0x2005e000 0x1000>;
725		interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
726		clock-names = "i2c";
727		clocks = <&cru PCLK_I2C3>;
728		pinctrl-names = "default";
729		pinctrl-0 = <&i2c3_xfer>;
730		#address-cells = <1>;
731		#size-cells = <0>;
732		status = "disabled";
733	};
734
735	uart0: serial@20060000 {
736		compatible = "rockchip,rk3128-uart", "snps,dw-apb-uart";
737		reg = <0x20060000 0x100>;
738		interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
739		clock-frequency = <24000000>;
740		clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
741		clock-names = "baudclk", "apb_pclk";
742		dmas = <&pdma 2>, <&pdma 3>;
743		dma-names = "tx", "rx";
744		pinctrl-names = "default";
745		pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
746		reg-io-width = <4>;
747		reg-shift = <2>;
748		status = "disabled";
749	};
750
751	uart1: serial@20064000 {
752		compatible = "rockchip,rk3128-uart", "snps,dw-apb-uart";
753		reg = <0x20064000 0x100>;
754		interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
755		clock-frequency = <24000000>;
756		clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
757		clock-names = "baudclk", "apb_pclk";
758		dmas = <&pdma 4>, <&pdma 5>;
759		dma-names = "tx", "rx";
760		pinctrl-names = "default";
761		pinctrl-0 = <&uart1_xfer>;
762		reg-io-width = <4>;
763		reg-shift = <2>;
764		status = "disabled";
765	};
766
767	uart2: serial@20068000 {
768		compatible = "rockchip,rk3128-uart", "snps,dw-apb-uart";
769		reg = <0x20068000 0x100>;
770		interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
771		clock-frequency = <24000000>;
772		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
773		clock-names = "baudclk", "apb_pclk";
774		dmas = <&pdma 6>, <&pdma 7>;
775		dma-names = "tx", "rx";
776		pinctrl-names = "default";
777		pinctrl-0 = <&uart2_xfer>;
778		reg-io-width = <4>;
779		reg-shift = <2>;
780		status = "disabled";
781	};
782
783	saradc: saradc@2006c000 {
784		compatible = "rockchip,saradc";
785		reg = <0x2006c000 0x100>;
786		interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
787		clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
788		clock-names = "saradc", "apb_pclk";
789		resets = <&cru SRST_SARADC>;
790		reset-names = "saradc-apb";
791		#io-channel-cells = <1>;
792		status = "disabled";
793	};
794
795	i2c0: i2c@20072000 {
796		compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c";
797		reg = <0x20072000 0x1000>;
798		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
799		clock-names = "i2c";
800		clocks = <&cru PCLK_I2C0>;
801		pinctrl-names = "default";
802		pinctrl-0 = <&i2c0_xfer>;
803		#address-cells = <1>;
804		#size-cells = <0>;
805		status = "disabled";
806	};
807
808	spi0: spi@20074000 {
809		compatible = "rockchip,rk3128-spi", "rockchip,rk3066-spi";
810		reg = <0x20074000 0x1000>;
811		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
812		clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
813		clock-names = "spiclk", "apb_pclk";
814		dmas = <&pdma 8>, <&pdma 9>;
815		dma-names = "tx", "rx";
816		pinctrl-names = "default";
817		pinctrl-0 = <&spi0_tx &spi0_rx &spi0_clk &spi0_cs0 &spi0_cs1>;
818		#address-cells = <1>;
819		#size-cells = <0>;
820		status = "disabled";
821	};
822
823	pdma: dma-controller@20078000 {
824		compatible = "arm,pl330", "arm,primecell";
825		reg = <0x20078000 0x4000>;
826		interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
827			     <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
828		arm,pl330-broken-no-flushp;
829		arm,pl330-periph-burst;
830		clocks = <&cru ACLK_DMAC>;
831		clock-names = "apb_pclk";
832		#dma-cells = <1>;
833	};
834
835	gmac: ethernet@2008c000 {
836		compatible = "rockchip,rk3128-gmac";
837		reg = <0x2008c000 0x4000>;
838		interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
839			     <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
840		interrupt-names = "macirq", "eth_wake_irq";
841		clocks = <&cru SCLK_MAC>,
842			 <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
843			 <&cru SCLK_MAC_REF>, <&cru SCLK_MAC_REFOUT>,
844			 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
845		clock-names = "stmmaceth",
846			      "mac_clk_rx", "mac_clk_tx",
847			      "clk_mac_ref", "clk_mac_refout",
848			      "aclk_mac", "pclk_mac";
849		resets = <&cru SRST_GMAC>;
850		reset-names = "stmmaceth";
851		rockchip,grf = <&grf>;
852		rx-fifo-depth = <4096>;
853		tx-fifo-depth = <2048>;
854		status = "disabled";
855
856		mdio: mdio {
857			compatible = "snps,dwmac-mdio";
858			#address-cells = <0x1>;
859			#size-cells = <0x0>;
860		};
861	};
862
863	pinctrl: pinctrl {
864		compatible = "rockchip,rk3128-pinctrl";
865		rockchip,grf = <&grf>;
866		#address-cells = <1>;
867		#size-cells = <1>;
868		ranges;
869
870		gpio0: gpio@2007c000 {
871			compatible = "rockchip,gpio-bank";
872			reg = <0x2007c000 0x100>;
873			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
874			clocks = <&cru PCLK_GPIO0>;
875			gpio-controller;
876			#gpio-cells = <2>;
877			interrupt-controller;
878			#interrupt-cells = <2>;
879		};
880
881		gpio1: gpio@20080000 {
882			compatible = "rockchip,gpio-bank";
883			reg = <0x20080000 0x100>;
884			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
885			clocks = <&cru PCLK_GPIO1>;
886			gpio-controller;
887			#gpio-cells = <2>;
888			interrupt-controller;
889			#interrupt-cells = <2>;
890		};
891
892		gpio2: gpio@20084000 {
893			compatible = "rockchip,gpio-bank";
894			reg = <0x20084000 0x100>;
895			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
896			clocks = <&cru PCLK_GPIO2>;
897			gpio-controller;
898			#gpio-cells = <2>;
899			interrupt-controller;
900			#interrupt-cells = <2>;
901		};
902
903		gpio3: gpio@20088000 {
904			compatible = "rockchip,gpio-bank";
905			reg = <0x20088000 0x100>;
906			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
907			clocks = <&cru PCLK_GPIO3>;
908			gpio-controller;
909			#gpio-cells = <2>;
910			interrupt-controller;
911			#interrupt-cells = <2>;
912		};
913
914		pcfg_pull_default: pcfg-pull-default {
915			bias-pull-pin-default;
916		};
917
918		pcfg_pull_none: pcfg-pull-none {
919			bias-disable;
920		};
921
922		emmc {
923			emmc_clk: emmc-clk {
924				rockchip,pins = <2 RK_PA7 2 &pcfg_pull_none>;
925			};
926
927			emmc_cmd: emmc-cmd {
928				rockchip,pins = <1 RK_PC6 2 &pcfg_pull_default>;
929			};
930
931			emmc_cmd1: emmc-cmd1 {
932				rockchip,pins = <2 RK_PA4 2 &pcfg_pull_default>;
933			};
934
935			emmc_pwr: emmc-pwr {
936				rockchip,pins = <2 RK_PA5 2 &pcfg_pull_default>;
937			};
938
939			emmc_bus1: emmc-bus1 {
940				rockchip,pins = <1 RK_PD0 2 &pcfg_pull_default>;
941			};
942
943			emmc_bus4: emmc-bus4 {
944				rockchip,pins = <1 RK_PD0 2 &pcfg_pull_default>,
945						<1 RK_PD1 2 &pcfg_pull_default>,
946						<1 RK_PD2 2 &pcfg_pull_default>,
947						<1 RK_PD3 2 &pcfg_pull_default>;
948			};
949
950			emmc_bus8: emmc-bus8 {
951				rockchip,pins = <1 RK_PD0 2 &pcfg_pull_default>,
952						<1 RK_PD1 2 &pcfg_pull_default>,
953						<1 RK_PD2 2 &pcfg_pull_default>,
954						<1 RK_PD3 2 &pcfg_pull_default>,
955						<1 RK_PD4 2 &pcfg_pull_default>,
956						<1 RK_PD5 2 &pcfg_pull_default>,
957						<1 RK_PD6 2 &pcfg_pull_default>,
958						<1 RK_PD7 2 &pcfg_pull_default>;
959			};
960		};
961
962		gmac {
963			rgmii_pins: rgmii-pins {
964				rockchip,pins = <2 RK_PB0 3 &pcfg_pull_default>,
965						<2 RK_PB1 3 &pcfg_pull_default>,
966						<2 RK_PB3 3 &pcfg_pull_default>,
967						<2 RK_PB4 3 &pcfg_pull_default>,
968						<2 RK_PB5 3 &pcfg_pull_default>,
969						<2 RK_PB6 3 &pcfg_pull_default>,
970						<2 RK_PC0 3 &pcfg_pull_default>,
971						<2 RK_PC1 3 &pcfg_pull_default>,
972						<2 RK_PC2 3 &pcfg_pull_default>,
973						<2 RK_PC3 3 &pcfg_pull_default>,
974						<2 RK_PD1 3 &pcfg_pull_default>,
975						<2 RK_PC4 4 &pcfg_pull_default>,
976						<2 RK_PC5 4 &pcfg_pull_default>,
977						<2 RK_PC6 4 &pcfg_pull_default>,
978						<2 RK_PC7 4 &pcfg_pull_default>;
979			};
980
981			rmii_pins: rmii-pins {
982				rockchip,pins = <2 RK_PB0 3 &pcfg_pull_default>,
983						<2 RK_PB4 3 &pcfg_pull_default>,
984						<2 RK_PB5 3 &pcfg_pull_default>,
985						<2 RK_PB6 3 &pcfg_pull_default>,
986						<2 RK_PB7 3 &pcfg_pull_default>,
987						<2 RK_PC0 3 &pcfg_pull_default>,
988						<2 RK_PC1 3 &pcfg_pull_default>,
989						<2 RK_PC2 3 &pcfg_pull_default>,
990						<2 RK_PC3 3 &pcfg_pull_default>,
991						<2 RK_PD1 3 &pcfg_pull_default>;
992			};
993		};
994
995		hdmi {
996			hdmii2c_xfer: hdmii2c-xfer {
997				rockchip,pins = <0 RK_PA6 2 &pcfg_pull_none>,
998						<0 RK_PA7 2 &pcfg_pull_none>;
999			};
1000
1001			hdmi_hpd: hdmi-hpd {
1002				rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none>;
1003			};
1004
1005			hdmi_cec: hdmi-cec {
1006				rockchip,pins = <0 RK_PC4 1 &pcfg_pull_none>;
1007			};
1008		};
1009
1010		i2c0 {
1011			i2c0_xfer: i2c0-xfer {
1012				rockchip,pins = <0 RK_PA0 1 &pcfg_pull_none>,
1013						<0 RK_PA1 1 &pcfg_pull_none>;
1014			};
1015		};
1016
1017		i2c1 {
1018			i2c1_xfer: i2c1-xfer {
1019				rockchip,pins = <0 RK_PA2 1 &pcfg_pull_none>,
1020						<0 RK_PA3 1 &pcfg_pull_none>;
1021			};
1022		};
1023
1024		i2c2 {
1025			i2c2_xfer: i2c2-xfer {
1026				rockchip,pins = <2 RK_PC4 3 &pcfg_pull_none>,
1027						<2 RK_PC5 3 &pcfg_pull_none>;
1028			};
1029		};
1030
1031		i2c3 {
1032			i2c3_xfer: i2c3-xfer {
1033				rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>,
1034						<0 RK_PA7 1 &pcfg_pull_none>;
1035			};
1036		};
1037
1038		i2s {
1039			i2s_bus: i2s-bus {
1040				rockchip,pins = <0 RK_PB0 1 &pcfg_pull_none>,
1041						<0 RK_PB1 1 &pcfg_pull_none>,
1042						<0 RK_PB3 1 &pcfg_pull_none>,
1043						<0 RK_PB4 1 &pcfg_pull_none>,
1044						<0 RK_PB5 1 &pcfg_pull_none>,
1045						<0 RK_PB6 1 &pcfg_pull_none>;
1046			};
1047
1048			i2s1_bus: i2s1-bus {
1049				rockchip,pins = <1 RK_PA0 1 &pcfg_pull_none>,
1050						<1 RK_PA1 1 &pcfg_pull_none>,
1051						<1 RK_PA2 1 &pcfg_pull_none>,
1052						<1 RK_PA3 1 &pcfg_pull_none>,
1053						<1 RK_PA4 1 &pcfg_pull_none>,
1054						<1 RK_PA5 1 &pcfg_pull_none>;
1055			};
1056		};
1057
1058		lcdc {
1059			lcdc_dclk: lcdc-dclk {
1060				rockchip,pins = <2 RK_PB0 1 &pcfg_pull_none>;
1061			};
1062
1063			lcdc_den: lcdc-den {
1064				rockchip,pins = <2 RK_PB3 1 &pcfg_pull_none>;
1065			};
1066
1067			lcdc_hsync: lcdc-hsync {
1068				rockchip,pins = <2 RK_PB1 1 &pcfg_pull_none>;
1069			};
1070
1071			lcdc_vsync: lcdc-vsync {
1072				rockchip,pins = <2 RK_PB2 1 &pcfg_pull_none>;
1073			};
1074
1075			lcdc_rgb24: lcdc-rgb24 {
1076				rockchip,pins = <2 RK_PB4 1 &pcfg_pull_none>,
1077						<2 RK_PB5 1 &pcfg_pull_none>,
1078						<2 RK_PB6 1 &pcfg_pull_none>,
1079						<2 RK_PB7 1 &pcfg_pull_none>,
1080						<2 RK_PC0 1 &pcfg_pull_none>,
1081						<2 RK_PC1 1 &pcfg_pull_none>,
1082						<2 RK_PC2 1 &pcfg_pull_none>,
1083						<2 RK_PC3 1 &pcfg_pull_none>,
1084						<2 RK_PC4 1 &pcfg_pull_none>,
1085						<2 RK_PC5 1 &pcfg_pull_none>,
1086						<2 RK_PC6 1 &pcfg_pull_none>,
1087						<2 RK_PC7 1 &pcfg_pull_none>,
1088						<2 RK_PD0 1 &pcfg_pull_none>,
1089						<2 RK_PD1 1 &pcfg_pull_none>;
1090			};
1091		};
1092
1093		nfc {
1094			flash_ale: flash-ale {
1095				rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>;
1096			};
1097
1098			flash_cle: flash-cle {
1099				rockchip,pins = <2 RK_PA1 1 &pcfg_pull_none>;
1100			};
1101
1102			flash_wrn: flash-wrn {
1103				rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>;
1104			};
1105
1106			flash_rdn: flash-rdn {
1107				rockchip,pins = <2 RK_PA3 1 &pcfg_pull_none>;
1108			};
1109
1110			flash_rdy: flash-rdy {
1111				rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>;
1112			};
1113
1114			flash_cs0: flash-cs0 {
1115				rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>;
1116			};
1117
1118			flash_dqs: flash-dqs {
1119				rockchip,pins = <2 RK_PA7 1 &pcfg_pull_none>;
1120			};
1121
1122			flash_bus8: flash-bus8 {
1123				rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>,
1124						<1 RK_PD1 1 &pcfg_pull_none>,
1125						<1 RK_PD2 1 &pcfg_pull_none>,
1126						<1 RK_PD3 1 &pcfg_pull_none>,
1127						<1 RK_PD4 1 &pcfg_pull_none>,
1128						<1 RK_PD5 1 &pcfg_pull_none>,
1129						<1 RK_PD6 1 &pcfg_pull_none>,
1130						<1 RK_PD7 1 &pcfg_pull_none>;
1131			};
1132		};
1133
1134		pwm0 {
1135			pwm0_pin: pwm0-pin {
1136				rockchip,pins = <0 RK_PD2 1 &pcfg_pull_none>;
1137			};
1138		};
1139
1140		pwm1 {
1141			pwm1_pin: pwm1-pin {
1142				rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>;
1143			};
1144		};
1145
1146		pwm2 {
1147			pwm2_pin: pwm2-pin {
1148				rockchip,pins = <0 RK_PD4 1 &pcfg_pull_none>;
1149			};
1150		};
1151
1152		pwm3 {
1153			pwm3_pin: pwm3-pin {
1154				rockchip,pins = <3 RK_PD2 1 &pcfg_pull_none>;
1155			};
1156		};
1157
1158		sdio {
1159			sdio_clk: sdio-clk {
1160				rockchip,pins = <1 RK_PA0 2 &pcfg_pull_none>;
1161			};
1162
1163			sdio_cmd: sdio-cmd {
1164				rockchip,pins = <0 RK_PA3 2 &pcfg_pull_default>;
1165			};
1166
1167			sdio_pwren: sdio-pwren {
1168				rockchip,pins = <0 RK_PD6 1 &pcfg_pull_default>;
1169			};
1170
1171			sdio_bus4: sdio-bus4 {
1172				rockchip,pins = <1 RK_PA1 2 &pcfg_pull_default>,
1173						<1 RK_PA2 2 &pcfg_pull_default>,
1174						<1 RK_PA4 2 &pcfg_pull_default>,
1175						<1 RK_PA5 2 &pcfg_pull_default>;
1176			};
1177		};
1178
1179		sdmmc {
1180			sdmmc_clk: sdmmc-clk {
1181				rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>;
1182			};
1183
1184			sdmmc_cmd: sdmmc-cmd {
1185				rockchip,pins = <1 RK_PB7 1 &pcfg_pull_default>;
1186			};
1187
1188			sdmmc_det: sdmmc-det {
1189				rockchip,pins = <1 RK_PC1 1 &pcfg_pull_default>;
1190			};
1191
1192			sdmmc_wp: sdmmc-wp {
1193				rockchip,pins = <1 RK_PA7 1 &pcfg_pull_default>;
1194			};
1195
1196			sdmmc_pwren: sdmmc-pwren {
1197				rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_default>;
1198			};
1199
1200			sdmmc_bus4: sdmmc-bus4 {
1201				rockchip,pins = <1 RK_PC2 1 &pcfg_pull_default>,
1202						<1 RK_PC3 1 &pcfg_pull_default>,
1203						<1 RK_PC4 1 &pcfg_pull_default>,
1204						<1 RK_PC5 1 &pcfg_pull_default>;
1205			};
1206		};
1207
1208		sfc {
1209			sfc_bus2: sfc-bus2 {
1210				rockchip,pins = <1 RK_PD0 3 &pcfg_pull_default>,
1211						<1 RK_PD1 3 &pcfg_pull_default>;
1212			};
1213
1214			sfc_bus4: sfc-bus4 {
1215				rockchip,pins = <1 RK_PD0 3 &pcfg_pull_default>,
1216						<1 RK_PD1 3 &pcfg_pull_default>,
1217						<1 RK_PD2 3 &pcfg_pull_default>,
1218						<1 RK_PD3 3 &pcfg_pull_default>;
1219			};
1220
1221			sfc_clk: sfc-clk {
1222				rockchip,pins = <2 RK_PA4 3 &pcfg_pull_none>;
1223			};
1224
1225			sfc_cs0: sfc-cs0 {
1226				rockchip,pins = <2 RK_PA2 2 &pcfg_pull_default>;
1227			};
1228
1229			sfc_cs1: sfc-cs1 {
1230				rockchip,pins = <2 RK_PA3 2 &pcfg_pull_default>;
1231			};
1232		};
1233
1234		spdif {
1235			spdif_tx: spdif-tx {
1236				rockchip,pins = <3 RK_PD3 1 &pcfg_pull_none>;
1237			};
1238		};
1239
1240		spi0 {
1241			spi0_clk: spi0-clk {
1242				rockchip,pins = <1 RK_PB0 1 &pcfg_pull_default>;
1243			};
1244
1245			spi0_cs0: spi0-cs0 {
1246				rockchip,pins = <1 RK_PB3 1 &pcfg_pull_default>;
1247			};
1248
1249			spi0_tx: spi0-tx {
1250				rockchip,pins = <1 RK_PB1 1 &pcfg_pull_default>;
1251			};
1252
1253			spi0_rx: spi0-rx {
1254				rockchip,pins = <1 RK_PB2 1 &pcfg_pull_default>;
1255			};
1256
1257			spi0_cs1: spi0-cs1 {
1258				rockchip,pins = <1 RK_PB4 1 &pcfg_pull_default>;
1259			};
1260
1261			spi1_clk: spi1-clk {
1262				rockchip,pins = <2 RK_PA0 2 &pcfg_pull_default>;
1263			};
1264
1265			spi1_cs0: spi1-cs0 {
1266				rockchip,pins = <1 RK_PD6 3 &pcfg_pull_default>;
1267			};
1268
1269			spi1_tx: spi1-tx {
1270				rockchip,pins = <1 RK_PD5 3 &pcfg_pull_default>;
1271			};
1272
1273			spi1_rx: spi1-rx {
1274				rockchip,pins = <1 RK_PD4 3 &pcfg_pull_default>;
1275			};
1276
1277			spi1_cs1: spi1-cs1 {
1278				rockchip,pins = <1 RK_PD7 3 &pcfg_pull_default>;
1279			};
1280
1281			spi2_clk: spi2-clk {
1282				rockchip,pins = <0 RK_PB1 2 &pcfg_pull_default>;
1283			};
1284
1285			spi2_cs0: spi2-cs0 {
1286				rockchip,pins = <0 RK_PB6 2 &pcfg_pull_default>;
1287			};
1288
1289			spi2_tx: spi2-tx {
1290				rockchip,pins = <0 RK_PB3 2 &pcfg_pull_default>;
1291			};
1292
1293			spi2_rx: spi2-rx {
1294				rockchip,pins = <0 RK_PB5 2 &pcfg_pull_default>;
1295			};
1296		};
1297
1298		uart0 {
1299			uart0_xfer: uart0-xfer {
1300				rockchip,pins = <2 RK_PD2 2 &pcfg_pull_default>,
1301						<2 RK_PD3 2 &pcfg_pull_none>;
1302			};
1303
1304			uart0_cts: uart0-cts {
1305				rockchip,pins = <2 RK_PD5 2 &pcfg_pull_none>;
1306			};
1307
1308			uart0_rts: uart0-rts {
1309				rockchip,pins = <0 RK_PC1 2 &pcfg_pull_none>;
1310			};
1311		};
1312
1313		uart1 {
1314			uart1_xfer: uart1-xfer {
1315				rockchip,pins = <1 RK_PB1 2 &pcfg_pull_default>,
1316						<1 RK_PB2 2 &pcfg_pull_default>;
1317			};
1318
1319			uart1_cts: uart1-cts {
1320				rockchip,pins = <1 RK_PB0 2 &pcfg_pull_none>;
1321			};
1322
1323			uart1_rts: uart1-rts {
1324				rockchip,pins = <1 RK_PB3 2 &pcfg_pull_none>;
1325			};
1326		};
1327
1328		uart2 {
1329			uart2_xfer: uart2-xfer {
1330				rockchip,pins = <1 RK_PC2 2 &pcfg_pull_default>,
1331						<1 RK_PC3 2 &pcfg_pull_none>;
1332			};
1333
1334			uart2_cts: uart2-cts {
1335				rockchip,pins = <0 RK_PD1 1 &pcfg_pull_none>;
1336			};
1337
1338			uart2_rts: uart2-rts {
1339				rockchip,pins = <0 RK_PD0 1 &pcfg_pull_none>;
1340			};
1341		};
1342	};
1343};
1344