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-table-0 {
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>;
145 analog_sound: analog-sound {
146 compatible = "simple-audio-card";
147 simple-audio-card,format = "i2s";
148 simple-audio-card,mclk-fs = <256>;
149 simple-audio-card,name = "Analog";
152 simple-audio-card,cpu {
156 simple-audio-card,codec {
157 sound-dai = <&codec>;
162 compatible = "arm,cortex-a53-pmu";
163 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
164 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
165 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
166 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
167 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
170 display_subsystem: display-subsystem {
171 compatible = "rockchip,display-subsystem";
175 hdmi_sound: hdmi-sound {
176 compatible = "simple-audio-card";
177 simple-audio-card,format = "i2s";
178 simple-audio-card,mclk-fs = <128>;
179 simple-audio-card,name = "HDMI";
182 simple-audio-card,cpu {
186 simple-audio-card,codec {
192 compatible = "arm,psci-1.0", "arm,psci-0.2";
197 compatible = "arm,armv8-timer";
198 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
199 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
200 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
201 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
205 compatible = "fixed-clock";
207 clock-frequency = <24000000>;
208 clock-output-names = "xin24m";
212 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
213 reg = <0x0 0xff000000 0x0 0x1000>;
214 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
215 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
216 clock-names = "i2s_clk", "i2s_hclk";
217 dmas = <&dmac 11>, <&dmac 12>;
218 dma-names = "tx", "rx";
219 #sound-dai-cells = <0>;
224 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
225 reg = <0x0 0xff010000 0x0 0x1000>;
226 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
227 clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
228 clock-names = "i2s_clk", "i2s_hclk";
229 dmas = <&dmac 14>, <&dmac 15>;
230 dma-names = "tx", "rx";
231 #sound-dai-cells = <0>;
236 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
237 reg = <0x0 0xff020000 0x0 0x1000>;
238 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
239 clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
240 clock-names = "i2s_clk", "i2s_hclk";
241 dmas = <&dmac 0>, <&dmac 1>;
242 dma-names = "tx", "rx";
243 #sound-dai-cells = <0>;
247 spdif: spdif@ff030000 {
248 compatible = "rockchip,rk3328-spdif";
249 reg = <0x0 0xff030000 0x0 0x1000>;
250 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
251 clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
252 clock-names = "mclk", "hclk";
255 pinctrl-names = "default";
256 pinctrl-0 = <&spdifm2_tx>;
257 #sound-dai-cells = <0>;
262 compatible = "rockchip,pdm";
263 reg = <0x0 0xff040000 0x0 0x1000>;
264 clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
265 clock-names = "pdm_clk", "pdm_hclk";
268 pinctrl-names = "default", "sleep";
269 pinctrl-0 = <&pdmm0_clk
274 pinctrl-1 = <&pdmm0_clk_sleep
282 grf: syscon@ff100000 {
283 compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
284 reg = <0x0 0xff100000 0x0 0x1000>;
286 io_domains: io-domains {
287 compatible = "rockchip,rk3328-io-voltage-domain";
292 compatible = "rockchip,rk3328-grf-gpio";
297 power: power-controller {
298 compatible = "rockchip,rk3328-power-controller";
299 #power-domain-cells = <1>;
300 #address-cells = <1>;
303 power-domain@RK3328_PD_HEVC {
304 reg = <RK3328_PD_HEVC>;
305 #power-domain-cells = <0>;
307 power-domain@RK3328_PD_VIDEO {
308 reg = <RK3328_PD_VIDEO>;
309 clocks = <&cru ACLK_RKVDEC>,
311 <&cru SCLK_VDEC_CABAC>,
312 <&cru SCLK_VDEC_CORE>;
313 #power-domain-cells = <0>;
315 power-domain@RK3328_PD_VPU {
316 reg = <RK3328_PD_VPU>;
317 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
318 #power-domain-cells = <0>;
323 compatible = "syscon-reboot-mode";
325 mode-normal = <BOOT_NORMAL>;
326 mode-recovery = <BOOT_RECOVERY>;
327 mode-bootloader = <BOOT_FASTBOOT>;
328 mode-loader = <BOOT_BL_DOWNLOAD>;
332 uart0: serial@ff110000 {
333 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
334 reg = <0x0 0xff110000 0x0 0x100>;
335 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
336 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
337 clock-names = "baudclk", "apb_pclk";
338 dmas = <&dmac 2>, <&dmac 3>;
339 dma-names = "tx", "rx";
340 pinctrl-names = "default";
341 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
347 uart1: serial@ff120000 {
348 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
349 reg = <0x0 0xff120000 0x0 0x100>;
350 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
351 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
352 clock-names = "baudclk", "apb_pclk";
353 dmas = <&dmac 4>, <&dmac 5>;
354 dma-names = "tx", "rx";
355 pinctrl-names = "default";
356 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
362 uart2: serial@ff130000 {
363 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
364 reg = <0x0 0xff130000 0x0 0x100>;
365 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
366 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
367 clock-names = "baudclk", "apb_pclk";
368 dmas = <&dmac 6>, <&dmac 7>;
369 dma-names = "tx", "rx";
370 pinctrl-names = "default";
371 pinctrl-0 = <&uart2m1_xfer>;
378 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
379 reg = <0x0 0xff150000 0x0 0x1000>;
380 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
381 #address-cells = <1>;
383 clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>;
384 clock-names = "i2c", "pclk";
385 pinctrl-names = "default";
386 pinctrl-0 = <&i2c0_xfer>;
391 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
392 reg = <0x0 0xff160000 0x0 0x1000>;
393 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
394 #address-cells = <1>;
396 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
397 clock-names = "i2c", "pclk";
398 pinctrl-names = "default";
399 pinctrl-0 = <&i2c1_xfer>;
404 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
405 reg = <0x0 0xff170000 0x0 0x1000>;
406 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
407 #address-cells = <1>;
409 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
410 clock-names = "i2c", "pclk";
411 pinctrl-names = "default";
412 pinctrl-0 = <&i2c2_xfer>;
417 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
418 reg = <0x0 0xff180000 0x0 0x1000>;
419 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
420 #address-cells = <1>;
422 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
423 clock-names = "i2c", "pclk";
424 pinctrl-names = "default";
425 pinctrl-0 = <&i2c3_xfer>;
430 compatible = "rockchip,rk3328-spi", "rockchip,rk3066-spi";
431 reg = <0x0 0xff190000 0x0 0x1000>;
432 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
433 #address-cells = <1>;
435 clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
436 clock-names = "spiclk", "apb_pclk";
437 dmas = <&dmac 8>, <&dmac 9>;
438 dma-names = "tx", "rx";
439 pinctrl-names = "default";
440 pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>;
444 wdt: watchdog@ff1a0000 {
445 compatible = "rockchip,rk3328-wdt", "snps,dw-wdt";
446 reg = <0x0 0xff1a0000 0x0 0x100>;
447 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
448 clocks = <&cru PCLK_WDT>;
452 compatible = "rockchip,rk3328-pwm";
453 reg = <0x0 0xff1b0000 0x0 0x10>;
454 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
455 clock-names = "pwm", "pclk";
456 pinctrl-names = "default";
457 pinctrl-0 = <&pwm0_pin>;
463 compatible = "rockchip,rk3328-pwm";
464 reg = <0x0 0xff1b0010 0x0 0x10>;
465 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
466 clock-names = "pwm", "pclk";
467 pinctrl-names = "default";
468 pinctrl-0 = <&pwm1_pin>;
474 compatible = "rockchip,rk3328-pwm";
475 reg = <0x0 0xff1b0020 0x0 0x10>;
476 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
477 clock-names = "pwm", "pclk";
478 pinctrl-names = "default";
479 pinctrl-0 = <&pwm2_pin>;
485 compatible = "rockchip,rk3328-pwm";
486 reg = <0x0 0xff1b0030 0x0 0x10>;
487 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
488 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
489 clock-names = "pwm", "pclk";
490 pinctrl-names = "default";
491 pinctrl-0 = <&pwmir_pin>;
496 dmac: dma-controller@ff1f0000 {
497 compatible = "arm,pl330", "arm,primecell";
498 reg = <0x0 0xff1f0000 0x0 0x4000>;
499 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
500 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
501 arm,pl330-periph-burst;
502 clocks = <&cru ACLK_DMAC>;
503 clock-names = "apb_pclk";
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 0x30000>;
607 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
608 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
609 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
610 <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
611 <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
612 <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
613 <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
614 interrupt-names = "gp",
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 clocks = <&cru ACLK_H265>, <&cru PCLK_H265>;
631 clock-names = "aclk", "iface";
636 vepu_mmu: iommu@ff340800 {
637 compatible = "rockchip,iommu";
638 reg = <0x0 0xff340800 0x0 0x40>;
639 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
640 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
641 clock-names = "aclk", "iface";
646 vpu: video-codec@ff350000 {
647 compatible = "rockchip,rk3328-vpu";
648 reg = <0x0 0xff350000 0x0 0x800>;
649 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
650 interrupt-names = "vdpu";
651 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
652 clock-names = "aclk", "hclk";
654 power-domains = <&power RK3328_PD_VPU>;
657 vpu_mmu: iommu@ff350800 {
658 compatible = "rockchip,iommu";
659 reg = <0x0 0xff350800 0x0 0x40>;
660 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
661 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
662 clock-names = "aclk", "iface";
664 power-domains = <&power RK3328_PD_VPU>;
667 vdec: video-codec@ff360000 {
668 compatible = "rockchip,rk3328-vdec", "rockchip,rk3399-vdec";
669 reg = <0x0 0xff360000 0x0 0x480>;
670 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
671 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>,
672 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>;
673 clock-names = "axi", "ahb", "cabac", "core";
674 assigned-clocks = <&cru ACLK_RKVDEC>, <&cru SCLK_VDEC_CABAC>,
675 <&cru SCLK_VDEC_CORE>;
676 assigned-clock-rates = <400000000>, <400000000>, <300000000>;
677 iommus = <&vdec_mmu>;
678 power-domains = <&power RK3328_PD_VIDEO>;
681 vdec_mmu: iommu@ff360480 {
682 compatible = "rockchip,iommu";
683 reg = <0x0 0xff360480 0x0 0x40>, <0x0 0xff3604c0 0x0 0x40>;
684 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
685 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>;
686 clock-names = "aclk", "iface";
688 power-domains = <&power RK3328_PD_VIDEO>;
692 compatible = "rockchip,rk3328-vop";
693 reg = <0x0 0xff370000 0x0 0x3efc>;
694 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
695 clocks = <&cru ACLK_VOP>, <&cru DCLK_LCDC>, <&cru HCLK_VOP>;
696 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
697 resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
698 reset-names = "axi", "ahb", "dclk";
703 #address-cells = <1>;
706 vop_out_hdmi: endpoint@0 {
708 remote-endpoint = <&hdmi_in_vop>;
713 vop_mmu: iommu@ff373f00 {
714 compatible = "rockchip,iommu";
715 reg = <0x0 0xff373f00 0x0 0x100>;
716 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
717 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
718 clock-names = "aclk", "iface";
723 hdmi: hdmi@ff3c0000 {
724 compatible = "rockchip,rk3328-dw-hdmi";
725 reg = <0x0 0xff3c0000 0x0 0x20000>;
727 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
728 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
729 clocks = <&cru PCLK_HDMI>,
730 <&cru SCLK_HDMI_SFC>,
732 clock-names = "iahb",
737 pinctrl-names = "default";
738 pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>;
739 rockchip,grf = <&grf>;
740 #sound-dai-cells = <0>;
744 #address-cells = <1>;
750 hdmi_in_vop: endpoint {
751 remote-endpoint = <&vop_out_hdmi>;
761 codec: codec@ff410000 {
762 compatible = "rockchip,rk3328-codec";
763 reg = <0x0 0xff410000 0x0 0x1000>;
764 clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
765 clock-names = "pclk", "mclk";
766 rockchip,grf = <&grf>;
767 #sound-dai-cells = <0>;
771 hdmiphy: phy@ff430000 {
772 compatible = "rockchip,rk3328-hdmi-phy";
773 reg = <0x0 0xff430000 0x0 0x10000>;
774 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
775 clocks = <&cru PCLK_HDMIPHY>, <&xin24m>, <&cru DCLK_HDMIPHY>;
776 clock-names = "sysclk", "refoclk", "refpclk";
777 clock-output-names = "hdmi_phy";
779 nvmem-cells = <&efuse_cpu_version>;
780 nvmem-cell-names = "cpu-version";
785 cru: clock-controller@ff440000 {
786 compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon";
787 reg = <0x0 0xff440000 0x0 0x1000>;
788 rockchip,grf = <&grf>;
793 * CPLL should run at 1200, but that is to high for
794 * the initial dividers of most of its children.
795 * We need set cpll child clk div first,
796 * and then set the cpll frequency.
798 <&cru DCLK_LCDC>, <&cru SCLK_PDM>,
799 <&cru SCLK_RTC32K>, <&cru SCLK_UART0>,
800 <&cru SCLK_UART1>, <&cru SCLK_UART2>,
801 <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
802 <&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>,
803 <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
804 <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
805 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
806 <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
807 <&cru SCLK_SDIO>, <&cru SCLK_TSP>,
808 <&cru SCLK_WIFI>, <&cru ARMCLK>,
809 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
810 <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>,
811 <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
812 <&cru HCLK_PERI>, <&cru PCLK_PERI>,
814 assigned-clock-parents =
815 <&cru HDMIPHY>, <&cru PLL_APLL>,
816 <&cru PLL_GPLL>, <&xin24m>,
817 <&xin24m>, <&xin24m>;
818 assigned-clock-rates =
821 <24000000>, <24000000>,
822 <15000000>, <15000000>,
823 <100000000>, <100000000>,
824 <100000000>, <100000000>,
825 <50000000>, <100000000>,
826 <100000000>, <100000000>,
827 <50000000>, <50000000>,
828 <50000000>, <50000000>,
829 <24000000>, <600000000>,
830 <491520000>, <1200000000>,
831 <150000000>, <75000000>,
832 <75000000>, <150000000>,
833 <75000000>, <75000000>,
837 usb2phy_grf: syscon@ff450000 {
838 compatible = "rockchip,rk3328-usb2phy-grf", "syscon",
840 reg = <0x0 0xff450000 0x0 0x10000>;
841 #address-cells = <1>;
845 compatible = "rockchip,rk3328-usb2phy";
848 clock-names = "phyclk";
849 clock-output-names = "usb480m_phy";
851 assigned-clocks = <&cru USB480M>;
852 assigned-clock-parents = <&u2phy>;
855 u2phy_otg: otg-port {
857 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
858 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
859 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
860 interrupt-names = "otg-bvalid", "otg-id",
865 u2phy_host: host-port {
867 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
868 interrupt-names = "linestate";
874 sdmmc: mmc@ff500000 {
875 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
876 reg = <0x0 0xff500000 0x0 0x4000>;
877 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
878 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
879 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
880 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
881 fifo-depth = <0x100>;
882 max-frequency = <150000000>;
887 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
888 reg = <0x0 0xff510000 0x0 0x4000>;
889 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
890 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
891 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
892 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
893 fifo-depth = <0x100>;
894 max-frequency = <150000000>;
899 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
900 reg = <0x0 0xff520000 0x0 0x4000>;
901 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
902 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
903 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
904 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
905 fifo-depth = <0x100>;
906 max-frequency = <150000000>;
910 gmac2io: ethernet@ff540000 {
911 compatible = "rockchip,rk3328-gmac";
912 reg = <0x0 0xff540000 0x0 0x10000>;
913 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
914 interrupt-names = "macirq";
915 clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_RX>,
916 <&cru SCLK_MAC2IO_TX>, <&cru SCLK_MAC2IO_REF>,
917 <&cru SCLK_MAC2IO_REFOUT>, <&cru ACLK_MAC2IO>,
919 clock-names = "stmmaceth", "mac_clk_rx",
920 "mac_clk_tx", "clk_mac_ref",
921 "clk_mac_refout", "aclk_mac",
923 resets = <&cru SRST_GMAC2IO_A>;
924 reset-names = "stmmaceth";
925 rockchip,grf = <&grf>;
930 gmac2phy: ethernet@ff550000 {
931 compatible = "rockchip,rk3328-gmac";
932 reg = <0x0 0xff550000 0x0 0x10000>;
933 rockchip,grf = <&grf>;
934 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
935 interrupt-names = "macirq";
936 clocks = <&cru SCLK_MAC2PHY_SRC>, <&cru SCLK_MAC2PHY_RXTX>,
937 <&cru SCLK_MAC2PHY_RXTX>, <&cru SCLK_MAC2PHY_REF>,
938 <&cru ACLK_MAC2PHY>, <&cru PCLK_MAC2PHY>,
939 <&cru SCLK_MAC2PHY_OUT>;
940 clock-names = "stmmaceth", "mac_clk_rx",
941 "mac_clk_tx", "clk_mac_ref",
942 "aclk_mac", "pclk_mac",
944 resets = <&cru SRST_GMAC2PHY_A>;
945 reset-names = "stmmaceth";
949 clock_in_out = "output";
953 compatible = "snps,dwmac-mdio";
954 #address-cells = <1>;
957 phy: ethernet-phy@0 {
958 compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
960 clocks = <&cru SCLK_MAC2PHY_OUT>;
961 resets = <&cru SRST_MACPHY>;
962 pinctrl-names = "default";
963 pinctrl-0 = <&fephyled_rxm1 &fephyled_linkm1>;
969 usb20_otg: usb@ff580000 {
970 compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
972 reg = <0x0 0xff580000 0x0 0x40000>;
973 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
974 clocks = <&cru HCLK_OTG>;
977 g-np-tx-fifo-size = <16>;
978 g-rx-fifo-size = <280>;
979 g-tx-fifo-size = <256 128 128 64 32 16>;
981 phy-names = "usb2-phy";
985 usb_host0_ehci: usb@ff5c0000 {
986 compatible = "generic-ehci";
987 reg = <0x0 0xff5c0000 0x0 0x10000>;
988 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
989 clocks = <&cru HCLK_HOST0>, <&u2phy>;
990 phys = <&u2phy_host>;
995 usb_host0_ohci: usb@ff5d0000 {
996 compatible = "generic-ohci";
997 reg = <0x0 0xff5d0000 0x0 0x10000>;
998 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
999 clocks = <&cru HCLK_HOST0>, <&u2phy>;
1000 phys = <&u2phy_host>;
1002 status = "disabled";
1005 usbdrd3: usb@ff600000 {
1006 compatible = "rockchip,rk3328-dwc3", "snps,dwc3";
1007 reg = <0x0 0xff600000 0x0 0x100000>;
1008 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
1009 clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>,
1010 <&cru ACLK_USB3OTG>;
1011 clock-names = "ref_clk", "suspend_clk",
1014 phy_type = "utmi_wide";
1015 snps,dis-del-phy-power-chg-quirk;
1016 snps,dis_enblslpm_quirk;
1017 snps,dis-tx-ipgap-linecheck-quirk;
1018 snps,dis-u2-freeclk-exists-quirk;
1019 snps,dis_u2_susphy_quirk;
1020 snps,dis_u3_susphy_quirk;
1021 status = "disabled";
1024 gic: interrupt-controller@ff811000 {
1025 compatible = "arm,gic-400";
1026 #interrupt-cells = <3>;
1027 #address-cells = <0>;
1028 interrupt-controller;
1029 reg = <0x0 0xff811000 0 0x1000>,
1030 <0x0 0xff812000 0 0x2000>,
1031 <0x0 0xff814000 0 0x2000>,
1032 <0x0 0xff816000 0 0x2000>;
1033 interrupts = <GIC_PPI 9
1034 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1038 compatible = "rockchip,rk3328-pinctrl";
1039 rockchip,grf = <&grf>;
1040 #address-cells = <2>;
1044 gpio0: gpio@ff210000 {
1045 compatible = "rockchip,gpio-bank";
1046 reg = <0x0 0xff210000 0x0 0x100>;
1047 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
1048 clocks = <&cru PCLK_GPIO0>;
1053 interrupt-controller;
1054 #interrupt-cells = <2>;
1057 gpio1: gpio@ff220000 {
1058 compatible = "rockchip,gpio-bank";
1059 reg = <0x0 0xff220000 0x0 0x100>;
1060 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
1061 clocks = <&cru PCLK_GPIO1>;
1066 interrupt-controller;
1067 #interrupt-cells = <2>;
1070 gpio2: gpio@ff230000 {
1071 compatible = "rockchip,gpio-bank";
1072 reg = <0x0 0xff230000 0x0 0x100>;
1073 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
1074 clocks = <&cru PCLK_GPIO2>;
1079 interrupt-controller;
1080 #interrupt-cells = <2>;
1083 gpio3: gpio@ff240000 {
1084 compatible = "rockchip,gpio-bank";
1085 reg = <0x0 0xff240000 0x0 0x100>;
1086 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
1087 clocks = <&cru PCLK_GPIO3>;
1092 interrupt-controller;
1093 #interrupt-cells = <2>;
1096 pcfg_pull_up: pcfg-pull-up {
1100 pcfg_pull_down: pcfg-pull-down {
1104 pcfg_pull_none: pcfg-pull-none {
1108 pcfg_pull_none_2ma: pcfg-pull-none-2ma {
1110 drive-strength = <2>;
1113 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1115 drive-strength = <2>;
1118 pcfg_pull_up_4ma: pcfg-pull-up-4ma {
1120 drive-strength = <4>;
1123 pcfg_pull_none_4ma: pcfg-pull-none-4ma {
1125 drive-strength = <4>;
1128 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1130 drive-strength = <4>;
1133 pcfg_pull_none_8ma: pcfg-pull-none-8ma {
1135 drive-strength = <8>;
1138 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1140 drive-strength = <8>;
1143 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1145 drive-strength = <12>;
1148 pcfg_pull_up_12ma: pcfg-pull-up-12ma {
1150 drive-strength = <12>;
1153 pcfg_output_high: pcfg-output-high {
1157 pcfg_output_low: pcfg-output-low {
1161 pcfg_input_high: pcfg-input-high {
1166 pcfg_input: pcfg-input {
1171 i2c0_xfer: i2c0-xfer {
1172 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_none>,
1173 <2 RK_PD1 1 &pcfg_pull_none>;
1178 i2c1_xfer: i2c1-xfer {
1179 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>,
1180 <2 RK_PA5 2 &pcfg_pull_none>;
1185 i2c2_xfer: i2c2-xfer {
1186 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>,
1187 <2 RK_PB6 1 &pcfg_pull_none>;
1192 i2c3_xfer: i2c3-xfer {
1193 rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>,
1194 <0 RK_PA6 2 &pcfg_pull_none>;
1196 i2c3_pins: i2c3-pins {
1198 <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
1199 <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
1204 hdmii2c_xfer: hdmii2c-xfer {
1205 rockchip,pins = <0 RK_PA5 1 &pcfg_pull_none>,
1206 <0 RK_PA6 1 &pcfg_pull_none>;
1211 pdmm0_clk: pdmm0-clk {
1212 rockchip,pins = <2 RK_PC2 2 &pcfg_pull_none>;
1215 pdmm0_fsync: pdmm0-fsync {
1216 rockchip,pins = <2 RK_PC7 2 &pcfg_pull_none>;
1219 pdmm0_sdi0: pdmm0-sdi0 {
1220 rockchip,pins = <2 RK_PC3 2 &pcfg_pull_none>;
1223 pdmm0_sdi1: pdmm0-sdi1 {
1224 rockchip,pins = <2 RK_PC4 2 &pcfg_pull_none>;
1227 pdmm0_sdi2: pdmm0-sdi2 {
1228 rockchip,pins = <2 RK_PC5 2 &pcfg_pull_none>;
1231 pdmm0_sdi3: pdmm0-sdi3 {
1232 rockchip,pins = <2 RK_PC6 2 &pcfg_pull_none>;
1235 pdmm0_clk_sleep: pdmm0-clk-sleep {
1237 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>;
1240 pdmm0_sdi0_sleep: pdmm0-sdi0-sleep {
1242 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>;
1245 pdmm0_sdi1_sleep: pdmm0-sdi1-sleep {
1247 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>;
1250 pdmm0_sdi2_sleep: pdmm0-sdi2-sleep {
1252 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>;
1255 pdmm0_sdi3_sleep: pdmm0-sdi3-sleep {
1257 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>;
1260 pdmm0_fsync_sleep: pdmm0-fsync-sleep {
1262 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1268 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1272 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>;
1277 uart0_xfer: uart0-xfer {
1278 rockchip,pins = <1 RK_PB1 1 &pcfg_pull_none>,
1279 <1 RK_PB0 1 &pcfg_pull_up>;
1282 uart0_cts: uart0-cts {
1283 rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>;
1286 uart0_rts: uart0-rts {
1287 rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>;
1290 uart0_rts_pin: uart0-rts-pin {
1291 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
1296 uart1_xfer: uart1-xfer {
1297 rockchip,pins = <3 RK_PA4 4 &pcfg_pull_none>,
1298 <3 RK_PA6 4 &pcfg_pull_up>;
1301 uart1_cts: uart1-cts {
1302 rockchip,pins = <3 RK_PA7 4 &pcfg_pull_none>;
1305 uart1_rts: uart1-rts {
1306 rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>;
1309 uart1_rts_pin: uart1-rts-pin {
1310 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
1315 uart2m0_xfer: uart2m0-xfer {
1316 rockchip,pins = <1 RK_PA0 2 &pcfg_pull_none>,
1317 <1 RK_PA1 2 &pcfg_pull_up>;
1322 uart2m1_xfer: uart2m1-xfer {
1323 rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>,
1324 <2 RK_PA1 1 &pcfg_pull_up>;
1329 spi0m0_clk: spi0m0-clk {
1330 rockchip,pins = <2 RK_PB0 1 &pcfg_pull_up>;
1333 spi0m0_cs0: spi0m0-cs0 {
1334 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
1337 spi0m0_tx: spi0m0-tx {
1338 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_up>;
1341 spi0m0_rx: spi0m0-rx {
1342 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
1345 spi0m0_cs1: spi0m0-cs1 {
1346 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_up>;
1351 spi0m1_clk: spi0m1-clk {
1352 rockchip,pins = <3 RK_PC7 2 &pcfg_pull_up>;
1355 spi0m1_cs0: spi0m1-cs0 {
1356 rockchip,pins = <3 RK_PD2 2 &pcfg_pull_up>;
1359 spi0m1_tx: spi0m1-tx {
1360 rockchip,pins = <3 RK_PD1 2 &pcfg_pull_up>;
1363 spi0m1_rx: spi0m1-rx {
1364 rockchip,pins = <3 RK_PD0 2 &pcfg_pull_up>;
1367 spi0m1_cs1: spi0m1-cs1 {
1368 rockchip,pins = <3 RK_PD3 2 &pcfg_pull_up>;
1373 spi0m2_clk: spi0m2-clk {
1374 rockchip,pins = <3 RK_PA0 4 &pcfg_pull_up>;
1377 spi0m2_cs0: spi0m2-cs0 {
1378 rockchip,pins = <3 RK_PB0 3 &pcfg_pull_up>;
1381 spi0m2_tx: spi0m2-tx {
1382 rockchip,pins = <3 RK_PA1 4 &pcfg_pull_up>;
1385 spi0m2_rx: spi0m2-rx {
1386 rockchip,pins = <3 RK_PA2 4 &pcfg_pull_up>;
1391 i2s1_mclk: i2s1-mclk {
1392 rockchip,pins = <2 RK_PB7 1 &pcfg_pull_none>;
1395 i2s1_sclk: i2s1-sclk {
1396 rockchip,pins = <2 RK_PC2 1 &pcfg_pull_none>;
1399 i2s1_lrckrx: i2s1-lrckrx {
1400 rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>;
1403 i2s1_lrcktx: i2s1-lrcktx {
1404 rockchip,pins = <2 RK_PC1 1 &pcfg_pull_none>;
1407 i2s1_sdi: i2s1-sdi {
1408 rockchip,pins = <2 RK_PC3 1 &pcfg_pull_none>;
1411 i2s1_sdo: i2s1-sdo {
1412 rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
1415 i2s1_sdio1: i2s1-sdio1 {
1416 rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>;
1419 i2s1_sdio2: i2s1-sdio2 {
1420 rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>;
1423 i2s1_sdio3: i2s1-sdio3 {
1424 rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
1427 i2s1_sleep: i2s1-sleep {
1429 <2 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>,
1430 <2 RK_PC0 RK_FUNC_GPIO &pcfg_input_high>,
1431 <2 RK_PC1 RK_FUNC_GPIO &pcfg_input_high>,
1432 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>,
1433 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>,
1434 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>,
1435 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1436 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1437 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1442 i2s2m0_mclk: i2s2m0-mclk {
1443 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
1446 i2s2m0_sclk: i2s2m0-sclk {
1447 rockchip,pins = <1 RK_PC6 1 &pcfg_pull_none>;
1450 i2s2m0_lrckrx: i2s2m0-lrckrx {
1451 rockchip,pins = <1 RK_PD2 1 &pcfg_pull_none>;
1454 i2s2m0_lrcktx: i2s2m0-lrcktx {
1455 rockchip,pins = <1 RK_PC7 1 &pcfg_pull_none>;
1458 i2s2m0_sdi: i2s2m0-sdi {
1459 rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>;
1462 i2s2m0_sdo: i2s2m0-sdo {
1463 rockchip,pins = <1 RK_PD1 1 &pcfg_pull_none>;
1466 i2s2m0_sleep: i2s2m0-sleep {
1468 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1469 <1 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1470 <1 RK_PD2 RK_FUNC_GPIO &pcfg_input_high>,
1471 <1 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>,
1472 <1 RK_PD0 RK_FUNC_GPIO &pcfg_input_high>,
1473 <1 RK_PD1 RK_FUNC_GPIO &pcfg_input_high>;
1478 i2s2m1_mclk: i2s2m1-mclk {
1479 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>;
1482 i2s2m1_sclk: i2s2m1-sclk {
1483 rockchip,pins = <3 RK_PA0 6 &pcfg_pull_none>;
1486 i2s2m1_lrckrx: i2sm1-lrckrx {
1487 rockchip,pins = <3 RK_PB0 6 &pcfg_pull_none>;
1490 i2s2m1_lrcktx: i2s2m1-lrcktx {
1491 rockchip,pins = <3 RK_PB0 4 &pcfg_pull_none>;
1494 i2s2m1_sdi: i2s2m1-sdi {
1495 rockchip,pins = <3 RK_PA2 6 &pcfg_pull_none>;
1498 i2s2m1_sdo: i2s2m1-sdo {
1499 rockchip,pins = <3 RK_PA1 6 &pcfg_pull_none>;
1502 i2s2m1_sleep: i2s2m1-sleep {
1504 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1505 <3 RK_PA0 RK_FUNC_GPIO &pcfg_input_high>,
1506 <3 RK_PB0 RK_FUNC_GPIO &pcfg_input_high>,
1507 <3 RK_PA2 RK_FUNC_GPIO &pcfg_input_high>,
1508 <3 RK_PA1 RK_FUNC_GPIO &pcfg_input_high>;
1513 spdifm0_tx: spdifm0-tx {
1514 rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>;
1519 spdifm1_tx: spdifm1-tx {
1520 rockchip,pins = <2 RK_PC1 2 &pcfg_pull_none>;
1525 spdifm2_tx: spdifm2-tx {
1526 rockchip,pins = <0 RK_PA2 2 &pcfg_pull_none>;
1531 sdmmc0m0_pwren: sdmmc0m0-pwren {
1532 rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>;
1535 sdmmc0m0_pin: sdmmc0m0-pin {
1536 rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1541 sdmmc0m1_pwren: sdmmc0m1-pwren {
1542 rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>;
1545 sdmmc0m1_pin: sdmmc0m1-pin {
1546 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1551 sdmmc0_clk: sdmmc0-clk {
1552 rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none_8ma>;
1555 sdmmc0_cmd: sdmmc0-cmd {
1556 rockchip,pins = <1 RK_PA4 1 &pcfg_pull_up_8ma>;
1559 sdmmc0_dectn: sdmmc0-dectn {
1560 rockchip,pins = <1 RK_PA5 1 &pcfg_pull_up_4ma>;
1563 sdmmc0_wrprt: sdmmc0-wrprt {
1564 rockchip,pins = <1 RK_PA7 1 &pcfg_pull_up_4ma>;
1567 sdmmc0_bus1: sdmmc0-bus1 {
1568 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>;
1571 sdmmc0_bus4: sdmmc0-bus4 {
1572 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>,
1573 <1 RK_PA1 1 &pcfg_pull_up_8ma>,
1574 <1 RK_PA2 1 &pcfg_pull_up_8ma>,
1575 <1 RK_PA3 1 &pcfg_pull_up_8ma>;
1578 sdmmc0_pins: sdmmc0-pins {
1580 <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1581 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1582 <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1583 <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1584 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1585 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1586 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1587 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1592 sdmmc0ext_clk: sdmmc0ext-clk {
1593 rockchip,pins = <3 RK_PA2 3 &pcfg_pull_none_4ma>;
1596 sdmmc0ext_cmd: sdmmc0ext-cmd {
1597 rockchip,pins = <3 RK_PA0 3 &pcfg_pull_up_4ma>;
1600 sdmmc0ext_wrprt: sdmmc0ext-wrprt {
1601 rockchip,pins = <3 RK_PA3 3 &pcfg_pull_up_4ma>;
1604 sdmmc0ext_dectn: sdmmc0ext-dectn {
1605 rockchip,pins = <3 RK_PA1 3 &pcfg_pull_up_4ma>;
1608 sdmmc0ext_bus1: sdmmc0ext-bus1 {
1609 rockchip,pins = <3 RK_PA4 3 &pcfg_pull_up_4ma>;
1612 sdmmc0ext_bus4: sdmmc0ext-bus4 {
1614 <3 RK_PA4 3 &pcfg_pull_up_4ma>,
1615 <3 RK_PA5 3 &pcfg_pull_up_4ma>,
1616 <3 RK_PA6 3 &pcfg_pull_up_4ma>,
1617 <3 RK_PA7 3 &pcfg_pull_up_4ma>;
1620 sdmmc0ext_pins: sdmmc0ext-pins {
1622 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1623 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1624 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1625 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1626 <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1627 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1628 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1629 <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1634 sdmmc1_clk: sdmmc1-clk {
1635 rockchip,pins = <1 RK_PB4 1 &pcfg_pull_none_8ma>;
1638 sdmmc1_cmd: sdmmc1-cmd {
1639 rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_8ma>;
1642 sdmmc1_pwren: sdmmc1-pwren {
1643 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_up_8ma>;
1646 sdmmc1_wrprt: sdmmc1-wrprt {
1647 rockchip,pins = <1 RK_PC4 1 &pcfg_pull_up_8ma>;
1650 sdmmc1_dectn: sdmmc1-dectn {
1651 rockchip,pins = <1 RK_PC3 1 &pcfg_pull_up_8ma>;
1654 sdmmc1_bus1: sdmmc1-bus1 {
1655 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>;
1658 sdmmc1_bus4: sdmmc1-bus4 {
1659 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>,
1660 <1 RK_PB7 1 &pcfg_pull_up_8ma>,
1661 <1 RK_PC0 1 &pcfg_pull_up_8ma>,
1662 <1 RK_PC1 1 &pcfg_pull_up_8ma>;
1665 sdmmc1_pins: sdmmc1-pins {
1667 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1668 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1669 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1670 <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1671 <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1672 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1673 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1674 <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1675 <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1680 emmc_clk: emmc-clk {
1681 rockchip,pins = <3 RK_PC5 2 &pcfg_pull_none_12ma>;
1684 emmc_cmd: emmc-cmd {
1685 rockchip,pins = <3 RK_PC3 2 &pcfg_pull_up_12ma>;
1688 emmc_pwren: emmc-pwren {
1689 rockchip,pins = <3 RK_PC6 2 &pcfg_pull_none>;
1692 emmc_rstnout: emmc-rstnout {
1693 rockchip,pins = <3 RK_PC4 2 &pcfg_pull_none>;
1696 emmc_bus1: emmc-bus1 {
1697 rockchip,pins = <0 RK_PA7 2 &pcfg_pull_up_12ma>;
1700 emmc_bus4: emmc-bus4 {
1702 <0 RK_PA7 2 &pcfg_pull_up_12ma>,
1703 <2 RK_PD4 2 &pcfg_pull_up_12ma>,
1704 <2 RK_PD5 2 &pcfg_pull_up_12ma>,
1705 <2 RK_PD6 2 &pcfg_pull_up_12ma>;
1708 emmc_bus8: emmc-bus8 {
1710 <0 RK_PA7 2 &pcfg_pull_up_12ma>,
1711 <2 RK_PD4 2 &pcfg_pull_up_12ma>,
1712 <2 RK_PD5 2 &pcfg_pull_up_12ma>,
1713 <2 RK_PD6 2 &pcfg_pull_up_12ma>,
1714 <2 RK_PD7 2 &pcfg_pull_up_12ma>,
1715 <3 RK_PC0 2 &pcfg_pull_up_12ma>,
1716 <3 RK_PC1 2 &pcfg_pull_up_12ma>,
1717 <3 RK_PC2 2 &pcfg_pull_up_12ma>;
1722 pwm0_pin: pwm0-pin {
1723 rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>;
1728 pwm1_pin: pwm1-pin {
1729 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>;
1734 pwm2_pin: pwm2-pin {
1735 rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>;
1740 pwmir_pin: pwmir-pin {
1741 rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>;
1746 rgmiim1_pins: rgmiim1-pins {
1749 <1 RK_PB4 2 &pcfg_pull_none_8ma>,
1751 <1 RK_PB5 2 &pcfg_pull_none_4ma>,
1753 <1 RK_PC3 2 &pcfg_pull_none_4ma>,
1755 <1 RK_PD1 2 &pcfg_pull_none_8ma>,
1757 <1 RK_PC5 2 &pcfg_pull_none_4ma>,
1759 <1 RK_PC6 2 &pcfg_pull_none_4ma>,
1761 <1 RK_PC7 2 &pcfg_pull_none_4ma>,
1763 <1 RK_PB2 2 &pcfg_pull_none_4ma>,
1765 <1 RK_PB3 2 &pcfg_pull_none_4ma>,
1767 <1 RK_PB0 2 &pcfg_pull_none_8ma>,
1769 <1 RK_PB1 2 &pcfg_pull_none_8ma>,
1771 <1 RK_PB6 2 &pcfg_pull_none_4ma>,
1773 <1 RK_PB7 2 &pcfg_pull_none_4ma>,
1775 <1 RK_PC0 2 &pcfg_pull_none_8ma>,
1777 <1 RK_PC1 2 &pcfg_pull_none_8ma>,
1780 <0 RK_PB0 1 &pcfg_pull_none_8ma>,
1782 <0 RK_PB4 1 &pcfg_pull_none_8ma>,
1784 <0 RK_PD0 1 &pcfg_pull_none_4ma>,
1786 <0 RK_PC0 1 &pcfg_pull_none_8ma>,
1788 <0 RK_PC1 1 &pcfg_pull_none_8ma>,
1790 <0 RK_PC7 1 &pcfg_pull_none_8ma>,
1792 <0 RK_PC6 1 &pcfg_pull_none_8ma>;
1795 rmiim1_pins: rmiim1-pins {
1798 <1 RK_PC3 2 &pcfg_pull_none_2ma>,
1800 <1 RK_PD1 2 &pcfg_pull_none_12ma>,
1802 <1 RK_PC5 2 &pcfg_pull_none_2ma>,
1804 <1 RK_PD0 2 &pcfg_pull_none_2ma>,
1806 <1 RK_PC6 2 &pcfg_pull_none_2ma>,
1808 <1 RK_PC7 2 &pcfg_pull_none_2ma>,
1810 <1 RK_PB2 2 &pcfg_pull_none_2ma>,
1812 <1 RK_PB3 2 &pcfg_pull_none_2ma>,
1814 <1 RK_PB0 2 &pcfg_pull_none_12ma>,
1816 <1 RK_PB1 2 &pcfg_pull_none_12ma>,
1819 <0 RK_PB3 1 &pcfg_pull_none>,
1821 <0 RK_PB4 1 &pcfg_pull_none>,
1823 <0 RK_PD0 1 &pcfg_pull_none>,
1825 <0 RK_PC3 1 &pcfg_pull_none>,
1827 <0 RK_PC0 1 &pcfg_pull_none>,
1829 <0 RK_PC1 1 &pcfg_pull_none>;
1834 fephyled_speed10: fephyled-speed10 {
1835 rockchip,pins = <0 RK_PD6 1 &pcfg_pull_none>;
1838 fephyled_duplex: fephyled-duplex {
1839 rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>;
1842 fephyled_rxm1: fephyled-rxm1 {
1843 rockchip,pins = <2 RK_PD1 2 &pcfg_pull_none>;
1846 fephyled_txm1: fephyled-txm1 {
1847 rockchip,pins = <2 RK_PD1 3 &pcfg_pull_none>;
1850 fephyled_linkm1: fephyled-linkm1 {
1851 rockchip,pins = <2 RK_PD0 2 &pcfg_pull_none>;
1856 tsadc_int: tsadc-int {
1857 rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>;
1859 tsadc_pin: tsadc-pin {
1860 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1865 hdmi_cec: hdmi-cec {
1866 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
1869 hdmi_hpd: hdmi-hpd {
1870 rockchip,pins = <0 RK_PA4 1 &pcfg_pull_down>;
1875 dvp_d2d9_m0:dvp-d2d9-m0 {
1878 <3 RK_PA4 2 &pcfg_pull_none>,
1880 <3 RK_PA5 2 &pcfg_pull_none>,
1882 <3 RK_PA6 2 &pcfg_pull_none>,
1884 <3 RK_PA7 2 &pcfg_pull_none>,
1886 <3 RK_PB0 2 &pcfg_pull_none>,
1888 <3 RK_PB1 2 &pcfg_pull_none>,
1890 <3 RK_PB2 2 &pcfg_pull_none>,
1892 <3 RK_PB3 2 &pcfg_pull_none>,
1894 <3 RK_PA1 2 &pcfg_pull_none>,
1896 <3 RK_PA0 2 &pcfg_pull_none>,
1898 <3 RK_PA3 2 &pcfg_pull_none>,
1900 <3 RK_PA2 2 &pcfg_pull_none>;
1905 dvp_d2d9_m1:dvp-d2d9-m1 {
1908 <3 RK_PA4 2 &pcfg_pull_none>,
1910 <3 RK_PA5 2 &pcfg_pull_none>,
1912 <3 RK_PA6 2 &pcfg_pull_none>,
1914 <3 RK_PA7 2 &pcfg_pull_none>,
1916 <3 RK_PB0 2 &pcfg_pull_none>,
1918 <2 RK_PC0 4 &pcfg_pull_none>,
1920 <2 RK_PC1 4 &pcfg_pull_none>,
1922 <2 RK_PC2 4 &pcfg_pull_none>,
1924 <3 RK_PA1 2 &pcfg_pull_none>,
1926 <3 RK_PA0 2 &pcfg_pull_none>,
1928 <2 RK_PB7 4 &pcfg_pull_none>,
1930 <3 RK_PA2 2 &pcfg_pull_none>;