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 arm,pl330-periph-burst;
157 clocks = <&cru ACLK_DMAC>;
158 clock-names = "apb_pclk";
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";
170 simple-audio-card,cpu {
174 simple-audio-card,codec {
175 sound-dai = <&codec>;
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>;
188 display_subsystem: display-subsystem {
189 compatible = "rockchip,display-subsystem";
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";
200 simple-audio-card,cpu {
204 simple-audio-card,codec {
210 compatible = "arm,psci-1.0", "arm,psci-0.2";
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)>;
223 compatible = "fixed-clock";
225 clock-frequency = <24000000>;
226 clock-output-names = "xin24m";
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>;
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>;
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>;
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";
273 pinctrl-names = "default";
274 pinctrl-0 = <&spdifm2_tx>;
275 #sound-dai-cells = <0>;
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";
286 pinctrl-names = "default", "sleep";
287 pinctrl-0 = <&pdmm0_clk
292 pinctrl-1 = <&pdmm0_clk_sleep
300 grf: syscon@ff100000 {
301 compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
302 reg = <0x0 0xff100000 0x0 0x1000>;
304 io_domains: io-domains {
305 compatible = "rockchip,rk3328-io-voltage-domain";
310 compatible = "rockchip,rk3328-grf-gpio";
315 power: power-controller {
316 compatible = "rockchip,rk3328-power-controller";
317 #power-domain-cells = <1>;
318 #address-cells = <1>;
321 pd_hevc@RK3328_PD_HEVC {
322 reg = <RK3328_PD_HEVC>;
324 pd_video@RK3328_PD_VIDEO {
325 reg = <RK3328_PD_VIDEO>;
327 pd_vpu@RK3328_PD_VPU {
328 reg = <RK3328_PD_VPU>;
329 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
334 compatible = "syscon-reboot-mode";
336 mode-normal = <BOOT_NORMAL>;
337 mode-recovery = <BOOT_RECOVERY>;
338 mode-bootloader = <BOOT_FASTBOOT>;
339 mode-loader = <BOOT_BL_DOWNLOAD>;
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>;
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>;
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>;
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>;
394 clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>;
395 clock-names = "i2c", "pclk";
396 pinctrl-names = "default";
397 pinctrl-0 = <&i2c0_xfer>;
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>;
407 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
408 clock-names = "i2c", "pclk";
409 pinctrl-names = "default";
410 pinctrl-0 = <&i2c1_xfer>;
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>;
420 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
421 clock-names = "i2c", "pclk";
422 pinctrl-names = "default";
423 pinctrl-0 = <&i2c2_xfer>;
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>;
433 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
434 clock-names = "i2c", "pclk";
435 pinctrl-names = "default";
436 pinctrl-0 = <&i2c3_xfer>;
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>;
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>;
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>;
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>;
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>;
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>;
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>;
508 soc_thermal: soc-thermal {
509 polling-delay-passive = <20>;
510 polling-delay = <1000>;
511 sustainable-power = <1000>;
513 thermal-sensors = <&tsadc 0>;
516 threshold: trip-point0 {
517 temperature = <70000>;
521 target: trip-point1 {
522 temperature = <85000>;
527 temperature = <95000>;
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>;
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>;
567 efuse: efuse@ff260000 {
568 compatible = "rockchip,rk3328-efuse";
569 reg = <0x0 0xff260000 0x0 0x50>;
570 #address-cells = <1>;
572 clocks = <&cru SCLK_EFUSE>;
573 clock-names = "pclk_efuse";
574 rockchip,efuse-size = <0x20>;
580 cpu_leakage: cpu-leakage@17 {
583 logic_leakage: logic-leakage@19 {
586 efuse_cpu_version: cpu-version@1a {
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";
605 compatible = "rockchip,rk3328-mali", "arm,mali-450";
606 reg = <0x0 0xff300000 0x0 0x40000>;
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",
621 clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
622 clock-names = "bus", "core";
623 resets = <&cru SRST_GPU_A>;
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";
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";
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";
656 power-domains = <&power RK3328_PD_VPU>;
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";
667 power-domains = <&power RK3328_PD_VPU>;
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";
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";
693 #address-cells = <1>;
696 vop_out_hdmi: endpoint@0 {
698 remote-endpoint = <&hdmi_in_vop>;
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";
714 hdmi: hdmi@ff3c0000 {
715 compatible = "rockchip,rk3328-dw-hdmi";
716 reg = <0x0 0xff3c0000 0x0 0x20000>;
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>,
723 clock-names = "iahb",
728 pinctrl-names = "default";
729 pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>;
730 rockchip,grf = <&grf>;
731 #sound-dai-cells = <0>;
736 hdmi_in_vop: endpoint {
737 remote-endpoint = <&vop_out_hdmi>;
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>;
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";
761 nvmem-cells = <&efuse_cpu_version>;
762 nvmem-cell-names = "cpu-version";
767 cru: clock-controller@ff440000 {
768 compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon";
769 reg = <0x0 0xff440000 0x0 0x1000>;
770 rockchip,grf = <&grf>;
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.
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>,
796 assigned-clock-parents =
797 <&cru HDMIPHY>, <&cru PLL_APLL>,
798 <&cru PLL_GPLL>, <&xin24m>,
799 <&xin24m>, <&xin24m>;
800 assigned-clock-rates =
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>,
819 usb2phy_grf: syscon@ff450000 {
820 compatible = "rockchip,rk3328-usb2phy-grf", "syscon",
822 reg = <0x0 0xff450000 0x0 0x10000>;
823 #address-cells = <1>;
826 u2phy: usb2-phy@100 {
827 compatible = "rockchip,rk3328-usb2phy";
830 clock-names = "phyclk";
831 clock-output-names = "usb480m_phy";
833 assigned-clocks = <&cru USB480M>;
834 assigned-clock-parents = <&u2phy>;
837 u2phy_otg: otg-port {
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",
847 u2phy_host: host-port {
849 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
850 interrupt-names = "linestate";
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>;
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>;
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>;
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>,
901 clock-names = "stmmaceth", "mac_clk_rx",
902 "mac_clk_tx", "clk_mac_ref",
903 "clk_mac_refout", "aclk_mac",
905 resets = <&cru SRST_GMAC2IO_A>;
906 reset-names = "stmmaceth";
907 rockchip,grf = <&grf>;
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",
926 resets = <&cru SRST_GMAC2PHY_A>, <&cru SRST_MACPHY>;
927 reset-names = "stmmaceth", "mac-phy";
934 compatible = "snps,dwmac-mdio";
935 #address-cells = <1>;
938 phy: ethernet-phy@0 {
939 compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
941 clocks = <&cru SCLK_MAC2PHY_OUT>;
942 resets = <&cru SRST_MACPHY>;
943 pinctrl-names = "default";
944 pinctrl-0 = <&fephyled_rxm1 &fephyled_linkm1>;
950 usb20_otg: usb@ff580000 {
951 compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
953 reg = <0x0 0xff580000 0x0 0x40000>;
954 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
955 clocks = <&cru HCLK_OTG>;
958 g-np-tx-fifo-size = <16>;
959 g-rx-fifo-size = <280>;
960 g-tx-fifo-size = <256 128 128 64 32 16>;
962 phy-names = "usb2-phy";
966 usb_host0_ehci: usb@ff5c0000 {
967 compatible = "generic-ehci";
968 reg = <0x0 0xff5c0000 0x0 0x10000>;
969 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
970 clocks = <&cru HCLK_HOST0>, <&u2phy>;
971 phys = <&u2phy_host>;
976 usb_host0_ohci: usb@ff5d0000 {
977 compatible = "generic-ohci";
978 reg = <0x0 0xff5d0000 0x0 0x10000>;
979 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
980 clocks = <&cru HCLK_HOST0>, <&u2phy>;
981 phys = <&u2phy_host>;
986 gic: interrupt-controller@ff811000 {
987 compatible = "arm,gic-400";
988 #interrupt-cells = <3>;
989 #address-cells = <0>;
990 interrupt-controller;
991 reg = <0x0 0xff811000 0 0x1000>,
992 <0x0 0xff812000 0 0x2000>,
993 <0x0 0xff814000 0 0x2000>,
994 <0x0 0xff816000 0 0x2000>;
995 interrupts = <GIC_PPI 9
996 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1000 compatible = "rockchip,rk3328-pinctrl";
1001 rockchip,grf = <&grf>;
1002 #address-cells = <2>;
1006 gpio0: gpio0@ff210000 {
1007 compatible = "rockchip,gpio-bank";
1008 reg = <0x0 0xff210000 0x0 0x100>;
1009 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
1010 clocks = <&cru PCLK_GPIO0>;
1015 interrupt-controller;
1016 #interrupt-cells = <2>;
1019 gpio1: gpio1@ff220000 {
1020 compatible = "rockchip,gpio-bank";
1021 reg = <0x0 0xff220000 0x0 0x100>;
1022 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
1023 clocks = <&cru PCLK_GPIO1>;
1028 interrupt-controller;
1029 #interrupt-cells = <2>;
1032 gpio2: gpio2@ff230000 {
1033 compatible = "rockchip,gpio-bank";
1034 reg = <0x0 0xff230000 0x0 0x100>;
1035 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
1036 clocks = <&cru PCLK_GPIO2>;
1041 interrupt-controller;
1042 #interrupt-cells = <2>;
1045 gpio3: gpio3@ff240000 {
1046 compatible = "rockchip,gpio-bank";
1047 reg = <0x0 0xff240000 0x0 0x100>;
1048 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
1049 clocks = <&cru PCLK_GPIO3>;
1054 interrupt-controller;
1055 #interrupt-cells = <2>;
1058 pcfg_pull_up: pcfg-pull-up {
1062 pcfg_pull_down: pcfg-pull-down {
1066 pcfg_pull_none: pcfg-pull-none {
1070 pcfg_pull_none_2ma: pcfg-pull-none-2ma {
1072 drive-strength = <2>;
1075 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1077 drive-strength = <2>;
1080 pcfg_pull_up_4ma: pcfg-pull-up-4ma {
1082 drive-strength = <4>;
1085 pcfg_pull_none_4ma: pcfg-pull-none-4ma {
1087 drive-strength = <4>;
1090 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1092 drive-strength = <4>;
1095 pcfg_pull_none_8ma: pcfg-pull-none-8ma {
1097 drive-strength = <8>;
1100 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1102 drive-strength = <8>;
1105 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1107 drive-strength = <12>;
1110 pcfg_pull_up_12ma: pcfg-pull-up-12ma {
1112 drive-strength = <12>;
1115 pcfg_output_high: pcfg-output-high {
1119 pcfg_output_low: pcfg-output-low {
1123 pcfg_input_high: pcfg-input-high {
1128 pcfg_input: pcfg-input {
1133 i2c0_xfer: i2c0-xfer {
1134 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_none>,
1135 <2 RK_PD1 1 &pcfg_pull_none>;
1140 i2c1_xfer: i2c1-xfer {
1141 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>,
1142 <2 RK_PA5 2 &pcfg_pull_none>;
1147 i2c2_xfer: i2c2-xfer {
1148 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>,
1149 <2 RK_PB6 1 &pcfg_pull_none>;
1154 i2c3_xfer: i2c3-xfer {
1155 rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>,
1156 <0 RK_PA6 2 &pcfg_pull_none>;
1158 i2c3_pins: i2c3-pins {
1160 <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
1161 <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
1166 hdmii2c_xfer: hdmii2c-xfer {
1167 rockchip,pins = <0 RK_PA5 1 &pcfg_pull_none>,
1168 <0 RK_PA6 1 &pcfg_pull_none>;
1173 pdmm0_clk: pdmm0-clk {
1174 rockchip,pins = <2 RK_PC2 2 &pcfg_pull_none>;
1177 pdmm0_fsync: pdmm0-fsync {
1178 rockchip,pins = <2 RK_PC7 2 &pcfg_pull_none>;
1181 pdmm0_sdi0: pdmm0-sdi0 {
1182 rockchip,pins = <2 RK_PC3 2 &pcfg_pull_none>;
1185 pdmm0_sdi1: pdmm0-sdi1 {
1186 rockchip,pins = <2 RK_PC4 2 &pcfg_pull_none>;
1189 pdmm0_sdi2: pdmm0-sdi2 {
1190 rockchip,pins = <2 RK_PC5 2 &pcfg_pull_none>;
1193 pdmm0_sdi3: pdmm0-sdi3 {
1194 rockchip,pins = <2 RK_PC6 2 &pcfg_pull_none>;
1197 pdmm0_clk_sleep: pdmm0-clk-sleep {
1199 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>;
1202 pdmm0_sdi0_sleep: pdmm0-sdi0-sleep {
1204 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>;
1207 pdmm0_sdi1_sleep: pdmm0-sdi1-sleep {
1209 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>;
1212 pdmm0_sdi2_sleep: pdmm0-sdi2-sleep {
1214 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>;
1217 pdmm0_sdi3_sleep: pdmm0-sdi3-sleep {
1219 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>;
1222 pdmm0_fsync_sleep: pdmm0-fsync-sleep {
1224 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1230 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1234 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>;
1239 uart0_xfer: uart0-xfer {
1240 rockchip,pins = <1 RK_PB1 1 &pcfg_pull_none>,
1241 <1 RK_PB0 1 &pcfg_pull_up>;
1244 uart0_cts: uart0-cts {
1245 rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>;
1248 uart0_rts: uart0-rts {
1249 rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>;
1252 uart0_rts_pin: uart0-rts-pin {
1253 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
1258 uart1_xfer: uart1-xfer {
1259 rockchip,pins = <3 RK_PA4 4 &pcfg_pull_none>,
1260 <3 RK_PA6 4 &pcfg_pull_up>;
1263 uart1_cts: uart1-cts {
1264 rockchip,pins = <3 RK_PA7 4 &pcfg_pull_none>;
1267 uart1_rts: uart1-rts {
1268 rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>;
1271 uart1_rts_pin: uart1-rts-pin {
1272 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
1277 uart2m0_xfer: uart2m0-xfer {
1278 rockchip,pins = <1 RK_PA0 2 &pcfg_pull_none>,
1279 <1 RK_PA1 2 &pcfg_pull_up>;
1284 uart2m1_xfer: uart2m1-xfer {
1285 rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>,
1286 <2 RK_PA1 1 &pcfg_pull_up>;
1291 spi0m0_clk: spi0m0-clk {
1292 rockchip,pins = <2 RK_PB0 1 &pcfg_pull_up>;
1295 spi0m0_cs0: spi0m0-cs0 {
1296 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
1299 spi0m0_tx: spi0m0-tx {
1300 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_up>;
1303 spi0m0_rx: spi0m0-rx {
1304 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
1307 spi0m0_cs1: spi0m0-cs1 {
1308 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_up>;
1313 spi0m1_clk: spi0m1-clk {
1314 rockchip,pins = <3 RK_PC7 2 &pcfg_pull_up>;
1317 spi0m1_cs0: spi0m1-cs0 {
1318 rockchip,pins = <3 RK_PD2 2 &pcfg_pull_up>;
1321 spi0m1_tx: spi0m1-tx {
1322 rockchip,pins = <3 RK_PD1 2 &pcfg_pull_up>;
1325 spi0m1_rx: spi0m1-rx {
1326 rockchip,pins = <3 RK_PD0 2 &pcfg_pull_up>;
1329 spi0m1_cs1: spi0m1-cs1 {
1330 rockchip,pins = <3 RK_PD3 2 &pcfg_pull_up>;
1335 spi0m2_clk: spi0m2-clk {
1336 rockchip,pins = <3 RK_PA0 4 &pcfg_pull_up>;
1339 spi0m2_cs0: spi0m2-cs0 {
1340 rockchip,pins = <3 RK_PB0 3 &pcfg_pull_up>;
1343 spi0m2_tx: spi0m2-tx {
1344 rockchip,pins = <3 RK_PA1 4 &pcfg_pull_up>;
1347 spi0m2_rx: spi0m2-rx {
1348 rockchip,pins = <3 RK_PA2 4 &pcfg_pull_up>;
1353 i2s1_mclk: i2s1-mclk {
1354 rockchip,pins = <2 RK_PB7 1 &pcfg_pull_none>;
1357 i2s1_sclk: i2s1-sclk {
1358 rockchip,pins = <2 RK_PC2 1 &pcfg_pull_none>;
1361 i2s1_lrckrx: i2s1-lrckrx {
1362 rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>;
1365 i2s1_lrcktx: i2s1-lrcktx {
1366 rockchip,pins = <2 RK_PC1 1 &pcfg_pull_none>;
1369 i2s1_sdi: i2s1-sdi {
1370 rockchip,pins = <2 RK_PC3 1 &pcfg_pull_none>;
1373 i2s1_sdo: i2s1-sdo {
1374 rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
1377 i2s1_sdio1: i2s1-sdio1 {
1378 rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>;
1381 i2s1_sdio2: i2s1-sdio2 {
1382 rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>;
1385 i2s1_sdio3: i2s1-sdio3 {
1386 rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
1389 i2s1_sleep: i2s1-sleep {
1391 <2 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>,
1392 <2 RK_PC0 RK_FUNC_GPIO &pcfg_input_high>,
1393 <2 RK_PC1 RK_FUNC_GPIO &pcfg_input_high>,
1394 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>,
1395 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>,
1396 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>,
1397 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1398 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1399 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1404 i2s2m0_mclk: i2s2m0-mclk {
1405 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
1408 i2s2m0_sclk: i2s2m0-sclk {
1409 rockchip,pins = <1 RK_PC6 1 &pcfg_pull_none>;
1412 i2s2m0_lrckrx: i2s2m0-lrckrx {
1413 rockchip,pins = <1 RK_PD2 1 &pcfg_pull_none>;
1416 i2s2m0_lrcktx: i2s2m0-lrcktx {
1417 rockchip,pins = <1 RK_PC7 1 &pcfg_pull_none>;
1420 i2s2m0_sdi: i2s2m0-sdi {
1421 rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>;
1424 i2s2m0_sdo: i2s2m0-sdo {
1425 rockchip,pins = <1 RK_PD1 1 &pcfg_pull_none>;
1428 i2s2m0_sleep: i2s2m0-sleep {
1430 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1431 <1 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1432 <1 RK_PD2 RK_FUNC_GPIO &pcfg_input_high>,
1433 <1 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>,
1434 <1 RK_PD0 RK_FUNC_GPIO &pcfg_input_high>,
1435 <1 RK_PD1 RK_FUNC_GPIO &pcfg_input_high>;
1440 i2s2m1_mclk: i2s2m1-mclk {
1441 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
1444 i2s2m1_sclk: i2s2m1-sclk {
1445 rockchip,pins = <3 RK_PA0 6 &pcfg_pull_none>;
1448 i2s2m1_lrckrx: i2sm1-lrckrx {
1449 rockchip,pins = <3 RK_PB0 6 &pcfg_pull_none>;
1452 i2s2m1_lrcktx: i2s2m1-lrcktx {
1453 rockchip,pins = <3 RK_PB0 4 &pcfg_pull_none>;
1456 i2s2m1_sdi: i2s2m1-sdi {
1457 rockchip,pins = <3 RK_PA2 6 &pcfg_pull_none>;
1460 i2s2m1_sdo: i2s2m1-sdo {
1461 rockchip,pins = <3 RK_PA1 6 &pcfg_pull_none>;
1464 i2s2m1_sleep: i2s2m1-sleep {
1466 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1467 <3 RK_PA0 RK_FUNC_GPIO &pcfg_input_high>,
1468 <3 RK_PB0 RK_FUNC_GPIO &pcfg_input_high>,
1469 <3 RK_PA2 RK_FUNC_GPIO &pcfg_input_high>,
1470 <3 RK_PA1 RK_FUNC_GPIO &pcfg_input_high>;
1475 spdifm0_tx: spdifm0-tx {
1476 rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>;
1481 spdifm1_tx: spdifm1-tx {
1482 rockchip,pins = <2 RK_PC1 2 &pcfg_pull_none>;
1487 spdifm2_tx: spdifm2-tx {
1488 rockchip,pins = <0 RK_PA2 2 &pcfg_pull_none>;
1493 sdmmc0m0_pwren: sdmmc0m0-pwren {
1494 rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>;
1497 sdmmc0m0_pin: sdmmc0m0-pin {
1498 rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1503 sdmmc0m1_pwren: sdmmc0m1-pwren {
1504 rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>;
1507 sdmmc0m1_pin: sdmmc0m1-pin {
1508 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1513 sdmmc0_clk: sdmmc0-clk {
1514 rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none_8ma>;
1517 sdmmc0_cmd: sdmmc0-cmd {
1518 rockchip,pins = <1 RK_PA4 1 &pcfg_pull_up_8ma>;
1521 sdmmc0_dectn: sdmmc0-dectn {
1522 rockchip,pins = <1 RK_PA5 1 &pcfg_pull_up_4ma>;
1525 sdmmc0_wrprt: sdmmc0-wrprt {
1526 rockchip,pins = <1 RK_PA7 1 &pcfg_pull_up_4ma>;
1529 sdmmc0_bus1: sdmmc0-bus1 {
1530 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>;
1533 sdmmc0_bus4: sdmmc0-bus4 {
1534 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>,
1535 <1 RK_PA1 1 &pcfg_pull_up_8ma>,
1536 <1 RK_PA2 1 &pcfg_pull_up_8ma>,
1537 <1 RK_PA3 1 &pcfg_pull_up_8ma>;
1540 sdmmc0_pins: sdmmc0-pins {
1542 <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1543 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1544 <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1545 <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1546 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1547 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1548 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1549 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1554 sdmmc0ext_clk: sdmmc0ext-clk {
1555 rockchip,pins = <3 RK_PA2 3 &pcfg_pull_none_4ma>;
1558 sdmmc0ext_cmd: sdmmc0ext-cmd {
1559 rockchip,pins = <3 RK_PA0 3 &pcfg_pull_up_4ma>;
1562 sdmmc0ext_wrprt: sdmmc0ext-wrprt {
1563 rockchip,pins = <3 RK_PA3 3 &pcfg_pull_up_4ma>;
1566 sdmmc0ext_dectn: sdmmc0ext-dectn {
1567 rockchip,pins = <3 RK_PA1 3 &pcfg_pull_up_4ma>;
1570 sdmmc0ext_bus1: sdmmc0ext-bus1 {
1571 rockchip,pins = <3 RK_PA4 3 &pcfg_pull_up_4ma>;
1574 sdmmc0ext_bus4: sdmmc0ext-bus4 {
1576 <3 RK_PA4 3 &pcfg_pull_up_4ma>,
1577 <3 RK_PA5 3 &pcfg_pull_up_4ma>,
1578 <3 RK_PA6 3 &pcfg_pull_up_4ma>,
1579 <3 RK_PA7 3 &pcfg_pull_up_4ma>;
1582 sdmmc0ext_pins: sdmmc0ext-pins {
1584 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1585 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1586 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1587 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1588 <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1589 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1590 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1591 <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1596 sdmmc1_clk: sdmmc1-clk {
1597 rockchip,pins = <1 RK_PB4 1 &pcfg_pull_none_8ma>;
1600 sdmmc1_cmd: sdmmc1-cmd {
1601 rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_8ma>;
1604 sdmmc1_pwren: sdmmc1-pwren {
1605 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_up_8ma>;
1608 sdmmc1_wrprt: sdmmc1-wrprt {
1609 rockchip,pins = <1 RK_PC4 1 &pcfg_pull_up_8ma>;
1612 sdmmc1_dectn: sdmmc1-dectn {
1613 rockchip,pins = <1 RK_PC3 1 &pcfg_pull_up_8ma>;
1616 sdmmc1_bus1: sdmmc1-bus1 {
1617 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>;
1620 sdmmc1_bus4: sdmmc1-bus4 {
1621 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>,
1622 <1 RK_PB7 1 &pcfg_pull_up_8ma>,
1623 <1 RK_PC0 1 &pcfg_pull_up_8ma>,
1624 <1 RK_PC1 1 &pcfg_pull_up_8ma>;
1627 sdmmc1_pins: sdmmc1-pins {
1629 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1630 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1631 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1632 <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1633 <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1634 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1635 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1636 <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1637 <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1642 emmc_clk: emmc-clk {
1643 rockchip,pins = <3 RK_PC5 2 &pcfg_pull_none_12ma>;
1646 emmc_cmd: emmc-cmd {
1647 rockchip,pins = <3 RK_PC3 2 &pcfg_pull_up_12ma>;
1650 emmc_pwren: emmc-pwren {
1651 rockchip,pins = <3 RK_PC6 2 &pcfg_pull_none>;
1654 emmc_rstnout: emmc-rstnout {
1655 rockchip,pins = <3 RK_PC4 2 &pcfg_pull_none>;
1658 emmc_bus1: emmc-bus1 {
1659 rockchip,pins = <0 RK_PA7 2 &pcfg_pull_up_12ma>;
1662 emmc_bus4: emmc-bus4 {
1664 <0 RK_PA7 2 &pcfg_pull_up_12ma>,
1665 <2 RK_PD4 2 &pcfg_pull_up_12ma>,
1666 <2 RK_PD5 2 &pcfg_pull_up_12ma>,
1667 <2 RK_PD6 2 &pcfg_pull_up_12ma>;
1670 emmc_bus8: emmc-bus8 {
1672 <0 RK_PA7 2 &pcfg_pull_up_12ma>,
1673 <2 RK_PD4 2 &pcfg_pull_up_12ma>,
1674 <2 RK_PD5 2 &pcfg_pull_up_12ma>,
1675 <2 RK_PD6 2 &pcfg_pull_up_12ma>,
1676 <2 RK_PD7 2 &pcfg_pull_up_12ma>,
1677 <3 RK_PC0 2 &pcfg_pull_up_12ma>,
1678 <3 RK_PC1 2 &pcfg_pull_up_12ma>,
1679 <3 RK_PC2 2 &pcfg_pull_up_12ma>;
1684 pwm0_pin: pwm0-pin {
1685 rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>;
1690 pwm1_pin: pwm1-pin {
1691 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>;
1696 pwm2_pin: pwm2-pin {
1697 rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>;
1702 pwmir_pin: pwmir-pin {
1703 rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>;
1708 rgmiim1_pins: rgmiim1-pins {
1711 <1 RK_PB4 2 &pcfg_pull_none_8ma>,
1713 <1 RK_PB5 2 &pcfg_pull_none_4ma>,
1715 <1 RK_PC3 2 &pcfg_pull_none_4ma>,
1717 <1 RK_PD1 2 &pcfg_pull_none_8ma>,
1719 <1 RK_PC5 2 &pcfg_pull_none_4ma>,
1721 <1 RK_PC6 2 &pcfg_pull_none_4ma>,
1723 <1 RK_PC7 2 &pcfg_pull_none_4ma>,
1725 <1 RK_PB2 2 &pcfg_pull_none_4ma>,
1727 <1 RK_PB3 2 &pcfg_pull_none_4ma>,
1729 <1 RK_PB0 2 &pcfg_pull_none_8ma>,
1731 <1 RK_PB1 2 &pcfg_pull_none_8ma>,
1733 <1 RK_PB6 2 &pcfg_pull_none_4ma>,
1735 <1 RK_PB7 2 &pcfg_pull_none_4ma>,
1737 <1 RK_PC0 2 &pcfg_pull_none_8ma>,
1739 <1 RK_PC1 2 &pcfg_pull_none_8ma>,
1742 <0 RK_PB0 1 &pcfg_pull_none_8ma>,
1744 <0 RK_PB4 1 &pcfg_pull_none_8ma>,
1746 <0 RK_PD0 1 &pcfg_pull_none_4ma>,
1748 <0 RK_PC0 1 &pcfg_pull_none_8ma>,
1750 <0 RK_PC1 1 &pcfg_pull_none_8ma>,
1752 <0 RK_PC7 1 &pcfg_pull_none_8ma>,
1754 <0 RK_PC6 1 &pcfg_pull_none_8ma>;
1757 rmiim1_pins: rmiim1-pins {
1760 <1 RK_PC3 2 &pcfg_pull_none_2ma>,
1762 <1 RK_PD1 2 &pcfg_pull_none_12ma>,
1764 <1 RK_PC5 2 &pcfg_pull_none_2ma>,
1766 <1 RK_PD0 2 &pcfg_pull_none_2ma>,
1768 <1 RK_PC6 2 &pcfg_pull_none_2ma>,
1770 <1 RK_PC7 2 &pcfg_pull_none_2ma>,
1772 <1 RK_PB2 2 &pcfg_pull_none_2ma>,
1774 <1 RK_PB3 2 &pcfg_pull_none_2ma>,
1776 <1 RK_PB0 2 &pcfg_pull_none_12ma>,
1778 <1 RK_PB1 2 &pcfg_pull_none_12ma>,
1781 <0 RK_PB3 1 &pcfg_pull_none>,
1783 <0 RK_PB4 1 &pcfg_pull_none>,
1785 <0 RK_PD0 1 &pcfg_pull_none>,
1787 <0 RK_PC3 1 &pcfg_pull_none>,
1789 <0 RK_PC0 1 &pcfg_pull_none>,
1791 <0 RK_PC1 1 &pcfg_pull_none>;
1796 fephyled_speed10: fephyled-speed10 {
1797 rockchip,pins = <0 RK_PD6 1 &pcfg_pull_none>;
1800 fephyled_duplex: fephyled-duplex {
1801 rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>;
1804 fephyled_rxm1: fephyled-rxm1 {
1805 rockchip,pins = <2 RK_PD1 2 &pcfg_pull_none>;
1808 fephyled_txm1: fephyled-txm1 {
1809 rockchip,pins = <2 RK_PD1 3 &pcfg_pull_none>;
1812 fephyled_linkm1: fephyled-linkm1 {
1813 rockchip,pins = <2 RK_PD0 2 &pcfg_pull_none>;
1818 tsadc_int: tsadc-int {
1819 rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>;
1821 tsadc_pin: tsadc-pin {
1822 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1827 hdmi_cec: hdmi-cec {
1828 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
1831 hdmi_hpd: hdmi-hpd {
1832 rockchip,pins = <0 RK_PA4 1 &pcfg_pull_down>;
1837 dvp_d2d9_m0:dvp-d2d9-m0 {
1840 <3 RK_PA4 2 &pcfg_pull_none>,
1842 <3 RK_PA5 2 &pcfg_pull_none>,
1844 <3 RK_PA6 2 &pcfg_pull_none>,
1846 <3 RK_PA7 2 &pcfg_pull_none>,
1848 <3 RK_PB0 2 &pcfg_pull_none>,
1850 <3 RK_PB1 2 &pcfg_pull_none>,
1852 <3 RK_PB2 2 &pcfg_pull_none>,
1854 <3 RK_PB3 2 &pcfg_pull_none>,
1856 <3 RK_PA1 2 &pcfg_pull_none>,
1858 <3 RK_PA0 2 &pcfg_pull_none>,
1860 <3 RK_PA3 2 &pcfg_pull_none>,
1862 <3 RK_PA2 2 &pcfg_pull_none>;
1867 dvp_d2d9_m1:dvp-d2d9-m1 {
1870 <3 RK_PA4 2 &pcfg_pull_none>,
1872 <3 RK_PA5 2 &pcfg_pull_none>,
1874 <3 RK_PA6 2 &pcfg_pull_none>,
1876 <3 RK_PA7 2 &pcfg_pull_none>,
1878 <3 RK_PB0 2 &pcfg_pull_none>,
1880 <2 RK_PC0 4 &pcfg_pull_none>,
1882 <2 RK_PC1 4 &pcfg_pull_none>,
1884 <2 RK_PC2 4 &pcfg_pull_none>,
1886 <3 RK_PA1 2 &pcfg_pull_none>,
1888 <3 RK_PA0 2 &pcfg_pull_none>,
1890 <2 RK_PB7 4 &pcfg_pull_none>,
1892 <3 RK_PA2 2 &pcfg_pull_none>;