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>;
126 compatible = "arm,cortex-a53", "arm,armv8";
128 enable-method = "psci";
129 clocks = <&cru ARMCLKL>;
130 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
135 compatible = "arm,cortex-a53", "arm,armv8";
137 enable-method = "psci";
138 clocks = <&cru ARMCLKL>;
139 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
144 compatible = "arm,cortex-a53", "arm,armv8";
146 enable-method = "psci";
147 clocks = <&cru ARMCLKL>;
148 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
153 compatible = "arm,cortex-a72", "arm,armv8";
155 enable-method = "psci";
156 #cooling-cells = <2>; /* min followed by max */
157 dynamic-power-coefficient = <436>;
158 clocks = <&cru ARMCLKB>;
159 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
164 compatible = "arm,cortex-a72", "arm,armv8";
166 enable-method = "psci";
167 clocks = <&cru ARMCLKB>;
168 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
172 entry-method = "psci";
174 CPU_SLEEP: cpu-sleep {
175 compatible = "arm,idle-state";
177 arm,psci-suspend-param = <0x0010000>;
178 entry-latency-us = <120>;
179 exit-latency-us = <250>;
180 min-residency-us = <900>;
183 CLUSTER_SLEEP: cluster-sleep {
184 compatible = "arm,idle-state";
186 arm,psci-suspend-param = <0x1010000>;
187 entry-latency-us = <400>;
188 exit-latency-us = <500>;
189 min-residency-us = <2000>;
197 min-volt = <800000>; /* uV */
198 min-freq = <408000>; /* KHz */
199 leakage-adjust-volt = <
203 nvmem-cells = <&cpul_leakage>;
204 nvmem-cell-names = "cpu_leakage";
208 min-volt = <800000>; /* uV */
209 min-freq = <408000>; /* KHz */
210 leakage-adjust-volt = <
214 nvmem-cells = <&cpub_leakage>;
215 nvmem-cell-names = "cpu_leakage";
220 compatible = "arm,armv8-timer";
221 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
222 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
223 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
224 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>;
228 compatible = "arm,cortex-a53-pmu";
229 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &part0>;
233 compatible = "arm,cortex-a72-pmu";
234 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &part1>;
238 compatible = "fixed-clock";
240 clock-frequency = <24000000>;
241 clock-output-names = "xin24m";
245 compatible = "arm,amba-bus";
246 #address-cells = <2>;
250 dmac_bus: dma-controller@ff6d0000 {
251 compatible = "arm,pl330", "arm,primecell";
252 reg = <0x0 0xff6d0000 0x0 0x4000>;
253 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>,
254 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>;
256 clocks = <&cru ACLK_DMAC0_PERILP>;
257 clock-names = "apb_pclk";
258 peripherals-req-type-burst;
261 dmac_peri: dma-controller@ff6e0000 {
262 compatible = "arm,pl330", "arm,primecell";
263 reg = <0x0 0xff6e0000 0x0 0x4000>;
264 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>,
265 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>;
267 clocks = <&cru ACLK_DMAC1_PERILP>;
268 clock-names = "apb_pclk";
269 peripherals-req-type-burst;
274 compatible = "rockchip,rk3399-gmac";
275 reg = <0x0 0xfe300000 0x0 0x10000>;
276 rockchip,grf = <&grf>;
277 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
278 interrupt-names = "macirq";
279 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
280 <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
281 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
283 clock-names = "stmmaceth", "mac_clk_rx",
284 "mac_clk_tx", "clk_mac_ref",
285 "clk_mac_refout", "aclk_mac",
287 resets = <&cru SRST_A_GMAC>;
288 reset-names = "stmmaceth";
289 power-domains = <&power RK3399_PD_GMAC>;
293 sdio0: dwmmc@fe310000 {
294 compatible = "rockchip,rk3399-dw-mshc",
295 "rockchip,rk3288-dw-mshc";
296 reg = <0x0 0xfe310000 0x0 0x4000>;
297 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH 0>;
298 clock-freq-min-max = <400000 150000000>;
299 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
300 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
301 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
302 fifo-depth = <0x100>;
303 power-domains = <&power RK3399_PD_SDIOAUDIO>;
307 sdmmc: dwmmc@fe320000 {
308 compatible = "rockchip,rk3399-dw-mshc",
309 "rockchip,rk3288-dw-mshc";
310 reg = <0x0 0xfe320000 0x0 0x4000>;
311 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>;
312 clock-freq-min-max = <400000 150000000>;
313 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
314 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
315 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
316 fifo-depth = <0x100>;
317 power-domains = <&power RK3399_PD_SD>;
321 sdhci: sdhci@fe330000 {
322 compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
323 reg = <0x0 0xfe330000 0x0 0x10000>;
324 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>;
325 arasan,soc-ctl-syscon = <&grf>;
326 assigned-clocks = <&cru SCLK_EMMC>;
327 assigned-clock-rates = <200000000>;
328 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
329 clock-names = "clk_xin", "clk_ahb";
330 clock-output-names = "emmc_cardclock";
333 phy-names = "phy_arasan";
334 power-domains = <&power RK3399_PD_EMMC>;
338 usb_host0_ehci: usb@fe380000 {
339 compatible = "generic-ehci";
340 reg = <0x0 0xfe380000 0x0 0x20000>;
341 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>;
342 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
343 <&cru SCLK_USBPHY0_480M_SRC>;
344 clock-names = "hclk_host0", "hclk_host0_arb", "usbphy0_480m";
345 phys = <&u2phy0_host>;
347 power-domains = <&power RK3399_PD_PERIHP>;
351 usb_host0_ohci: usb@fe3a0000 {
352 compatible = "generic-ohci";
353 reg = <0x0 0xfe3a0000 0x0 0x20000>;
354 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>;
355 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
356 <&cru SCLK_USBPHY0_480M_SRC>;
357 clock-names = "hclk_host0", "hclk_host0_arb", "usbphy0_480m";
358 phys = <&u2phy0_host>;
360 power-domains = <&power RK3399_PD_PERIHP>;
364 usb_host1_ehci: usb@fe3c0000 {
365 compatible = "generic-ehci";
366 reg = <0x0 0xfe3c0000 0x0 0x20000>;
367 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>;
368 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
369 <&cru SCLK_USBPHY1_480M_SRC>;
370 clock-names = "hclk_host1", "hclk_host1_arb", "usbphy1_480m";
371 phys = <&u2phy1_host>;
373 power-domains = <&power RK3399_PD_PERIHP>;
377 usb_host1_ohci: usb@fe3e0000 {
378 compatible = "generic-ohci";
379 reg = <0x0 0xfe3e0000 0x0 0x20000>;
380 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
381 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
382 <&cru SCLK_USBPHY1_480M_SRC>;
383 clock-names = "hclk_host1", "hclk_host1_arb", "usbphy1_480m";
384 phys = <&u2phy1_host>;
386 power-domains = <&power RK3399_PD_PERIHP>;
390 usbdrd3_0: usb@fe800000 {
391 compatible = "rockchip,rk3399-dwc3";
392 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
393 <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>;
394 clock-names = "ref_clk", "suspend_clk",
395 "bus_clk", "grf_clk";
396 power-domains = <&power RK3399_PD_USB3>;
397 resets = <&cru SRST_A_USB3_OTG0>;
398 reset-names = "usb3-otg";
399 #address-cells = <2>;
403 usbdrd_dwc3_0: dwc3@fe800000 {
404 compatible = "snps,dwc3";
405 reg = <0x0 0xfe800000 0x0 0x100000>;
406 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>;
408 phys = <&u2phy0_otg>, <&tcphy0_usb3>;
409 phy-names = "usb2-phy", "usb3-phy";
410 phy_type = "utmi_wide";
411 snps,dis_enblslpm_quirk;
412 snps,dis-u2-freeclk-exists-quirk;
413 snps,dis_u2_susphy_quirk;
414 snps,dis-del-phy-power-chg-quirk;
415 snps,xhci-slow-suspend-quirk;
420 usbdrd3_1: usb@fe900000 {
421 compatible = "rockchip,rk3399-dwc3";
422 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>,
423 <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_GRF>;
424 clock-names = "ref_clk", "suspend_clk",
425 "bus_clk", "grf_clk";
426 power-domains = <&power RK3399_PD_USB3>;
427 resets = <&cru SRST_A_USB3_OTG1>;
428 reset-names = "usb3-otg";
429 #address-cells = <2>;
433 usbdrd_dwc3_1: dwc3@fe900000 {
434 compatible = "snps,dwc3";
435 reg = <0x0 0xfe900000 0x0 0x100000>;
436 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>;
438 phys = <&u2phy1_otg>, <&tcphy1_usb3>;
439 phy-names = "usb2-phy", "usb3-phy";
440 phy_type = "utmi_wide";
441 snps,dis_enblslpm_quirk;
442 snps,dis-u2-freeclk-exists-quirk;
443 snps,dis_u2_susphy_quirk;
444 snps,dis-del-phy-power-chg-quirk;
445 snps,xhci-slow-suspend-quirk;
450 gic: interrupt-controller@fee00000 {
451 compatible = "arm,gic-v3";
452 #interrupt-cells = <4>;
453 #address-cells = <2>;
456 interrupt-controller;
458 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
459 <0x0 0xfef00000 0 0xc0000>, /* GICR */
460 <0x0 0xfff00000 0 0x10000>, /* GICC */
461 <0x0 0xfff10000 0 0x10000>, /* GICH */
462 <0x0 0xfff20000 0 0x10000>; /* GICV */
463 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
464 its: interrupt-controller@fee20000 {
465 compatible = "arm,gic-v3-its";
467 reg = <0x0 0xfee20000 0x0 0x20000>;
471 part0: interrupt-partition-0 {
472 affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>;
475 part1: interrupt-partition-1 {
476 affinity = <&cpu_b0 &cpu_b1>;
481 saradc: saradc@ff100000 {
482 compatible = "rockchip,rk3399-saradc";
483 reg = <0x0 0xff100000 0x0 0x100>;
484 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH 0>;
485 #io-channel-cells = <1>;
486 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
487 clock-names = "saradc", "apb_pclk";
488 resets = <&cru SRST_P_SARADC>;
489 reset-names = "saradc-apb";
494 compatible = "rockchip,rk3399-i2c";
495 reg = <0x0 0xff3c0000 0x0 0x1000>;
496 clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
497 clock-names = "i2c", "pclk";
498 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>;
499 pinctrl-names = "default";
500 pinctrl-0 = <&i2c0_xfer>;
501 #address-cells = <1>;
507 compatible = "rockchip,rk3399-i2c";
508 reg = <0x0 0xff110000 0x0 0x1000>;
509 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
510 clock-names = "i2c", "pclk";
511 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH 0>;
512 pinctrl-names = "default";
513 pinctrl-0 = <&i2c1_xfer>;
514 #address-cells = <1>;
520 compatible = "rockchip,rk3399-i2c";
521 reg = <0x0 0xff120000 0x0 0x1000>;
522 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
523 clock-names = "i2c", "pclk";
524 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH 0>;
525 pinctrl-names = "default";
526 pinctrl-0 = <&i2c2_xfer>;
527 #address-cells = <1>;
533 compatible = "rockchip,rk3399-i2c";
534 reg = <0x0 0xff130000 0x0 0x1000>;
535 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
536 clock-names = "i2c", "pclk";
537 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH 0>;
538 pinctrl-names = "default";
539 pinctrl-0 = <&i2c3_xfer>;
540 #address-cells = <1>;
546 compatible = "rockchip,rk3399-i2c";
547 reg = <0x0 0xff140000 0x0 0x1000>;
548 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>;
549 clock-names = "i2c", "pclk";
550 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>;
551 pinctrl-names = "default";
552 pinctrl-0 = <&i2c5_xfer>;
553 #address-cells = <1>;
559 compatible = "rockchip,rk3399-i2c";
560 reg = <0x0 0xff150000 0x0 0x1000>;
561 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>;
562 clock-names = "i2c", "pclk";
563 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH 0>;
564 pinctrl-names = "default";
565 pinctrl-0 = <&i2c6_xfer>;
566 #address-cells = <1>;
572 compatible = "rockchip,rk3399-i2c";
573 reg = <0x0 0xff160000 0x0 0x1000>;
574 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
575 clock-names = "i2c", "pclk";
576 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>;
577 pinctrl-names = "default";
578 pinctrl-0 = <&i2c7_xfer>;
579 #address-cells = <1>;
584 uart0: serial@ff180000 {
585 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
586 reg = <0x0 0xff180000 0x0 0x100>;
587 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
588 clock-names = "baudclk", "apb_pclk";
589 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>;
592 pinctrl-names = "default";
593 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
597 uart1: serial@ff190000 {
598 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
599 reg = <0x0 0xff190000 0x0 0x100>;
600 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
601 clock-names = "baudclk", "apb_pclk";
602 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH 0>;
605 pinctrl-names = "default";
606 pinctrl-0 = <&uart1_xfer>;
610 uart2: serial@ff1a0000 {
611 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
612 reg = <0x0 0xff1a0000 0x0 0x100>;
613 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
614 clock-names = "baudclk", "apb_pclk";
615 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH 0>;
618 pinctrl-names = "default";
619 pinctrl-0 = <&uart2c_xfer>;
623 uart3: serial@ff1b0000 {
624 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
625 reg = <0x0 0xff1b0000 0x0 0x100>;
626 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
627 clock-names = "baudclk", "apb_pclk";
628 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>;
631 pinctrl-names = "default";
632 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
637 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
638 reg = <0x0 0xff1c0000 0x0 0x1000>;
639 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
640 clock-names = "spiclk", "apb_pclk";
641 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>;
642 pinctrl-names = "default";
643 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
644 #address-cells = <1>;
650 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
651 reg = <0x0 0xff1d0000 0x0 0x1000>;
652 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
653 clock-names = "spiclk", "apb_pclk";
654 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
655 pinctrl-names = "default";
656 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
657 #address-cells = <1>;
663 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
664 reg = <0x0 0xff1e0000 0x0 0x1000>;
665 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
666 clock-names = "spiclk", "apb_pclk";
667 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>;
668 pinctrl-names = "default";
669 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
670 #address-cells = <1>;
676 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
677 reg = <0x0 0xff1f0000 0x0 0x1000>;
678 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
679 clock-names = "spiclk", "apb_pclk";
680 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>;
681 pinctrl-names = "default";
682 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
683 #address-cells = <1>;
689 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
690 reg = <0x0 0xff200000 0x0 0x1000>;
691 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
692 clock-names = "spiclk", "apb_pclk";
693 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>;
694 pinctrl-names = "default";
695 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
696 #address-cells = <1>;
702 soc_thermal: soc-thermal {
703 polling-delay-passive = <20>; /* milliseconds */
704 polling-delay = <1000>; /* milliseconds */
705 sustainable-power = <1000>; /* milliwatts */
707 thermal-sensors = <&tsadc 0>;
710 threshold: trip-point@0 {
711 temperature = <70000>; /* millicelsius */
712 hysteresis = <2000>; /* millicelsius */
715 target: trip-point@1 {
716 temperature = <85000>; /* millicelsius */
717 hysteresis = <2000>; /* millicelsius */
721 temperature = <95000>; /* millicelsius */
722 hysteresis = <2000>; /* millicelsius */
731 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
732 contribution = <4096>;
737 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
738 contribution = <1024>;
743 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
744 contribution = <4096>;
749 gpu_thermal: gpu-thermal {
750 polling-delay-passive = <100>; /* milliseconds */
751 polling-delay = <1000>; /* milliseconds */
753 thermal-sensors = <&tsadc 1>;
757 tsadc: tsadc@ff260000 {
758 compatible = "rockchip,rk3399-tsadc";
759 reg = <0x0 0xff260000 0x0 0x100>;
760 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH 0>;
761 rockchip,grf = <&grf>;
762 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
763 clock-names = "tsadc", "apb_pclk";
764 assigned-clocks = <&cru SCLK_TSADC>;
765 assigned-clock-rates = <750000>;
766 resets = <&cru SRST_TSADC>;
767 reset-names = "tsadc-apb";
768 pinctrl-names = "init", "default", "sleep";
769 pinctrl-0 = <&otp_gpio>;
770 pinctrl-1 = <&otp_out>;
771 pinctrl-2 = <&otp_gpio>;
772 #thermal-sensor-cells = <1>;
773 rockchip,hw-tshut-temp = <95000>;
777 qos_emmc: qos@ffa58000 {
778 compatible = "syscon";
779 reg = <0x0 0xffa58000 0x0 0x20>;
782 qos_gmac: qos@ffa5c000 {
783 compatible = "syscon";
784 reg = <0x0 0xffa5c000 0x0 0x20>;
787 qos_pcie: qos@ffa60080 {
788 compatible = "syscon";
789 reg = <0x0 0xffa60080 0x0 0x20>;
792 qos_usb_host0: qos@ffa60100 {
793 compatible = "syscon";
794 reg = <0x0 0xffa60100 0x0 0x20>;
797 qos_usb_host1: qos@ffa60180 {
798 compatible = "syscon";
799 reg = <0x0 0xffa60180 0x0 0x20>;
802 qos_usb_otg0: qos@ffa70000 {
803 compatible = "syscon";
804 reg = <0x0 0xffa70000 0x0 0x20>;
807 qos_usb_otg1: qos@ffa70080 {
808 compatible = "syscon";
809 reg = <0x0 0xffa70080 0x0 0x20>;
812 qos_sd: qos@ffa74000 {
813 compatible = "syscon";
814 reg = <0x0 0xffa74000 0x0 0x20>;
817 qos_sdioaudio: qos@ffa76000 {
818 compatible = "syscon";
819 reg = <0x0 0xffa76000 0x0 0x20>;
822 qos_hdcp: qos@ffa90000 {
823 compatible = "syscon";
824 reg = <0x0 0xffa90000 0x0 0x20>;
827 qos_iep: qos@ffa98000 {
828 compatible = "syscon";
829 reg = <0x0 0xffa98000 0x0 0x20>;
832 qos_isp0_m0: qos@ffaa0000 {
833 compatible = "syscon";
834 reg = <0x0 0xffaa0000 0x0 0x20>;
837 qos_isp0_m1: qos@ffaa0080 {
838 compatible = "syscon";
839 reg = <0x0 0xffaa0080 0x0 0x20>;
842 qos_isp1_m0: qos@ffaa8000 {
843 compatible = "syscon";
844 reg = <0x0 0xffaa8000 0x0 0x20>;
847 qos_isp1_m1: qos@ffaa8080 {
848 compatible = "syscon";
849 reg = <0x0 0xffaa8080 0x0 0x20>;
852 qos_rga_r: qos@ffab0000 {
853 compatible = "syscon";
854 reg = <0x0 0xffab0000 0x0 0x20>;
857 qos_rga_w: qos@ffab0080 {
858 compatible = "syscon";
859 reg = <0x0 0xffab0080 0x0 0x20>;
862 qos_video_m0: qos@ffab8000 {
863 compatible = "syscon";
864 reg = <0x0 0xffab8000 0x0 0x20>;
867 qos_video_m1_r: qos@ffac0000 {
868 compatible = "syscon";
869 reg = <0x0 0xffac0000 0x0 0x20>;
872 qos_video_m1_w: qos@ffac0080 {
873 compatible = "syscon";
874 reg = <0x0 0xffac0080 0x0 0x20>;
877 qos_vop_big_r: qos@ffac8000 {
878 compatible = "syscon";
879 reg = <0x0 0xffac8000 0x0 0x20>;
882 qos_vop_big_w: qos@ffac8080 {
883 compatible = "syscon";
884 reg = <0x0 0xffac8080 0x0 0x20>;
887 qos_vop_little: qos@ffad0000 {
888 compatible = "syscon";
889 reg = <0x0 0xffad0000 0x0 0x20>;
892 qos_perihp: qos@ffad8080 {
893 compatible = "syscon";
894 reg = <0x0 0xffad8080 0x0 0x20>;
897 qos_gpu: qos@ffae0000 {
898 compatible = "syscon";
899 reg = <0x0 0xffae0000 0x0 0x20>;
902 pmu: power-management@ff310000 {
903 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
904 reg = <0x0 0xff310000 0x0 0x1000>;
907 * Note: RK3399 supports 6 voltage domains including VD_CORE_L,
908 * VD_CORE_B, VD_CENTER, VD_GPU, VD_LOGIC and VD_PMU.
909 * Some of the power domains are grouped together for every
911 * The detail contents as below.
913 power: power-controller {
914 compatible = "rockchip,rk3399-power-controller";
915 #power-domain-cells = <1>;
916 #address-cells = <1>;
919 /* These power domains are grouped by VD_CENTER */
920 pd_iep@RK3399_PD_IEP {
921 reg = <RK3399_PD_IEP>;
922 clocks = <&cru ACLK_IEP>,
926 pd_rga@RK3399_PD_RGA {
927 reg = <RK3399_PD_RGA>;
928 clocks = <&cru ACLK_RGA>,
930 pm_qos = <&qos_rga_r>,
933 pd_vcodec@RK3399_PD_VCODEC {
934 reg = <RK3399_PD_VCODEC>;
935 clocks = <&cru ACLK_VCODEC>,
937 pm_qos = <&qos_video_m0>;
939 pd_vdu@RK3399_PD_VDU {
940 reg = <RK3399_PD_VDU>;
941 clocks = <&cru ACLK_VDU>,
943 pm_qos = <&qos_video_m1_r>,
947 /* These power domains are grouped by VD_GPU */
948 pd_gpu@RK3399_PD_GPU {
949 reg = <RK3399_PD_GPU>;
950 clocks = <&cru ACLK_GPU>;
954 /* These power domains are grouped by VD_LOGIC */
955 pd_edp@RK3399_PD_EDP {
956 reg = <RK3399_PD_EDP>;
957 clocks = <&cru PCLK_EDP_CTRL>;
959 pd_emmc@RK3399_PD_EMMC {
960 reg = <RK3399_PD_EMMC>;
961 clocks = <&cru ACLK_EMMC>;
962 pm_qos = <&qos_emmc>;
964 pd_gmac@RK3399_PD_GMAC {
965 reg = <RK3399_PD_GMAC>;
966 clocks = <&cru ACLK_GMAC>,
968 pm_qos = <&qos_gmac>;
970 pd_perihp@RK3399_PD_PERIHP {
971 reg = <RK3399_PD_PERIHP>;
972 #address-cells = <1>;
974 clocks = <&cru ACLK_PERIHP>;
975 pm_qos = <&qos_perihp>,
981 reg = <RK3399_PD_SD>;
982 clocks = <&cru HCLK_SDMMC>,
987 pd_sdioaudio@RK3399_PD_SDIOAUDIO {
988 reg = <RK3399_PD_SDIOAUDIO>;
989 clocks = <&cru HCLK_SDIO>;
990 pm_qos = <&qos_sdioaudio>;
992 pd_usb3@RK3399_PD_USB3 {
993 reg = <RK3399_PD_USB3>;
994 clocks = <&cru ACLK_USB3>;
995 pm_qos = <&qos_usb_otg0>,
998 pd_vio@RK3399_PD_VIO {
999 reg = <RK3399_PD_VIO>;
1000 #address-cells = <1>;
1003 pd_hdcp@RK3399_PD_HDCP {
1004 reg = <RK3399_PD_HDCP>;
1005 clocks = <&cru ACLK_HDCP>,
1008 pm_qos = <&qos_hdcp>;
1010 pd_isp0@RK3399_PD_ISP0 {
1011 reg = <RK3399_PD_ISP0>;
1012 clocks = <&cru ACLK_ISP0>,
1014 pm_qos = <&qos_isp0_m0>,
1017 pd_isp1@RK3399_PD_ISP1 {
1018 reg = <RK3399_PD_ISP1>;
1019 clocks = <&cru ACLK_ISP1>,
1021 pm_qos = <&qos_isp1_m0>,
1024 pd_tcpc0@RK3399_PD_TCPC0 {
1025 reg = <RK3399_PD_TCPD0>;
1026 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1027 <&cru SCLK_UPHY0_TCPDPHY_REF>;
1029 pd_tcpc1@RK3399_PD_TCPC1 {
1030 reg = <RK3399_PD_TCPD1>;
1031 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1032 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1034 pd_vo@RK3399_PD_VO {
1035 reg = <RK3399_PD_VO>;
1036 #address-cells = <1>;
1039 pd_vopb@RK3399_PD_VOPB {
1040 reg = <RK3399_PD_VOPB>;
1041 clocks = <&cru ACLK_VOP0>,
1043 pm_qos = <&qos_vop_big_r>,
1046 pd_vopl@RK3399_PD_VOPL {
1047 reg = <RK3399_PD_VOPL>;
1048 clocks = <&cru ACLK_VOP1>,
1050 pm_qos = <&qos_vop_little>;
1057 pmugrf: syscon@ff320000 {
1058 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd";
1059 reg = <0x0 0xff320000 0x0 0x1000>;
1061 pmu_io_domains: pmu-io-domains {
1062 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
1063 status = "disabled";
1067 compatible = "syscon-reboot-mode";
1069 mode-bootloader = <BOOT_LOADER>;
1070 mode-charge = <BOOT_CHARGING>;
1071 mode-fastboot = <BOOT_FASTBOOT>;
1072 mode-loader = <BOOT_LOADER>;
1073 mode-normal = <BOOT_NORMAL>;
1074 mode-recovery = <BOOT_RECOVERY>;
1075 mode-ums = <BOOT_UMS>;
1078 pmu_pvtm: pmu-pvtm {
1079 compatible = "rockchip,rk3399-pmu-pvtm";
1080 clocks = <&pmucru SCLK_PVTM_PMU>;
1081 clock-names = "pmu";
1082 status = "disabled";
1086 spi3: spi@ff350000 {
1087 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
1088 reg = <0x0 0xff350000 0x0 0x1000>;
1089 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>;
1090 clock-names = "spiclk", "apb_pclk";
1091 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH 0>;
1092 pinctrl-names = "default";
1093 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
1094 #address-cells = <1>;
1096 status = "disabled";
1099 uart4: serial@ff370000 {
1100 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
1101 reg = <0x0 0xff370000 0x0 0x100>;
1102 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>;
1103 clock-names = "baudclk", "apb_pclk";
1104 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH 0>;
1107 pinctrl-names = "default";
1108 pinctrl-0 = <&uart4_xfer>;
1109 status = "disabled";
1112 i2c4: i2c@ff3d0000 {
1113 compatible = "rockchip,rk3399-i2c";
1114 reg = <0x0 0xff3d0000 0x0 0x1000>;
1115 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>;
1116 clock-names = "i2c", "pclk";
1117 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH 0>;
1118 pinctrl-names = "default";
1119 pinctrl-0 = <&i2c4_xfer>;
1120 #address-cells = <1>;
1122 status = "disabled";
1125 i2c8: i2c@ff3e0000 {
1126 compatible = "rockchip,rk3399-i2c";
1127 reg = <0x0 0xff3e0000 0x0 0x1000>;
1128 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>;
1129 clock-names = "i2c", "pclk";
1130 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
1131 pinctrl-names = "default";
1132 pinctrl-0 = <&i2c8_xfer>;
1133 #address-cells = <1>;
1135 status = "disabled";
1138 pcie_phy: phy@e220 {
1139 compatible = "rockchip,rk3399-pcie-phy";
1141 rockchip,grf = <&grf>;
1142 clocks = <&cru SCLK_PCIEPHY_REF>;
1143 clock-names = "refclk";
1144 resets = <&cru SRST_PCIEPHY>;
1145 reset-names = "phy";
1146 status = "disabled";
1149 pcie0: pcie@f8000000 {
1150 compatible = "rockchip,rk3399-pcie";
1151 #address-cells = <3>;
1153 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>,
1154 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>;
1155 clock-names = "aclk", "aclk-perf",
1157 bus-range = <0x0 0x1>;
1158 msi-map = <0x0 &its 0x0 0x1000>;
1159 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>,
1160 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>,
1161 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>;
1162 interrupt-names = "sys", "legacy", "client";
1163 #interrupt-cells = <1>;
1164 interrupt-map-mask = <0 0 0 7>;
1165 interrupt-map = <0 0 0 1 &pcie0_intc 0>,
1166 <0 0 0 2 &pcie0_intc 1>,
1167 <0 0 0 3 &pcie0_intc 2>,
1168 <0 0 0 4 &pcie0_intc 3>;
1170 phy-names = "pcie-phy";
1171 ranges = <0x82000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x600000
1172 0x81000000 0x0 0xfa600000 0x0 0xfa600000 0x0 0x100000>;
1173 reg = <0x0 0xf8000000 0x0 0x2000000>,
1174 <0x0 0xfd000000 0x0 0x1000000>;
1175 reg-names = "axi-base", "apb-base";
1176 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>,
1177 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>,
1178 <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>,
1180 reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
1181 "pm", "pclk", "aclk";
1182 status = "disabled";
1183 pcie0_intc: interrupt-controller {
1184 interrupt-controller;
1185 #address-cells = <0>;
1186 #interrupt-cells = <1>;
1190 pwm0: pwm@ff420000 {
1191 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1192 reg = <0x0 0xff420000 0x0 0x10>;
1194 pinctrl-names = "default";
1195 pinctrl-0 = <&pwm0_pin>;
1196 clocks = <&pmucru PCLK_RKPWM_PMU>;
1197 clock-names = "pwm";
1198 status = "disabled";
1201 pwm1: pwm@ff420010 {
1202 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1203 reg = <0x0 0xff420010 0x0 0x10>;
1205 pinctrl-names = "default";
1206 pinctrl-0 = <&pwm1_pin>;
1207 clocks = <&pmucru PCLK_RKPWM_PMU>;
1208 clock-names = "pwm";
1209 status = "disabled";
1212 pwm2: pwm@ff420020 {
1213 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1214 reg = <0x0 0xff420020 0x0 0x10>;
1216 pinctrl-names = "default";
1217 pinctrl-0 = <&pwm2_pin>;
1218 clocks = <&pmucru PCLK_RKPWM_PMU>;
1219 clock-names = "pwm";
1220 status = "disabled";
1223 pwm3: pwm@ff420030 {
1224 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1225 reg = <0x0 0xff420030 0x0 0x10>;
1227 pinctrl-names = "default";
1228 pinctrl-0 = <&pwm3a_pin>;
1229 clocks = <&pmucru PCLK_RKPWM_PMU>;
1230 clock-names = "pwm";
1231 status = "disabled";
1235 reg = <0x00 0xff630000 0x00 0x4000>;
1236 compatible = "rockchip,rk3399-dfi";
1237 rockchip,pmu = <&pmugrf>;
1238 clocks = <&cru PCLK_DDR_MON>;
1239 clock-names = "pclk_ddr_mon";
1240 status = "disabled";
1244 compatible = "rockchip,rk3399-dmc";
1245 devfreq-events = <&dfi>;
1246 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH 0>;
1247 clocks = <&cru SCLK_DDRCLK>;
1248 clock-names = "dmc_clk";
1249 ddr_timing = <&ddr_timing>;
1250 status = "disabled";
1254 compatible = "rockchip,rk3399-rga";
1255 reg = <0x0 0xff680000 0x0 0x10000>;
1256 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH 0>;
1257 interrupt-names = "rga";
1258 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
1259 clock-names = "aclk", "hclk", "sclk";
1260 resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
1261 reset-names = "core", "axi", "ahb";
1262 power-domains = <&power RK3399_PD_RGA>;
1263 status = "disabled";
1266 efuse0: efuse@ff690000 {
1267 compatible = "rockchip,rk3399-efuse";
1268 reg = <0x0 0xff690000 0x0 0x80>;
1269 #address-cells = <1>;
1271 clocks = <&cru PCLK_EFUSE1024NS>;
1272 clock-names = "pclk_efuse";
1275 cpul_leakage: cpul-leakage {
1278 cpub_leakage: cpub-leakage {
1281 gpu_leakage: gpu-leakage {
1284 center_leakage: center-leakage {
1287 logic_leakage: logic-leakage {
1290 wafer_info: wafer-info {
1295 pmucru: pmu-clock-controller@ff750000 {
1296 compatible = "rockchip,rk3399-pmucru";
1297 reg = <0x0 0xff750000 0x0 0x1000>;
1300 assigned-clocks = <&pmucru PLL_PPLL>;
1301 assigned-clock-rates = <676000000>;
1304 cru: clock-controller@ff760000 {
1305 compatible = "rockchip,rk3399-cru";
1306 reg = <0x0 0xff760000 0x0 0x1000>;
1310 <&cru ACLK_VOP0>, <&cru HCLK_VOP0>,
1311 <&cru ACLK_VOP1>, <&cru HCLK_VOP1>,
1312 <&cru ARMCLKL>, <&cru ARMCLKB>,
1313 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1314 <&cru ACLK_GPU>, <&cru PLL_NPLL>,
1315 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
1317 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
1318 <&cru PCLK_PERILP0>,
1319 <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>;
1320 assigned-clock-rates =
1321 <400000000>, <200000000>,
1322 <400000000>, <200000000>,
1323 <816000000>, <816000000>,
1324 <594000000>, <800000000>,
1325 <200000000>, <1000000000>,
1326 <150000000>, <75000000>,
1328 <100000000>, <100000000>,
1330 <100000000>, <50000000>;
1333 grf: syscon@ff770000 {
1334 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
1335 reg = <0x0 0xff770000 0x0 0x10000>;
1336 #address-cells = <1>;
1339 io_domains: io-domains {
1340 compatible = "rockchip,rk3399-io-voltage-domain";
1341 status = "disabled";
1344 emmc_phy: phy@f780 {
1345 compatible = "rockchip,rk3399-emmc-phy";
1346 reg = <0xf780 0x24>;
1348 clock-names = "emmcclk";
1350 status = "disabled";
1353 u2phy0: usb2-phy@e450 {
1354 compatible = "rockchip,rk3399-usb2phy";
1355 reg = <0xe450 0x10>;
1356 clocks = <&cru SCLK_USB2PHY0_REF>;
1357 clock-names = "phyclk";
1359 clock-output-names = "clk_usbphy0_480m";
1360 status = "disabled";
1362 u2phy0_otg: otg-port {
1364 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
1365 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
1366 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
1367 interrupt-names = "otg-bvalid", "otg-id",
1369 status = "disabled";
1372 u2phy0_host: host-port {
1374 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
1375 interrupt-names = "linestate";
1376 status = "disabled";
1380 u2phy1: usb2-phy@e460 {
1381 compatible = "rockchip,rk3399-usb2phy";
1382 reg = <0xe460 0x10>;
1383 clocks = <&cru SCLK_USB2PHY1_REF>;
1384 clock-names = "phyclk";
1386 clock-output-names = "clk_usbphy1_480m";
1387 status = "disabled";
1389 u2phy1_otg: otg-port {
1391 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>,
1392 <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH 0>,
1393 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH 0>;
1394 interrupt-names = "otg-bvalid", "otg-id",
1396 status = "disabled";
1399 u2phy1_host: host-port {
1401 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH 0>;
1402 interrupt-names = "linestate";
1403 status = "disabled";
1408 compatible = "rockchip,rk3399-pvtm";
1409 clocks = <&cru SCLK_PVTM_CORE_L>,
1410 <&cru SCLK_PVTM_CORE_B>,
1411 <&cru SCLK_PVTM_GPU>,
1412 <&cru SCLK_PVTM_DDR>;
1413 clock-names = "core_l", "core_b", "gpu", "ddr";
1414 status = "disabled";
1418 tcphy0: phy@ff7c0000 {
1419 compatible = "rockchip,rk3399-typec-phy";
1420 reg = <0x0 0xff7c0000 0x0 0x40000>;
1421 rockchip,grf = <&grf>;
1423 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1424 <&cru SCLK_UPHY0_TCPDPHY_REF>;
1425 clock-names = "tcpdcore", "tcpdphy-ref";
1426 assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>;
1427 assigned-clock-rates = <50000000>;
1428 power-domains = <&power RK3399_PD_TCPD0>;
1429 resets = <&cru SRST_UPHY0>,
1430 <&cru SRST_UPHY0_PIPE_L00>,
1431 <&cru SRST_P_UPHY0_TCPHY>;
1432 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1433 rockchip,typec-conn-dir = <0xe580 0 16>;
1434 rockchip,usb3tousb2-en = <0xe580 3 19>;
1435 rockchip,usb3-host-disable = <0x2434 0 16>;
1436 rockchip,usb3-host-port = <0x2434 12 28>;
1437 rockchip,external-psm = <0xe588 14 30>;
1438 rockchip,pipe-status = <0xe5c0 0 0>;
1439 rockchip,uphy-dp-sel = <0x6268 19 19>;
1440 status = "disabled";
1442 tcphy0_dp: dp-port {
1446 tcphy0_usb3: usb3-port {
1451 tcphy1: phy@ff800000 {
1452 compatible = "rockchip,rk3399-typec-phy";
1453 reg = <0x0 0xff800000 0x0 0x40000>;
1454 rockchip,grf = <&grf>;
1456 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1457 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1458 clock-names = "tcpdcore", "tcpdphy-ref";
1459 assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>;
1460 assigned-clock-rates = <50000000>;
1461 power-domains = <&power RK3399_PD_TCPD1>;
1462 resets = <&cru SRST_UPHY1>,
1463 <&cru SRST_UPHY1_PIPE_L00>,
1464 <&cru SRST_P_UPHY1_TCPHY>;
1465 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1466 rockchip,typec-conn-dir = <0xe58c 0 16>;
1467 rockchip,usb3tousb2-en = <0xe58c 3 19>;
1468 rockchip,usb3-host-disable = <0x2444 0 16>;
1469 rockchip,usb3-host-port = <0x2444 12 28>;
1470 rockchip,external-psm = <0xe594 14 30>;
1471 rockchip,pipe-status = <0xe5c0 16 16>;
1472 rockchip,uphy-dp-sel = <0x6268 3 19>;
1473 status = "disabled";
1475 tcphy1_dp: dp-port {
1479 tcphy1_usb3: usb3-port {
1485 compatible = "snps,dw-wdt";
1486 reg = <0x0 0xff848000 0x0 0x100>;
1487 clocks = <&cru PCLK_WDT>;
1488 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH 0>;
1491 rktimer: rktimer@ff850000 {
1492 compatible = "rockchip,rk3399-timer";
1493 reg = <0x0 0xff850000 0x0 0x1000>;
1494 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>;
1495 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>;
1496 clock-names = "pclk", "timer";
1499 spdif: spdif@ff870000 {
1500 compatible = "rockchip,rk3399-spdif";
1501 reg = <0x0 0xff870000 0x0 0x1000>;
1502 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>;
1503 dmas = <&dmac_bus 7>;
1505 clock-names = "mclk", "hclk";
1506 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
1507 pinctrl-names = "default";
1508 pinctrl-0 = <&spdif_bus>;
1509 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1510 status = "disabled";
1513 i2s0: i2s@ff880000 {
1514 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1515 reg = <0x0 0xff880000 0x0 0x1000>;
1516 rockchip,grf = <&grf>;
1517 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH 0>;
1518 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1519 dma-names = "tx", "rx";
1520 clock-names = "i2s_clk", "i2s_hclk";
1521 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>;
1522 pinctrl-names = "default";
1523 pinctrl-0 = <&i2s0_8ch_bus>;
1524 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1525 status = "disabled";
1528 i2s1: i2s@ff890000 {
1529 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1530 reg = <0x0 0xff890000 0x0 0x1000>;
1531 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 0>;
1532 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
1533 dma-names = "tx", "rx";
1534 clock-names = "i2s_clk", "i2s_hclk";
1535 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>;
1536 pinctrl-names = "default";
1537 pinctrl-0 = <&i2s1_2ch_bus>;
1538 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1539 status = "disabled";
1542 i2s2: i2s@ff8a0000 {
1543 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1544 reg = <0x0 0xff8a0000 0x0 0x1000>;
1545 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>;
1546 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
1547 dma-names = "tx", "rx";
1548 clock-names = "i2s_clk", "i2s_hclk";
1549 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
1550 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1551 status = "disabled";
1555 compatible = "arm,malit860",
1560 reg = <0x0 0xff9a0000 0x0 0x10000>;
1562 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>,
1563 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>,
1564 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>;
1565 interrupt-names = "GPU", "JOB", "MMU";
1567 clocks = <&cru ACLK_GPU>;
1568 clock-names = "clk_mali";
1569 #cooling-cells = <2>; /* min followed by max */
1570 power-domains = <&power RK3399_PD_GPU>;
1571 power-off-delay-ms = <200>;
1572 status = "disabled";
1574 gpu_power_model: power_model {
1575 compatible = "arm,mali-simple-power-model";
1578 static-power = <300>;
1579 dynamic-power = <396>;
1580 ts = <32000 4700 (-80) 2>;
1581 thermal-zone = "gpu-thermal";
1585 vopl: vop@ff8f0000 {
1586 compatible = "rockchip,rk3399-vop-lit";
1587 reg = <0x0 0xff8f0000 0x0 0x3efc>;
1588 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
1589 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>;
1590 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1591 resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>;
1592 reset-names = "axi", "ahb", "dclk";
1593 power-domains = <&power RK3399_PD_VOPL>;
1594 iommus = <&vopl_mmu>;
1595 status = "disabled";
1598 #address-cells = <1>;
1601 vopl_out_mipi: endpoint@0 {
1603 remote-endpoint = <&mipi_in_vopl>;
1606 vopl_out_edp: endpoint@1 {
1608 remote-endpoint = <&edp_in_vopl>;
1611 vopl_out_hdmi: endpoint@2 {
1613 remote-endpoint = <&hdmi_in_vopl>;
1618 vop1_pwm: voppwm@ff8f01a0 {
1619 compatible = "rockchip,vop-pwm";
1620 reg = <0x0 0xff8f01a0 0x0 0x10>;
1622 pinctrl-names = "default";
1623 pinctrl-0 = <&vop1_pwm_pin>;
1624 clocks = <&cru SCLK_VOP1_PWM>;
1625 clock-names = "pwm";
1626 status = "disabled";
1629 vopl_mmu: iommu@ff8f3f00 {
1630 compatible = "rockchip,iommu";
1631 reg = <0x0 0xff8f3f00 0x0 0x100>;
1632 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
1633 interrupt-names = "vopl_mmu";
1635 status = "disabled";
1638 vopb: vop@ff900000 {
1639 compatible = "rockchip,rk3399-vop-big";
1640 reg = <0x0 0xff900000 0x0 0x3efc>;
1641 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>;
1642 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
1643 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1644 resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>;
1645 reset-names = "axi", "ahb", "dclk";
1646 power-domains = <&power RK3399_PD_VOPB>;
1647 iommus = <&vopb_mmu>;
1648 status = "disabled";
1651 #address-cells = <1>;
1654 vopb_out_edp: endpoint@0 {
1656 remote-endpoint = <&edp_in_vopb>;
1659 vopb_out_mipi: endpoint@1 {
1661 remote-endpoint = <&mipi_in_vopb>;
1664 vopb_out_hdmi: endpoint@2 {
1666 remote-endpoint = <&hdmi_in_vopb>;
1671 vop0_pwm: voppwm@ff9001a0 {
1672 compatible = "rockchip,vop-pwm";
1673 reg = <0x0 0xff9001a0 0x0 0x10>;
1675 pinctrl-names = "default";
1676 pinctrl-0 = <&vop0_pwm_pin>;
1677 clocks = <&cru SCLK_VOP0_PWM>;
1678 clock-names = "pwm";
1679 status = "disabled";
1682 vopb_mmu: iommu@ff903f00 {
1683 compatible = "rockchip,iommu";
1684 reg = <0x0 0xff903f00 0x0 0x100>;
1685 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>;
1686 interrupt-names = "vopb_mmu";
1688 status = "disabled";
1691 isp0_mmu: iommu@ff914000 {
1692 compatible = "rockchip,iommu";
1693 reg = <0x0 0xff914000 0x0 0x100>, <0x0 0xff915000 0x0 0x100>;
1694 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH 0>;
1695 interrupt-names = "isp0_mmu";
1697 rk_iommu,disable_reset_quirk;
1698 status = "disabled";
1701 isp1_mmu: iommu@ff924000 {
1702 compatible = "rockchip,iommu";
1703 reg = <0x0 0xff924000 0x0 0x100>, <0x0 0xff925000 0x0 0x100>;
1704 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH 0>;
1705 interrupt-names = "isp1_mmu";
1707 rk_iommu,disable_reset_quirk;
1708 status = "disabled";
1711 hdmi: hdmi@ff940000 {
1712 compatible = "rockchip,rk3399-dw-hdmi";
1713 reg = <0x0 0xff940000 0x0 0x20000>;
1715 rockchip,grf = <&grf>;
1716 power-domains = <&power RK3399_PD_HDCP>;
1717 pinctrl-names = "default";
1718 pinctrl-0 = <&hdmi_i2c_xfer>;
1719 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>;
1720 clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_SFR>, <&cru SCLK_HDMI_SFR>, <&cru PCLK_EDP_CTRL>;
1721 clock-names = "iahb", "isfr", "vpll", "grf";
1722 status = "disabled";
1726 #address-cells = <1>;
1728 hdmi_in_vopb: endpoint@0 {
1730 remote-endpoint = <&vopb_out_hdmi>;
1732 hdmi_in_vopl: endpoint@1 {
1734 remote-endpoint = <&vopl_out_hdmi>;
1740 mipi_dsi: mipi@ff960000 {
1741 compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
1742 reg = <0x0 0xff960000 0x0 0x8000>;
1743 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>;
1744 clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>,
1745 <&cru SCLK_DPHY_TX0_CFG>;
1746 clock-names = "ref", "pclk", "phy_cfg";
1747 power-domains = <&power RK3399_PD_VIO>;
1748 rockchip,grf = <&grf>;
1749 #address-cells = <1>;
1751 status = "disabled";
1754 #address-cells = <1>;
1759 #address-cells = <1>;
1762 mipi_in_vopb: endpoint@0 {
1764 remote-endpoint = <&vopb_out_mipi>;
1766 mipi_in_vopl: endpoint@1 {
1768 remote-endpoint = <&vopl_out_mipi>;
1775 compatible = "rockchip,rk3399-edp";
1776 reg = <0x0 0xff970000 0x0 0x8000>;
1777 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH 0>;
1778 clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>;
1779 clock-names = "dp", "pclk";
1780 power-domains = <&power RK3399_PD_EDP>;
1781 resets = <&cru SRST_P_EDP_CTRL>;
1783 rockchip,grf = <&grf>;
1784 status = "disabled";
1785 pinctrl-names = "default";
1786 pinctrl-0 = <&edp_hpd>;
1789 #address-cells = <1>;
1794 #address-cells = <1>;
1797 edp_in_vopb: endpoint@0 {
1799 remote-endpoint = <&vopb_out_edp>;
1802 edp_in_vopl: endpoint@1 {
1804 remote-endpoint = <&vopl_out_edp>;
1810 display_subsystem: display-subsystem {
1811 compatible = "rockchip,display-subsystem";
1812 ports = <&vopl_out>, <&vopb_out>;
1813 status = "disabled";
1817 compatible = "rockchip,rk3399-pinctrl";
1818 rockchip,grf = <&grf>;
1819 rockchip,pmu = <&pmugrf>;
1820 #address-cells = <0x2>;
1821 #size-cells = <0x2>;
1824 gpio0: gpio0@ff720000 {
1825 compatible = "rockchip,gpio-bank";
1826 reg = <0x0 0xff720000 0x0 0x100>;
1827 clocks = <&pmucru PCLK_GPIO0_PMU>;
1828 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>;
1831 #gpio-cells = <0x2>;
1833 interrupt-controller;
1834 #interrupt-cells = <0x2>;
1837 gpio1: gpio1@ff730000 {
1838 compatible = "rockchip,gpio-bank";
1839 reg = <0x0 0xff730000 0x0 0x100>;
1840 clocks = <&pmucru PCLK_GPIO1_PMU>;
1841 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>;
1844 #gpio-cells = <0x2>;
1846 interrupt-controller;
1847 #interrupt-cells = <0x2>;
1850 gpio2: gpio2@ff780000 {
1851 compatible = "rockchip,gpio-bank";
1852 reg = <0x0 0xff780000 0x0 0x100>;
1853 clocks = <&cru PCLK_GPIO2>;
1854 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>;
1857 #gpio-cells = <0x2>;
1859 interrupt-controller;
1860 #interrupt-cells = <0x2>;
1863 gpio3: gpio3@ff788000 {
1864 compatible = "rockchip,gpio-bank";
1865 reg = <0x0 0xff788000 0x0 0x100>;
1866 clocks = <&cru PCLK_GPIO3>;
1867 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
1870 #gpio-cells = <0x2>;
1872 interrupt-controller;
1873 #interrupt-cells = <0x2>;
1876 gpio4: gpio4@ff790000 {
1877 compatible = "rockchip,gpio-bank";
1878 reg = <0x0 0xff790000 0x0 0x100>;
1879 clocks = <&cru PCLK_GPIO4>;
1880 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
1883 #gpio-cells = <0x2>;
1885 interrupt-controller;
1886 #interrupt-cells = <0x2>;
1889 pcfg_pull_up: pcfg-pull-up {
1893 pcfg_pull_down: pcfg-pull-down {
1897 pcfg_pull_none: pcfg-pull-none {
1901 pcfg_pull_up_20ma: pcfg-pull-up-20ma {
1903 drive-strength = <20>;
1906 pcfg_pull_none_20ma: pcfg-pull-none-20ma {
1908 drive-strength = <20>;
1911 pcfg_pull_none_18ma: pcfg-pull-none-18ma {
1913 drive-strength = <18>;
1916 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1918 drive-strength = <12>;
1921 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1923 drive-strength = <8>;
1926 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1928 drive-strength = <4>;
1931 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1933 drive-strength = <2>;
1936 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
1938 drive-strength = <12>;
1941 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
1943 drive-strength = <13>;
1946 pcfg_output_high: pcfg-output-high {
1950 pcfg_output_low: pcfg-output-low {
1954 pcfg_input: pcfg-input {
1959 emmc_pwr: emmc-pwr {
1961 <0 5 RK_FUNC_1 &pcfg_pull_up>;
1966 rgmii_pins: rgmii-pins {
1969 <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>,
1971 <3 14 RK_FUNC_1 &pcfg_pull_none>,
1973 <3 13 RK_FUNC_1 &pcfg_pull_none>,
1975 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1977 <3 11 RK_FUNC_1 &pcfg_pull_none>,
1979 <3 9 RK_FUNC_1 &pcfg_pull_none>,
1981 <3 8 RK_FUNC_1 &pcfg_pull_none>,
1983 <3 7 RK_FUNC_1 &pcfg_pull_none>,
1985 <3 6 RK_FUNC_1 &pcfg_pull_none>,
1987 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1989 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1991 <3 3 RK_FUNC_1 &pcfg_pull_none>,
1993 <3 2 RK_FUNC_1 &pcfg_pull_none>,
1995 <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>,
1997 <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>;
2000 rmii_pins: rmii-pins {
2003 <3 13 RK_FUNC_1 &pcfg_pull_none>,
2005 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
2007 <3 11 RK_FUNC_1 &pcfg_pull_none>,
2009 <3 10 RK_FUNC_1 &pcfg_pull_none>,
2011 <3 9 RK_FUNC_1 &pcfg_pull_none>,
2013 <3 8 RK_FUNC_1 &pcfg_pull_none>,
2015 <3 7 RK_FUNC_1 &pcfg_pull_none>,
2017 <3 6 RK_FUNC_1 &pcfg_pull_none>,
2019 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
2021 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>;
2026 i2c0_xfer: i2c0-xfer {
2028 <1 15 RK_FUNC_2 &pcfg_pull_none>,
2029 <1 16 RK_FUNC_2 &pcfg_pull_none>;
2034 i2c1_xfer: i2c1-xfer {
2036 <4 2 RK_FUNC_1 &pcfg_pull_none>,
2037 <4 1 RK_FUNC_1 &pcfg_pull_none>;
2042 i2c2_xfer: i2c2-xfer {
2044 <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
2045 <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>;
2050 i2c3_xfer: i2c3-xfer {
2052 <4 17 RK_FUNC_1 &pcfg_pull_none>,
2053 <4 16 RK_FUNC_1 &pcfg_pull_none>;
2056 i2c3_gpio: i2c3_gpio {
2058 <4 17 RK_FUNC_GPIO &pcfg_pull_none>,
2059 <4 16 RK_FUNC_GPIO &pcfg_pull_none>;
2065 i2c4_xfer: i2c4-xfer {
2067 <1 12 RK_FUNC_1 &pcfg_pull_none>,
2068 <1 11 RK_FUNC_1 &pcfg_pull_none>;
2073 i2c5_xfer: i2c5-xfer {
2075 <3 11 RK_FUNC_2 &pcfg_pull_none>,
2076 <3 10 RK_FUNC_2 &pcfg_pull_none>;
2081 i2c6_xfer: i2c6-xfer {
2083 <2 10 RK_FUNC_2 &pcfg_pull_none>,
2084 <2 9 RK_FUNC_2 &pcfg_pull_none>;
2089 i2c7_xfer: i2c7-xfer {
2091 <2 8 RK_FUNC_2 &pcfg_pull_none>,
2092 <2 7 RK_FUNC_2 &pcfg_pull_none>;
2097 i2c8_xfer: i2c8-xfer {
2099 <1 21 RK_FUNC_1 &pcfg_pull_none>,
2100 <1 20 RK_FUNC_1 &pcfg_pull_none>;
2105 i2s0_8ch_bus: i2s0-8ch-bus {
2107 <3 24 RK_FUNC_1 &pcfg_pull_none>,
2108 <3 25 RK_FUNC_1 &pcfg_pull_none>,
2109 <3 26 RK_FUNC_1 &pcfg_pull_none>,
2110 <3 27 RK_FUNC_1 &pcfg_pull_none>,
2111 <3 28 RK_FUNC_1 &pcfg_pull_none>,
2112 <3 29 RK_FUNC_1 &pcfg_pull_none>,
2113 <3 30 RK_FUNC_1 &pcfg_pull_none>,
2114 <3 31 RK_FUNC_1 &pcfg_pull_none>,
2115 <4 0 RK_FUNC_1 &pcfg_pull_none>;
2120 i2s1_2ch_bus: i2s1-2ch-bus {
2122 <4 3 RK_FUNC_1 &pcfg_pull_none>,
2123 <4 4 RK_FUNC_1 &pcfg_pull_none>,
2124 <4 5 RK_FUNC_1 &pcfg_pull_none>,
2125 <4 6 RK_FUNC_1 &pcfg_pull_none>,
2126 <4 7 RK_FUNC_1 &pcfg_pull_none>;
2131 sdio0_bus1: sdio0-bus1 {
2133 <2 20 RK_FUNC_1 &pcfg_pull_up>;
2136 sdio0_bus4: sdio0-bus4 {
2138 <2 20 RK_FUNC_1 &pcfg_pull_up>,
2139 <2 21 RK_FUNC_1 &pcfg_pull_up>,
2140 <2 22 RK_FUNC_1 &pcfg_pull_up>,
2141 <2 23 RK_FUNC_1 &pcfg_pull_up>;
2144 sdio0_cmd: sdio0-cmd {
2146 <2 24 RK_FUNC_1 &pcfg_pull_up>;
2149 sdio0_clk: sdio0-clk {
2151 <2 25 RK_FUNC_1 &pcfg_pull_none>;
2154 sdio0_cd: sdio0-cd {
2156 <2 26 RK_FUNC_1 &pcfg_pull_up>;
2159 sdio0_pwr: sdio0-pwr {
2161 <2 27 RK_FUNC_1 &pcfg_pull_up>;
2164 sdio0_bkpwr: sdio0-bkpwr {
2166 <2 28 RK_FUNC_1 &pcfg_pull_up>;
2169 sdio0_wp: sdio0-wp {
2171 <0 3 RK_FUNC_1 &pcfg_pull_up>;
2174 sdio0_int: sdio0-int {
2176 <0 4 RK_FUNC_1 &pcfg_pull_up>;
2181 sdmmc_bus1: sdmmc-bus1 {
2183 <4 8 RK_FUNC_1 &pcfg_pull_up>;
2186 sdmmc_bus4: sdmmc-bus4 {
2188 <4 8 RK_FUNC_1 &pcfg_pull_up>,
2189 <4 9 RK_FUNC_1 &pcfg_pull_up>,
2190 <4 10 RK_FUNC_1 &pcfg_pull_up>,
2191 <4 11 RK_FUNC_1 &pcfg_pull_up>;
2194 sdmmc_clk: sdmmc-clk {
2196 <4 12 RK_FUNC_1 &pcfg_pull_none>;
2199 sdmmc_cmd: sdmmc-cmd {
2201 <4 13 RK_FUNC_1 &pcfg_pull_up>;
2204 sdmmc_cd: sdmcc-cd {
2206 <0 7 RK_FUNC_1 &pcfg_pull_up>;
2209 sdmmc_wp: sdmmc-wp {
2211 <0 8 RK_FUNC_1 &pcfg_pull_up>;
2216 spdif_bus: spdif-bus {
2218 <4 21 RK_FUNC_1 &pcfg_pull_none>;
2221 spdif_bus_1: spdif-bus-1 {
2223 <3 16 RK_FUNC_3 &pcfg_pull_none>;
2228 spi0_clk: spi0-clk {
2230 <3 6 RK_FUNC_2 &pcfg_pull_up>;
2232 spi0_cs0: spi0-cs0 {
2234 <3 7 RK_FUNC_2 &pcfg_pull_up>;
2236 spi0_cs1: spi0-cs1 {
2238 <3 8 RK_FUNC_2 &pcfg_pull_up>;
2242 <3 5 RK_FUNC_2 &pcfg_pull_up>;
2246 <3 4 RK_FUNC_2 &pcfg_pull_up>;
2251 spi1_clk: spi1-clk {
2253 <1 9 RK_FUNC_2 &pcfg_pull_up>;
2255 spi1_cs0: spi1-cs0 {
2257 <1 10 RK_FUNC_2 &pcfg_pull_up>;
2261 <1 7 RK_FUNC_2 &pcfg_pull_up>;
2265 <1 8 RK_FUNC_2 &pcfg_pull_up>;
2270 spi2_clk: spi2-clk {
2272 <2 11 RK_FUNC_1 &pcfg_pull_up>;
2274 spi2_cs0: spi2-cs0 {
2276 <2 12 RK_FUNC_1 &pcfg_pull_up>;
2280 <2 9 RK_FUNC_1 &pcfg_pull_up>;
2284 <2 10 RK_FUNC_1 &pcfg_pull_up>;
2289 spi3_clk: spi3-clk {
2291 <1 17 RK_FUNC_1 &pcfg_pull_up>;
2293 spi3_cs0: spi3-cs0 {
2295 <1 18 RK_FUNC_1 &pcfg_pull_up>;
2299 <1 15 RK_FUNC_1 &pcfg_pull_up>;
2303 <1 16 RK_FUNC_1 &pcfg_pull_up>;
2308 spi4_clk: spi4-clk {
2310 <3 2 RK_FUNC_2 &pcfg_pull_up>;
2312 spi4_cs0: spi4-cs0 {
2314 <3 3 RK_FUNC_2 &pcfg_pull_up>;
2318 <3 0 RK_FUNC_2 &pcfg_pull_up>;
2322 <3 1 RK_FUNC_2 &pcfg_pull_up>;
2327 spi5_clk: spi5-clk {
2329 <2 22 RK_FUNC_2 &pcfg_pull_up>;
2331 spi5_cs0: spi5-cs0 {
2333 <2 23 RK_FUNC_2 &pcfg_pull_up>;
2337 <2 20 RK_FUNC_2 &pcfg_pull_up>;
2341 <2 21 RK_FUNC_2 &pcfg_pull_up>;
2346 otp_gpio: otp-gpio {
2347 rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
2351 rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>;
2356 uart0_xfer: uart0-xfer {
2358 <2 16 RK_FUNC_1 &pcfg_pull_up>,
2359 <2 17 RK_FUNC_1 &pcfg_pull_none>;
2362 uart0_cts: uart0-cts {
2364 <2 18 RK_FUNC_1 &pcfg_pull_none>;
2367 uart0_rts: uart0-rts {
2369 <2 19 RK_FUNC_1 &pcfg_pull_none>;
2374 uart1_xfer: uart1-xfer {
2376 <3 12 RK_FUNC_2 &pcfg_pull_up>,
2377 <3 13 RK_FUNC_2 &pcfg_pull_none>;
2382 uart2a_xfer: uart2a-xfer {
2384 <4 8 RK_FUNC_2 &pcfg_pull_up>,
2385 <4 9 RK_FUNC_2 &pcfg_pull_none>;
2390 uart2b_xfer: uart2b-xfer {
2392 <4 16 RK_FUNC_2 &pcfg_pull_up>,
2393 <4 17 RK_FUNC_2 &pcfg_pull_none>;
2398 uart2c_xfer: uart2c-xfer {
2400 <4 19 RK_FUNC_1 &pcfg_pull_up>,
2401 <4 20 RK_FUNC_1 &pcfg_pull_none>;
2406 uart3_xfer: uart3-xfer {
2408 <3 14 RK_FUNC_2 &pcfg_pull_up>,
2409 <3 15 RK_FUNC_2 &pcfg_pull_none>;
2412 uart3_cts: uart3-cts {
2414 <3 18 RK_FUNC_2 &pcfg_pull_none>;
2417 uart3_rts: uart3-rts {
2419 <3 19 RK_FUNC_2 &pcfg_pull_none>;
2424 uart4_xfer: uart4-xfer {
2426 <1 7 RK_FUNC_1 &pcfg_pull_up>,
2427 <1 8 RK_FUNC_1 &pcfg_pull_none>;
2432 uarthdcp_xfer: uarthdcp-xfer {
2434 <4 21 RK_FUNC_2 &pcfg_pull_up>,
2435 <4 22 RK_FUNC_2 &pcfg_pull_none>;
2440 pwm0_pin: pwm0-pin {
2442 <4 18 RK_FUNC_1 &pcfg_pull_none>;
2445 vop0_pwm_pin: vop0-pwm-pin {
2447 <4 18 RK_FUNC_2 &pcfg_pull_none>;
2452 pwm1_pin: pwm1-pin {
2454 <4 22 RK_FUNC_1 &pcfg_pull_none>;
2457 vop1_pwm_pin: vop1-pwm-pin {
2459 <4 18 RK_FUNC_3 &pcfg_pull_none>;
2464 pwm2_pin: pwm2-pin {
2466 <1 19 RK_FUNC_1 &pcfg_pull_none>;
2471 pwm3a_pin: pwm3a-pin {
2473 <0 6 RK_FUNC_1 &pcfg_pull_none>;
2478 pwm3b_pin: pwm3b-pin {
2480 <1 14 RK_FUNC_1 &pcfg_pull_none>;
2487 <4 23 RK_FUNC_2 &pcfg_pull_none>;
2492 hdmi_i2c_xfer: hdmi-i2c-xfer {
2494 <4 17 RK_FUNC_3 &pcfg_pull_none>,
2495 <4 16 RK_FUNC_3 &pcfg_pull_none>;
2498 hdmi_cec: hdmi-cec {
2500 <4 23 RK_FUNC_1 &pcfg_pull_none>;
2505 pcie_clkreqn: pci-clkreqn {
2507 <2 26 RK_FUNC_2 &pcfg_pull_none>;
2510 pcie_clkreqnb: pci-clkreqnb {
2512 <4 24 RK_FUNC_1 &pcfg_pull_none>;