2 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
43 #include <dt-bindings/clock/rk3328-cru.h>
44 #include <dt-bindings/gpio/gpio.h>
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
46 #include <dt-bindings/interrupt-controller/irq.h>
47 #include <dt-bindings/pinctrl/rockchip.h>
48 #include <dt-bindings/soc/rockchip,boot-mode.h>
49 #include <dt-bindings/power/rk3328-power.h>
50 #include <dt-bindings/thermal/thermal.h>
53 compatible = "rockchip,rk3328";
55 interrupt-parent = <&gic>;
75 compatible = "arm,cortex-a53", "arm,armv8";
77 enable-method = "psci";
78 clocks = <&cru ARMCLK>;
79 #cooling-cells = <2>; /* min followed by max */
80 dynamic-power-coefficient = <120>;
81 operating-points-v2 = <&cpu0_opp_table>;
85 compatible = "arm,cortex-a53", "arm,armv8";
87 enable-method = "psci";
88 operating-points-v2 = <&cpu0_opp_table>;
92 compatible = "arm,cortex-a53", "arm,armv8";
94 enable-method = "psci";
95 operating-points-v2 = <&cpu0_opp_table>;
99 compatible = "arm,cortex-a53", "arm,armv8";
101 enable-method = "psci";
102 operating-points-v2 = <&cpu0_opp_table>;
106 cpu0_opp_table: opp_table0 {
107 compatible = "operating-points-v2";
111 opp-hz = /bits/ 64 <408000000>;
112 opp-microvolt = <950000>;
113 clock-latency-ns = <40000>;
117 opp-hz = /bits/ 64 <600000000>;
118 opp-microvolt = <950000>;
119 clock-latency-ns = <40000>;
122 opp-hz = /bits/ 64 <816000000>;
123 opp-microvolt = <1000000>;
124 clock-latency-ns = <40000>;
127 opp-hz = /bits/ 64 <1008000000>;
128 opp-microvolt = <1100000>;
129 clock-latency-ns = <40000>;
132 opp-hz = /bits/ 64 <1200000000>;
133 opp-microvolt = <1225000>;
134 clock-latency-ns = <40000>;
137 opp-hz = /bits/ 64 <1296000000>;
138 opp-microvolt = <1300000>;
139 clock-latency-ns = <40000>;
144 compatible = "arm,cortex-a53-pmu";
145 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
146 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
147 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
148 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
149 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
153 compatible = "rockchip,cpuinfo";
154 nvmem-cells = <&efuse_id>;
155 nvmem-cell-names = "id";
159 compatible = "arm,psci-1.0";
164 compatible = "arm,armv8-timer";
165 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
166 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
167 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
168 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
172 compatible = "fixed-clock";
174 clock-frequency = <24000000>;
175 clock-output-names = "xin24m";
179 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
180 reg = <0x0 0xff000000 0x0 0x1000>;
181 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
182 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
183 clock-names = "i2s_clk", "i2s_hclk";
184 dmas = <&dmac 11>, <&dmac 12>;
186 dma-names = "tx", "rx";
191 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
192 reg = <0x0 0xff010000 0x0 0x1000>;
193 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
194 clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
195 clock-names = "i2s_clk", "i2s_hclk";
196 dmas = <&dmac 14>, <&dmac 15>;
198 dma-names = "tx", "rx";
203 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
204 reg = <0x0 0xff020000 0x0 0x1000>;
205 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
206 clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
207 clock-names = "i2s_clk", "i2s_hclk";
208 dmas = <&dmac 0>, <&dmac 1>;
210 dma-names = "tx", "rx";
211 pinctrl-names = "default", "sleep";
212 pinctrl-0 = <&i2s2m0_mclk
218 pinctrl-1 = <&i2s2m0_sleep>;
222 spdif: spdif@ff030000 {
223 compatible = "rockchip,rk3328-spdif";
224 reg = <0x0 0xff030000 0x0 0x1000>;
225 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
226 clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
227 clock-names = "mclk", "hclk";
231 pinctrl-names = "default";
232 pinctrl-0 = <&spdifm2_tx>;
237 compatible = "rockchip,pdm";
238 reg = <0x0 0xff040000 0x0 0x1000>;
239 clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
240 clock-names = "pdm_clk", "pdm_hclk";
244 pinctrl-names = "default", "sleep";
245 pinctrl-0 = <&pdmm0_clk
251 pinctrl-1 = <&pdmm0_sleep>;
255 grf: syscon@ff100000 {
256 compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
257 reg = <0x0 0xff100000 0x0 0x1000>;
258 #address-cells = <1>;
261 io_domains: io-domains {
262 compatible = "rockchip,rk3328-io-voltage-domain";
266 power: power-controller {
267 compatible = "rockchip,rk3328-power-controller";
268 #power-domain-cells = <1>;
269 #address-cells = <1>;
273 pd_hevc@RK3328_PD_HEVC {
274 reg = <RK3328_PD_HEVC>;
276 pd_video@RK3328_PD_VIDEO {
277 reg = <RK3328_PD_VIDEO>;
279 pd_vpu@RK3328_PD_VPU {
280 reg = <RK3328_PD_VPU>;
285 compatible = "syscon-reboot-mode";
287 mode-bootloader = <BOOT_BL_DOWNLOAD>;
288 mode-charge = <BOOT_CHARGING>;
289 mode-fastboot = <BOOT_FASTBOOT>;
290 mode-loader = <BOOT_BL_DOWNLOAD>;
291 mode-normal = <BOOT_NORMAL>;
292 mode-recovery = <BOOT_RECOVERY>;
293 mode-ums = <BOOT_UMS>;
298 soc_thermal: soc-thermal {
299 polling-delay-passive = <20>; /* milliseconds */
300 polling-delay = <1000>; /* milliseconds */
301 sustainable-power = <1000>; /* milliwatts */
303 thermal-sensors = <&tsadc 0>;
306 threshold: trip-point@0 {
307 temperature = <70000>; /* millicelsius */
308 hysteresis = <2000>; /* millicelsius */
311 target: trip-point@1 {
312 temperature = <85000>; /* millicelsius */
313 hysteresis = <2000>; /* millicelsius */
317 temperature = <95000>; /* millicelsius */
318 hysteresis = <2000>; /* millicelsius */
326 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
327 contribution = <4096>;
334 tsadc: tsadc@ff250000 {
335 compatible = "rockchip,rk3328-tsadc";
336 reg = <0x0 0xff250000 0x0 0x100>;
337 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
338 rockchip,grf = <&grf>;
339 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
340 clock-names = "tsadc", "apb_pclk";
341 assigned-clocks = <&cru SCLK_TSADC>;
342 assigned-clock-rates = <50000>;
343 resets = <&cru SRST_TSADC>;
344 reset-names = "tsadc-apb";
345 pinctrl-names = "init", "default", "sleep";
346 pinctrl-0 = <&otp_gpio>;
347 pinctrl-1 = <&otp_out>;
348 pinctrl-2 = <&otp_gpio>;
349 #thermal-sensor-cells = <1>;
350 rockchip,hw-tshut-temp = <100000>;
354 uart0: serial@ff110000 {
355 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
356 reg = <0x0 0xff110000 0x0 0x100>;
357 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
358 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
359 clock-names = "baudclk", "apb_pclk";
362 dmas = <&dmac 2>, <&dmac 3>;
364 pinctrl-names = "default";
365 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
369 uart1: serial@ff120000 {
370 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
371 reg = <0x0 0xff120000 0x0 0x100>;
372 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
373 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
374 clock-names = "sclk_uart", "pclk_uart";
377 dmas = <&dmac 4>, <&dmac 5>;
379 pinctrl-names = "default";
380 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
384 uart2: serial@ff130000 {
385 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
386 reg = <0x0 0xff130000 0x0 0x100>;
387 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
388 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
389 clock-names = "baudclk", "apb_pclk";
392 dmas = <&dmac 6>, <&dmac 7>;
394 pinctrl-names = "default";
395 pinctrl-0 = <&uart2m1_xfer>;
399 pmu: power-management@ff140000 {
400 compatible = "rockchip,rk3328-pmu", "syscon", "simple-mfd";
401 reg = <0x0 0xff140000 0x0 0x1000>;
405 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
406 reg = <0x0 0xff150000 0x0 0x1000>;
407 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
408 #address-cells = <1>;
410 clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>;
411 clock-names = "i2c", "pclk";
412 pinctrl-names = "default";
413 pinctrl-0 = <&i2c0_xfer>;
418 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
419 reg = <0x0 0xff160000 0x0 0x1000>;
420 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
421 #address-cells = <1>;
423 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
424 clock-names = "i2c", "pclk";
425 pinctrl-names = "default";
426 pinctrl-0 = <&i2c1_xfer>;
431 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
432 reg = <0x0 0xff170000 0x0 0x1000>;
433 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
434 #address-cells = <1>;
436 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
437 clock-names = "i2c", "pclk";
438 pinctrl-names = "default";
439 pinctrl-0 = <&i2c2_xfer>;
444 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c";
445 reg = <0x0 0xff180000 0x0 0x1000>;
446 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
447 #address-cells = <1>;
449 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
450 clock-names = "i2c", "pclk";
451 pinctrl-names = "default";
452 pinctrl-0 = <&i2c3_xfer>;
457 compatible = "rockchip,rk3328-spi", "rockchip,rk3066-spi";
458 reg = <0x0 0xff190000 0x0 0x1000>;
459 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
460 #address-cells = <1>;
462 clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
463 clock-names = "spiclk", "apb_pclk";
464 dmas = <&dmac 8>, <&dmac 9>;
466 dma-names = "tx", "rx";
467 pinctrl-names = "default";
468 pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>;
472 wdt: watchdog@ff1a0000 {
473 compatible = "snps,dw-wdt";
474 reg = <0x0 0xff1a0000 0x0 0x100>;
475 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
480 compatible = "rockchip,rk3328-pwm";
481 reg = <0x0 0xff1b0000 0x0 0x10>;
483 pinctrl-names = "default";
484 pinctrl-0 = <&pwm0_pin>;
485 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
486 clock-names = "pwm", "pclk";
491 compatible = "rockchip,rk3328-pwm";
492 reg = <0x0 0xff1b0010 0x0 0x10>;
494 pinctrl-names = "default";
495 pinctrl-0 = <&pwm1_pin>;
496 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
497 clock-names = "pwm", "pclk";
502 compatible = "rockchip,rk3328-pwm";
503 reg = <0x0 0xff1b0020 0x0 0x10>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&pwm2_pin>;
507 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
508 clock-names = "pwm", "pclk";
513 compatible = "rockchip,rk3328-pwm";
514 reg = <0x0 0xff1b0030 0x0 0x10>;
515 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
517 pinctrl-names = "default";
518 pinctrl-0 = <&pwmir_pin>;
519 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
520 clock-names = "pwm", "pclk";
525 compatible = "simple-bus";
526 #address-cells = <2>;
530 dmac: dmac@ff1f0000 {
531 compatible = "arm,pl330", "arm,primecell";
532 reg = <0x0 0xff1f0000 0x0 0x4000>;
533 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
534 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
535 clocks = <&cru ACLK_DMAC>;
536 clock-names = "apb_pclk";
541 efuse: efuse@ff260000 {
542 compatible = "rockchip,rk3328-efuse";
543 reg = <0x0 0xff260000 0x0 0x50>;
544 #address-cells = <1>;
546 clocks = <&cru SCLK_EFUSE>;
547 clock-names = "pclk_efuse";
548 rockchip,efuse-size = <0x20>;
554 cpu_leakage: cpu-leakage@17 {
557 logic_leakage: logic-leakage@19 {
562 saradc: saradc@ff280000 {
563 compatible = "rockchip,rk3328-saradc", "rockchip,rk3399-saradc";
564 reg = <0x0 0xff280000 0x0 0x100>;
565 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
566 #io-channel-cells = <1>;
567 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
568 clock-names = "saradc", "apb_pclk";
569 resets = <&cru SRST_SARADC_P>;
570 reset-names = "saradc-apb";
575 compatible = "arm,mali-450";
576 /* first item of 'reg' is dummy, to fit src code. */
577 reg = <0x0 0xff300000 0x0 0x40000>,
578 <0x0 0xff300000 0x0 0x40000>;
579 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
580 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
581 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
582 <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
583 <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
584 <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
585 <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
586 interrupt-names = "Mali_GP_IRQ",
593 clocks = <&cru ACLK_GPU>;
594 clock-names = "clk_mali";
595 operating-points-v2 = <&gpu_opp_table>;
599 gpu_opp_table: opp-table2 {
600 compatible = "operating-points-v2";
603 opp-hz = /bits/ 64 <200000000>;
604 opp-microvolt = <1050000>;
607 opp-hz = /bits/ 64 <300000000>;
608 opp-microvolt = <1050000>;
611 opp-hz = /bits/ 64 <400000000>;
612 opp-microvolt = <1050000>;
615 opp-hz = /bits/ 64 <500000000>;
616 opp-microvolt = <1100000>;
621 compatible = "rockchip,rk3328-vop";
622 reg = <0x0 0xff370000 0x0 0x3efc>;
623 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
624 clocks = <&cru ACLK_VOP>, <&cru DCLK_LCDC>, <&cru HCLK_VOP>;
625 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
626 resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
627 reset-names = "axi", "ahb", "dclk";
632 #address-cells = <1>;
637 vop_mmu: iommu@ff373f00 {
638 compatible = "rockchip,iommu";
639 reg = <0x0 0xff373f00 0x0 0x100>;
640 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
641 interrupt-names = "vop_mmu";
646 display_subsystem: display-subsystem {
647 compatible = "rockchip,display-subsystem";
652 cru: clock-controller@ff440000 {
653 compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon";
654 reg = <0x0 0xff440000 0x0 0x1000>;
655 rockchip,grf = <&grf>;
659 <&cru DCLK_LCDC>, <&cru SCLK_PDM>,
660 <&cru SCLK_RTC32K>, <&cru SCLK_UART0>,
661 <&cru SCLK_UART1>, <&cru SCLK_UART2>,
662 <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
663 <&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>,
664 <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
665 <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
666 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
667 <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
668 <&cru SCLK_SDIO>, <&cru SCLK_TSP>,
669 <&cru SCLK_WIFI>, <&cru ARMCLK>,
670 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
671 <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>,
672 <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
673 <&cru HCLK_PERI>, <&cru PCLK_PERI>,
674 <&cru ACLK_VIO_PRE>, <&cru HCLK_VIO_PRE>,
675 <&cru ACLK_RGA_PRE>, <&cru SCLK_RGA>,
676 <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
677 <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
678 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
679 <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
680 <&cru SCLK_EFUSE>, <&cru PCLK_DDR>,
681 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>,
682 <&cru SCLK_RTC32K>, <&cru SCLK_USB3OTG_SUSPEND>;
683 assigned-clock-parents =
684 <&cru HDMIPHY>, <&cru PLL_APLL>,
685 <&cru PLL_GPLL>, <&xin24m>,
686 <&xin24m>, <&xin24m>;
687 assigned-clock-rates =
690 <24000000>, <24000000>,
691 <15000000>, <15000000>,
692 <100000000>, <100000000>,
693 <100000000>, <100000000>,
694 <50000000>, <100000000>,
695 <100000000>, <100000000>,
696 <50000000>, <50000000>,
697 <50000000>, <50000000>,
698 <24000000>, <600000000>,
699 <491520000>, <1200000000>,
700 <150000000>, <75000000>,
701 <75000000>, <150000000>,
702 <75000000>, <75000000>,
703 <300000000>, <100000000>,
704 <300000000>, <200000000>,
705 <400000000>, <500000000>,
706 <200000000>, <300000000>,
707 <300000000>, <250000000>,
708 <200000000>, <100000000>,
709 <24000000>, <100000000>,
710 <150000000>, <50000000>,
714 usb2phy_grf: syscon@ff450000 {
715 compatible = "rockchip,rk3328-usb2phy-grf", "syscon",
717 reg = <0x0 0xff450000 0x0 0x10000>;
718 #address-cells = <1>;
721 u2phy: usb2-phy@100 {
722 compatible = "rockchip,rk3328-usb2phy";
725 clock-names = "phyclk";
727 assigned-clocks = <&cru USB480M>;
728 assigned-clock-parents = <&u2phy>;
729 clock-output-names = "usb480m_phy";
732 u2phy_host: host-port {
734 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
735 interrupt-names = "linestate";
739 u2phy_otg: otg-port {
741 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
742 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
743 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
744 interrupt-names = "otg-bvalid", "otg-id",
751 usb3phy_grf: syscon@ff460000 {
752 compatible = "rockchip,usb3phy-grf", "syscon";
753 reg = <0x0 0xff460000 0x0 0x1000>;
756 u3phy: usb3-phy@ff470000 {
757 compatible = "rockchip,rk3328-u3phy";
758 reg = <0x0 0xff470000 0x0 0x0>;
759 rockchip,u3phygrf = <&usb3phy_grf>;
760 rockchip,grf = <&grf>;
761 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
762 interrupt-names = "linestate";
763 clocks = <&cru PCLK_USB3PHY_OTG>, <&cru PCLK_USB3PHY_PIPE>;
764 clock-names = "u3phy-otg", "u3phy-pipe";
765 resets = <&cru SRST_USB3PHY_U2>,
766 <&cru SRST_USB3PHY_U3>,
767 <&cru SRST_USB3PHY_PIPE>,
768 <&cru SRST_USB3OTG_UTMI>,
769 <&cru SRST_USB3PHY_OTG_P>,
770 <&cru SRST_USB3PHY_PIPE_P>;
771 reset-names = "u3phy-u2-por", "u3phy-u3-por",
772 "u3phy-pipe-mac", "u3phy-utmi-mac",
773 "u3phy-utmi-apb", "u3phy-pipe-apb";
774 #address-cells = <2>;
779 u3phy_utmi: utmi@ff470000 {
780 reg = <0x0 0xff470000 0x0 0x8000>;
785 u3phy_pipe: pipe@ff478000 {
786 reg = <0x0 0xff478000 0x0 0x8000>;
792 sdmmc: rksdmmc@ff500000 {
793 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
794 reg = <0x0 0xff500000 0x0 0x4000>;
795 clock-freq-min-max = <400000 150000000>;
796 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
797 clock-names = "biu", "ciu";
798 fifo-depth = <0x100>;
799 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
803 sdio: dwmmc@ff510000 {
804 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
805 reg = <0x0 0xff510000 0x0 0x4000>;
806 clock-freq-min-max = <400000 150000000>;
807 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
808 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
809 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
810 fifo-depth = <0x100>;
811 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
815 emmc: rksdmmc@ff520000 {
816 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
817 reg = <0x0 0xff520000 0x0 0x4000>;
818 clock-freq-min-max = <400000 150000000>;
819 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
820 clock-names = "biu", "ciu";
821 fifo-depth = <0x100>;
822 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
826 gmac2io: eth@ff540000 {
827 compatible = "rockchip,rk3328-gmac";
828 reg = <0x0 0xff540000 0x0 0x10000>;
829 rockchip,grf = <&grf>;
830 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
831 interrupt-names = "macirq";
832 clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_RX>,
833 <&cru SCLK_MAC2IO_TX>, <&cru SCLK_MAC2IO_REF>,
834 <&cru SCLK_MAC2IO_REFOUT>, <&cru ACLK_MAC2IO>,
836 clock-names = "stmmaceth", "mac_clk_rx",
837 "mac_clk_tx", "clk_mac_ref",
838 "clk_mac_refout", "aclk_mac",
840 resets = <&cru SRST_GMAC2IO_A>;
841 reset-names = "stmmaceth";
845 usb20_otg: usb@ff580000 {
846 compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
848 reg = <0x0 0xff580000 0x0 0x40000>;
849 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
850 clocks = <&cru HCLK_OTG>, <&cru HCLK_OTG_PMU>;
851 clock-names = "otg", "otg_pmu";
853 g-np-tx-fifo-size = <16>;
854 g-rx-fifo-size = <275>;
855 g-tx-fifo-size = <256 128 128 64 64 32>;
858 phy-names = "usb2-phy";
862 usb_host0_ehci: usb@ff5c0000 {
863 compatible = "generic-ehci";
864 reg = <0x0 0xff5c0000 0x0 0x10000>;
865 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
866 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
868 clock-names = "usbhost", "arbiter", "utmi";
869 phys = <&u2phy_host>;
874 usb_host0_ohci: usb@ff5d0000 {
875 compatible = "generic-ohci";
876 reg = <0x0 0xff5d0000 0x0 0x10000>;
877 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
878 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
880 clock-names = "usbhost", "arbiter", "utmi";
881 phys = <&u2phy_host>;
886 sdmmc_ext: rksdmmc@ff5f0000 {
887 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
888 reg = <0x0 0xff5f0000 0x0 0x4000>;
889 clock-freq-min-max = <400000 150000000>;
890 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
891 clock-names = "biu", "ciu";
892 fifo-depth = <0x100>;
893 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
897 usbdrd3: usb@ff600000 {
898 compatible = "rockchip,rk3328-dwc3";
899 clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>,
901 clock-names = "ref_clk", "suspend_clk",
903 #address-cells = <2>;
908 usbdrd_dwc3: dwc3@ff600000 {
909 compatible = "snps,dwc3";
910 reg = <0x0 0xff600000 0x0 0x100000>;
911 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
913 phys = <&u3phy_utmi>, <&u3phy_pipe>;
914 phy-names = "usb2-phy", "usb3-phy";
915 phy_type = "utmi_wide";
916 snps,dis_enblslpm_quirk;
917 snps,dis-u2-freeclk-exists-quirk;
918 snps,dis_u2_susphy_quirk;
919 snps,dis-u3-autosuspend-quirk;
920 snps,dis_u3_susphy_quirk;
921 snps,dis-del-phy-power-chg-quirk;
926 gic: interrupt-controller@ff811000 {
927 compatible = "arm,gic-400";
928 #interrupt-cells = <3>;
929 #address-cells = <0>;
930 interrupt-controller;
931 reg = <0x0 0xff811000 0 0x1000>,
932 <0x0 0xff812000 0 0x2000>,
933 <0x0 0xff814000 0 0x2000>,
934 <0x0 0xff816000 0 0x2000>;
935 interrupts = <GIC_PPI 9
936 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
940 compatible = "rockchip,rk3328-pinctrl";
941 rockchip,grf = <&grf>;
942 #address-cells = <2>;
946 gpio0: gpio0@ff210000 {
947 compatible = "rockchip,gpio-bank";
948 reg = <0x0 0xff210000 0x0 0x100>;
949 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
950 clocks = <&cru PCLK_GPIO0>;
955 interrupt-controller;
956 #interrupt-cells = <2>;
959 gpio1: gpio1@ff220000 {
960 compatible = "rockchip,gpio-bank";
961 reg = <0x0 0xff220000 0x0 0x100>;
962 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
963 clocks = <&cru PCLK_GPIO1>;
968 interrupt-controller;
969 #interrupt-cells = <2>;
972 gpio2: gpio2@ff230000 {
973 compatible = "rockchip,gpio-bank";
974 reg = <0x0 0xff230000 0x0 0x100>;
975 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
976 clocks = <&cru PCLK_GPIO2>;
981 interrupt-controller;
982 #interrupt-cells = <2>;
985 gpio3: gpio3@ff240000 {
986 compatible = "rockchip,gpio-bank";
987 reg = <0x0 0xff240000 0x0 0x100>;
988 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
989 clocks = <&cru PCLK_GPIO3>;
994 interrupt-controller;
995 #interrupt-cells = <2>;
998 pcfg_pull_up: pcfg-pull-up {
1002 pcfg_pull_down: pcfg-pull-down {
1006 pcfg_pull_none: pcfg-pull-none {
1010 pcfg_pull_none_2ma: pcfg-pull-none-2ma {
1012 drive-strength = <2>;
1015 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1017 drive-strength = <2>;
1020 pcfg_pull_up_4ma: pcfg-pull-up-4ma {
1022 drive-strength = <4>;
1025 pcfg_pull_none_4ma: pcfg-pull-none-4ma {
1027 drive-strength = <4>;
1030 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1032 drive-strength = <4>;
1035 pcfg_pull_none_8ma: pcfg-pull-none-8ma {
1037 drive-strength = <8>;
1040 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1042 drive-strength = <8>;
1045 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1047 drive-strength = <12>;
1050 pcfg_pull_up_12ma: pcfg-pull-up-12ma {
1052 drive-strength = <12>;
1055 pcfg_output_high: pcfg-output-high {
1059 pcfg_output_low: pcfg-output-low {
1063 pcfg_input_high: pcfg-input-high {
1068 pcfg_input: pcfg-input {
1073 i2c0_xfer: i2c0-xfer {
1075 <2 RK_PD0 RK_FUNC_1 &pcfg_pull_none>,
1076 <2 RK_PD1 RK_FUNC_1 &pcfg_pull_none>;
1081 i2c1_xfer: i2c1-xfer {
1083 <2 RK_PA4 RK_FUNC_2 &pcfg_pull_none>,
1084 <2 RK_PA5 RK_FUNC_2 &pcfg_pull_none>;
1089 i2c2_xfer: i2c2-xfer {
1091 <2 RK_PB5 RK_FUNC_1 &pcfg_pull_none>,
1092 <2 RK_PB6 RK_FUNC_1 &pcfg_pull_none>;
1097 i2c3_xfer: i2c3-xfer {
1099 <0 RK_PA5 RK_FUNC_2 &pcfg_pull_none>,
1100 <0 RK_PA6 RK_FUNC_2 &pcfg_pull_none>;
1102 i2c3_gpio: i2c3-gpio {
1104 <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
1105 <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
1110 hdmii2c_xfer: hdmii2c-xfer {
1112 <0 RK_PA5 RK_FUNC_1 &pcfg_pull_none>,
1113 <0 RK_PA6 RK_FUNC_1 &pcfg_pull_none>;
1118 otp_gpio: otp-gpio {
1120 <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1125 <2 RK_PB5 RK_FUNC_1 &pcfg_pull_none>;
1130 uart0_xfer: uart0-xfer {
1132 <1 RK_PB1 RK_FUNC_1 &pcfg_pull_up>,
1133 <1 RK_PB0 RK_FUNC_1 &pcfg_pull_none>;
1136 uart0_cts: uart0-cts {
1138 <1 RK_PB3 RK_FUNC_1 &pcfg_pull_none>;
1141 uart0_rts: uart0-rts {
1143 <1 RK_PB2 RK_FUNC_1 &pcfg_pull_none>;
1146 uart0_rts_gpio: uart0-rts-gpio {
1148 <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
1153 uart1_xfer: uart1-xfer {
1155 <3 RK_PA4 RK_FUNC_4 &pcfg_pull_up>,
1156 <3 RK_PA6 RK_FUNC_4 &pcfg_pull_none>;
1159 uart1_cts: uart1-cts {
1161 <3 RK_PA7 RK_FUNC_4 &pcfg_pull_none>;
1164 uart1_rts: uart1-rts {
1166 <3 RK_PA5 RK_FUNC_4 &pcfg_pull_none>;
1169 uart1_rts_gpio: uart1-rts-gpio {
1171 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
1176 uart2m0_xfer: uart2m0-xfer {
1178 <1 RK_PA0 RK_FUNC_2 &pcfg_pull_up>,
1179 <1 RK_PA1 RK_FUNC_2 &pcfg_pull_none>;
1184 uart2m1_xfer: uart2m1-xfer {
1186 <2 RK_PA0 RK_FUNC_1 &pcfg_pull_up>,
1187 <2 RK_PA1 RK_FUNC_1 &pcfg_pull_none>;
1192 spi0m0_clk: spi0m0-clk {
1194 <2 RK_PB0 RK_FUNC_1 &pcfg_pull_up>;
1197 spi0m0_cs0: spi0m0-cs0 {
1199 <2 RK_PB3 RK_FUNC_1 &pcfg_pull_up>;
1202 spi0m0_tx: spi0m0-tx {
1204 <2 RK_PB1 RK_FUNC_1 &pcfg_pull_up>;
1207 spi0m0_rx: spi0m0-rx {
1209 <2 RK_PB2 RK_FUNC_1 &pcfg_pull_up>;
1212 spi0m0_cs1: spi0m0-cs1 {
1214 <2 RK_PB4 RK_FUNC_1 &pcfg_pull_up>;
1219 spi0m1_clk: spi0m1-clk {
1221 <3 RK_PC7 RK_FUNC_2 &pcfg_pull_up>;
1224 spi0m1_cs0: spi0m1-cs0 {
1226 <3 RK_PD2 RK_FUNC_2 &pcfg_pull_up>;
1229 spi0m1_tx: spi0m1-tx {
1231 <3 RK_PD1 RK_FUNC_2 &pcfg_pull_up>;
1234 spi0m1_rx: spi0m1-rx {
1236 <3 RK_PD0 RK_FUNC_2 &pcfg_pull_up>;
1239 spi0m1_cs1: spi0m1-cs1 {
1241 <3 RK_PD3 RK_FUNC_2 &pcfg_pull_up>;
1246 spi0m2_clk: spi0m2-clk {
1248 <3 RK_PA0 RK_FUNC_4 &pcfg_pull_up>;
1251 spi0m2_cs0: spi0m2-cs0 {
1253 <3 RK_PB0 RK_FUNC_3 &pcfg_pull_up>;
1256 spi0m2_tx: spi0m2-tx {
1258 <3 RK_PA1 RK_FUNC_4 &pcfg_pull_up>;
1261 spi0m2_rx: spi0m2-rx {
1263 <3 RK_PA2 RK_FUNC_4 &pcfg_pull_up>;
1268 pdmm0_clk: pdmm0-clk {
1270 <2 RK_PC2 RK_FUNC_2 &pcfg_pull_none>;
1273 pdmm0_fsync: pdmm0-fsync {
1275 <2 RK_PC7 RK_FUNC_2 &pcfg_pull_none>;
1278 pdmm0_sdi0: pdmm0-sdi0 {
1280 <2 RK_PC3 RK_FUNC_2 &pcfg_pull_none>;
1283 pdmm0_sdi1: pdmm0-sdi1 {
1285 <2 RK_PC4 RK_FUNC_2 &pcfg_pull_none>;
1288 pdmm0_sdi2: pdmm0-sdi2 {
1290 <2 RK_PC5 RK_FUNC_2 &pcfg_pull_none>;
1293 pdmm0_sdi3: pdmm0-sdi3 {
1295 <2 RK_PC6 RK_FUNC_2 &pcfg_pull_none>;
1298 pdmm0_sleep: pdmm0-sleep {
1300 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>,
1301 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>,
1302 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>,
1303 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1304 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1305 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1310 i2s1_mclk: i2s1-mclk {
1312 <2 RK_PB7 RK_FUNC_1 &pcfg_pull_none>;
1315 i2s1_sclk: i2s1-sclk {
1317 <2 RK_PC2 RK_FUNC_1 &pcfg_pull_none>;
1320 i2s1_lrckrx: i2s1-lrckrx {
1322 <2 RK_PC0 RK_FUNC_1 &pcfg_pull_none>;
1325 i2s1_lrcktx: i2s1-lrcktx {
1327 <2 RK_PC1 RK_FUNC_1 &pcfg_pull_none>;
1330 i2s1_sdi: i2s1-sdi {
1332 <2 RK_PC3 RK_FUNC_1 &pcfg_pull_none>;
1335 i2s1_sdo: i2s1-sdo {
1337 <2 RK_PC7 RK_FUNC_1 &pcfg_pull_none>;
1340 i2s1_sdio1: i2s1-sdio1 {
1342 <2 RK_PC4 RK_FUNC_1 &pcfg_pull_none>;
1345 i2s1_sdio2: i2s1-sdio2 {
1347 <2 RK_PC5 RK_FUNC_1 &pcfg_pull_none>;
1350 i2s1_sdio3: i2s1-sdio3 {
1352 <2 RK_PC6 RK_FUNC_1 &pcfg_pull_none>;
1355 i2s1_sleep: i2s1-sleep {
1357 <2 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>,
1358 <2 RK_PC0 RK_FUNC_GPIO &pcfg_input_high>,
1359 <2 RK_PC1 RK_FUNC_GPIO &pcfg_input_high>,
1360 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>,
1361 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>,
1362 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>,
1363 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1364 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1365 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>;
1370 i2s2m0_mclk: i2s2m0-mclk {
1372 <1 RK_PC5 RK_FUNC_1 &pcfg_pull_none>;
1375 i2s2m0_sclk: i2s2m0-sclk {
1377 <1 RK_PC6 RK_FUNC_1 &pcfg_pull_none>;
1380 i2s2m0_lrckrx: i2s2m0-lrckrx {
1382 <1 RK_PD2 RK_FUNC_1 &pcfg_pull_none>;
1385 i2s2m0_lrcktx: i2s2m0-lrcktx {
1387 <1 RK_PC7 RK_FUNC_1 &pcfg_pull_none>;
1390 i2s2m0_sdi: i2s2m0-sdi {
1392 <1 RK_PD0 RK_FUNC_1 &pcfg_pull_none>;
1395 i2s2m0_sdo: i2s2m0-sdo {
1397 <1 RK_PD1 RK_FUNC_1 &pcfg_pull_none>;
1400 i2s2m0_sleep: i2s2m0-sleep {
1402 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1403 <1 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>,
1404 <1 RK_PD2 RK_FUNC_GPIO &pcfg_input_high>,
1405 <1 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>,
1406 <1 RK_PD0 RK_FUNC_GPIO &pcfg_input_high>,
1407 <1 RK_PD1 RK_FUNC_GPIO &pcfg_input_high>;
1412 i2s2m1_mclk: i2s2m1-mclk {
1414 <1 RK_PC5 RK_FUNC_1 &pcfg_pull_none>;
1417 i2s2m1_sclk: i2s2m1-sclk {
1419 <3 RK_PA0 RK_FUNC_6 &pcfg_pull_none>;
1422 i2s2m1_lrckrx: i2sm1-lrckrx {
1424 <3 RK_PB0 RK_FUNC_6 &pcfg_pull_none>;
1427 i2s2m1_lrcktx: i2s2m1-lrcktx {
1429 <3 RK_PB0 RK_FUNC_4 &pcfg_pull_none>;
1432 i2s2m1_sdi: i2s2m1-sdi {
1434 <3 RK_PA2 RK_FUNC_6 &pcfg_pull_none>;
1437 i2s2m1_sdo: i2s2m1-sdo {
1439 <3 RK_PA1 RK_FUNC_6 &pcfg_pull_none>;
1442 i2s2m1_sleep: i2s2m1-sleep {
1444 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>,
1445 <3 RK_PA0 RK_FUNC_GPIO &pcfg_input_high>,
1446 <3 RK_PB0 RK_FUNC_GPIO &pcfg_input_high>,
1447 <3 RK_PA2 RK_FUNC_GPIO &pcfg_input_high>,
1448 <3 RK_PA1 RK_FUNC_GPIO &pcfg_input_high>;
1453 spdifm0_tx: spdifm0-tx {
1455 <0 RK_PD3 RK_FUNC_1 &pcfg_pull_none>;
1460 spdifm1_tx: spdifm1-tx {
1462 <2 RK_PC1 RK_FUNC_2 &pcfg_pull_none>;
1467 spdifm2_tx: spdifm2-tx {
1469 <0 RK_PA2 RK_FUNC_2 &pcfg_pull_none>;
1474 sdmmc0m0_pwren: sdmmc0m0-pwren {
1476 <2 RK_PA7 RK_FUNC_1 &pcfg_pull_up_4ma>;
1479 sdmmc0m0_gpio: sdmmc0m0-gpio {
1481 <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1486 sdmmc0m1_pwren: sdmmc0m1-pwren {
1488 <0 RK_PD6 RK_FUNC_3 &pcfg_pull_up_4ma>;
1491 sdmmc0m1_gpio: sdmmc0m1-gpio {
1493 <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1498 sdmmc0_clk: sdmmc0-clk {
1500 <1 RK_PA6 RK_FUNC_1 &pcfg_pull_none_4ma>;
1503 sdmmc0_cmd: sdmmc0-cmd {
1505 <1 RK_PA4 RK_FUNC_1 &pcfg_pull_up_4ma>;
1508 sdmmc0_dectn: sdmmc0-dectn {
1510 <1 RK_PA5 RK_FUNC_1 &pcfg_pull_up_4ma>;
1513 sdmmc0_wrprt: sdmmc0-wrprt {
1515 <1 RK_PA7 RK_FUNC_1 &pcfg_pull_up_4ma>;
1518 sdmmc0_bus1: sdmmc0-bus1 {
1520 <1 RK_PA0 RK_FUNC_1 &pcfg_pull_up_4ma>;
1523 sdmmc0_bus4: sdmmc0-bus4 {
1525 <1 RK_PA0 RK_FUNC_1 &pcfg_pull_up_4ma>,
1526 <1 RK_PA1 RK_FUNC_1 &pcfg_pull_up_4ma>,
1527 <1 RK_PA2 RK_FUNC_1 &pcfg_pull_up_4ma>,
1528 <1 RK_PA3 RK_FUNC_1 &pcfg_pull_up_4ma>;
1531 sdmmc0_gpio: sdmmc0-gpio {
1533 <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1534 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1535 <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1536 <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1537 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1538 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1539 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1540 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1545 sdmmc0ext_clk: sdmmc0ext-clk {
1547 <3 RK_PA2 RK_FUNC_3 &pcfg_pull_none_4ma>;
1550 sdmmc0ext_cmd: sdmmc0ext-cmd {
1552 <3 RK_PA0 RK_FUNC_3 &pcfg_pull_up_4ma>;
1555 sdmmc0ext_wrprt: sdmmc0ext-wrprt {
1557 <3 RK_PA3 RK_FUNC_3 &pcfg_pull_up_4ma>;
1560 sdmmc0ext_dectn: sdmmc0ext-dectn {
1562 <3 RK_PA1 RK_FUNC_3 &pcfg_pull_up_4ma>;
1565 sdmmc0ext_bus1: sdmmc0ext-bus1 {
1567 <3 RK_PA4 RK_FUNC_3 &pcfg_pull_up_4ma>;
1570 sdmmc0ext_bus4: sdmmc0ext-bus4 {
1572 <3 RK_PA4 RK_FUNC_3 &pcfg_pull_up_4ma>,
1573 <3 RK_PA5 RK_FUNC_3 &pcfg_pull_up_4ma>,
1574 <3 RK_PA6 RK_FUNC_3 &pcfg_pull_up_4ma>,
1575 <3 RK_PA7 RK_FUNC_3 &pcfg_pull_up_4ma>;
1578 sdmmc0ext_gpio: sdmmc0ext-gpio {
1580 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1581 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1582 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1583 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1584 <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1585 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1586 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1587 <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1592 sdmmc1_clk: sdmmc1-clk {
1594 <1 RK_PB4 RK_FUNC_1 &pcfg_pull_none_8ma>;
1597 sdmmc1_cmd: sdmmc1-cmd {
1599 <1 RK_PB5 RK_FUNC_1 &pcfg_pull_up_8ma>;
1602 sdmmc1_pwren: sdmmc1-pwren {
1604 <1 RK_PC2 RK_FUNC_1 &pcfg_pull_up_8ma>;
1607 sdmmc1_wrprt: sdmmc1-wrprt {
1609 <1 RK_PC4 RK_FUNC_1 &pcfg_pull_up_8ma>;
1612 sdmmc1_dectn: sdmmc1-dectn {
1614 <1 RK_PC3 RK_FUNC_1 &pcfg_pull_up_8ma>;
1617 sdmmc1_bus1: sdmmc1-bus1 {
1619 <1 RK_PB6 RK_FUNC_1 &pcfg_pull_up_8ma>;
1622 sdmmc1_bus4: sdmmc1-bus4 {
1624 <1 RK_PB6 RK_FUNC_1 &pcfg_pull_up_8ma>,
1625 <1 RK_PB7 RK_FUNC_1 &pcfg_pull_up_8ma>,
1626 <1 RK_PC0 RK_FUNC_1 &pcfg_pull_up_8ma>,
1627 <1 RK_PC1 RK_FUNC_1 &pcfg_pull_up_8ma>;
1630 sdmmc1_gpio: sdmmc1-gpio {
1632 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1633 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1634 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1635 <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1636 <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1637 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1638 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1639 <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1640 <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1645 emmc_clk: emmc-clk {
1647 <3 RK_PC5 RK_FUNC_2 &pcfg_pull_none_12ma>;
1650 emmc_cmd: emmc-cmd {
1652 <3 RK_PC3 RK_FUNC_2 &pcfg_pull_up_12ma>;
1655 emmc_pwren: emmc-pwren {
1657 <3 RK_PC6 RK_FUNC_2 &pcfg_pull_none>;
1660 emmc_rstnout: emmc-rstnout {
1662 <3 RK_PC4 RK_FUNC_2 &pcfg_pull_none>;
1665 emmc_bus1: emmc-bus1 {
1667 <0 RK_PA7 RK_FUNC_2 &pcfg_pull_up_12ma>;
1670 emmc_bus4: emmc-bus4 {
1672 <0 RK_PA7 RK_FUNC_2 &pcfg_pull_up_12ma>,
1673 <2 RK_PD4 RK_FUNC_2 &pcfg_pull_up_12ma>,
1674 <2 RK_PD5 RK_FUNC_2 &pcfg_pull_up_12ma>,
1675 <2 RK_PD6 RK_FUNC_2 &pcfg_pull_up_12ma>;
1678 emmc_bus8: emmc-bus8 {
1680 <0 RK_PA7 RK_FUNC_2 &pcfg_pull_up_12ma>,
1681 <2 RK_PD4 RK_FUNC_2 &pcfg_pull_up_12ma>,
1682 <2 RK_PD5 RK_FUNC_2 &pcfg_pull_up_12ma>,
1683 <2 RK_PD6 RK_FUNC_2 &pcfg_pull_up_12ma>,
1684 <2 RK_PD7 RK_FUNC_2 &pcfg_pull_up_12ma>,
1685 <3 RK_PC0 RK_FUNC_2 &pcfg_pull_up_12ma>,
1686 <3 RK_PC1 RK_FUNC_2 &pcfg_pull_up_12ma>,
1687 <3 RK_PC2 RK_FUNC_2 &pcfg_pull_up_12ma>;
1692 pwm0_pin: pwm0-pin {
1694 <2 RK_PA4 RK_FUNC_1 &pcfg_pull_none>;
1699 pwm1_pin: pwm1-pin {
1701 <2 RK_PA5 RK_FUNC_1 &pcfg_pull_none>;
1706 pwm2_pin: pwm2-pin {
1708 <2 RK_PA6 RK_FUNC_1 &pcfg_pull_none>;
1713 pwmir_pin: pwmir-pin {
1715 <2 RK_PA2 RK_FUNC_1 &pcfg_pull_none>;
1720 rgmiim1_pins: rgmiim1-pins {
1723 <1 RK_PB4 RK_FUNC_2 &pcfg_pull_none_12ma>,
1725 <1 RK_PB5 RK_FUNC_2 &pcfg_pull_none_2ma>,
1727 <1 RK_PC3 RK_FUNC_2 &pcfg_pull_none_2ma>,
1729 <1 RK_PD1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1731 <1 RK_PC5 RK_FUNC_2 &pcfg_pull_none_2ma>,
1733 <1 RK_PC6 RK_FUNC_2 &pcfg_pull_none_2ma>,
1735 <1 RK_PC7 RK_FUNC_2 &pcfg_pull_none_2ma>,
1737 <1 RK_PB2 RK_FUNC_2 &pcfg_pull_none_2ma>,
1739 <1 RK_PB3 RK_FUNC_2 &pcfg_pull_none_2ma>,
1741 <1 RK_PB0 RK_FUNC_2 &pcfg_pull_none_12ma>,
1743 <1 RK_PB1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1745 <1 RK_PB6 RK_FUNC_2 &pcfg_pull_none_2ma>,
1747 <1 RK_PB7 RK_FUNC_2 &pcfg_pull_none_2ma>,
1749 <1 RK_PC0 RK_FUNC_2 &pcfg_pull_none_12ma>,
1751 <1 RK_PC1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1754 <0 RK_PB0 RK_FUNC_1 &pcfg_pull_none>,
1756 <0 RK_PB4 RK_FUNC_1 &pcfg_pull_none>,
1758 <0 RK_PD0 RK_FUNC_1 &pcfg_pull_none>,
1760 <0 RK_PC0 RK_FUNC_1 &pcfg_pull_none>,
1762 <0 RK_PC1 RK_FUNC_1 &pcfg_pull_none>,
1764 <0 RK_PC7 RK_FUNC_1 &pcfg_pull_none>,
1766 <0 RK_PC6 RK_FUNC_1 &pcfg_pull_none>;
1769 rmiim1_pins: rmiim1-pins {
1772 <1 RK_PC3 RK_FUNC_2 &pcfg_pull_none_2ma>,
1774 <1 RK_PD1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1776 <1 RK_PC5 RK_FUNC_2 &pcfg_pull_none_2ma>,
1778 <1 RK_PD0 RK_FUNC_2 &pcfg_pull_none_2ma>,
1780 <1 RK_PC6 RK_FUNC_2 &pcfg_pull_none_2ma>,
1782 <1 RK_PC7 RK_FUNC_2 &pcfg_pull_none_2ma>,
1784 <1 RK_PB2 RK_FUNC_2 &pcfg_pull_none_2ma>,
1786 <1 RK_PB3 RK_FUNC_2 &pcfg_pull_none_2ma>,
1788 <1 RK_PB0 RK_FUNC_2 &pcfg_pull_none_12ma>,
1790 <1 RK_PB1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1793 <0 RK_PB3 RK_FUNC_1 &pcfg_pull_none>,
1795 <0 RK_PB4 RK_FUNC_1 &pcfg_pull_none>,
1797 <0 RK_PD0 RK_FUNC_1 &pcfg_pull_none>,
1799 <0 RK_PC3 RK_FUNC_1 &pcfg_pull_none>,
1801 <0 RK_PC0 RK_FUNC_1 &pcfg_pull_none>,
1803 <0 RK_PC1 RK_FUNC_1 &pcfg_pull_none>;
1808 fephyled_speed100: fephyled-speed100 {
1810 <0 RK_PD7 RK_FUNC_1 &pcfg_pull_none>;
1813 fephyled_speed10: fephyled-speed10 {
1815 <0 RK_PD6 RK_FUNC_1 &pcfg_pull_none>;
1818 fephyled_duplex: fephyled-duplex {
1820 <0 RK_PD6 RK_FUNC_2 &pcfg_pull_none>;
1823 fephyled_rxm0: fephyled-rxm0 {
1825 <0 RK_PD5 RK_FUNC_1 &pcfg_pull_none>;
1828 fephyled_txm0: fephyled-txm0 {
1830 <0 RK_PD5 RK_FUNC_2 &pcfg_pull_none>;
1833 fephyled_linkm0: fephyled-linkm0 {
1835 <0 RK_PD4 RK_FUNC_1 &pcfg_pull_none>;
1838 fephyled_rxm1: fephyled-rxm1 {
1840 <2 RK_PD1 RK_FUNC_2 &pcfg_pull_none>;
1843 fephyled_txm1: fephyled-txm1 {
1845 <2 RK_PD1 RK_FUNC_3 &pcfg_pull_none>;
1848 fephyled_linkm1: fephyled-linkm1 {
1850 <2 RK_PD0 RK_FUNC_2 &pcfg_pull_none>;
1855 tsadc_int: tsadc-int {
1857 <2 RK_PB5 RK_FUNC_2 &pcfg_pull_none>;
1859 tsadc_gpio: tsadc-gpio {
1861 <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
1866 hdmi_cec: hdmi-cec {
1868 <0 RK_PA3 RK_FUNC_1 &pcfg_pull_none>;
1871 hdmi_hpd: hdmi-hpd {
1873 <0 RK_PA4 RK_FUNC_1 &pcfg_pull_down>;
1878 dvp_d2d9_m0:dvp-d2d9-m0 {
1881 <3 RK_PA4 RK_FUNC_2 &pcfg_pull_none>,
1883 <3 RK_PA5 RK_FUNC_2 &pcfg_pull_none>,
1885 <3 RK_PA6 RK_FUNC_2 &pcfg_pull_none>,
1887 <3 RK_PA7 RK_FUNC_2 &pcfg_pull_none>,
1889 <3 RK_PB0 RK_FUNC_2 &pcfg_pull_none>,
1891 <3 RK_PB1 RK_FUNC_2 &pcfg_pull_none>,
1893 <3 RK_PB2 RK_FUNC_2 &pcfg_pull_none>,
1895 <3 RK_PB3 RK_FUNC_2 &pcfg_pull_none>,
1897 <3 RK_PA1 RK_FUNC_2 &pcfg_pull_none>,
1899 <3 RK_PA0 RK_FUNC_2 &pcfg_pull_none>,
1901 <3 RK_PA3 RK_FUNC_2 &pcfg_pull_none>,
1903 <3 RK_PA2 RK_FUNC_2 &pcfg_pull_none>;
1908 dvp_d2d9_m1:dvp-d2d9-m1 {
1911 <3 RK_PA4 RK_FUNC_2 &pcfg_pull_none>,
1913 <3 RK_PA5 RK_FUNC_2 &pcfg_pull_none>,
1915 <3 RK_PA6 RK_FUNC_2 &pcfg_pull_none>,
1917 <3 RK_PA7 RK_FUNC_2 &pcfg_pull_none>,
1919 <3 RK_PB0 RK_FUNC_2 &pcfg_pull_none>,
1921 <2 RK_PC0 RK_FUNC_4 &pcfg_pull_none>,
1923 <2 RK_PC1 RK_FUNC_4 &pcfg_pull_none>,
1925 <2 RK_PC2 RK_FUNC_4 &pcfg_pull_none>,
1927 <3 RK_PA1 RK_FUNC_2 &pcfg_pull_none>,
1929 <3 RK_PA0 RK_FUNC_2 &pcfg_pull_none>,
1931 <2 RK_PB7 RK_FUNC_4 &pcfg_pull_none>,
1933 <3 RK_PA2 RK_FUNC_2 &pcfg_pull_none>;