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/rk3399-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/power/rk3399-power.h>
49 #include <dt-bindings/soc/rockchip_boot-mode.h>
50 #include <dt-bindings/thermal/thermal.h>
52 #include "rk3399-dram-default-timing.dtsi"
55 compatible = "rockchip,rk3399";
57 interrupt-parent = <&gic>;
79 compatible = "arm,psci-1.0";
115 compatible = "arm,cortex-a53", "arm,armv8";
117 enable-method = "psci";
118 #cooling-cells = <2>; /* min followed by max */
119 dynamic-power-coefficient = <100>;
120 clocks = <&cru ARMCLKL>;
121 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
122 operating-points-v2 = <&cluster0_opp>;
123 sched-energy-costs = <&CPU_COST_A53 &CLUSTER_COST_A53>;
128 compatible = "arm,cortex-a53", "arm,armv8";
130 enable-method = "psci";
131 clocks = <&cru ARMCLKL>;
132 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
133 operating-points-v2 = <&cluster0_opp>;
134 sched-energy-costs = <&CPU_COST_A53 &CLUSTER_COST_A53>;
139 compatible = "arm,cortex-a53", "arm,armv8";
141 enable-method = "psci";
142 clocks = <&cru ARMCLKL>;
143 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
144 operating-points-v2 = <&cluster0_opp>;
145 sched-energy-costs = <&CPU_COST_A53 &CLUSTER_COST_A53>;
150 compatible = "arm,cortex-a53", "arm,armv8";
152 enable-method = "psci";
153 clocks = <&cru ARMCLKL>;
154 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
155 operating-points-v2 = <&cluster0_opp>;
156 sched-energy-costs = <&CPU_COST_A53 &CLUSTER_COST_A53>;
161 compatible = "arm,cortex-a72", "arm,armv8";
163 enable-method = "psci";
164 #cooling-cells = <2>; /* min followed by max */
165 dynamic-power-coefficient = <436>;
166 clocks = <&cru ARMCLKB>;
167 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
168 operating-points-v2 = <&cluster1_opp>;
169 sched-energy-costs = <&CPU_COST_A72 &CLUSTER_COST_A72>;
174 compatible = "arm,cortex-a72", "arm,armv8";
176 enable-method = "psci";
177 clocks = <&cru ARMCLKB>;
178 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
179 operating-points-v2 = <&cluster1_opp>;
180 sched-energy-costs = <&CPU_COST_A72 &CLUSTER_COST_A72>;
184 entry-method = "psci";
186 CPU_SLEEP: cpu-sleep {
187 compatible = "arm,idle-state";
189 arm,psci-suspend-param = <0x0010000>;
190 entry-latency-us = <120>;
191 exit-latency-us = <250>;
192 min-residency-us = <900>;
195 CLUSTER_SLEEP: cluster-sleep {
196 compatible = "arm,idle-state";
198 arm,psci-suspend-param = <0x1010000>;
199 entry-latency-us = <400>;
200 exit-latency-us = <500>;
201 min-residency-us = <2000>;
205 /include/ "rk3399-sched-energy.dtsi"
209 cluster0_opp: opp_table0 {
210 compatible = "operating-points-v2";
214 opp-hz = /bits/ 64 <408000000>;
215 opp-microvolt = <800000>;
216 clock-latency-ns = <40000>;
219 opp-hz = /bits/ 64 <600000000>;
220 opp-microvolt = <800000>;
223 opp-hz = /bits/ 64 <816000000>;
224 opp-microvolt = <800000>;
227 opp-hz = /bits/ 64 <1008000000>;
228 opp-microvolt = <875000>;
231 opp-hz = /bits/ 64 <1200000000>;
232 opp-microvolt = <925000>;
235 opp-hz = /bits/ 64 <1416000000>;
236 opp-microvolt = <1025000>;
240 cluster1_opp: opp_table1 {
241 compatible = "operating-points-v2";
245 opp-hz = /bits/ 64 <408000000>;
246 opp-microvolt = <800000>;
247 clock-latency-ns = <40000>;
250 opp-hz = /bits/ 64 <600000000>;
251 opp-microvolt = <800000>;
254 opp-hz = /bits/ 64 <816000000>;
255 opp-microvolt = <800000>;
258 opp-hz = /bits/ 64 <1008000000>;
259 opp-microvolt = <850000>;
262 opp-hz = /bits/ 64 <1200000000>;
263 opp-microvolt = <925000>;
270 min-volt = <800000>; /* uV */
271 min-freq = <408000>; /* KHz */
272 leakage-adjust-volt = <
276 nvmem-cells = <&cpul_leakage>;
277 nvmem-cell-names = "cpu_leakage";
281 min-volt = <800000>; /* uV */
282 min-freq = <408000>; /* KHz */
283 leakage-adjust-volt = <
287 nvmem-cells = <&cpub_leakage>;
288 nvmem-cell-names = "cpu_leakage";
293 compatible = "arm,armv8-timer";
294 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
295 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
296 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
297 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>;
301 compatible = "arm,cortex-a53-pmu";
302 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &part0>;
306 compatible = "arm,cortex-a72-pmu";
307 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &part1>;
311 compatible = "fixed-clock";
313 clock-frequency = <24000000>;
314 clock-output-names = "xin24m";
318 compatible = "arm,amba-bus";
319 #address-cells = <2>;
323 dmac_bus: dma-controller@ff6d0000 {
324 compatible = "arm,pl330", "arm,primecell";
325 reg = <0x0 0xff6d0000 0x0 0x4000>;
326 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>,
327 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>;
329 clocks = <&cru ACLK_DMAC0_PERILP>;
330 clock-names = "apb_pclk";
331 peripherals-req-type-burst;
334 dmac_peri: dma-controller@ff6e0000 {
335 compatible = "arm,pl330", "arm,primecell";
336 reg = <0x0 0xff6e0000 0x0 0x4000>;
337 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>,
338 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>;
340 clocks = <&cru ACLK_DMAC1_PERILP>;
341 clock-names = "apb_pclk";
342 peripherals-req-type-burst;
347 compatible = "rockchip,rk3399-gmac";
348 reg = <0x0 0xfe300000 0x0 0x10000>;
349 rockchip,grf = <&grf>;
350 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
351 interrupt-names = "macirq";
352 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
353 <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
354 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
356 clock-names = "stmmaceth", "mac_clk_rx",
357 "mac_clk_tx", "clk_mac_ref",
358 "clk_mac_refout", "aclk_mac",
360 resets = <&cru SRST_A_GMAC>;
361 reset-names = "stmmaceth";
362 power-domains = <&power RK3399_PD_GMAC>;
366 sdio0: dwmmc@fe310000 {
367 compatible = "rockchip,rk3399-dw-mshc",
368 "rockchip,rk3288-dw-mshc";
369 reg = <0x0 0xfe310000 0x0 0x4000>;
370 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH 0>;
371 clock-freq-min-max = <400000 150000000>;
372 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
373 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
374 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
375 fifo-depth = <0x100>;
376 power-domains = <&power RK3399_PD_SDIOAUDIO>;
380 sdmmc: dwmmc@fe320000 {
381 compatible = "rockchip,rk3399-dw-mshc",
382 "rockchip,rk3288-dw-mshc";
383 reg = <0x0 0xfe320000 0x0 0x4000>;
384 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>;
385 clock-freq-min-max = <400000 150000000>;
386 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
387 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
388 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
389 fifo-depth = <0x100>;
390 power-domains = <&power RK3399_PD_SD>;
394 sdhci: sdhci@fe330000 {
395 compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
396 reg = <0x0 0xfe330000 0x0 0x10000>;
397 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>;
398 arasan,soc-ctl-syscon = <&grf>;
399 assigned-clocks = <&cru SCLK_EMMC>;
400 assigned-clock-rates = <200000000>;
401 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
402 clock-names = "clk_xin", "clk_ahb";
403 clock-output-names = "emmc_cardclock";
406 phy-names = "phy_arasan";
407 power-domains = <&power RK3399_PD_EMMC>;
411 usb_host0_ehci: usb@fe380000 {
412 compatible = "generic-ehci";
413 reg = <0x0 0xfe380000 0x0 0x20000>;
414 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>;
415 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
416 <&cru SCLK_USBPHY0_480M_SRC>;
417 clock-names = "hclk_host0", "hclk_host0_arb", "usbphy0_480m";
418 phys = <&u2phy0_host>;
420 power-domains = <&power RK3399_PD_PERIHP>;
424 usb_host0_ohci: usb@fe3a0000 {
425 compatible = "generic-ohci";
426 reg = <0x0 0xfe3a0000 0x0 0x20000>;
427 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>;
428 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
429 <&cru SCLK_USBPHY0_480M_SRC>;
430 clock-names = "hclk_host0", "hclk_host0_arb", "usbphy0_480m";
431 phys = <&u2phy0_host>;
433 power-domains = <&power RK3399_PD_PERIHP>;
437 usb_host1_ehci: usb@fe3c0000 {
438 compatible = "generic-ehci";
439 reg = <0x0 0xfe3c0000 0x0 0x20000>;
440 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>;
441 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
442 <&cru SCLK_USBPHY1_480M_SRC>;
443 clock-names = "hclk_host1", "hclk_host1_arb", "usbphy1_480m";
444 phys = <&u2phy1_host>;
446 power-domains = <&power RK3399_PD_PERIHP>;
450 usb_host1_ohci: usb@fe3e0000 {
451 compatible = "generic-ohci";
452 reg = <0x0 0xfe3e0000 0x0 0x20000>;
453 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
454 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
455 <&cru SCLK_USBPHY1_480M_SRC>;
456 clock-names = "hclk_host1", "hclk_host1_arb", "usbphy1_480m";
457 phys = <&u2phy1_host>;
459 power-domains = <&power RK3399_PD_PERIHP>;
463 usbdrd3_0: usb@fe800000 {
464 compatible = "rockchip,rk3399-dwc3";
465 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
466 <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>;
467 clock-names = "ref_clk", "suspend_clk",
468 "bus_clk", "grf_clk";
469 power-domains = <&power RK3399_PD_USB3>;
470 resets = <&cru SRST_A_USB3_OTG0>;
471 reset-names = "usb3-otg";
472 #address-cells = <2>;
476 usbdrd_dwc3_0: dwc3@fe800000 {
477 compatible = "snps,dwc3";
478 reg = <0x0 0xfe800000 0x0 0x100000>;
479 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>;
481 phys = <&u2phy0_otg>, <&tcphy0_usb3>;
482 phy-names = "usb2-phy", "usb3-phy";
483 phy_type = "utmi_wide";
484 snps,dis_enblslpm_quirk;
485 snps,dis-u2-freeclk-exists-quirk;
486 snps,dis_u2_susphy_quirk;
487 snps,dis-del-phy-power-chg-quirk;
488 snps,xhci-slow-suspend-quirk;
493 usbdrd3_1: usb@fe900000 {
494 compatible = "rockchip,rk3399-dwc3";
495 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>,
496 <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_GRF>;
497 clock-names = "ref_clk", "suspend_clk",
498 "bus_clk", "grf_clk";
499 power-domains = <&power RK3399_PD_USB3>;
500 resets = <&cru SRST_A_USB3_OTG1>;
501 reset-names = "usb3-otg";
502 #address-cells = <2>;
506 usbdrd_dwc3_1: dwc3@fe900000 {
507 compatible = "snps,dwc3";
508 reg = <0x0 0xfe900000 0x0 0x100000>;
509 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>;
511 phys = <&u2phy1_otg>, <&tcphy1_usb3>;
512 phy-names = "usb2-phy", "usb3-phy";
513 phy_type = "utmi_wide";
514 snps,dis_enblslpm_quirk;
515 snps,dis-u2-freeclk-exists-quirk;
516 snps,dis_u2_susphy_quirk;
517 snps,dis-del-phy-power-chg-quirk;
518 snps,xhci-slow-suspend-quirk;
523 gic: interrupt-controller@fee00000 {
524 compatible = "arm,gic-v3";
525 #interrupt-cells = <4>;
526 #address-cells = <2>;
529 interrupt-controller;
531 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
532 <0x0 0xfef00000 0 0xc0000>, /* GICR */
533 <0x0 0xfff00000 0 0x10000>, /* GICC */
534 <0x0 0xfff10000 0 0x10000>, /* GICH */
535 <0x0 0xfff20000 0 0x10000>; /* GICV */
536 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
537 its: interrupt-controller@fee20000 {
538 compatible = "arm,gic-v3-its";
540 reg = <0x0 0xfee20000 0x0 0x20000>;
544 part0: interrupt-partition-0 {
545 affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>;
548 part1: interrupt-partition-1 {
549 affinity = <&cpu_b0 &cpu_b1>;
554 saradc: saradc@ff100000 {
555 compatible = "rockchip,rk3399-saradc";
556 reg = <0x0 0xff100000 0x0 0x100>;
557 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH 0>;
558 #io-channel-cells = <1>;
559 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
560 clock-names = "saradc", "apb_pclk";
561 resets = <&cru SRST_P_SARADC>;
562 reset-names = "saradc-apb";
567 compatible = "rockchip,rk3399-i2c";
568 reg = <0x0 0xff3c0000 0x0 0x1000>;
569 clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
570 clock-names = "i2c", "pclk";
571 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>;
572 pinctrl-names = "default";
573 pinctrl-0 = <&i2c0_xfer>;
574 #address-cells = <1>;
580 compatible = "rockchip,rk3399-i2c";
581 reg = <0x0 0xff110000 0x0 0x1000>;
582 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
583 clock-names = "i2c", "pclk";
584 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH 0>;
585 pinctrl-names = "default";
586 pinctrl-0 = <&i2c1_xfer>;
587 #address-cells = <1>;
593 compatible = "rockchip,rk3399-i2c";
594 reg = <0x0 0xff120000 0x0 0x1000>;
595 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
596 clock-names = "i2c", "pclk";
597 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH 0>;
598 pinctrl-names = "default";
599 pinctrl-0 = <&i2c2_xfer>;
600 #address-cells = <1>;
606 compatible = "rockchip,rk3399-i2c";
607 reg = <0x0 0xff130000 0x0 0x1000>;
608 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
609 clock-names = "i2c", "pclk";
610 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH 0>;
611 pinctrl-names = "default";
612 pinctrl-0 = <&i2c3_xfer>;
613 #address-cells = <1>;
619 compatible = "rockchip,rk3399-i2c";
620 reg = <0x0 0xff140000 0x0 0x1000>;
621 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>;
622 clock-names = "i2c", "pclk";
623 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>;
624 pinctrl-names = "default";
625 pinctrl-0 = <&i2c5_xfer>;
626 #address-cells = <1>;
632 compatible = "rockchip,rk3399-i2c";
633 reg = <0x0 0xff150000 0x0 0x1000>;
634 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>;
635 clock-names = "i2c", "pclk";
636 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH 0>;
637 pinctrl-names = "default";
638 pinctrl-0 = <&i2c6_xfer>;
639 #address-cells = <1>;
645 compatible = "rockchip,rk3399-i2c";
646 reg = <0x0 0xff160000 0x0 0x1000>;
647 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
648 clock-names = "i2c", "pclk";
649 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>;
650 pinctrl-names = "default";
651 pinctrl-0 = <&i2c7_xfer>;
652 #address-cells = <1>;
657 uart0: serial@ff180000 {
658 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
659 reg = <0x0 0xff180000 0x0 0x100>;
660 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
661 clock-names = "baudclk", "apb_pclk";
662 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>;
665 pinctrl-names = "default";
666 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
670 uart1: serial@ff190000 {
671 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
672 reg = <0x0 0xff190000 0x0 0x100>;
673 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
674 clock-names = "baudclk", "apb_pclk";
675 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH 0>;
678 pinctrl-names = "default";
679 pinctrl-0 = <&uart1_xfer>;
683 uart2: serial@ff1a0000 {
684 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
685 reg = <0x0 0xff1a0000 0x0 0x100>;
686 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
687 clock-names = "baudclk", "apb_pclk";
688 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH 0>;
691 pinctrl-names = "default";
692 pinctrl-0 = <&uart2c_xfer>;
696 uart3: serial@ff1b0000 {
697 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
698 reg = <0x0 0xff1b0000 0x0 0x100>;
699 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
700 clock-names = "baudclk", "apb_pclk";
701 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>;
704 pinctrl-names = "default";
705 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
710 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
711 reg = <0x0 0xff1c0000 0x0 0x1000>;
712 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
713 clock-names = "spiclk", "apb_pclk";
714 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>;
715 pinctrl-names = "default";
716 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
717 #address-cells = <1>;
723 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
724 reg = <0x0 0xff1d0000 0x0 0x1000>;
725 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
726 clock-names = "spiclk", "apb_pclk";
727 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
728 pinctrl-names = "default";
729 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
730 #address-cells = <1>;
736 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
737 reg = <0x0 0xff1e0000 0x0 0x1000>;
738 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
739 clock-names = "spiclk", "apb_pclk";
740 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>;
741 pinctrl-names = "default";
742 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
743 #address-cells = <1>;
749 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
750 reg = <0x0 0xff1f0000 0x0 0x1000>;
751 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
752 clock-names = "spiclk", "apb_pclk";
753 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>;
754 pinctrl-names = "default";
755 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
756 #address-cells = <1>;
762 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
763 reg = <0x0 0xff200000 0x0 0x1000>;
764 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
765 clock-names = "spiclk", "apb_pclk";
766 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>;
767 pinctrl-names = "default";
768 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
769 #address-cells = <1>;
775 soc_thermal: soc-thermal {
776 polling-delay-passive = <20>; /* milliseconds */
777 polling-delay = <1000>; /* milliseconds */
778 sustainable-power = <1000>; /* milliwatts */
780 thermal-sensors = <&tsadc 0>;
783 threshold: trip-point@0 {
784 temperature = <70000>; /* millicelsius */
785 hysteresis = <2000>; /* millicelsius */
788 target: trip-point@1 {
789 temperature = <85000>; /* millicelsius */
790 hysteresis = <2000>; /* millicelsius */
794 temperature = <95000>; /* millicelsius */
795 hysteresis = <2000>; /* millicelsius */
804 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
805 contribution = <4096>;
810 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
811 contribution = <1024>;
816 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
817 contribution = <4096>;
822 gpu_thermal: gpu-thermal {
823 polling-delay-passive = <100>; /* milliseconds */
824 polling-delay = <1000>; /* milliseconds */
826 thermal-sensors = <&tsadc 1>;
830 tsadc: tsadc@ff260000 {
831 compatible = "rockchip,rk3399-tsadc";
832 reg = <0x0 0xff260000 0x0 0x100>;
833 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH 0>;
834 rockchip,grf = <&grf>;
835 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
836 clock-names = "tsadc", "apb_pclk";
837 assigned-clocks = <&cru SCLK_TSADC>;
838 assigned-clock-rates = <750000>;
839 resets = <&cru SRST_TSADC>;
840 reset-names = "tsadc-apb";
841 pinctrl-names = "init", "default", "sleep";
842 pinctrl-0 = <&otp_gpio>;
843 pinctrl-1 = <&otp_out>;
844 pinctrl-2 = <&otp_gpio>;
845 #thermal-sensor-cells = <1>;
846 rockchip,hw-tshut-temp = <95000>;
850 qos_emmc: qos@ffa58000 {
851 compatible = "syscon";
852 reg = <0x0 0xffa58000 0x0 0x20>;
855 qos_gmac: qos@ffa5c000 {
856 compatible = "syscon";
857 reg = <0x0 0xffa5c000 0x0 0x20>;
860 qos_pcie: qos@ffa60080 {
861 compatible = "syscon";
862 reg = <0x0 0xffa60080 0x0 0x20>;
865 qos_usb_host0: qos@ffa60100 {
866 compatible = "syscon";
867 reg = <0x0 0xffa60100 0x0 0x20>;
870 qos_usb_host1: qos@ffa60180 {
871 compatible = "syscon";
872 reg = <0x0 0xffa60180 0x0 0x20>;
875 qos_usb_otg0: qos@ffa70000 {
876 compatible = "syscon";
877 reg = <0x0 0xffa70000 0x0 0x20>;
880 qos_usb_otg1: qos@ffa70080 {
881 compatible = "syscon";
882 reg = <0x0 0xffa70080 0x0 0x20>;
885 qos_sd: qos@ffa74000 {
886 compatible = "syscon";
887 reg = <0x0 0xffa74000 0x0 0x20>;
890 qos_sdioaudio: qos@ffa76000 {
891 compatible = "syscon";
892 reg = <0x0 0xffa76000 0x0 0x20>;
895 qos_hdcp: qos@ffa90000 {
896 compatible = "syscon";
897 reg = <0x0 0xffa90000 0x0 0x20>;
900 qos_iep: qos@ffa98000 {
901 compatible = "syscon";
902 reg = <0x0 0xffa98000 0x0 0x20>;
905 qos_isp0_m0: qos@ffaa0000 {
906 compatible = "syscon";
907 reg = <0x0 0xffaa0000 0x0 0x20>;
910 qos_isp0_m1: qos@ffaa0080 {
911 compatible = "syscon";
912 reg = <0x0 0xffaa0080 0x0 0x20>;
915 qos_isp1_m0: qos@ffaa8000 {
916 compatible = "syscon";
917 reg = <0x0 0xffaa8000 0x0 0x20>;
920 qos_isp1_m1: qos@ffaa8080 {
921 compatible = "syscon";
922 reg = <0x0 0xffaa8080 0x0 0x20>;
925 qos_rga_r: qos@ffab0000 {
926 compatible = "syscon";
927 reg = <0x0 0xffab0000 0x0 0x20>;
930 qos_rga_w: qos@ffab0080 {
931 compatible = "syscon";
932 reg = <0x0 0xffab0080 0x0 0x20>;
935 qos_video_m0: qos@ffab8000 {
936 compatible = "syscon";
937 reg = <0x0 0xffab8000 0x0 0x20>;
940 qos_video_m1_r: qos@ffac0000 {
941 compatible = "syscon";
942 reg = <0x0 0xffac0000 0x0 0x20>;
945 qos_video_m1_w: qos@ffac0080 {
946 compatible = "syscon";
947 reg = <0x0 0xffac0080 0x0 0x20>;
950 qos_vop_big_r: qos@ffac8000 {
951 compatible = "syscon";
952 reg = <0x0 0xffac8000 0x0 0x20>;
955 qos_vop_big_w: qos@ffac8080 {
956 compatible = "syscon";
957 reg = <0x0 0xffac8080 0x0 0x20>;
960 qos_vop_little: qos@ffad0000 {
961 compatible = "syscon";
962 reg = <0x0 0xffad0000 0x0 0x20>;
965 qos_perihp: qos@ffad8080 {
966 compatible = "syscon";
967 reg = <0x0 0xffad8080 0x0 0x20>;
970 qos_gpu: qos@ffae0000 {
971 compatible = "syscon";
972 reg = <0x0 0xffae0000 0x0 0x20>;
975 pmu: power-management@ff310000 {
976 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
977 reg = <0x0 0xff310000 0x0 0x1000>;
980 * Note: RK3399 supports 6 voltage domains including VD_CORE_L,
981 * VD_CORE_B, VD_CENTER, VD_GPU, VD_LOGIC and VD_PMU.
982 * Some of the power domains are grouped together for every
984 * The detail contents as below.
986 power: power-controller {
987 compatible = "rockchip,rk3399-power-controller";
988 #power-domain-cells = <1>;
989 #address-cells = <1>;
992 /* These power domains are grouped by VD_CENTER */
993 pd_iep@RK3399_PD_IEP {
994 reg = <RK3399_PD_IEP>;
995 clocks = <&cru ACLK_IEP>,
999 pd_rga@RK3399_PD_RGA {
1000 reg = <RK3399_PD_RGA>;
1001 clocks = <&cru ACLK_RGA>,
1003 pm_qos = <&qos_rga_r>,
1006 pd_vcodec@RK3399_PD_VCODEC {
1007 reg = <RK3399_PD_VCODEC>;
1008 clocks = <&cru ACLK_VCODEC>,
1010 pm_qos = <&qos_video_m0>;
1012 pd_vdu@RK3399_PD_VDU {
1013 reg = <RK3399_PD_VDU>;
1014 clocks = <&cru ACLK_VDU>,
1016 pm_qos = <&qos_video_m1_r>,
1020 /* These power domains are grouped by VD_GPU */
1021 pd_gpu@RK3399_PD_GPU {
1022 reg = <RK3399_PD_GPU>;
1023 clocks = <&cru ACLK_GPU>;
1024 pm_qos = <&qos_gpu>;
1027 /* These power domains are grouped by VD_LOGIC */
1028 pd_edp@RK3399_PD_EDP {
1029 reg = <RK3399_PD_EDP>;
1030 clocks = <&cru PCLK_EDP_CTRL>;
1032 pd_emmc@RK3399_PD_EMMC {
1033 reg = <RK3399_PD_EMMC>;
1034 clocks = <&cru ACLK_EMMC>;
1035 pm_qos = <&qos_emmc>;
1037 pd_gmac@RK3399_PD_GMAC {
1038 reg = <RK3399_PD_GMAC>;
1039 clocks = <&cru ACLK_GMAC>;
1040 pm_qos = <&qos_gmac>;
1042 pd_perihp@RK3399_PD_PERIHP {
1043 reg = <RK3399_PD_PERIHP>;
1044 #address-cells = <1>;
1046 clocks = <&cru ACLK_PERIHP>;
1047 pm_qos = <&qos_perihp>,
1052 pd_sd@RK3399_PD_SD {
1053 reg = <RK3399_PD_SD>;
1054 clocks = <&cru HCLK_SDMMC>,
1059 pd_sdioaudio@RK3399_PD_SDIOAUDIO {
1060 reg = <RK3399_PD_SDIOAUDIO>;
1061 clocks = <&cru HCLK_SDIO>;
1062 pm_qos = <&qos_sdioaudio>;
1064 pd_usb3@RK3399_PD_USB3 {
1065 reg = <RK3399_PD_USB3>;
1066 clocks = <&cru ACLK_USB3>;
1067 pm_qos = <&qos_usb_otg0>,
1070 pd_vio@RK3399_PD_VIO {
1071 reg = <RK3399_PD_VIO>;
1072 #address-cells = <1>;
1075 pd_hdcp@RK3399_PD_HDCP {
1076 reg = <RK3399_PD_HDCP>;
1077 clocks = <&cru ACLK_HDCP>,
1080 pm_qos = <&qos_hdcp>;
1082 pd_isp0@RK3399_PD_ISP0 {
1083 reg = <RK3399_PD_ISP0>;
1084 clocks = <&cru ACLK_ISP0>,
1086 pm_qos = <&qos_isp0_m0>,
1089 pd_isp1@RK3399_PD_ISP1 {
1090 reg = <RK3399_PD_ISP1>;
1091 clocks = <&cru ACLK_ISP1>,
1093 pm_qos = <&qos_isp1_m0>,
1096 pd_tcpc0@RK3399_PD_TCPC0 {
1097 reg = <RK3399_PD_TCPD0>;
1098 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1099 <&cru SCLK_UPHY0_TCPDPHY_REF>;
1101 pd_tcpc1@RK3399_PD_TCPC1 {
1102 reg = <RK3399_PD_TCPD1>;
1103 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1104 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1106 pd_vo@RK3399_PD_VO {
1107 reg = <RK3399_PD_VO>;
1108 #address-cells = <1>;
1111 pd_vopb@RK3399_PD_VOPB {
1112 reg = <RK3399_PD_VOPB>;
1113 clocks = <&cru ACLK_VOP0>,
1115 pm_qos = <&qos_vop_big_r>,
1118 pd_vopl@RK3399_PD_VOPL {
1119 reg = <RK3399_PD_VOPL>;
1120 clocks = <&cru ACLK_VOP1>,
1122 pm_qos = <&qos_vop_little>;
1129 pmugrf: syscon@ff320000 {
1130 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd";
1131 reg = <0x0 0xff320000 0x0 0x1000>;
1134 compatible = "syscon-reboot-mode";
1136 mode-bootloader = <BOOT_LOADER>;
1137 mode-charge = <BOOT_CHARGING>;
1138 mode-fastboot = <BOOT_FASTBOOT>;
1139 mode-loader = <BOOT_LOADER>;
1140 mode-normal = <BOOT_NORMAL>;
1141 mode-recovery = <BOOT_RECOVERY>;
1142 mode-ums = <BOOT_UMS>;
1146 spi3: spi@ff350000 {
1147 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
1148 reg = <0x0 0xff350000 0x0 0x1000>;
1149 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>;
1150 clock-names = "spiclk", "apb_pclk";
1151 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH 0>;
1152 pinctrl-names = "default";
1153 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
1154 #address-cells = <1>;
1156 status = "disabled";
1159 uart4: serial@ff370000 {
1160 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
1161 reg = <0x0 0xff370000 0x0 0x100>;
1162 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>;
1163 clock-names = "baudclk", "apb_pclk";
1164 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH 0>;
1167 pinctrl-names = "default";
1168 pinctrl-0 = <&uart4_xfer>;
1169 status = "disabled";
1172 i2c4: i2c@ff3d0000 {
1173 compatible = "rockchip,rk3399-i2c";
1174 reg = <0x0 0xff3d0000 0x0 0x1000>;
1175 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>;
1176 clock-names = "i2c", "pclk";
1177 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH 0>;
1178 pinctrl-names = "default";
1179 pinctrl-0 = <&i2c4_xfer>;
1180 #address-cells = <1>;
1182 status = "disabled";
1185 i2c8: i2c@ff3e0000 {
1186 compatible = "rockchip,rk3399-i2c";
1187 reg = <0x0 0xff3e0000 0x0 0x1000>;
1188 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>;
1189 clock-names = "i2c", "pclk";
1190 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
1191 pinctrl-names = "default";
1192 pinctrl-0 = <&i2c8_xfer>;
1193 #address-cells = <1>;
1195 status = "disabled";
1198 pcie_phy: phy@e220 {
1199 compatible = "rockchip,rk3399-pcie-phy";
1201 rockchip,grf = <&grf>;
1202 clocks = <&cru SCLK_PCIEPHY_REF>;
1203 clock-names = "refclk";
1204 resets = <&cru SRST_PCIEPHY>;
1205 reset-names = "phy";
1206 status = "disabled";
1209 pcie0: pcie@f8000000 {
1210 compatible = "rockchip,rk3399-pcie";
1211 #address-cells = <3>;
1213 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>,
1214 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>;
1215 clock-names = "aclk", "aclk-perf",
1217 bus-range = <0x0 0x1>;
1218 msi-map = <0x0 &its 0x0 0x1000>;
1219 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>,
1220 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>,
1221 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>;
1222 interrupt-names = "sys", "legacy", "client";
1223 #interrupt-cells = <1>;
1224 interrupt-map-mask = <0 0 0 7>;
1225 interrupt-map = <0 0 0 1 &pcie0_intc 0>,
1226 <0 0 0 2 &pcie0_intc 1>,
1227 <0 0 0 3 &pcie0_intc 2>,
1228 <0 0 0 4 &pcie0_intc 3>;
1230 phy-names = "pcie-phy";
1231 ranges = <0x82000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x600000
1232 0x81000000 0x0 0xfa600000 0x0 0xfa600000 0x0 0x100000>;
1233 reg = <0x0 0xf8000000 0x0 0x2000000>,
1234 <0x0 0xfd000000 0x0 0x1000000>;
1235 reg-names = "axi-base", "apb-base";
1236 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>,
1237 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>;
1238 reset-names = "core", "mgmt", "mgmt-sticky", "pipe";
1239 status = "disabled";
1240 pcie0_intc: interrupt-controller {
1241 interrupt-controller;
1242 #address-cells = <0>;
1243 #interrupt-cells = <1>;
1247 pwm0: pwm@ff420000 {
1248 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1249 reg = <0x0 0xff420000 0x0 0x10>;
1251 pinctrl-names = "default";
1252 pinctrl-0 = <&pwm0_pin>;
1253 clocks = <&pmucru PCLK_RKPWM_PMU>;
1254 clock-names = "pwm";
1255 status = "disabled";
1258 pwm1: pwm@ff420010 {
1259 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1260 reg = <0x0 0xff420010 0x0 0x10>;
1262 pinctrl-names = "default";
1263 pinctrl-0 = <&pwm1_pin>;
1264 clocks = <&pmucru PCLK_RKPWM_PMU>;
1265 clock-names = "pwm";
1266 status = "disabled";
1269 pwm2: pwm@ff420020 {
1270 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1271 reg = <0x0 0xff420020 0x0 0x10>;
1273 pinctrl-names = "default";
1274 pinctrl-0 = <&pwm2_pin>;
1275 clocks = <&pmucru PCLK_RKPWM_PMU>;
1276 clock-names = "pwm";
1277 status = "disabled";
1280 pwm3: pwm@ff420030 {
1281 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1282 reg = <0x0 0xff420030 0x0 0x10>;
1284 pinctrl-names = "default";
1285 pinctrl-0 = <&pwm3a_pin>;
1286 clocks = <&pmucru PCLK_RKPWM_PMU>;
1287 clock-names = "pwm";
1288 status = "disabled";
1292 reg = <0x00 0xff630000 0x00 0x4000>;
1293 compatible = "rockchip,rk3399-dfi";
1294 rockchip,pmu = <&pmugrf>;
1295 clocks = <&cru PCLK_DDR_MON>;
1296 clock-names = "pclk_ddr_mon";
1297 status = "disabled";
1301 compatible = "rockchip,rk3399-dmc";
1302 devfreq-events = <&dfi>;
1303 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH 0>;
1304 clocks = <&cru SCLK_DDRCLK>;
1305 clock-names = "dmc_clk";
1306 ddr_timing = <&ddr_timing>;
1307 operating-points-v2 = <&dmc_opp_table>;
1308 status = "disabled";
1311 dmc_opp_table: dmc_opp_table {
1312 compatible = "operating-points-v2";
1315 opp-hz = /bits/ 64 <666000000>;
1316 opp-microvolt = <900000>;
1321 compatible = "rockchip,rk3399-rga";
1322 reg = <0x0 0xff680000 0x0 0x10000>;
1323 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH 0>;
1324 interrupt-names = "rga";
1325 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
1326 clock-names = "aclk", "hclk", "sclk";
1327 resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
1328 reset-names = "core", "axi", "ahb";
1329 power-domains = <&power RK3399_PD_RGA>;
1330 status = "disabled";
1333 efuse0: efuse@ff690000 {
1334 compatible = "rockchip,rk3399-efuse";
1335 reg = <0x0 0xff690000 0x0 0x80>;
1336 #address-cells = <1>;
1338 clocks = <&cru PCLK_EFUSE1024NS>;
1339 clock-names = "pclk_efuse";
1342 cpul_leakage: cpul-leakage {
1345 cpub_leakage: cpub-leakage {
1348 gpu_leakage: gpu-leakage {
1351 center_leakage: center-leakage {
1354 logic_leakage: logic-leakage {
1357 wafer_info: wafer-info {
1362 pmucru: pmu-clock-controller@ff750000 {
1363 compatible = "rockchip,rk3399-pmucru";
1364 reg = <0x0 0xff750000 0x0 0x1000>;
1367 assigned-clocks = <&pmucru PLL_PPLL>;
1368 assigned-clock-rates = <676000000>;
1371 cru: clock-controller@ff760000 {
1372 compatible = "rockchip,rk3399-cru";
1373 reg = <0x0 0xff760000 0x0 0x1000>;
1377 <&cru ACLK_VOP0>, <&cru HCLK_VOP0>,
1378 <&cru ACLK_VOP1>, <&cru HCLK_VOP1>,
1379 <&cru ARMCLKL>, <&cru ARMCLKB>,
1380 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1381 <&cru ACLK_GPU>, <&cru PLL_NPLL>,
1382 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
1384 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
1385 <&cru PCLK_PERILP0>,
1386 <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>;
1387 assigned-clock-rates =
1388 <400000000>, <200000000>,
1389 <400000000>, <200000000>,
1390 <816000000>, <816000000>,
1391 <594000000>, <800000000>,
1392 <200000000>, <1000000000>,
1393 <150000000>, <75000000>,
1395 <100000000>, <100000000>,
1397 <100000000>, <50000000>;
1400 grf: syscon@ff770000 {
1401 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
1402 reg = <0x0 0xff770000 0x0 0x10000>;
1403 #address-cells = <1>;
1406 emmc_phy: phy@f780 {
1407 compatible = "rockchip,rk3399-emmc-phy";
1408 reg = <0xf780 0x24>;
1410 clock-names = "emmcclk";
1412 status = "disabled";
1415 u2phy0: usb2-phy@e450 {
1416 compatible = "rockchip,rk3399-usb2phy";
1417 reg = <0xe450 0x10>;
1418 clocks = <&cru SCLK_USB2PHY0_REF>;
1419 clock-names = "phyclk";
1421 clock-output-names = "clk_usbphy0_480m";
1422 status = "disabled";
1424 u2phy0_otg: otg-port {
1426 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
1427 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
1428 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
1429 interrupt-names = "otg-bvalid", "otg-id",
1431 status = "disabled";
1434 u2phy0_host: host-port {
1436 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
1437 interrupt-names = "linestate";
1438 status = "disabled";
1442 u2phy1: usb2-phy@e460 {
1443 compatible = "rockchip,rk3399-usb2phy";
1444 reg = <0xe460 0x10>;
1445 clocks = <&cru SCLK_USB2PHY1_REF>;
1446 clock-names = "phyclk";
1448 clock-output-names = "clk_usbphy1_480m";
1449 status = "disabled";
1451 u2phy1_otg: otg-port {
1453 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>,
1454 <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH 0>,
1455 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH 0>;
1456 interrupt-names = "otg-bvalid", "otg-id",
1458 status = "disabled";
1461 u2phy1_host: host-port {
1463 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH 0>;
1464 interrupt-names = "linestate";
1465 status = "disabled";
1470 tcphy0: phy@ff7c0000 {
1471 compatible = "rockchip,rk3399-typec-phy";
1472 reg = <0x0 0xff7c0000 0x0 0x40000>;
1473 rockchip,grf = <&grf>;
1475 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1476 <&cru SCLK_UPHY0_TCPDPHY_REF>;
1477 clock-names = "tcpdcore", "tcpdphy-ref";
1478 assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>;
1479 assigned-clock-rates = <50000000>;
1480 power-domains = <&power RK3399_PD_TCPD0>;
1481 resets = <&cru SRST_UPHY0>,
1482 <&cru SRST_UPHY0_PIPE_L00>,
1483 <&cru SRST_P_UPHY0_TCPHY>;
1484 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1485 rockchip,typec-conn-dir = <0xe580 0 16>;
1486 rockchip,usb3tousb2-en = <0xe580 3 19>;
1487 rockchip,usb3-host-disable = <0x2434 0 16>;
1488 rockchip,usb3-host-port = <0x2434 12 28>;
1489 rockchip,external-psm = <0xe588 14 30>;
1490 rockchip,pipe-status = <0xe5c0 0 0>;
1491 rockchip,uphy-dp-sel = <0x6268 19 19>;
1492 status = "disabled";
1494 tcphy0_dp: dp-port {
1498 tcphy0_usb3: usb3-port {
1503 tcphy1: phy@ff800000 {
1504 compatible = "rockchip,rk3399-typec-phy";
1505 reg = <0x0 0xff800000 0x0 0x40000>;
1506 rockchip,grf = <&grf>;
1508 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1509 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1510 clock-names = "tcpdcore", "tcpdphy-ref";
1511 assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>;
1512 assigned-clock-rates = <50000000>;
1513 power-domains = <&power RK3399_PD_TCPD1>;
1514 resets = <&cru SRST_UPHY1>,
1515 <&cru SRST_UPHY1_PIPE_L00>,
1516 <&cru SRST_P_UPHY1_TCPHY>;
1517 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1518 rockchip,typec-conn-dir = <0xe58c 0 16>;
1519 rockchip,usb3tousb2-en = <0xe58c 3 19>;
1520 rockchip,usb3-host-disable = <0x2444 0 16>;
1521 rockchip,usb3-host-port = <0x2444 12 28>;
1522 rockchip,external-psm = <0xe594 14 30>;
1523 rockchip,pipe-status = <0xe5c0 16 16>;
1524 rockchip,uphy-dp-sel = <0x6268 3 19>;
1525 status = "disabled";
1527 tcphy1_dp: dp-port {
1531 tcphy1_usb3: usb3-port {
1537 compatible = "snps,dw-wdt";
1538 reg = <0x0 0xff848000 0x0 0x100>;
1539 clocks = <&cru PCLK_WDT>;
1540 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH 0>;
1543 rktimer: rktimer@ff850000 {
1544 compatible = "rockchip,rk3399-timer";
1545 reg = <0x0 0xff850000 0x0 0x1000>;
1546 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>;
1547 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>;
1548 clock-names = "pclk", "timer";
1551 spdif: spdif@ff870000 {
1552 compatible = "rockchip,rk3399-spdif";
1553 reg = <0x0 0xff870000 0x0 0x1000>;
1554 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>;
1555 dmas = <&dmac_bus 7>;
1557 clock-names = "mclk", "hclk";
1558 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
1559 pinctrl-names = "default";
1560 pinctrl-0 = <&spdif_bus>;
1561 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1562 status = "disabled";
1565 i2s0: i2s@ff880000 {
1566 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1567 reg = <0x0 0xff880000 0x0 0x1000>;
1568 rockchip,grf = <&grf>;
1569 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH 0>;
1570 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1571 dma-names = "tx", "rx";
1572 clock-names = "i2s_clk", "i2s_hclk";
1573 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>;
1574 pinctrl-names = "default";
1575 pinctrl-0 = <&i2s0_8ch_bus>;
1576 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1577 status = "disabled";
1580 i2s1: i2s@ff890000 {
1581 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1582 reg = <0x0 0xff890000 0x0 0x1000>;
1583 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 0>;
1584 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
1585 dma-names = "tx", "rx";
1586 clock-names = "i2s_clk", "i2s_hclk";
1587 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>;
1588 pinctrl-names = "default";
1589 pinctrl-0 = <&i2s1_2ch_bus>;
1590 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1591 status = "disabled";
1594 i2s2: i2s@ff8a0000 {
1595 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1596 reg = <0x0 0xff8a0000 0x0 0x1000>;
1597 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>;
1598 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
1599 dma-names = "tx", "rx";
1600 clock-names = "i2s_clk", "i2s_hclk";
1601 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
1602 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1603 status = "disabled";
1607 compatible = "arm,malit860",
1612 reg = <0x0 0xff9a0000 0x0 0x10000>;
1614 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>,
1615 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>,
1616 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>;
1617 interrupt-names = "GPU", "JOB", "MMU";
1619 clocks = <&cru ACLK_GPU>;
1620 clock-names = "clk_mali";
1621 #cooling-cells = <2>; /* min followed by max */
1622 operating-points-v2 = <&gpu_opp_table>;
1623 power-domains = <&power RK3399_PD_GPU>;
1624 power-off-delay-ms = <200>;
1625 status = "disabled";
1627 gpu_power_model: power_model {
1628 compatible = "arm,mali-simple-power-model";
1631 static-power = <300>;
1632 dynamic-power = <396>;
1633 ts = <32000 4700 (-80) 2>;
1634 thermal-zone = "gpu-thermal";
1638 gpu_opp_table: gpu_opp_table {
1639 compatible = "operating-points-v2";
1643 opp-hz = /bits/ 64 <200000000>;
1644 opp-microvolt = <900000>;
1647 opp-hz = /bits/ 64 <300000000>;
1648 opp-microvolt = <900000>;
1651 opp-hz = /bits/ 64 <400000000>;
1652 opp-microvolt = <900000>;
1657 vopl: vop@ff8f0000 {
1658 compatible = "rockchip,rk3399-vop-lit";
1659 reg = <0x0 0xff8f0000 0x0 0x3efc>;
1660 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
1661 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>;
1662 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1663 resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>;
1664 reset-names = "axi", "ahb", "dclk";
1665 power-domains = <&power RK3399_PD_VOPL>;
1666 iommus = <&vopl_mmu>;
1667 status = "disabled";
1670 #address-cells = <1>;
1673 vopl_out_mipi: endpoint@0 {
1675 remote-endpoint = <&mipi_in_vopl>;
1678 vopl_out_edp: endpoint@1 {
1680 remote-endpoint = <&edp_in_vopl>;
1683 vopl_out_hdmi: endpoint@2 {
1685 remote-endpoint = <&hdmi_in_vopl>;
1690 vop1_pwm: voppwm@ff8f01a0 {
1691 compatible = "rockchip,vop-pwm";
1692 reg = <0x0 0xff8f01a0 0x0 0x10>;
1694 pinctrl-names = "default";
1695 pinctrl-0 = <&vop1_pwm_pin>;
1696 clocks = <&cru SCLK_VOP1_PWM>;
1697 clock-names = "pwm";
1698 status = "disabled";
1701 vopl_mmu: iommu@ff8f3f00 {
1702 compatible = "rockchip,iommu";
1703 reg = <0x0 0xff8f3f00 0x0 0x100>;
1704 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
1705 interrupt-names = "vopl_mmu";
1707 status = "disabled";
1710 vopb: vop@ff900000 {
1711 compatible = "rockchip,rk3399-vop-big";
1712 reg = <0x0 0xff900000 0x0 0x3efc>;
1713 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>;
1714 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
1715 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1716 resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>;
1717 reset-names = "axi", "ahb", "dclk";
1718 power-domains = <&power RK3399_PD_VOPB>;
1719 iommus = <&vopb_mmu>;
1720 status = "disabled";
1723 #address-cells = <1>;
1726 vopb_out_edp: endpoint@0 {
1728 remote-endpoint = <&edp_in_vopb>;
1731 vopb_out_mipi: endpoint@1 {
1733 remote-endpoint = <&mipi_in_vopb>;
1736 vopb_out_hdmi: endpoint@2 {
1738 remote-endpoint = <&hdmi_in_vopb>;
1743 vop0_pwm: voppwm@ff9001a0 {
1744 compatible = "rockchip,vop-pwm";
1745 reg = <0x0 0xff9001a0 0x0 0x10>;
1747 pinctrl-names = "default";
1748 pinctrl-0 = <&vop0_pwm_pin>;
1749 clocks = <&cru SCLK_VOP0_PWM>;
1750 clock-names = "pwm";
1751 status = "disabled";
1754 vopb_mmu: iommu@ff903f00 {
1755 compatible = "rockchip,iommu";
1756 reg = <0x0 0xff903f00 0x0 0x100>;
1757 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>;
1758 interrupt-names = "vopb_mmu";
1760 status = "disabled";
1763 hdmi: hdmi@ff940000 {
1764 compatible = "rockchip,rk3399-dw-hdmi";
1765 reg = <0x0 0xff940000 0x0 0x20000>;
1767 rockchip,grf = <&grf>;
1768 power-domains = <&power RK3399_PD_HDCP>;
1769 pinctrl-names = "default";
1770 pinctrl-0 = <&hdmi_i2c_xfer>;
1771 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>;
1772 clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_SFR>, <&cru SCLK_HDMI_SFR>, <&cru PCLK_EDP_CTRL>;
1773 clock-names = "iahb", "isfr", "vpll", "grf";
1774 status = "disabled";
1778 #address-cells = <1>;
1780 hdmi_in_vopb: endpoint@0 {
1782 remote-endpoint = <&vopb_out_hdmi>;
1784 hdmi_in_vopl: endpoint@1 {
1786 remote-endpoint = <&vopl_out_hdmi>;
1792 mipi_dsi: mipi@ff960000 {
1793 compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
1794 reg = <0x0 0xff960000 0x0 0x8000>;
1795 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>;
1796 clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>,
1797 <&cru SCLK_DPHY_TX0_CFG>;
1798 clock-names = "ref", "pclk", "phy_cfg";
1799 power-domains = <&power RK3399_PD_VIO>;
1800 rockchip,grf = <&grf>;
1801 #address-cells = <1>;
1803 status = "disabled";
1806 #address-cells = <1>;
1811 #address-cells = <1>;
1814 mipi_in_vopb: endpoint@0 {
1816 remote-endpoint = <&vopb_out_mipi>;
1818 mipi_in_vopl: endpoint@1 {
1820 remote-endpoint = <&vopl_out_mipi>;
1827 compatible = "rockchip,rk3399-edp";
1828 reg = <0x0 0xff970000 0x0 0x8000>;
1829 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH 0>;
1830 clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>;
1831 clock-names = "dp", "pclk";
1832 power-domains = <&power RK3399_PD_EDP>;
1833 resets = <&cru SRST_P_EDP_CTRL>;
1835 rockchip,grf = <&grf>;
1836 status = "disabled";
1837 pinctrl-names = "default";
1838 pinctrl-0 = <&edp_hpd>;
1841 #address-cells = <1>;
1846 #address-cells = <1>;
1849 edp_in_vopb: endpoint@0 {
1851 remote-endpoint = <&vopb_out_edp>;
1854 edp_in_vopl: endpoint@1 {
1856 remote-endpoint = <&vopl_out_edp>;
1862 display_subsystem: display-subsystem {
1863 compatible = "rockchip,display-subsystem";
1864 ports = <&vopl_out>, <&vopb_out>;
1865 status = "disabled";
1869 compatible = "rockchip,rk3399-pinctrl";
1870 rockchip,grf = <&grf>;
1871 rockchip,pmu = <&pmugrf>;
1872 #address-cells = <0x2>;
1873 #size-cells = <0x2>;
1876 gpio0: gpio0@ff720000 {
1877 compatible = "rockchip,gpio-bank";
1878 reg = <0x0 0xff720000 0x0 0x100>;
1879 clocks = <&pmucru PCLK_GPIO0_PMU>;
1880 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>;
1883 #gpio-cells = <0x2>;
1885 interrupt-controller;
1886 #interrupt-cells = <0x2>;
1889 gpio1: gpio1@ff730000 {
1890 compatible = "rockchip,gpio-bank";
1891 reg = <0x0 0xff730000 0x0 0x100>;
1892 clocks = <&pmucru PCLK_GPIO1_PMU>;
1893 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>;
1896 #gpio-cells = <0x2>;
1898 interrupt-controller;
1899 #interrupt-cells = <0x2>;
1902 gpio2: gpio2@ff780000 {
1903 compatible = "rockchip,gpio-bank";
1904 reg = <0x0 0xff780000 0x0 0x100>;
1905 clocks = <&cru PCLK_GPIO2>;
1906 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>;
1909 #gpio-cells = <0x2>;
1911 interrupt-controller;
1912 #interrupt-cells = <0x2>;
1915 gpio3: gpio3@ff788000 {
1916 compatible = "rockchip,gpio-bank";
1917 reg = <0x0 0xff788000 0x0 0x100>;
1918 clocks = <&cru PCLK_GPIO3>;
1919 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
1922 #gpio-cells = <0x2>;
1924 interrupt-controller;
1925 #interrupt-cells = <0x2>;
1928 gpio4: gpio4@ff790000 {
1929 compatible = "rockchip,gpio-bank";
1930 reg = <0x0 0xff790000 0x0 0x100>;
1931 clocks = <&cru PCLK_GPIO4>;
1932 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
1935 #gpio-cells = <0x2>;
1937 interrupt-controller;
1938 #interrupt-cells = <0x2>;
1941 pcfg_pull_up: pcfg-pull-up {
1945 pcfg_pull_down: pcfg-pull-down {
1949 pcfg_pull_none: pcfg-pull-none {
1953 pcfg_pull_up_20ma: pcfg-pull-up-20ma {
1955 drive-strength = <20>;
1958 pcfg_pull_none_20ma: pcfg-pull-none-20ma {
1960 drive-strength = <20>;
1963 pcfg_pull_none_18ma: pcfg-pull-none-18ma {
1965 drive-strength = <18>;
1968 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1970 drive-strength = <12>;
1973 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1975 drive-strength = <8>;
1978 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1980 drive-strength = <4>;
1983 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1985 drive-strength = <2>;
1988 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
1990 drive-strength = <12>;
1993 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
1995 drive-strength = <13>;
1998 pcfg_output_high: pcfg-output-high {
2002 pcfg_output_low: pcfg-output-low {
2006 pcfg_input: pcfg-input {
2011 emmc_pwr: emmc-pwr {
2013 <0 5 RK_FUNC_1 &pcfg_pull_up>;
2018 rgmii_pins: rgmii-pins {
2021 <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>,
2023 <3 14 RK_FUNC_1 &pcfg_pull_none>,
2025 <3 13 RK_FUNC_1 &pcfg_pull_none>,
2027 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
2029 <3 11 RK_FUNC_1 &pcfg_pull_none>,
2031 <3 9 RK_FUNC_1 &pcfg_pull_none>,
2033 <3 8 RK_FUNC_1 &pcfg_pull_none>,
2035 <3 7 RK_FUNC_1 &pcfg_pull_none>,
2037 <3 6 RK_FUNC_1 &pcfg_pull_none>,
2039 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
2041 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>,
2043 <3 3 RK_FUNC_1 &pcfg_pull_none>,
2045 <3 2 RK_FUNC_1 &pcfg_pull_none>,
2047 <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>,
2049 <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>;
2052 rmii_pins: rmii-pins {
2055 <3 13 RK_FUNC_1 &pcfg_pull_none>,
2057 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
2059 <3 11 RK_FUNC_1 &pcfg_pull_none>,
2061 <3 10 RK_FUNC_1 &pcfg_pull_none>,
2063 <3 9 RK_FUNC_1 &pcfg_pull_none>,
2065 <3 8 RK_FUNC_1 &pcfg_pull_none>,
2067 <3 7 RK_FUNC_1 &pcfg_pull_none>,
2069 <3 6 RK_FUNC_1 &pcfg_pull_none>,
2071 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
2073 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>;
2078 i2c0_xfer: i2c0-xfer {
2080 <1 15 RK_FUNC_2 &pcfg_pull_none>,
2081 <1 16 RK_FUNC_2 &pcfg_pull_none>;
2086 i2c1_xfer: i2c1-xfer {
2088 <4 2 RK_FUNC_1 &pcfg_pull_none>,
2089 <4 1 RK_FUNC_1 &pcfg_pull_none>;
2094 i2c2_xfer: i2c2-xfer {
2096 <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
2097 <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>;
2102 i2c3_xfer: i2c3-xfer {
2104 <4 17 RK_FUNC_1 &pcfg_pull_none>,
2105 <4 16 RK_FUNC_1 &pcfg_pull_none>;
2108 i2c3_gpio: i2c3_gpio {
2110 <4 17 RK_FUNC_GPIO &pcfg_pull_none>,
2111 <4 16 RK_FUNC_GPIO &pcfg_pull_none>;
2117 i2c4_xfer: i2c4-xfer {
2119 <1 12 RK_FUNC_1 &pcfg_pull_none>,
2120 <1 11 RK_FUNC_1 &pcfg_pull_none>;
2125 i2c5_xfer: i2c5-xfer {
2127 <3 11 RK_FUNC_2 &pcfg_pull_none>,
2128 <3 10 RK_FUNC_2 &pcfg_pull_none>;
2133 i2c6_xfer: i2c6-xfer {
2135 <2 10 RK_FUNC_2 &pcfg_pull_none>,
2136 <2 9 RK_FUNC_2 &pcfg_pull_none>;
2141 i2c7_xfer: i2c7-xfer {
2143 <2 8 RK_FUNC_2 &pcfg_pull_none>,
2144 <2 7 RK_FUNC_2 &pcfg_pull_none>;
2149 i2c8_xfer: i2c8-xfer {
2151 <1 21 RK_FUNC_1 &pcfg_pull_none>,
2152 <1 20 RK_FUNC_1 &pcfg_pull_none>;
2157 i2s0_8ch_bus: i2s0-8ch-bus {
2159 <3 24 RK_FUNC_1 &pcfg_pull_none>,
2160 <3 25 RK_FUNC_1 &pcfg_pull_none>,
2161 <3 26 RK_FUNC_1 &pcfg_pull_none>,
2162 <3 27 RK_FUNC_1 &pcfg_pull_none>,
2163 <3 28 RK_FUNC_1 &pcfg_pull_none>,
2164 <3 29 RK_FUNC_1 &pcfg_pull_none>,
2165 <3 30 RK_FUNC_1 &pcfg_pull_none>,
2166 <3 31 RK_FUNC_1 &pcfg_pull_none>,
2167 <4 0 RK_FUNC_1 &pcfg_pull_none>;
2172 i2s1_2ch_bus: i2s1-2ch-bus {
2174 <4 3 RK_FUNC_1 &pcfg_pull_none>,
2175 <4 4 RK_FUNC_1 &pcfg_pull_none>,
2176 <4 5 RK_FUNC_1 &pcfg_pull_none>,
2177 <4 6 RK_FUNC_1 &pcfg_pull_none>,
2178 <4 7 RK_FUNC_1 &pcfg_pull_none>;
2183 sdio0_bus1: sdio0-bus1 {
2185 <2 20 RK_FUNC_1 &pcfg_pull_up>;
2188 sdio0_bus4: sdio0-bus4 {
2190 <2 20 RK_FUNC_1 &pcfg_pull_up>,
2191 <2 21 RK_FUNC_1 &pcfg_pull_up>,
2192 <2 22 RK_FUNC_1 &pcfg_pull_up>,
2193 <2 23 RK_FUNC_1 &pcfg_pull_up>;
2196 sdio0_cmd: sdio0-cmd {
2198 <2 24 RK_FUNC_1 &pcfg_pull_up>;
2201 sdio0_clk: sdio0-clk {
2203 <2 25 RK_FUNC_1 &pcfg_pull_none>;
2206 sdio0_cd: sdio0-cd {
2208 <2 26 RK_FUNC_1 &pcfg_pull_up>;
2211 sdio0_pwr: sdio0-pwr {
2213 <2 27 RK_FUNC_1 &pcfg_pull_up>;
2216 sdio0_bkpwr: sdio0-bkpwr {
2218 <2 28 RK_FUNC_1 &pcfg_pull_up>;
2221 sdio0_wp: sdio0-wp {
2223 <0 3 RK_FUNC_1 &pcfg_pull_up>;
2226 sdio0_int: sdio0-int {
2228 <0 4 RK_FUNC_1 &pcfg_pull_up>;
2233 sdmmc_bus1: sdmmc-bus1 {
2235 <4 8 RK_FUNC_1 &pcfg_pull_up>;
2238 sdmmc_bus4: sdmmc-bus4 {
2240 <4 8 RK_FUNC_1 &pcfg_pull_up>,
2241 <4 9 RK_FUNC_1 &pcfg_pull_up>,
2242 <4 10 RK_FUNC_1 &pcfg_pull_up>,
2243 <4 11 RK_FUNC_1 &pcfg_pull_up>;
2246 sdmmc_clk: sdmmc-clk {
2248 <4 12 RK_FUNC_1 &pcfg_pull_none>;
2251 sdmmc_cmd: sdmmc-cmd {
2253 <4 13 RK_FUNC_1 &pcfg_pull_up>;
2256 sdmmc_cd: sdmcc-cd {
2258 <0 7 RK_FUNC_1 &pcfg_pull_up>;
2261 sdmmc_wp: sdmmc-wp {
2263 <0 8 RK_FUNC_1 &pcfg_pull_up>;
2268 spdif_bus: spdif-bus {
2270 <4 21 RK_FUNC_1 &pcfg_pull_none>;
2273 spdif_bus_1: spdif-bus-1 {
2275 <3 16 RK_FUNC_3 &pcfg_pull_none>;
2280 spi0_clk: spi0-clk {
2282 <3 6 RK_FUNC_2 &pcfg_pull_up>;
2284 spi0_cs0: spi0-cs0 {
2286 <3 7 RK_FUNC_2 &pcfg_pull_up>;
2288 spi0_cs1: spi0-cs1 {
2290 <3 8 RK_FUNC_2 &pcfg_pull_up>;
2294 <3 5 RK_FUNC_2 &pcfg_pull_up>;
2298 <3 4 RK_FUNC_2 &pcfg_pull_up>;
2303 spi1_clk: spi1-clk {
2305 <1 9 RK_FUNC_2 &pcfg_pull_up>;
2307 spi1_cs0: spi1-cs0 {
2309 <1 10 RK_FUNC_2 &pcfg_pull_up>;
2313 <1 7 RK_FUNC_2 &pcfg_pull_up>;
2317 <1 8 RK_FUNC_2 &pcfg_pull_up>;
2322 spi2_clk: spi2-clk {
2324 <2 11 RK_FUNC_1 &pcfg_pull_up>;
2326 spi2_cs0: spi2-cs0 {
2328 <2 12 RK_FUNC_1 &pcfg_pull_up>;
2332 <2 9 RK_FUNC_1 &pcfg_pull_up>;
2336 <2 10 RK_FUNC_1 &pcfg_pull_up>;
2341 spi3_clk: spi3-clk {
2343 <1 17 RK_FUNC_1 &pcfg_pull_up>;
2345 spi3_cs0: spi3-cs0 {
2347 <1 18 RK_FUNC_1 &pcfg_pull_up>;
2351 <1 15 RK_FUNC_1 &pcfg_pull_up>;
2355 <1 16 RK_FUNC_1 &pcfg_pull_up>;
2360 spi4_clk: spi4-clk {
2362 <3 2 RK_FUNC_2 &pcfg_pull_up>;
2364 spi4_cs0: spi4-cs0 {
2366 <3 3 RK_FUNC_2 &pcfg_pull_up>;
2370 <3 0 RK_FUNC_2 &pcfg_pull_up>;
2374 <3 1 RK_FUNC_2 &pcfg_pull_up>;
2379 spi5_clk: spi5-clk {
2381 <2 22 RK_FUNC_2 &pcfg_pull_up>;
2383 spi5_cs0: spi5-cs0 {
2385 <2 23 RK_FUNC_2 &pcfg_pull_up>;
2389 <2 20 RK_FUNC_2 &pcfg_pull_up>;
2393 <2 21 RK_FUNC_2 &pcfg_pull_up>;
2398 otp_gpio: otp-gpio {
2399 rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
2403 rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>;
2408 uart0_xfer: uart0-xfer {
2410 <2 16 RK_FUNC_1 &pcfg_pull_up>,
2411 <2 17 RK_FUNC_1 &pcfg_pull_none>;
2414 uart0_cts: uart0-cts {
2416 <2 18 RK_FUNC_1 &pcfg_pull_none>;
2419 uart0_rts: uart0-rts {
2421 <2 19 RK_FUNC_1 &pcfg_pull_none>;
2426 uart1_xfer: uart1-xfer {
2428 <3 12 RK_FUNC_2 &pcfg_pull_up>,
2429 <3 13 RK_FUNC_2 &pcfg_pull_none>;
2434 uart2a_xfer: uart2a-xfer {
2436 <4 8 RK_FUNC_2 &pcfg_pull_up>,
2437 <4 9 RK_FUNC_2 &pcfg_pull_none>;
2442 uart2b_xfer: uart2b-xfer {
2444 <4 16 RK_FUNC_2 &pcfg_pull_up>,
2445 <4 17 RK_FUNC_2 &pcfg_pull_none>;
2450 uart2c_xfer: uart2c-xfer {
2452 <4 19 RK_FUNC_1 &pcfg_pull_up>,
2453 <4 20 RK_FUNC_1 &pcfg_pull_none>;
2458 uart3_xfer: uart3-xfer {
2460 <3 14 RK_FUNC_2 &pcfg_pull_up>,
2461 <3 15 RK_FUNC_2 &pcfg_pull_none>;
2464 uart3_cts: uart3-cts {
2466 <3 18 RK_FUNC_2 &pcfg_pull_none>;
2469 uart3_rts: uart3-rts {
2471 <3 19 RK_FUNC_2 &pcfg_pull_none>;
2476 uart4_xfer: uart4-xfer {
2478 <1 7 RK_FUNC_1 &pcfg_pull_up>,
2479 <1 8 RK_FUNC_1 &pcfg_pull_none>;
2484 uarthdcp_xfer: uarthdcp-xfer {
2486 <4 21 RK_FUNC_2 &pcfg_pull_up>,
2487 <4 22 RK_FUNC_2 &pcfg_pull_none>;
2492 pwm0_pin: pwm0-pin {
2494 <4 18 RK_FUNC_1 &pcfg_pull_none>;
2497 vop0_pwm_pin: vop0-pwm-pin {
2499 <4 18 RK_FUNC_2 &pcfg_pull_none>;
2504 pwm1_pin: pwm1-pin {
2506 <4 22 RK_FUNC_1 &pcfg_pull_none>;
2509 vop1_pwm_pin: vop1-pwm-pin {
2511 <4 18 RK_FUNC_3 &pcfg_pull_none>;
2516 pwm2_pin: pwm2-pin {
2518 <1 19 RK_FUNC_1 &pcfg_pull_none>;
2523 pwm3a_pin: pwm3a-pin {
2525 <0 6 RK_FUNC_1 &pcfg_pull_none>;
2530 pwm3b_pin: pwm3b-pin {
2532 <1 14 RK_FUNC_1 &pcfg_pull_none>;
2539 <4 23 RK_FUNC_2 &pcfg_pull_none>;
2544 hdmi_i2c_xfer: hdmi-i2c-xfer {
2546 <4 17 RK_FUNC_3 &pcfg_pull_none>,
2547 <4 16 RK_FUNC_3 &pcfg_pull_none>;
2550 hdmi_cec: hdmi-cec {
2552 <4 23 RK_FUNC_1 &pcfg_pull_none>;
2557 pcie_clkreqn: pci-clkreqn {
2559 <2 26 RK_FUNC_2 &pcfg_pull_none>;
2562 pcie_clkreqnb: pci-clkreqnb {
2564 <4 24 RK_FUNC_1 &pcfg_pull_none>;