1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
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>
16 compatible = "rockchip,rk3328";
18 interrupt-parent = <&gic>;
31 ethernet1 = &gmac2phy;
40 compatible = "arm,cortex-a53";
42 clocks = <&cru ARMCLK>;
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>;
53 compatible = "arm,cortex-a53";
55 clocks = <&cru ARMCLK>;
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>;
66 compatible = "arm,cortex-a53";
68 clocks = <&cru ARMCLK>;
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>;
79 compatible = "arm,cortex-a53";
81 clocks = <&cru ARMCLK>;
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>;
91 entry-method = "psci";
93 CPU_SLEEP: cpu-sleep {
94 compatible = "arm,idle-state";
96 arm,psci-suspend-param = <0x0010000>;
97 entry-latency-us = <120>;
98 exit-latency-us = <250>;
99 min-residency-us = <900>;
104 compatible = "cache";
108 cpu0_opp_table: opp_table0 {
109 compatible = "operating-points-v2";
113 opp-hz = /bits/ 64 <408000000>;
114 opp-microvolt = <950000>;
115 clock-latency-ns = <40000>;
119 opp-hz = /bits/ 64 <600000000>;
120 opp-microvolt = <950000>;
121 clock-latency-ns = <40000>;
124 opp-hz = /bits/ 64 <816000000>;
125 opp-microvolt = <1000000>;
126 clock-latency-ns = <40000>;
129 opp-hz = /bits/ 64 <1008000000>;
130 opp-microvolt = <1100000>;
131 clock-latency-ns = <40000>;
134 opp-hz = /bits/ 64 <1200000000>;
135 opp-microvolt = <1225000>;
136 clock-latency-ns = <40000>;
139 opp-hz = /bits/ 64 <1296000000>;
140 opp-microvolt = <1300000>;
141 clock-latency-ns = <40000>;
146 compatible = "simple-bus";
147 #address-cells = <2>;
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 clocks = <&cru ACLK_DMAC>;
157 clock-names = "apb_pclk";
162 analog_sound: analog-sound {
163 compatible = "simple-audio-card";
164 simple-audio-card,format = "i2s";
165 simple-audio-card,mclk-fs = <256>;
166 simple-audio-card,name = "Analog";
169 simple-audio-card,cpu {
173 simple-audio-card,codec {
174 sound-dai = <&codec>;
179 compatible = "arm,cortex-a53-pmu";
180 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
181 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
182 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
183 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
184 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
187 display_subsystem: display-subsystem {
188 compatible = "rockchip,display-subsystem";
192 hdmi_sound: hdmi-sound {
193 compatible = "simple-audio-card";
194 simple-audio-card,format = "i2s";
195 simple-audio-card,mclk-fs = <128>;
196 simple-audio-card,name = "HDMI";
199 simple-audio-card,cpu {
203 simple-audio-card,codec {
209 compatible = "arm,psci-1.0", "arm,psci-0.2";
214 compatible = "arm,armv8-timer";
215 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
216 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
217 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
218 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
222 compatible = "fixed-clock";
224 clock-frequency = <24000000>;
225 clock-output-names = "xin24m";
229 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
230 reg = <0x0 0xff000000 0x0 0x1000>;
231 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
232 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
233 clock-names = "i2s_clk", "i2s_hclk";
234 dmas = <&dmac 11>, <&dmac 12>;
235 dma-names = "tx", "rx";
236 #sound-dai-cells = <0>;
241 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
242 reg = <0x0 0xff010000 0x0 0x1000>;
243 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
244 clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
245 clock-names = "i2s_clk", "i2s_hclk";
246 dmas = <&dmac 14>, <&dmac 15>;
247 dma-names = "tx", "rx";
248 #sound-dai-cells = <0>;
253 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
254 reg = <0x0 0xff020000 0x0 0x1000>;
255 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
256 clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
257 clock-names = "i2s_clk", "i2s_hclk";
258 dmas = <&dmac 0>, <&dmac 1>;
259 dma-names = "tx", "rx";
260 #sound-dai-cells = <0>;
264 spdif: spdif@ff030000 {
265 compatible = "rockchip,rk3328-spdif";
266 reg = <0x0 0xff030000 0x0 0x1000>;
267 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
268 clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
269 clock-names = "mclk", "hclk";
272 pinctrl-names = "default";
273 pinctrl-0 = <&spdifm2_tx>;
274 #sound-dai-cells = <0>;
279 compatible = "rockchip,pdm";
280 reg = <0x0 0xff040000 0x0 0x1000>;
281 clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
282 clock-names = "pdm_clk", "pdm_hclk";
285 pinctrl-names = "default", "sleep";
286 pinctrl-0 = <&pdmm0_clk
291 pinctrl-1 = <&pdmm0_clk_sleep
299 grf: syscon@ff100000 {
300 compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
301 reg = <0x0 0xff100000 0x0 0x1000>;
302 #address-cells = <1>;
305 io_domains: io-domains {
306 compatible = "rockchip,rk3328-io-voltage-domain";
311 compatible = "rockchip,rk3328-grf-gpio";
316 power: power-controller {
317 compatible = "rockchip,rk3328-power-controller";
318 #power-domain-cells = <1>;
319 #address-cells = <1>;
322 pd_hevc@RK3328_PD_HEVC {
323 reg = <RK3328_PD_HEVC>;
325 pd_video@RK3328_PD_VIDEO {
326 reg = <RK3328_PD_VIDEO>;
328 pd_vpu@RK3328_PD_VPU {
329 reg = <RK3328_PD_VPU>;
330 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
335 compatible = "syscon-reboot-mode";
337 mode-normal = <BOOT_NORMAL>;
338 mode-recovery = <BOOT_RECOVERY>;
339 mode-bootloader = <BOOT_FASTBOOT>;
340 mode-loader = <BOOT_BL_DOWNLOAD>;
344 uart0: serial@ff110000 {
345 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
346 reg = <0x0 0xff110000 0x0 0x100>;
347 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
348 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
349 clock-names = "baudclk", "apb_pclk";
350 dmas = <&dmac 2>, <&dmac 3>;
351 dma-names = "tx", "rx";
352 pinctrl-names = "default";
353 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
359 uart1: serial@ff120000 {
360 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
361 reg = <0x0 0xff120000 0x0 0x100>;
362 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
363 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
364 clock-names = "baudclk", "apb_pclk";
365 dmas = <&dmac 4>, <&dmac 5>;
366 dma-names = "tx", "rx";
367 pinctrl-names = "default";
368 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
374 uart2: serial@ff130000 {
375 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
376 reg = <0x0 0xff130000 0x0 0x100>;
377 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
378 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
379 clock-names = "baudclk", "apb_pclk";
380 dmas = <&dmac 6>, <&dmac 7>;
381 dma-names = "tx", "rx";
382 pinctrl-names = "default";
383 pinctrl-0 = <&uart2m1_xfer>;
390 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
391 reg = <0x0 0xff150000 0x0 0x1000>;
392 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
393 #address-cells = <1>;
395 clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>;
396 clock-names = "i2c", "pclk";
397 pinctrl-names = "default";
398 pinctrl-0 = <&i2c0_xfer>;
403 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
404 reg = <0x0 0xff160000 0x0 0x1000>;
405 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
406 #address-cells = <1>;
408 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
409 clock-names = "i2c", "pclk";
410 pinctrl-names = "default";
411 pinctrl-0 = <&i2c1_xfer>;
416 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
417 reg = <0x0 0xff170000 0x0 0x1000>;
418 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
419 #address-cells = <1>;
421 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
422 clock-names = "i2c", "pclk";
423 pinctrl-names = "default";
424 pinctrl-0 = <&i2c2_xfer>;
429 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
430 reg = <0x0 0xff180000 0x0 0x1000>;
431 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
432 #address-cells = <1>;
434 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
435 clock-names = "i2c", "pclk";
436 pinctrl-names = "default";
437 pinctrl-0 = <&i2c3_xfer>;
442 compatible = "rockchip,rk3328-spi", "rockchip,rk3066-spi";
443 reg = <0x0 0xff190000 0x0 0x1000>;
444 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
445 #address-cells = <1>;
447 clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
448 clock-names = "spiclk", "apb_pclk";
449 dmas = <&dmac 8>, <&dmac 9>;
450 dma-names = "tx", "rx";
451 pinctrl-names = "default";
452 pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>;
456 wdt: watchdog@ff1a0000 {
457 compatible = "snps,dw-wdt";
458 reg = <0x0 0xff1a0000 0x0 0x100>;
459 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
460 clocks = <&cru PCLK_WDT>;
464 compatible = "rockchip,rk3328-pwm";
465 reg = <0x0 0xff1b0000 0x0 0x10>;
466 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
467 clock-names = "pwm", "pclk";
468 pinctrl-names = "default";
469 pinctrl-0 = <&pwm0_pin>;
475 compatible = "rockchip,rk3328-pwm";
476 reg = <0x0 0xff1b0010 0x0 0x10>;
477 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
478 clock-names = "pwm", "pclk";
479 pinctrl-names = "default";
480 pinctrl-0 = <&pwm1_pin>;
486 compatible = "rockchip,rk3328-pwm";
487 reg = <0x0 0xff1b0020 0x0 0x10>;
488 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
489 clock-names = "pwm", "pclk";
490 pinctrl-names = "default";
491 pinctrl-0 = <&pwm2_pin>;
497 compatible = "rockchip,rk3328-pwm";
498 reg = <0x0 0xff1b0030 0x0 0x10>;
499 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
500 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
501 clock-names = "pwm", "pclk";
502 pinctrl-names = "default";
503 pinctrl-0 = <&pwmir_pin>;
509 soc_thermal: soc-thermal {
510 polling-delay-passive = <20>;
511 polling-delay = <1000>;
512 sustainable-power = <1000>;
514 thermal-sensors = <&tsadc 0>;
517 threshold: trip-point0 {
518 temperature = <70000>;
522 target: trip-point1 {
523 temperature = <85000>;
528 temperature = <95000>;
537 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
538 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
539 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
540 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
541 contribution = <4096>;
548 tsadc: tsadc@ff250000 {
549 compatible = "rockchip,rk3328-tsadc";
550 reg = <0x0 0xff250000 0x0 0x100>;
551 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
552 assigned-clocks = <&cru SCLK_TSADC>;
553 assigned-clock-rates = <50000>;
554 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
555 clock-names = "tsadc", "apb_pclk";
556 pinctrl-names = "init", "default", "sleep";
557 pinctrl-0 = <&otp_gpio>;
558 pinctrl-1 = <&otp_out>;
559 pinctrl-2 = <&otp_gpio>;
560 resets = <&cru SRST_TSADC>;
561 reset-names = "tsadc-apb";
562 rockchip,grf = <&grf>;
563 rockchip,hw-tshut-temp = <100000>;
564 #thermal-sensor-cells = <1>;
568 efuse: efuse@ff260000 {
569 compatible = "rockchip,rk3328-efuse";
570 reg = <0x0 0xff260000 0x0 0x50>;
571 #address-cells = <1>;
573 clocks = <&cru SCLK_EFUSE>;
574 clock-names = "pclk_efuse";
575 rockchip,efuse-size = <0x20>;
581 cpu_leakage: cpu-leakage@17 {
584 logic_leakage: logic-leakage@19 {
587 efuse_cpu_version: cpu-version@1a {
593 saradc: adc@ff280000 {
594 compatible = "rockchip,rk3328-saradc", "rockchip,rk3399-saradc";
595 reg = <0x0 0xff280000 0x0 0x100>;
596 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
597 #io-channel-cells = <1>;
598 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
599 clock-names = "saradc", "apb_pclk";
600 resets = <&cru SRST_SARADC_P>;
601 reset-names = "saradc-apb";
606 compatible = "rockchip,rk3328-mali", "arm,mali-450";
607 reg = <0x0 0xff300000 0x0 0x40000>;
608 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
609 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
610 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
611 <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
612 <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
613 <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
614 <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
615 interrupt-names = "gp",
622 clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
623 clock-names = "bus", "core";
624 resets = <&cru SRST_GPU_A>;
627 h265e_mmu: iommu@ff330200 {
628 compatible = "rockchip,iommu";
629 reg = <0x0 0xff330200 0 0x100>;
630 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
631 interrupt-names = "h265e_mmu";
632 clocks = <&cru ACLK_H265>, <&cru PCLK_H265>;
633 clock-names = "aclk", "iface";
638 vepu_mmu: iommu@ff340800 {
639 compatible = "rockchip,iommu";
640 reg = <0x0 0xff340800 0x0 0x40>;
641 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
642 interrupt-names = "vepu_mmu";
643 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
644 clock-names = "aclk", "iface";
649 vpu: video-codec@ff350000 {
650 compatible = "rockchip,rk3328-vpu";
651 reg = <0x0 0xff350000 0x0 0x800>;
652 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
653 interrupt-names = "vdpu";
654 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
655 clock-names = "aclk", "hclk";
657 power-domains = <&power RK3328_PD_VPU>;
660 vpu_mmu: iommu@ff350800 {
661 compatible = "rockchip,iommu";
662 reg = <0x0 0xff350800 0x0 0x40>;
663 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
664 interrupt-names = "vpu_mmu";
665 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
666 clock-names = "aclk", "iface";
668 power-domains = <&power RK3328_PD_VPU>;
671 rkvdec_mmu: iommu@ff360480 {
672 compatible = "rockchip,iommu";
673 reg = <0x0 0xff360480 0x0 0x40>, <0x0 0xff3604c0 0x0 0x40>;
674 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
675 interrupt-names = "rkvdec_mmu";
676 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>;
677 clock-names = "aclk", "iface";
683 compatible = "rockchip,rk3328-vop";
684 reg = <0x0 0xff370000 0x0 0x3efc>;
685 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
686 clocks = <&cru ACLK_VOP>, <&cru DCLK_LCDC>, <&cru HCLK_VOP>;
687 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
688 resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
689 reset-names = "axi", "ahb", "dclk";
694 #address-cells = <1>;
697 vop_out_hdmi: endpoint@0 {
699 remote-endpoint = <&hdmi_in_vop>;
704 vop_mmu: iommu@ff373f00 {
705 compatible = "rockchip,iommu";
706 reg = <0x0 0xff373f00 0x0 0x100>;
707 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
708 interrupt-names = "vop_mmu";
709 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
710 clock-names = "aclk", "iface";
715 hdmi: hdmi@ff3c0000 {
716 compatible = "rockchip,rk3328-dw-hdmi";
717 reg = <0x0 0xff3c0000 0x0 0x20000>;
719 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
720 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
721 clocks = <&cru PCLK_HDMI>,
722 <&cru SCLK_HDMI_SFC>,
724 clock-names = "iahb",
729 pinctrl-names = "default";
730 pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>;
731 rockchip,grf = <&grf>;
732 #sound-dai-cells = <0>;
737 hdmi_in_vop: endpoint {
738 remote-endpoint = <&vop_out_hdmi>;
744 codec: codec@ff410000 {
745 compatible = "rockchip,rk3328-codec";
746 reg = <0x0 0xff410000 0x0 0x1000>;
747 clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
748 clock-names = "pclk", "mclk";
749 rockchip,grf = <&grf>;
750 #sound-dai-cells = <0>;
754 hdmiphy: phy@ff430000 {
755 compatible = "rockchip,rk3328-hdmi-phy";
756 reg = <0x0 0xff430000 0x0 0x10000>;
757 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
758 clocks = <&cru PCLK_HDMIPHY>, <&xin24m>, <&cru DCLK_HDMIPHY>;
759 clock-names = "sysclk", "refoclk", "refpclk";
760 clock-output-names = "hdmi_phy";
762 nvmem-cells = <&efuse_cpu_version>;
763 nvmem-cell-names = "cpu-version";
768 cru: clock-controller@ff440000 {
769 compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon";
770 reg = <0x0 0xff440000 0x0 0x1000>;
771 rockchip,grf = <&grf>;
776 * CPLL should run at 1200, but that is to high for
777 * the initial dividers of most of its children.
778 * We need set cpll child clk div first,
779 * and then set the cpll frequency.
781 <&cru DCLK_LCDC>, <&cru SCLK_PDM>,
782 <&cru SCLK_RTC32K>, <&cru SCLK_UART0>,
783 <&cru SCLK_UART1>, <&cru SCLK_UART2>,
784 <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
785 <&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>,
786 <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
787 <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
788 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
789 <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
790 <&cru SCLK_SDIO>, <&cru SCLK_TSP>,
791 <&cru SCLK_WIFI>, <&cru ARMCLK>,
792 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
793 <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>,
794 <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
795 <&cru HCLK_PERI>, <&cru PCLK_PERI>,
797 assigned-clock-parents =
798 <&cru HDMIPHY>, <&cru PLL_APLL>,
799 <&cru PLL_GPLL>, <&xin24m>,
800 <&xin24m>, <&xin24m>;
801 assigned-clock-rates =
804 <24000000>, <24000000>,
805 <15000000>, <15000000>,
806 <100000000>, <100000000>,
807 <100000000>, <100000000>,
808 <50000000>, <100000000>,
809 <100000000>, <100000000>,
810 <50000000>, <50000000>,
811 <50000000>, <50000000>,
812 <24000000>, <600000000>,
813 <491520000>, <1200000000>,
814 <150000000>, <75000000>,
815 <75000000>, <150000000>,
816 <75000000>, <75000000>,
820 usb2phy_grf: syscon@ff450000 {
821 compatible = "rockchip,rk3328-usb2phy-grf", "syscon",
823 reg = <0x0 0xff450000 0x0 0x10000>;
824 #address-cells = <1>;
827 u2phy: usb2-phy@100 {
828 compatible = "rockchip,rk3328-usb2phy";
831 clock-names = "phyclk";
832 clock-output-names = "usb480m_phy";
834 assigned-clocks = <&cru USB480M>;
835 assigned-clock-parents = <&u2phy>;
838 u2phy_otg: otg-port {
840 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
841 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
842 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
843 interrupt-names = "otg-bvalid", "otg-id",
848 u2phy_host: host-port {
850 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
851 interrupt-names = "linestate";
857 sdmmc: mmc@ff500000 {
858 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
859 reg = <0x0 0xff500000 0x0 0x4000>;
860 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
861 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
862 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
863 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
864 fifo-depth = <0x100>;
865 max-frequency = <150000000>;
870 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
871 reg = <0x0 0xff510000 0x0 0x4000>;
872 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
873 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
874 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
875 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
876 fifo-depth = <0x100>;
877 max-frequency = <150000000>;
882 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
883 reg = <0x0 0xff520000 0x0 0x4000>;
884 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
885 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
886 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
887 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
888 fifo-depth = <0x100>;
889 max-frequency = <150000000>;
893 gmac2io: ethernet@ff540000 {
894 compatible = "rockchip,rk3328-gmac";
895 reg = <0x0 0xff540000 0x0 0x10000>;
896 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
897 interrupt-names = "macirq";
898 clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_RX>,
899 <&cru SCLK_MAC2IO_TX>, <&cru SCLK_MAC2IO_REF>,
900 <&cru SCLK_MAC2IO_REFOUT>, <&cru ACLK_MAC2IO>,
902 clock-names = "stmmaceth", "mac_clk_rx",
903 "mac_clk_tx", "clk_mac_ref",
904 "clk_mac_refout", "aclk_mac",
906 resets = <&cru SRST_GMAC2IO_A>;
907 reset-names = "stmmaceth";
908 rockchip,grf = <&grf>;
913 gmac2phy: ethernet@ff550000 {
914 compatible = "rockchip,rk3328-gmac";
915 reg = <0x0 0xff550000 0x0 0x10000>;
916 rockchip,grf = <&grf>;
917 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
918 interrupt-names = "macirq";
919 clocks = <&cru SCLK_MAC2PHY_SRC>, <&cru SCLK_MAC2PHY_RXTX>,
920 <&cru SCLK_MAC2PHY_RXTX>, <&cru SCLK_MAC2PHY_REF>,
921 <&cru ACLK_MAC2PHY>, <&cru PCLK_MAC2PHY>,
922 <&cru SCLK_MAC2PHY_OUT>;
923 clock-names = "stmmaceth", "mac_clk_rx",
924 "mac_clk_tx", "clk_mac_ref",
925 "aclk_mac", "pclk_mac",
927 resets = <&cru SRST_GMAC2PHY_A>, <&cru SRST_MACPHY>;
928 reset-names = "stmmaceth", "mac-phy";
935 compatible = "snps,dwmac-mdio";
936 #address-cells = <1>;
940 compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
942 clocks = <&cru SCLK_MAC2PHY_OUT>;
943 resets = <&cru SRST_MACPHY>;
944 pinctrl-names = "default";
945 pinctrl-0 = <&fephyled_rxm1 &fephyled_linkm1>;
951 usb20_otg: usb@ff580000 {
952 compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
954 reg = <0x0 0xff580000 0x0 0x40000>;
955 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
956 clocks = <&cru HCLK_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>;
963 phy-names = "usb2-phy";
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>;
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>;
987 gic: interrupt-controller@ff811000 {
988 compatible = "arm,gic-400";
989 #interrupt-cells = <3>;
990 #address-cells = <0>;
991 interrupt-controller;
992 reg = <0x0 0xff811000 0 0x1000>,
993 <0x0 0xff812000 0 0x2000>,
994 <0x0 0xff814000 0 0x2000>,
995 <0x0 0xff816000 0 0x2000>;
996 interrupts = <GIC_PPI 9
997 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1001 compatible = "rockchip,rk3328-pinctrl";
1002 rockchip,grf = <&grf>;
1003 #address-cells = <2>;
1007 gpio0: gpio0@ff210000 {
1008 compatible = "rockchip,gpio-bank";
1009 reg = <0x0 0xff210000 0x0 0x100>;
1010 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
1011 clocks = <&cru PCLK_GPIO0>;
1016 interrupt-controller;
1017 #interrupt-cells = <2>;
1020 gpio1: gpio1@ff220000 {
1021 compatible = "rockchip,gpio-bank";
1022 reg = <0x0 0xff220000 0x0 0x100>;
1023 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
1024 clocks = <&cru PCLK_GPIO1>;
1029 interrupt-controller;
1030 #interrupt-cells = <2>;
1033 gpio2: gpio2@ff230000 {
1034 compatible = "rockchip,gpio-bank";
1035 reg = <0x0 0xff230000 0x0 0x100>;
1036 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
1037 clocks = <&cru PCLK_GPIO2>;
1042 interrupt-controller;
1043 #interrupt-cells = <2>;
1046 gpio3: gpio3@ff240000 {
1047 compatible = "rockchip,gpio-bank";
1048 reg = <0x0 0xff240000 0x0 0x100>;
1049 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
1050 clocks = <&cru PCLK_GPIO3>;
1055 interrupt-controller;
1056 #interrupt-cells = <2>;
1059 pcfg_pull_up: pcfg-pull-up {
1063 pcfg_pull_down: pcfg-pull-down {
1067 pcfg_pull_none: pcfg-pull-none {
1071 pcfg_pull_none_2ma: pcfg-pull-none-2ma {
1073 drive-strength = <2>;
1076 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1078 drive-strength = <2>;
1081 pcfg_pull_up_4ma: pcfg-pull-up-4ma {
1083 drive-strength = <4>;
1086 pcfg_pull_none_4ma: pcfg-pull-none-4ma {
1088 drive-strength = <4>;
1091 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1093 drive-strength = <4>;
1096 pcfg_pull_none_8ma: pcfg-pull-none-8ma {
1098 drive-strength = <8>;
1101 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1103 drive-strength = <8>;
1106 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1108 drive-strength = <12>;
1111 pcfg_pull_up_12ma: pcfg-pull-up-12ma {
1113 drive-strength = <12>;
1116 pcfg_output_high: pcfg-output-high {
1120 pcfg_output_low: pcfg-output-low {
1124 pcfg_input_high: pcfg-input-high {
1129 pcfg_input: pcfg-input {
1134 i2c0_xfer: i2c0-xfer {
1135 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_none>,
1136 <2 RK_PD1 1 &pcfg_pull_none>;
1141 i2c1_xfer: i2c1-xfer {
1142 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>,
1143 <2 RK_PA5 2 &pcfg_pull_none>;
1148 i2c2_xfer: i2c2-xfer {
1149 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>,
1150 <2 RK_PB6 1 &pcfg_pull_none>;
1155 i2c3_xfer: i2c3-xfer {
1156 rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>,
1157 <0 RK_PA6 2 &pcfg_pull_none>;
1159 i2c3_gpio: i2c3-gpio {
1161 <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
1162 <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
1167 hdmii2c_xfer: hdmii2c-xfer {
1168 rockchip,pins = <0 RK_PA5 1 &pcfg_pull_none>,
1169 <0 RK_PA6 1 &pcfg_pull_none>;
1174 pdmm0_clk: pdmm0-clk {
1175 rockchip,pins = <2 RK_PC2 2 &pcfg_pull_none>;
1178 pdmm0_fsync: pdmm0-fsync {
1179 rockchip,pins = <2 RK_PC7 2 &pcfg_pull_none>;
1182 pdmm0_sdi0: pdmm0-sdi0 {
1183 rockchip,pins = <2 RK_PC3 2 &pcfg_pull_none>;
1186 pdmm0_sdi1: pdmm0-sdi1 {
1187 rockchip,pins = <2 RK_PC4 2 &pcfg_pull_none>;
1190 pdmm0_sdi2: pdmm0-sdi2 {
1191 rockchip,pins = <2 RK_PC5 2 &pcfg_pull_none>;
1194 pdmm0_sdi3: pdmm0-sdi3 {
1195 rockchip,pins = <2 RK_PC6 2 &pcfg_pull_none>;
1198 pdmm0_clk_sleep: pdmm0-clk-sleep {
1200 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>;
1203 pdmm0_sdi0_sleep: pdmm0-sdi0-sleep {
1205 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>;
1208 pdmm0_sdi1_sleep: pdmm0-sdi1-sleep {
1210 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>;
1213 pdmm0_sdi2_sleep: pdmm0-sdi2-sleep {
1215 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>;
1218 pdmm0_sdi3_sleep: pdmm0-sdi3-sleep {
1220 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>;
1223 pdmm0_fsync_sleep: pdmm0-fsync-sleep {
1225 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1230 otp_gpio: otp-gpio {
1231 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1235 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>;
1240 uart0_xfer: uart0-xfer {
1241 rockchip,pins = <1 RK_PB1 1 &pcfg_pull_up>,
1242 <1 RK_PB0 1 &pcfg_pull_none>;
1245 uart0_cts: uart0-cts {
1246 rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>;
1249 uart0_rts: uart0-rts {
1250 rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>;
1253 uart0_rts_gpio: uart0-rts-gpio {
1254 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
1259 uart1_xfer: uart1-xfer {
1260 rockchip,pins = <3 RK_PA4 4 &pcfg_pull_up>,
1261 <3 RK_PA6 4 &pcfg_pull_none>;
1264 uart1_cts: uart1-cts {
1265 rockchip,pins = <3 RK_PA7 4 &pcfg_pull_none>;
1268 uart1_rts: uart1-rts {
1269 rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>;
1272 uart1_rts_gpio: uart1-rts-gpio {
1273 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
1278 uart2m0_xfer: uart2m0-xfer {
1279 rockchip,pins = <1 RK_PA0 2 &pcfg_pull_up>,
1280 <1 RK_PA1 2 &pcfg_pull_none>;
1285 uart2m1_xfer: uart2m1-xfer {
1286 rockchip,pins = <2 RK_PA0 1 &pcfg_pull_up>,
1287 <2 RK_PA1 1 &pcfg_pull_none>;
1292 spi0m0_clk: spi0m0-clk {
1293 rockchip,pins = <2 RK_PB0 1 &pcfg_pull_up>;
1296 spi0m0_cs0: spi0m0-cs0 {
1297 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
1300 spi0m0_tx: spi0m0-tx {
1301 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_up>;
1304 spi0m0_rx: spi0m0-rx {
1305 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
1308 spi0m0_cs1: spi0m0-cs1 {
1309 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_up>;
1314 spi0m1_clk: spi0m1-clk {
1315 rockchip,pins = <3 RK_PC7 2 &pcfg_pull_up>;
1318 spi0m1_cs0: spi0m1-cs0 {
1319 rockchip,pins = <3 RK_PD2 2 &pcfg_pull_up>;
1322 spi0m1_tx: spi0m1-tx {
1323 rockchip,pins = <3 RK_PD1 2 &pcfg_pull_up>;
1326 spi0m1_rx: spi0m1-rx {
1327 rockchip,pins = <3 RK_PD0 2 &pcfg_pull_up>;
1330 spi0m1_cs1: spi0m1-cs1 {
1331 rockchip,pins = <3 RK_PD3 2 &pcfg_pull_up>;
1336 spi0m2_clk: spi0m2-clk {
1337 rockchip,pins = <3 RK_PA0 4 &pcfg_pull_up>;
1340 spi0m2_cs0: spi0m2-cs0 {
1341 rockchip,pins = <3 RK_PB0 3 &pcfg_pull_up>;
1344 spi0m2_tx: spi0m2-tx {
1345 rockchip,pins = <3 RK_PA1 4 &pcfg_pull_up>;
1348 spi0m2_rx: spi0m2-rx {
1349 rockchip,pins = <3 RK_PA2 4 &pcfg_pull_up>;
1354 i2s1_mclk: i2s1-mclk {
1355 rockchip,pins = <2 RK_PB7 1 &pcfg_pull_none>;
1358 i2s1_sclk: i2s1-sclk {
1359 rockchip,pins = <2 RK_PC2 1 &pcfg_pull_none>;
1362 i2s1_lrckrx: i2s1-lrckrx {
1363 rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>;
1366 i2s1_lrcktx: i2s1-lrcktx {
1367 rockchip,pins = <2 RK_PC1 1 &pcfg_pull_none>;
1370 i2s1_sdi: i2s1-sdi {
1371 rockchip,pins = <2 RK_PC3 1 &pcfg_pull_none>;
1374 i2s1_sdo: i2s1-sdo {
1375 rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
1378 i2s1_sdio1: i2s1-sdio1 {
1379 rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>;
1382 i2s1_sdio2: i2s1-sdio2 {
1383 rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>;
1386 i2s1_sdio3: i2s1-sdio3 {
1387 rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
1390 i2s1_sleep: i2s1-sleep {
1392 <2 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>,
1393 <2 RK_PC0 RK_FUNC_GPIO &pcfg_input_high>,
1394 <2 RK_PC1 RK_FUNC_GPIO &pcfg_input_high>,
1395 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>,
1396 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>,
1397 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>,
1398 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1399 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1400 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1405 i2s2m0_mclk: i2s2m0-mclk {
1406 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
1409 i2s2m0_sclk: i2s2m0-sclk {
1410 rockchip,pins = <1 RK_PC6 1 &pcfg_pull_none>;
1413 i2s2m0_lrckrx: i2s2m0-lrckrx {
1414 rockchip,pins = <1 RK_PD2 1 &pcfg_pull_none>;
1417 i2s2m0_lrcktx: i2s2m0-lrcktx {
1418 rockchip,pins = <1 RK_PC7 1 &pcfg_pull_none>;
1421 i2s2m0_sdi: i2s2m0-sdi {
1422 rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>;
1425 i2s2m0_sdo: i2s2m0-sdo {
1426 rockchip,pins = <1 RK_PD1 1 &pcfg_pull_none>;
1429 i2s2m0_sleep: i2s2m0-sleep {
1431 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1432 <1 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1433 <1 RK_PD2 RK_FUNC_GPIO &pcfg_input_high>,
1434 <1 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>,
1435 <1 RK_PD0 RK_FUNC_GPIO &pcfg_input_high>,
1436 <1 RK_PD1 RK_FUNC_GPIO &pcfg_input_high>;
1441 i2s2m1_mclk: i2s2m1-mclk {
1442 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
1445 i2s2m1_sclk: i2s2m1-sclk {
1446 rockchip,pins = <3 RK_PA0 6 &pcfg_pull_none>;
1449 i2s2m1_lrckrx: i2sm1-lrckrx {
1450 rockchip,pins = <3 RK_PB0 6 &pcfg_pull_none>;
1453 i2s2m1_lrcktx: i2s2m1-lrcktx {
1454 rockchip,pins = <3 RK_PB0 4 &pcfg_pull_none>;
1457 i2s2m1_sdi: i2s2m1-sdi {
1458 rockchip,pins = <3 RK_PA2 6 &pcfg_pull_none>;
1461 i2s2m1_sdo: i2s2m1-sdo {
1462 rockchip,pins = <3 RK_PA1 6 &pcfg_pull_none>;
1465 i2s2m1_sleep: i2s2m1-sleep {
1467 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1468 <3 RK_PA0 RK_FUNC_GPIO &pcfg_input_high>,
1469 <3 RK_PB0 RK_FUNC_GPIO &pcfg_input_high>,
1470 <3 RK_PA2 RK_FUNC_GPIO &pcfg_input_high>,
1471 <3 RK_PA1 RK_FUNC_GPIO &pcfg_input_high>;
1476 spdifm0_tx: spdifm0-tx {
1477 rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>;
1482 spdifm1_tx: spdifm1-tx {
1483 rockchip,pins = <2 RK_PC1 2 &pcfg_pull_none>;
1488 spdifm2_tx: spdifm2-tx {
1489 rockchip,pins = <0 RK_PA2 2 &pcfg_pull_none>;
1494 sdmmc0m0_pwren: sdmmc0m0-pwren {
1495 rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>;
1498 sdmmc0m0_gpio: sdmmc0m0-gpio {
1499 rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1504 sdmmc0m1_pwren: sdmmc0m1-pwren {
1505 rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>;
1508 sdmmc0m1_gpio: sdmmc0m1-gpio {
1509 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1514 sdmmc0_clk: sdmmc0-clk {
1515 rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none_8ma>;
1518 sdmmc0_cmd: sdmmc0-cmd {
1519 rockchip,pins = <1 RK_PA4 1 &pcfg_pull_up_8ma>;
1522 sdmmc0_dectn: sdmmc0-dectn {
1523 rockchip,pins = <1 RK_PA5 1 &pcfg_pull_up_4ma>;
1526 sdmmc0_wrprt: sdmmc0-wrprt {
1527 rockchip,pins = <1 RK_PA7 1 &pcfg_pull_up_4ma>;
1530 sdmmc0_bus1: sdmmc0-bus1 {
1531 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>;
1534 sdmmc0_bus4: sdmmc0-bus4 {
1535 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>,
1536 <1 RK_PA1 1 &pcfg_pull_up_8ma>,
1537 <1 RK_PA2 1 &pcfg_pull_up_8ma>,
1538 <1 RK_PA3 1 &pcfg_pull_up_8ma>;
1541 sdmmc0_gpio: sdmmc0-gpio {
1543 <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1544 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1545 <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1546 <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1547 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1548 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1549 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1550 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1555 sdmmc0ext_clk: sdmmc0ext-clk {
1556 rockchip,pins = <3 RK_PA2 3 &pcfg_pull_none_4ma>;
1559 sdmmc0ext_cmd: sdmmc0ext-cmd {
1560 rockchip,pins = <3 RK_PA0 3 &pcfg_pull_up_4ma>;
1563 sdmmc0ext_wrprt: sdmmc0ext-wrprt {
1564 rockchip,pins = <3 RK_PA3 3 &pcfg_pull_up_4ma>;
1567 sdmmc0ext_dectn: sdmmc0ext-dectn {
1568 rockchip,pins = <3 RK_PA1 3 &pcfg_pull_up_4ma>;
1571 sdmmc0ext_bus1: sdmmc0ext-bus1 {
1572 rockchip,pins = <3 RK_PA4 3 &pcfg_pull_up_4ma>;
1575 sdmmc0ext_bus4: sdmmc0ext-bus4 {
1577 <3 RK_PA4 3 &pcfg_pull_up_4ma>,
1578 <3 RK_PA5 3 &pcfg_pull_up_4ma>,
1579 <3 RK_PA6 3 &pcfg_pull_up_4ma>,
1580 <3 RK_PA7 3 &pcfg_pull_up_4ma>;
1583 sdmmc0ext_gpio: sdmmc0ext-gpio {
1585 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1586 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1587 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1588 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1589 <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1590 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1591 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1592 <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1597 sdmmc1_clk: sdmmc1-clk {
1598 rockchip,pins = <1 RK_PB4 1 &pcfg_pull_none_8ma>;
1601 sdmmc1_cmd: sdmmc1-cmd {
1602 rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_8ma>;
1605 sdmmc1_pwren: sdmmc1-pwren {
1606 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_up_8ma>;
1609 sdmmc1_wrprt: sdmmc1-wrprt {
1610 rockchip,pins = <1 RK_PC4 1 &pcfg_pull_up_8ma>;
1613 sdmmc1_dectn: sdmmc1-dectn {
1614 rockchip,pins = <1 RK_PC3 1 &pcfg_pull_up_8ma>;
1617 sdmmc1_bus1: sdmmc1-bus1 {
1618 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>;
1621 sdmmc1_bus4: sdmmc1-bus4 {
1622 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>,
1623 <1 RK_PB7 1 &pcfg_pull_up_8ma>,
1624 <1 RK_PC0 1 &pcfg_pull_up_8ma>,
1625 <1 RK_PC1 1 &pcfg_pull_up_8ma>;
1628 sdmmc1_gpio: sdmmc1-gpio {
1630 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1631 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1632 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1633 <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1634 <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1635 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1636 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1637 <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1638 <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1643 emmc_clk: emmc-clk {
1644 rockchip,pins = <3 RK_PC5 2 &pcfg_pull_none_12ma>;
1647 emmc_cmd: emmc-cmd {
1648 rockchip,pins = <3 RK_PC3 2 &pcfg_pull_up_12ma>;
1651 emmc_pwren: emmc-pwren {
1652 rockchip,pins = <3 RK_PC6 2 &pcfg_pull_none>;
1655 emmc_rstnout: emmc-rstnout {
1656 rockchip,pins = <3 RK_PC4 2 &pcfg_pull_none>;
1659 emmc_bus1: emmc-bus1 {
1660 rockchip,pins = <0 RK_PA7 2 &pcfg_pull_up_12ma>;
1663 emmc_bus4: emmc-bus4 {
1665 <0 RK_PA7 2 &pcfg_pull_up_12ma>,
1666 <2 RK_PD4 2 &pcfg_pull_up_12ma>,
1667 <2 RK_PD5 2 &pcfg_pull_up_12ma>,
1668 <2 RK_PD6 2 &pcfg_pull_up_12ma>;
1671 emmc_bus8: emmc-bus8 {
1673 <0 RK_PA7 2 &pcfg_pull_up_12ma>,
1674 <2 RK_PD4 2 &pcfg_pull_up_12ma>,
1675 <2 RK_PD5 2 &pcfg_pull_up_12ma>,
1676 <2 RK_PD6 2 &pcfg_pull_up_12ma>,
1677 <2 RK_PD7 2 &pcfg_pull_up_12ma>,
1678 <3 RK_PC0 2 &pcfg_pull_up_12ma>,
1679 <3 RK_PC1 2 &pcfg_pull_up_12ma>,
1680 <3 RK_PC2 2 &pcfg_pull_up_12ma>;
1685 pwm0_pin: pwm0-pin {
1686 rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>;
1691 pwm1_pin: pwm1-pin {
1692 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>;
1697 pwm2_pin: pwm2-pin {
1698 rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>;
1703 pwmir_pin: pwmir-pin {
1704 rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>;
1709 rgmiim1_pins: rgmiim1-pins {
1712 <1 RK_PB4 2 &pcfg_pull_none_8ma>,
1714 <1 RK_PB5 2 &pcfg_pull_none_4ma>,
1716 <1 RK_PC3 2 &pcfg_pull_none_4ma>,
1718 <1 RK_PD1 2 &pcfg_pull_none_8ma>,
1720 <1 RK_PC5 2 &pcfg_pull_none_4ma>,
1722 <1 RK_PC6 2 &pcfg_pull_none_4ma>,
1724 <1 RK_PC7 2 &pcfg_pull_none_4ma>,
1726 <1 RK_PB2 2 &pcfg_pull_none_4ma>,
1728 <1 RK_PB3 2 &pcfg_pull_none_4ma>,
1730 <1 RK_PB0 2 &pcfg_pull_none_8ma>,
1732 <1 RK_PB1 2 &pcfg_pull_none_8ma>,
1734 <1 RK_PB6 2 &pcfg_pull_none_4ma>,
1736 <1 RK_PB7 2 &pcfg_pull_none_4ma>,
1738 <1 RK_PC0 2 &pcfg_pull_none_8ma>,
1740 <1 RK_PC1 2 &pcfg_pull_none_8ma>,
1743 <0 RK_PB0 1 &pcfg_pull_none_8ma>,
1745 <0 RK_PB4 1 &pcfg_pull_none_8ma>,
1747 <0 RK_PD0 1 &pcfg_pull_none_4ma>,
1749 <0 RK_PC0 1 &pcfg_pull_none_8ma>,
1751 <0 RK_PC1 1 &pcfg_pull_none_8ma>,
1753 <0 RK_PC7 1 &pcfg_pull_none_8ma>,
1755 <0 RK_PC6 1 &pcfg_pull_none_8ma>;
1758 rmiim1_pins: rmiim1-pins {
1761 <1 RK_PC3 2 &pcfg_pull_none_2ma>,
1763 <1 RK_PD1 2 &pcfg_pull_none_12ma>,
1765 <1 RK_PC5 2 &pcfg_pull_none_2ma>,
1767 <1 RK_PD0 2 &pcfg_pull_none_2ma>,
1769 <1 RK_PC6 2 &pcfg_pull_none_2ma>,
1771 <1 RK_PC7 2 &pcfg_pull_none_2ma>,
1773 <1 RK_PB2 2 &pcfg_pull_none_2ma>,
1775 <1 RK_PB3 2 &pcfg_pull_none_2ma>,
1777 <1 RK_PB0 2 &pcfg_pull_none_12ma>,
1779 <1 RK_PB1 2 &pcfg_pull_none_12ma>,
1782 <0 RK_PB3 1 &pcfg_pull_none>,
1784 <0 RK_PB4 1 &pcfg_pull_none>,
1786 <0 RK_PD0 1 &pcfg_pull_none>,
1788 <0 RK_PC3 1 &pcfg_pull_none>,
1790 <0 RK_PC0 1 &pcfg_pull_none>,
1792 <0 RK_PC1 1 &pcfg_pull_none>;
1797 fephyled_speed100: fephyled-speed100 {
1798 rockchip,pins = <0 RK_PD7 1 &pcfg_pull_none>;
1801 fephyled_speed10: fephyled-speed10 {
1802 rockchip,pins = <0 RK_PD6 1 &pcfg_pull_none>;
1805 fephyled_duplex: fephyled-duplex {
1806 rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>;
1809 fephyled_rxm0: fephyled-rxm0 {
1810 rockchip,pins = <0 RK_PD5 1 &pcfg_pull_none>;
1813 fephyled_txm0: fephyled-txm0 {
1814 rockchip,pins = <0 RK_PD5 2 &pcfg_pull_none>;
1817 fephyled_linkm0: fephyled-linkm0 {
1818 rockchip,pins = <0 RK_PD4 1 &pcfg_pull_none>;
1821 fephyled_rxm1: fephyled-rxm1 {
1822 rockchip,pins = <2 RK_PD1 2 &pcfg_pull_none>;
1825 fephyled_txm1: fephyled-txm1 {
1826 rockchip,pins = <2 RK_PD1 3 &pcfg_pull_none>;
1829 fephyled_linkm1: fephyled-linkm1 {
1830 rockchip,pins = <2 RK_PD0 2 &pcfg_pull_none>;
1835 tsadc_int: tsadc-int {
1836 rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>;
1838 tsadc_gpio: tsadc-gpio {
1839 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1844 hdmi_cec: hdmi-cec {
1845 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
1848 hdmi_hpd: hdmi-hpd {
1849 rockchip,pins = <0 RK_PA4 1 &pcfg_pull_down>;
1854 dvp_d2d9_m0:dvp-d2d9-m0 {
1857 <3 RK_PA4 2 &pcfg_pull_none>,
1859 <3 RK_PA5 2 &pcfg_pull_none>,
1861 <3 RK_PA6 2 &pcfg_pull_none>,
1863 <3 RK_PA7 2 &pcfg_pull_none>,
1865 <3 RK_PB0 2 &pcfg_pull_none>,
1867 <3 RK_PB1 2 &pcfg_pull_none>,
1869 <3 RK_PB2 2 &pcfg_pull_none>,
1871 <3 RK_PB3 2 &pcfg_pull_none>,
1873 <3 RK_PA1 2 &pcfg_pull_none>,
1875 <3 RK_PA0 2 &pcfg_pull_none>,
1877 <3 RK_PA3 2 &pcfg_pull_none>,
1879 <3 RK_PA2 2 &pcfg_pull_none>;
1884 dvp_d2d9_m1:dvp-d2d9-m1 {
1887 <3 RK_PA4 2 &pcfg_pull_none>,
1889 <3 RK_PA5 2 &pcfg_pull_none>,
1891 <3 RK_PA6 2 &pcfg_pull_none>,
1893 <3 RK_PA7 2 &pcfg_pull_none>,
1895 <3 RK_PB0 2 &pcfg_pull_none>,
1897 <2 RK_PC0 4 &pcfg_pull_none>,
1899 <2 RK_PC1 4 &pcfg_pull_none>,
1901 <2 RK_PC2 4 &pcfg_pull_none>,
1903 <3 RK_PA1 2 &pcfg_pull_none>,
1905 <3 RK_PA0 2 &pcfg_pull_none>,
1907 <2 RK_PB7 4 &pcfg_pull_none>,
1909 <3 RK_PA2 2 &pcfg_pull_none>;