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/thermal/thermal.h>
52 compatible = "rockchip,rk3399";
54 interrupt-parent = <&gic>;
76 compatible = "arm,psci-1.0";
112 compatible = "arm,cortex-a53", "arm,armv8";
114 enable-method = "psci";
115 #cooling-cells = <2>; /* min followed by max */
116 clocks = <&cru ARMCLKL>;
117 cpu-idle-states = <&cpu_sleep>;
118 operating-points-v2 = <&cluster0_opp>;
123 compatible = "arm,cortex-a53", "arm,armv8";
125 enable-method = "psci";
126 clocks = <&cru ARMCLKL>;
127 cpu-idle-states = <&cpu_sleep>;
128 operating-points-v2 = <&cluster0_opp>;
133 compatible = "arm,cortex-a53", "arm,armv8";
135 enable-method = "psci";
136 clocks = <&cru ARMCLKL>;
137 cpu-idle-states = <&cpu_sleep>;
138 operating-points-v2 = <&cluster0_opp>;
143 compatible = "arm,cortex-a53", "arm,armv8";
145 enable-method = "psci";
146 clocks = <&cru ARMCLKL>;
147 cpu-idle-states = <&cpu_sleep>;
148 operating-points-v2 = <&cluster0_opp>;
153 compatible = "arm,cortex-a72", "arm,armv8";
155 enable-method = "psci";
156 #cooling-cells = <2>; /* min followed by max */
157 clocks = <&cru ARMCLKB>;
158 cpu-idle-states = <&cpu_sleep>;
159 operating-points-v2 = <&cluster1_opp>;
164 compatible = "arm,cortex-a72", "arm,armv8";
166 enable-method = "psci";
167 clocks = <&cru ARMCLKB>;
168 cpu-idle-states = <&cpu_sleep>;
169 operating-points-v2 = <&cluster1_opp>;
173 entry-method = "psci";
174 cpu_sleep: cpu-sleep-0 {
175 compatible = "arm,idle-state";
177 arm,psci-suspend-param = <0x0010000>;
178 entry-latency-us = <350>;
179 exit-latency-us = <600>;
180 min-residency-us = <1150>;
185 cluster0_opp: opp_table0 {
186 compatible = "operating-points-v2";
190 opp-hz = /bits/ 64 <408000000>;
191 opp-microvolt = <800000>;
192 clock-latency-ns = <40000>;
195 opp-hz = /bits/ 64 <600000000>;
196 opp-microvolt = <800000>;
199 opp-hz = /bits/ 64 <816000000>;
200 opp-microvolt = <800000>;
203 opp-hz = /bits/ 64 <1008000000>;
204 opp-microvolt = <875000>;
207 opp-hz = /bits/ 64 <1200000000>;
208 opp-microvolt = <925000>;
211 opp-hz = /bits/ 64 <1416000000>;
212 opp-microvolt = <1025000>;
216 cluster1_opp: opp_table1 {
217 compatible = "operating-points-v2";
221 opp-hz = /bits/ 64 <408000000>;
222 opp-microvolt = <800000>;
223 clock-latency-ns = <40000>;
226 opp-hz = /bits/ 64 <600000000>;
227 opp-microvolt = <800000>;
230 opp-hz = /bits/ 64 <816000000>;
231 opp-microvolt = <800000>;
234 opp-hz = /bits/ 64 <1008000000>;
235 opp-microvolt = <850000>;
238 opp-hz = /bits/ 64 <1200000000>;
239 opp-microvolt = <925000>;
244 compatible = "arm,armv8-timer";
245 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
246 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
247 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
248 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
252 compatible = "arm,armv8-pmuv3";
253 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW>;
257 compatible = "fixed-clock";
259 clock-frequency = <24000000>;
260 clock-output-names = "xin24m";
264 compatible = "arm,amba-bus";
265 #address-cells = <2>;
269 dmac_bus: dma-controller@ff6d0000 {
270 compatible = "arm,pl330", "arm,primecell";
271 reg = <0x0 0xff6d0000 0x0 0x4000>;
272 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
273 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
275 clocks = <&cru ACLK_DMAC0_PERILP>;
276 clock-names = "apb_pclk";
279 dmac_peri: dma-controller@ff6e0000 {
280 compatible = "arm,pl330", "arm,primecell";
281 reg = <0x0 0xff6e0000 0x0 0x4000>;
282 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
283 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
285 clocks = <&cru ACLK_DMAC1_PERILP>;
286 clock-names = "apb_pclk";
291 compatible = "rockchip,rk3399-gmac";
292 reg = <0x0 0xfe300000 0x0 0x10000>;
293 rockchip,grf = <&grf>;
294 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
295 interrupt-names = "macirq";
296 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
297 <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
298 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
300 clock-names = "stmmaceth", "mac_clk_rx",
301 "mac_clk_tx", "clk_mac_ref",
302 "clk_mac_refout", "aclk_mac",
304 resets = <&cru SRST_A_GMAC>;
305 reset-names = "stmmaceth";
310 compatible = "rockchip,rk3399-emmc-phy";
311 reg-offset = <0xf780>;
313 rockchip,grf = <&grf>;
317 sdio0: dwmmc@fe310000 {
318 compatible = "rockchip,rk3399-dw-mshc",
319 "rockchip,rk3288-dw-mshc";
320 reg = <0x0 0xfe310000 0x0 0x4000>;
321 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
322 clock-freq-min-max = <400000 150000000>;
323 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
324 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
325 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
326 fifo-depth = <0x100>;
330 sdmmc: dwmmc@fe320000 {
331 compatible = "rockchip,rk3399-dw-mshc",
332 "rockchip,rk3288-dw-mshc";
333 reg = <0x0 0xfe320000 0x0 0x4000>;
334 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
335 clock-freq-min-max = <400000 150000000>;
336 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
337 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
338 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
339 fifo-depth = <0x100>;
343 sdhci: sdhci@fe330000 {
344 compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
345 reg = <0x0 0xfe330000 0x0 0x10000>;
346 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
347 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
348 clock-names = "clk_xin", "clk_ahb";
349 assigned-clocks = <&cru SCLK_EMMC>;
350 assigned-clock-parents = <&cru PLL_CPLL>;
351 assigned-clock-rates = <200000000>;
353 phy-names = "phy_arasan";
358 compatible = "rockchip,rk3399-usb-phy";
359 rockchip,grf = <&grf>;
360 #address-cells = <1>;
363 usb2phy0: usb2-phy0 {
369 usb2phy1: usb2-phy1 {
376 usb_host0_ehci: usb@fe380000 {
377 compatible = "generic-ehci";
378 reg = <0x0 0xfe380000 0x0 0x20000>;
379 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
380 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>;
381 clock-names = "hclk_host0", "hclk_host0_arb";
383 phy-names = "usb2_phy0";
387 usb_host0_ohci: usb@fe3a0000 {
388 compatible = "generic-ohci";
389 reg = <0x0 0xfe3a0000 0x0 0x20000>;
390 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
391 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>;
392 clock-names = "hclk_host0", "hclk_host0_arb";
396 usb_host1_ehci: usb@fe3c0000 {
397 compatible = "generic-ehci";
398 reg = <0x0 0xfe3c0000 0x0 0x20000>;
399 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
400 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>;
401 clock-names = "hclk_host1", "hclk_host1_arb";
403 phy-names = "usb2_phy1";
407 usb_host1_ohci: usb@fe3e0000 {
408 compatible = "generic-ohci";
409 reg = <0x0 0xfe3e0000 0x0 0x20000>;
410 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
411 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>;
412 clock-names = "hclk_host1", "hclk_host1_arb";
416 usbdrd3_0: usb@fe800000 {
417 compatible = "rockchip,dwc3";
418 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
419 <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_RKSOC_AXI_PERF>,
420 <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>;
421 clock-names = "clk_usb3otg0_ref", "clk_usb3otg0_suspend",
422 "aclk_usb3otg0", "aclk_usb3_rksoc_axi_perf",
423 "aclk_usb3", "aclk_usb3_grf";
424 #address-cells = <2>;
428 usbdrd_dwc3_0: dwc3 {
429 compatible = "snps,dwc3";
430 reg = <0x0 0xfe800000 0x0 0x100000>;
431 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
434 snps,dis_enblslpm_quirk;
435 snps,phyif_utmi_16_bits;
436 snps,dis_u2_freeclk_exists_quirk;
437 snps,dis_del_phy_power_chg_quirk;
442 usbdrd3_1: usb@fe900000 {
443 compatible = "rockchip,dwc3";
444 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>,
445 <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_RKSOC_AXI_PERF>,
446 <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>;
447 clock-names = "clk_usb3otg1_ref", "clk_usb3otg1_suspend",
448 "aclk_usb3otg1", "aclk_usb3_rksoc_axi_perf",
449 "aclk_usb3", "aclk_usb3_grf";
450 #address-cells = <2>;
454 usbdrd_dwc3_1: dwc3 {
455 compatible = "snps,dwc3";
456 reg = <0x0 0xfe900000 0x0 0x100000>;
457 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
460 snps,dis_enblslpm_quirk;
461 snps,phyif_utmi_16_bits;
462 snps,dis_u2_freeclk_exists_quirk;
463 snps,dis_del_phy_power_chg_quirk;
468 gic: interrupt-controller@fee00000 {
469 compatible = "arm,gic-v3";
470 #interrupt-cells = <3>;
471 #address-cells = <2>;
474 interrupt-controller;
476 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
477 <0x0 0xfef00000 0 0xc0000>, /* GICR */
478 <0x0 0xfff00000 0 0x10000>, /* GICC */
479 <0x0 0xfff10000 0 0x10000>, /* GICH */
480 <0x0 0xfff20000 0 0x10000>; /* GICV */
481 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
482 its: interrupt-controller@fee20000 {
483 compatible = "arm,gic-v3-its";
485 reg = <0x0 0xfee20000 0x0 0x20000>;
489 saradc: saradc@ff100000 {
490 compatible = "rockchip,rk3399-saradc";
491 reg = <0x0 0xff100000 0x0 0x100>;
492 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
493 #io-channel-cells = <1>;
494 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
495 clock-names = "saradc", "apb_pclk";
500 compatible = "rockchip,rk3399-i2c";
501 reg = <0x0 0xff3c0000 0x0 0x1000>;
502 clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
503 clock-names = "i2c", "pclk";
504 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&i2c0_xfer>;
507 #address-cells = <1>;
513 compatible = "rockchip,rk3399-i2c";
514 reg = <0x0 0xff110000 0x0 0x1000>;
515 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
516 clock-names = "i2c", "pclk";
517 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
518 pinctrl-names = "default";
519 pinctrl-0 = <&i2c1_xfer>;
520 #address-cells = <1>;
526 compatible = "rockchip,rk3399-i2c";
527 reg = <0x0 0xff120000 0x0 0x1000>;
528 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
529 clock-names = "i2c", "pclk";
530 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
531 pinctrl-names = "default";
532 pinctrl-0 = <&i2c2_xfer>;
533 #address-cells = <1>;
539 compatible = "rockchip,rk3399-i2c";
540 reg = <0x0 0xff130000 0x0 0x1000>;
541 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
542 clock-names = "i2c", "pclk";
543 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
544 pinctrl-names = "default";
545 pinctrl-0 = <&i2c3_xfer>;
546 #address-cells = <1>;
552 compatible = "rockchip,rk3399-i2c";
553 reg = <0x0 0xff140000 0x0 0x1000>;
554 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>;
555 clock-names = "i2c", "pclk";
556 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
557 pinctrl-names = "default";
558 pinctrl-0 = <&i2c5_xfer>;
559 #address-cells = <1>;
565 compatible = "rockchip,rk3399-i2c";
566 reg = <0x0 0xff150000 0x0 0x1000>;
567 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>;
568 clock-names = "i2c", "pclk";
569 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
570 pinctrl-names = "default";
571 pinctrl-0 = <&i2c6_xfer>;
572 #address-cells = <1>;
578 compatible = "rockchip,rk3399-i2c";
579 reg = <0x0 0xff160000 0x0 0x1000>;
580 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
581 clock-names = "i2c", "pclk";
582 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
583 pinctrl-names = "default";
584 pinctrl-0 = <&i2c7_xfer>;
585 #address-cells = <1>;
590 uart0: serial@ff180000 {
591 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
592 reg = <0x0 0xff180000 0x0 0x100>;
593 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
594 clock-names = "baudclk", "apb_pclk";
595 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
598 pinctrl-names = "default";
599 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
603 uart1: serial@ff190000 {
604 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
605 reg = <0x0 0xff190000 0x0 0x100>;
606 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
607 clock-names = "baudclk", "apb_pclk";
608 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
611 pinctrl-names = "default";
612 pinctrl-0 = <&uart1_xfer>;
616 uart2: serial@ff1a0000 {
617 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
618 reg = <0x0 0xff1a0000 0x0 0x100>;
619 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
620 clock-names = "baudclk", "apb_pclk";
621 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
624 pinctrl-names = "default";
625 pinctrl-0 = <&uart2c_xfer>;
629 uart3: serial@ff1b0000 {
630 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
631 reg = <0x0 0xff1b0000 0x0 0x100>;
632 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
633 clock-names = "baudclk", "apb_pclk";
634 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
637 pinctrl-names = "default";
638 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
643 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
644 reg = <0x0 0xff1c0000 0x0 0x1000>;
645 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
646 clock-names = "spiclk", "apb_pclk";
647 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
648 pinctrl-names = "default";
649 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
650 #address-cells = <1>;
656 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
657 reg = <0x0 0xff1d0000 0x0 0x1000>;
658 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
659 clock-names = "spiclk", "apb_pclk";
660 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
661 pinctrl-names = "default";
662 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
663 #address-cells = <1>;
669 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
670 reg = <0x0 0xff1e0000 0x0 0x1000>;
671 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
672 clock-names = "spiclk", "apb_pclk";
673 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
674 pinctrl-names = "default";
675 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
676 #address-cells = <1>;
682 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
683 reg = <0x0 0xff1f0000 0x0 0x1000>;
684 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
685 clock-names = "spiclk", "apb_pclk";
686 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
687 pinctrl-names = "default";
688 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
689 #address-cells = <1>;
695 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
696 reg = <0x0 0xff200000 0x0 0x1000>;
697 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
698 clock-names = "spiclk", "apb_pclk";
699 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
700 pinctrl-names = "default";
701 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
702 #address-cells = <1>;
709 polling-delay-passive = <100>; /* milliseconds */
710 polling-delay = <1000>; /* milliseconds */
712 thermal-sensors = <&tsadc 0>;
715 cpu_alert0: cpu_alert0 {
716 temperature = <70000>; /* millicelsius */
717 hysteresis = <2000>; /* millicelsius */
720 cpu_alert1: cpu_alert1 {
721 temperature = <75000>; /* millicelsius */
722 hysteresis = <2000>; /* millicelsius */
726 temperature = <95000>; /* millicelsius */
727 hysteresis = <2000>; /* millicelsius */
734 trip = <&cpu_alert0>;
736 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
739 trip = <&cpu_alert1>;
741 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
742 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
748 polling-delay-passive = <100>; /* milliseconds */
749 polling-delay = <1000>; /* milliseconds */
751 thermal-sensors = <&tsadc 1>;
754 gpu_alert0: gpu_alert0 {
755 temperature = <75000>; /* millicelsius */
756 hysteresis = <2000>; /* millicelsius */
760 temperature = <95000>; /* millicelsius */
761 hysteresis = <2000>; /* millicelsius */
768 trip = <&gpu_alert0>;
770 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
776 tsadc: tsadc@ff260000 {
777 compatible = "rockchip,rk3399-tsadc";
778 reg = <0x0 0xff260000 0x0 0x100>;
779 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
780 rockchip,grf = <&grf>;
781 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
782 clock-names = "tsadc", "apb_pclk";
783 assigned-clocks = <&cru SCLK_TSADC>;
784 assigned-clock-rates = <750000>;
785 resets = <&cru SRST_TSADC>;
786 reset-names = "tsadc-apb";
787 pinctrl-names = "init", "default", "sleep";
788 pinctrl-0 = <&otp_gpio>;
789 pinctrl-1 = <&otp_out>;
790 pinctrl-2 = <&otp_gpio>;
791 #thermal-sensor-cells = <1>;
792 rockchip,hw-tshut-temp = <95000>;
796 pmu: power-management@ff310000 {
797 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
798 reg = <0x0 0xff310000 0x0 0x1000>;
800 power: power-controller {
802 compatible = "rockchip,rk3399-power-controller";
803 #power-domain-cells = <1>;
804 #address-cells = <1>;
808 reg = <RK3399_PD_CENTER>;
809 #address-cells = <1>;
813 reg = <RK3399_PD_VDU>;
816 reg = <RK3399_PD_VCODEC>;
819 reg = <RK3399_PD_IEP>;
822 reg = <RK3399_PD_RGA>;
826 reg = <RK3399_PD_VIO>;
827 #address-cells = <1>;
831 reg = <RK3399_PD_ISP0>;
834 reg = <RK3399_PD_ISP1>;
837 reg = <RK3399_PD_HDCP>;
840 reg = <RK3399_PD_VO>;
841 #address-cells = <1>;
845 reg = <RK3399_PD_VOPB>;
848 reg = <RK3399_PD_VOPL>;
853 reg = <RK3399_PD_GPU>;
858 pmugrf: syscon@ff320000 {
859 compatible = "rockchip,rk3399-pmugrf", "syscon";
860 reg = <0x0 0xff320000 0x0 0x1000>;
864 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
865 reg = <0x0 0xff350000 0x0 0x1000>;
866 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>;
867 clock-names = "spiclk", "apb_pclk";
868 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
869 pinctrl-names = "default";
870 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
871 #address-cells = <1>;
876 uart4: serial@ff370000 {
877 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
878 reg = <0x0 0xff370000 0x0 0x100>;
879 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>;
880 clock-names = "baudclk", "apb_pclk";
881 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
884 pinctrl-names = "default";
885 pinctrl-0 = <&uart4_xfer>;
890 compatible = "rockchip,rk3399-i2c";
891 reg = <0x0 0xff3d0000 0x0 0x1000>;
892 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>;
893 clock-names = "i2c", "pclk";
894 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
895 pinctrl-names = "default";
896 pinctrl-0 = <&i2c4_xfer>;
897 #address-cells = <1>;
903 compatible = "rockchip,rk3399-i2c";
904 reg = <0x0 0xff3e0000 0x0 0x1000>;
905 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>;
906 clock-names = "i2c", "pclk";
907 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
908 pinctrl-names = "default";
909 pinctrl-0 = <&i2c8_xfer>;
910 #address-cells = <1>;
916 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
917 reg = <0x0 0xff420000 0x0 0x10>;
919 pinctrl-names = "default";
920 pinctrl-0 = <&pwm0_pin>;
921 clocks = <&pmucru PCLK_RKPWM_PMU>;
927 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
928 reg = <0x0 0xff420010 0x0 0x10>;
930 pinctrl-names = "default";
931 pinctrl-0 = <&pwm1_pin>;
932 clocks = <&pmucru PCLK_RKPWM_PMU>;
938 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
939 reg = <0x0 0xff420020 0x0 0x10>;
941 pinctrl-names = "default";
942 pinctrl-0 = <&pwm2_pin>;
943 clocks = <&pmucru PCLK_RKPWM_PMU>;
949 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
950 reg = <0x0 0xff420030 0x0 0x10>;
952 pinctrl-names = "default";
953 pinctrl-0 = <&pwm3a_pin>;
954 clocks = <&pmucru PCLK_RKPWM_PMU>;
960 compatible = "rockchip,rk3399-rga";
961 reg = <0x0 0xff680000 0x0 0x10000>;
962 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
963 interrupt-names = "rga";
964 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
965 clock-names = "aclk", "hclk", "sclk";
966 resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
967 reset-names = "core", "axi", "ahb";
971 pmucru: pmu-clock-controller@ff750000 {
972 compatible = "rockchip,rk3399-pmucru";
973 reg = <0x0 0xff750000 0x0 0x1000>;
976 assigned-clocks = <&pmucru PLL_PPLL>;
977 assigned-clock-rates = <676000000>;
980 cru: clock-controller@ff760000 {
981 compatible = "rockchip,rk3399-cru";
982 reg = <0x0 0xff760000 0x0 0x1000>;
986 <&cru ACLK_VOP0>, <&cru HCLK_VOP0>,
987 <&cru ACLK_VOP1>, <&cru HCLK_VOP1>,
988 <&cru ARMCLKL>, <&cru ARMCLKB>,
989 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
991 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
993 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
995 <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>;
996 assigned-clock-rates =
997 <400000000>, <200000000>,
998 <400000000>, <200000000>,
999 <816000000>, <1008000000>,
1000 <594000000>, <800000000>,
1002 <150000000>, <75000000>,
1004 <100000000>, <100000000>,
1006 <100000000>, <50000000>;
1009 grf: syscon@ff770000 {
1010 compatible = "rockchip,rk3399-grf", "syscon";
1011 reg = <0x0 0xff770000 0x0 0x10000>;
1015 compatible = "snps,dw-wdt";
1016 reg = <0x0 0xff840000 0x0 0x100>;
1017 clocks = <&cru PCLK_WDT>;
1018 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
1021 spdif: spdif@ff870000 {
1022 compatible = "rockchip,rk3399-spdif";
1023 reg = <0x0 0xff870000 0x0 0x1000>;
1024 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
1025 dmas = <&dmac_bus 7>;
1027 clock-names = "mclk", "hclk";
1028 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
1029 pinctrl-names = "default";
1030 pinctrl-0 = <&spdif_bus>;
1031 status = "disabled";
1034 i2s0: i2s@ff880000 {
1035 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1036 reg = <0x0 0xff880000 0x0 0x1000>;
1037 rockchip,grf = <&grf>;
1038 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1039 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1040 dma-names = "tx", "rx";
1041 clock-names = "i2s_clk", "i2s_hclk";
1042 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>;
1043 pinctrl-names = "default";
1044 pinctrl-0 = <&i2s0_8ch_bus>;
1045 status = "disabled";
1048 i2s1: i2s@ff890000 {
1049 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1050 reg = <0x0 0xff890000 0x0 0x1000>;
1051 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
1052 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
1053 dma-names = "tx", "rx";
1054 clock-names = "i2s_clk", "i2s_hclk";
1055 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>;
1056 pinctrl-names = "default";
1057 pinctrl-0 = <&i2s1_2ch_bus>;
1058 status = "disabled";
1061 i2s2: i2s@ff8a0000 {
1062 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1063 reg = <0x0 0xff8a0000 0x0 0x1000>;
1064 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1065 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
1066 dma-names = "tx", "rx";
1067 clock-names = "i2s_clk", "i2s_hclk";
1068 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
1069 status = "disabled";
1073 compatible = "arm,malit860",
1078 reg = <0x0 0xff9a0000 0x0 0x10000>;
1080 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
1081 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
1082 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
1083 interrupt-names = "GPU", "JOB", "MMU";
1085 clocks = <&cru ACLK_GPU>;
1086 clock-names = "clk_mali";
1087 #cooling-cells = <2>; /* min followed by max */
1088 operating-points-v2 = <&gpu_opp_table>;
1090 status = "disabled";
1093 compatible = "arm,mali-simple-power-model";
1096 static-power = <500>;
1097 dynamic-power = <1500>;
1098 ts = <20000 2000 (-20) 2>;
1099 thermal-zone = "gpu";
1103 gpu_opp_table: gpu_opp_table {
1104 compatible = "operating-points-v2";
1108 opp-hz = /bits/ 64 <200000000>;
1109 opp-microvolt = <900000>;
1112 opp-hz = /bits/ 64 <300000000>;
1113 opp-microvolt = <900000>;
1116 opp-hz = /bits/ 64 <400000000>;
1117 opp-microvolt = <900000>;
1122 vopl: vop@ff8f0000 {
1123 compatible = "rockchip,rk3399-vop-lit";
1124 reg = <0x0 0xff8f0000 0x0 0x3efc>;
1125 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
1126 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>;
1127 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1128 resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>;
1129 reset-names = "axi", "ahb", "dclk";
1130 iommus = <&vopl_mmu>;
1131 status = "disabled";
1134 #address-cells = <1>;
1137 vopl_out_mipi: endpoint@0 {
1139 remote-endpoint = <&mipi_in_vopl>;
1142 vopl_out_edp: endpoint@1 {
1144 remote-endpoint = <&edp_in_vopl>;
1149 vopl_mmu: iommu@ff8f3f00 {
1150 compatible = "rockchip,iommu";
1151 reg = <0x0 0xff8f3f00 0x0 0x100>;
1152 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
1153 interrupt-names = "vopl_mmu";
1155 status = "disabled";
1158 vopb: vop@ff900000 {
1159 compatible = "rockchip,rk3399-vop-big";
1160 reg = <0x0 0xff900000 0x0 0x3efc>;
1161 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1162 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
1163 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1164 resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>;
1165 reset-names = "axi", "ahb", "dclk";
1166 iommus = <&vopb_mmu>;
1167 status = "disabled";
1170 #address-cells = <1>;
1173 vopb_out_edp: endpoint@0 {
1175 remote-endpoint = <&edp_in_vopb>;
1178 vopb_out_mipi: endpoint@1 {
1180 remote-endpoint = <&mipi_in_vopb>;
1185 vopb_mmu: iommu@ff903f00 {
1186 compatible = "rockchip,iommu";
1187 reg = <0x0 0xff903f00 0x0 0x100>;
1188 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1189 interrupt-names = "vopb_mmu";
1191 status = "disabled";
1194 mipi_dsi: mipi@ff960000 {
1195 compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
1196 reg = <0x0 0xff960000 0x0 0x8000>;
1197 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1198 clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>,
1199 <&cru SCLK_DPHY_TX0_CFG>;
1200 clock-names = "ref", "pclk", "phy_cfg";
1201 rockchip,grf = <&grf>;
1202 #address-cells = <1>;
1204 status = "disabled";
1207 #address-cells = <1>;
1212 #address-cells = <1>;
1215 mipi_in_vopb: endpoint@0 {
1217 remote-endpoint = <&vopb_out_mipi>;
1219 mipi_in_vopl: endpoint@1 {
1221 remote-endpoint = <&vopl_out_mipi>;
1228 compatible = "rockchip,rk3399-edp";
1229 reg = <0x0 0xff970000 0x0 0x8000>;
1230 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1231 clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>;
1232 clock-names = "dp", "pclk";
1233 resets = <&cru SRST_P_EDP_CTRL>;
1235 rockchip,grf = <&grf>;
1236 status = "disabled";
1237 pinctrl-names = "default";
1238 pinctrl-0 = <&edp_hpd>;
1241 #address-cells = <1>;
1246 #address-cells = <1>;
1249 edp_in_vopb: endpoint@0 {
1251 remote-endpoint = <&vopb_out_edp>;
1254 edp_in_vopl: endpoint@1 {
1256 remote-endpoint = <&vopl_out_edp>;
1262 display_subsystem: display-subsystem {
1263 compatible = "rockchip,display-subsystem";
1264 ports = <&vopl_out>, <&vopb_out>;
1265 status = "disabled";
1269 compatible = "rockchip,rk3399-pinctrl";
1270 rockchip,grf = <&grf>;
1271 rockchip,pmu = <&pmugrf>;
1272 #address-cells = <0x2>;
1273 #size-cells = <0x2>;
1276 gpio0: gpio0@ff720000 {
1277 compatible = "rockchip,gpio-bank";
1278 reg = <0x0 0xff720000 0x0 0x100>;
1279 clocks = <&pmucru PCLK_GPIO0_PMU>;
1280 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1283 #gpio-cells = <0x2>;
1285 interrupt-controller;
1286 #interrupt-cells = <0x2>;
1289 gpio1: gpio1@ff730000 {
1290 compatible = "rockchip,gpio-bank";
1291 reg = <0x0 0xff730000 0x0 0x100>;
1292 clocks = <&pmucru PCLK_GPIO1_PMU>;
1293 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1296 #gpio-cells = <0x2>;
1298 interrupt-controller;
1299 #interrupt-cells = <0x2>;
1302 gpio2: gpio2@ff780000 {
1303 compatible = "rockchip,gpio-bank";
1304 reg = <0x0 0xff780000 0x0 0x100>;
1305 clocks = <&cru PCLK_GPIO2>;
1306 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1309 #gpio-cells = <0x2>;
1311 interrupt-controller;
1312 #interrupt-cells = <0x2>;
1315 gpio3: gpio3@ff788000 {
1316 compatible = "rockchip,gpio-bank";
1317 reg = <0x0 0xff788000 0x0 0x100>;
1318 clocks = <&cru PCLK_GPIO3>;
1319 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1322 #gpio-cells = <0x2>;
1324 interrupt-controller;
1325 #interrupt-cells = <0x2>;
1328 gpio4: gpio4@ff790000 {
1329 compatible = "rockchip,gpio-bank";
1330 reg = <0x0 0xff790000 0x0 0x100>;
1331 clocks = <&cru PCLK_GPIO4>;
1332 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1335 #gpio-cells = <0x2>;
1337 interrupt-controller;
1338 #interrupt-cells = <0x2>;
1341 pcfg_pull_up: pcfg-pull-up {
1345 pcfg_pull_down: pcfg-pull-down {
1349 pcfg_pull_none: pcfg-pull-none {
1353 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1355 drive-strength = <12>;
1358 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1360 drive-strength = <8>;
1363 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1365 drive-strength = <4>;
1368 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1370 drive-strength = <2>;
1373 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
1375 drive-strength = <12>;
1378 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
1380 drive-strength = <13>;
1384 emmc_pwr: emmc-pwr {
1386 <0 5 RK_FUNC_1 &pcfg_pull_up>;
1391 rgmii_pins: rgmii-pins {
1394 <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>,
1396 <3 14 RK_FUNC_1 &pcfg_pull_none>,
1398 <3 13 RK_FUNC_1 &pcfg_pull_none>,
1400 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1402 <3 11 RK_FUNC_1 &pcfg_pull_none>,
1404 <3 9 RK_FUNC_1 &pcfg_pull_none>,
1406 <3 8 RK_FUNC_1 &pcfg_pull_none>,
1408 <3 7 RK_FUNC_1 &pcfg_pull_none>,
1410 <3 6 RK_FUNC_1 &pcfg_pull_none>,
1412 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1414 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1416 <3 3 RK_FUNC_1 &pcfg_pull_none>,
1418 <3 2 RK_FUNC_1 &pcfg_pull_none>,
1420 <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>,
1422 <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>;
1425 rmii_pins: rmii-pins {
1428 <3 13 RK_FUNC_1 &pcfg_pull_none>,
1430 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1432 <3 11 RK_FUNC_1 &pcfg_pull_none>,
1434 <3 10 RK_FUNC_1 &pcfg_pull_none>,
1436 <3 9 RK_FUNC_1 &pcfg_pull_none>,
1438 <3 8 RK_FUNC_1 &pcfg_pull_none>,
1440 <3 7 RK_FUNC_1 &pcfg_pull_none>,
1442 <3 6 RK_FUNC_1 &pcfg_pull_none>,
1444 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1446 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>;
1451 i2c0_xfer: i2c0-xfer {
1453 <1 15 RK_FUNC_2 &pcfg_pull_none>,
1454 <1 16 RK_FUNC_2 &pcfg_pull_none>;
1459 i2c1_xfer: i2c1-xfer {
1461 <4 2 RK_FUNC_1 &pcfg_pull_none>,
1462 <4 1 RK_FUNC_1 &pcfg_pull_none>;
1467 i2c2_xfer: i2c2-xfer {
1469 <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1470 <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>;
1475 i2c3_xfer: i2c3-xfer {
1477 <4 17 RK_FUNC_1 &pcfg_pull_none>,
1478 <4 16 RK_FUNC_1 &pcfg_pull_none>;
1483 i2c4_xfer: i2c4-xfer {
1485 <1 12 RK_FUNC_1 &pcfg_pull_none>,
1486 <1 11 RK_FUNC_1 &pcfg_pull_none>;
1491 i2c5_xfer: i2c5-xfer {
1493 <3 11 RK_FUNC_2 &pcfg_pull_none>,
1494 <3 10 RK_FUNC_2 &pcfg_pull_none>;
1499 i2c6_xfer: i2c6-xfer {
1501 <2 10 RK_FUNC_2 &pcfg_pull_none>,
1502 <2 9 RK_FUNC_2 &pcfg_pull_none>;
1507 i2c7_xfer: i2c7-xfer {
1509 <2 8 RK_FUNC_2 &pcfg_pull_none>,
1510 <2 7 RK_FUNC_2 &pcfg_pull_none>;
1515 i2c8_xfer: i2c8-xfer {
1517 <1 21 RK_FUNC_1 &pcfg_pull_none>,
1518 <1 20 RK_FUNC_1 &pcfg_pull_none>;
1523 i2s0_8ch_bus: i2s0-8ch-bus {
1525 <3 24 RK_FUNC_1 &pcfg_pull_none>,
1526 <3 25 RK_FUNC_1 &pcfg_pull_none>,
1527 <3 26 RK_FUNC_1 &pcfg_pull_none>,
1528 <3 27 RK_FUNC_1 &pcfg_pull_none>,
1529 <3 28 RK_FUNC_1 &pcfg_pull_none>,
1530 <3 29 RK_FUNC_1 &pcfg_pull_none>,
1531 <3 30 RK_FUNC_1 &pcfg_pull_none>,
1532 <3 31 RK_FUNC_1 &pcfg_pull_none>,
1533 <4 0 RK_FUNC_1 &pcfg_pull_none>;
1538 i2s1_2ch_bus: i2s1-2ch-bus {
1540 <4 3 RK_FUNC_1 &pcfg_pull_none>,
1541 <4 4 RK_FUNC_1 &pcfg_pull_none>,
1542 <4 5 RK_FUNC_1 &pcfg_pull_none>,
1543 <4 6 RK_FUNC_1 &pcfg_pull_none>,
1544 <4 7 RK_FUNC_1 &pcfg_pull_none>;
1549 sdio0_bus1: sdio0-bus1 {
1551 <2 20 RK_FUNC_1 &pcfg_pull_up>;
1554 sdio0_bus4: sdio0-bus4 {
1556 <2 20 RK_FUNC_1 &pcfg_pull_up>,
1557 <2 21 RK_FUNC_1 &pcfg_pull_up>,
1558 <2 22 RK_FUNC_1 &pcfg_pull_up>,
1559 <2 23 RK_FUNC_1 &pcfg_pull_up>;
1562 sdio0_cmd: sdio0-cmd {
1564 <2 24 RK_FUNC_1 &pcfg_pull_up>;
1567 sdio0_clk: sdio0-clk {
1569 <2 25 RK_FUNC_1 &pcfg_pull_none>;
1572 sdio0_cd: sdio0-cd {
1574 <2 26 RK_FUNC_1 &pcfg_pull_up>;
1577 sdio0_pwr: sdio0-pwr {
1579 <2 27 RK_FUNC_1 &pcfg_pull_up>;
1582 sdio0_bkpwr: sdio0-bkpwr {
1584 <2 28 RK_FUNC_1 &pcfg_pull_up>;
1587 sdio0_wp: sdio0-wp {
1589 <0 3 RK_FUNC_1 &pcfg_pull_up>;
1592 sdio0_int: sdio0-int {
1594 <0 4 RK_FUNC_1 &pcfg_pull_up>;
1599 sdmmc_bus1: sdmmc-bus1 {
1601 <4 8 RK_FUNC_1 &pcfg_pull_up>;
1604 sdmmc_bus4: sdmmc-bus4 {
1606 <4 8 RK_FUNC_1 &pcfg_pull_up>,
1607 <4 9 RK_FUNC_1 &pcfg_pull_up>,
1608 <4 10 RK_FUNC_1 &pcfg_pull_up>,
1609 <4 11 RK_FUNC_1 &pcfg_pull_up>;
1612 sdmmc_clk: sdmmc-clk {
1614 <4 12 RK_FUNC_1 &pcfg_pull_none>;
1617 sdmmc_cmd: sdmmc-cmd {
1619 <4 13 RK_FUNC_1 &pcfg_pull_up>;
1622 sdmmc_cd: sdmcc-cd {
1624 <0 7 RK_FUNC_1 &pcfg_pull_up>;
1627 sdmmc_wp: sdmmc-wp {
1629 <0 8 RK_FUNC_1 &pcfg_pull_up>;
1634 spdif_bus: spdif-bus {
1636 <4 21 RK_FUNC_1 &pcfg_pull_none>;
1641 spi0_clk: spi0-clk {
1643 <3 6 RK_FUNC_2 &pcfg_pull_up>;
1645 spi0_cs0: spi0-cs0 {
1647 <3 7 RK_FUNC_2 &pcfg_pull_up>;
1649 spi0_cs1: spi0-cs1 {
1651 <3 8 RK_FUNC_2 &pcfg_pull_up>;
1655 <3 5 RK_FUNC_2 &pcfg_pull_up>;
1659 <3 4 RK_FUNC_2 &pcfg_pull_up>;
1664 spi1_clk: spi1-clk {
1666 <1 9 RK_FUNC_2 &pcfg_pull_up>;
1668 spi1_cs0: spi1-cs0 {
1670 <1 10 RK_FUNC_2 &pcfg_pull_up>;
1674 <1 7 RK_FUNC_2 &pcfg_pull_up>;
1678 <1 8 RK_FUNC_2 &pcfg_pull_up>;
1683 spi2_clk: spi2-clk {
1685 <2 11 RK_FUNC_1 &pcfg_pull_up>;
1687 spi2_cs0: spi2-cs0 {
1689 <2 12 RK_FUNC_1 &pcfg_pull_up>;
1693 <2 9 RK_FUNC_1 &pcfg_pull_up>;
1697 <2 10 RK_FUNC_1 &pcfg_pull_up>;
1702 spi3_clk: spi3-clk {
1704 <1 17 RK_FUNC_1 &pcfg_pull_up>;
1706 spi3_cs0: spi3-cs0 {
1708 <1 18 RK_FUNC_1 &pcfg_pull_up>;
1712 <1 15 RK_FUNC_1 &pcfg_pull_up>;
1716 <1 16 RK_FUNC_1 &pcfg_pull_up>;
1721 spi4_clk: spi4-clk {
1723 <3 2 RK_FUNC_2 &pcfg_pull_up>;
1725 spi4_cs0: spi4-cs0 {
1727 <3 3 RK_FUNC_2 &pcfg_pull_up>;
1731 <3 0 RK_FUNC_2 &pcfg_pull_up>;
1735 <3 1 RK_FUNC_2 &pcfg_pull_up>;
1740 spi5_clk: spi5-clk {
1742 <2 22 RK_FUNC_2 &pcfg_pull_up>;
1744 spi5_cs0: spi5-cs0 {
1746 <2 23 RK_FUNC_2 &pcfg_pull_up>;
1750 <2 20 RK_FUNC_2 &pcfg_pull_up>;
1754 <2 21 RK_FUNC_2 &pcfg_pull_up>;
1759 otp_gpio: otp-gpio {
1760 rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
1764 rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>;
1769 uart0_xfer: uart0-xfer {
1771 <2 16 RK_FUNC_1 &pcfg_pull_up>,
1772 <2 17 RK_FUNC_1 &pcfg_pull_none>;
1775 uart0_cts: uart0-cts {
1777 <2 18 RK_FUNC_1 &pcfg_pull_none>;
1780 uart0_rts: uart0-rts {
1782 <2 19 RK_FUNC_1 &pcfg_pull_none>;
1787 uart1_xfer: uart1-xfer {
1789 <3 12 RK_FUNC_2 &pcfg_pull_up>,
1790 <3 13 RK_FUNC_2 &pcfg_pull_none>;
1795 uart2a_xfer: uart2a-xfer {
1797 <4 8 RK_FUNC_2 &pcfg_pull_up>,
1798 <4 9 RK_FUNC_2 &pcfg_pull_none>;
1803 uart2b_xfer: uart2b-xfer {
1805 <4 16 RK_FUNC_2 &pcfg_pull_up>,
1806 <4 17 RK_FUNC_2 &pcfg_pull_none>;
1811 uart2c_xfer: uart2c-xfer {
1813 <4 19 RK_FUNC_1 &pcfg_pull_up>,
1814 <4 20 RK_FUNC_1 &pcfg_pull_none>;
1819 uart3_xfer: uart3-xfer {
1821 <3 14 RK_FUNC_2 &pcfg_pull_up>,
1822 <3 15 RK_FUNC_2 &pcfg_pull_none>;
1825 uart3_cts: uart3-cts {
1827 <3 18 RK_FUNC_2 &pcfg_pull_none>;
1830 uart3_rts: uart3-rts {
1832 <3 19 RK_FUNC_2 &pcfg_pull_none>;
1837 uart4_xfer: uart4-xfer {
1839 <1 7 RK_FUNC_1 &pcfg_pull_up>,
1840 <1 8 RK_FUNC_1 &pcfg_pull_none>;
1845 uarthdcp_xfer: uarthdcp-xfer {
1847 <4 21 RK_FUNC_2 &pcfg_pull_up>,
1848 <4 22 RK_FUNC_2 &pcfg_pull_none>;
1853 pwm0_pin: pwm0-pin {
1855 <4 18 RK_FUNC_1 &pcfg_pull_none>;
1858 vop0_pwm_pin: vop0-pwm-pin {
1860 <4 18 RK_FUNC_2 &pcfg_pull_none>;
1865 pwm1_pin: pwm1-pin {
1867 <4 22 RK_FUNC_1 &pcfg_pull_none>;
1870 vop1_pwm_pin: vop1-pwm-pin {
1872 <4 18 RK_FUNC_3 &pcfg_pull_none>;
1877 pwm2_pin: pwm2-pin {
1879 <1 19 RK_FUNC_1 &pcfg_pull_none>;
1884 pwm3a_pin: pwm3a-pin {
1886 <0 6 RK_FUNC_1 &pcfg_pull_none>;
1891 pwm3b_pin: pwm3b-pin {
1893 <1 14 RK_FUNC_1 &pcfg_pull_none>;
1900 <4 23 RK_FUNC_2 &pcfg_pull_none>;