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>;
108 compatible = "arm,cortex-a53", "arm,armv8";
110 enable-method = "psci";
111 #cooling-cells = <2>; /* min followed by max */
112 clocks = <&cru ARMCLKL>;
117 compatible = "arm,cortex-a53", "arm,armv8";
119 enable-method = "psci";
120 clocks = <&cru ARMCLKL>;
125 compatible = "arm,cortex-a53", "arm,armv8";
127 enable-method = "psci";
128 clocks = <&cru ARMCLKL>;
133 compatible = "arm,cortex-a53", "arm,armv8";
135 enable-method = "psci";
136 clocks = <&cru ARMCLKL>;
141 compatible = "arm,cortex-a72", "arm,armv8";
143 enable-method = "psci";
144 #cooling-cells = <2>; /* min followed by max */
145 clocks = <&cru ARMCLKB>;
150 compatible = "arm,cortex-a72", "arm,armv8";
152 enable-method = "psci";
153 clocks = <&cru ARMCLKB>;
158 compatible = "arm,cortex-a53-pmu";
159 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster0>;
163 compatible = "arm,cortex-a72-pmu";
164 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster1>;
168 compatible = "arm,psci-1.0";
173 compatible = "arm,armv8-timer";
174 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
175 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
176 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
177 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>;
178 arm,no-tick-in-suspend;
182 compatible = "fixed-clock";
183 clock-frequency = <24000000>;
184 clock-output-names = "xin24m";
189 compatible = "simple-bus";
190 #address-cells = <2>;
194 dmac_bus: dma-controller@ff6d0000 {
195 compatible = "arm,pl330", "arm,primecell";
196 reg = <0x0 0xff6d0000 0x0 0x4000>;
197 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>,
198 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>;
200 clocks = <&cru ACLK_DMAC0_PERILP>;
201 clock-names = "apb_pclk";
204 dmac_peri: dma-controller@ff6e0000 {
205 compatible = "arm,pl330", "arm,primecell";
206 reg = <0x0 0xff6e0000 0x0 0x4000>;
207 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>,
208 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>;
210 clocks = <&cru ACLK_DMAC1_PERILP>;
211 clock-names = "apb_pclk";
215 pcie0: pcie@f8000000 {
216 compatible = "rockchip,rk3399-pcie";
217 reg = <0x0 0xf8000000 0x0 0x2000000>,
218 <0x0 0xfd000000 0x0 0x1000000>;
219 reg-names = "axi-base", "apb-base";
220 #address-cells = <3>;
222 #interrupt-cells = <1>;
224 bus-range = <0x0 0x1f>;
225 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>,
226 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>;
227 clock-names = "aclk", "aclk-perf",
229 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>,
230 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>,
231 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>;
232 interrupt-names = "sys", "legacy", "client";
233 interrupt-map-mask = <0 0 0 7>;
234 interrupt-map = <0 0 0 1 &pcie0_intc 0>,
235 <0 0 0 2 &pcie0_intc 1>,
236 <0 0 0 3 &pcie0_intc 2>,
237 <0 0 0 4 &pcie0_intc 3>;
238 linux,pci-domain = <0>;
239 max-link-speed = <1>;
240 msi-map = <0x0 &its 0x0 0x1000>;
242 phy-names = "pcie-phy";
243 ranges = <0x83000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x1e00000
244 0x81000000 0x0 0xfbe00000 0x0 0xfbe00000 0x0 0x100000>;
245 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>,
246 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>,
247 <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>,
249 reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
250 "pm", "pclk", "aclk";
253 pcie0_intc: interrupt-controller {
254 interrupt-controller;
255 #address-cells = <0>;
256 #interrupt-cells = <1>;
260 gmac: ethernet@fe300000 {
261 compatible = "rockchip,rk3399-gmac";
262 reg = <0x0 0xfe300000 0x0 0x10000>;
263 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
264 interrupt-names = "macirq";
265 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
266 <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
267 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
269 clock-names = "stmmaceth", "mac_clk_rx",
270 "mac_clk_tx", "clk_mac_ref",
271 "clk_mac_refout", "aclk_mac",
273 power-domains = <&power RK3399_PD_GMAC>;
274 resets = <&cru SRST_A_GMAC>;
275 reset-names = "stmmaceth";
276 rockchip,grf = <&grf>;
280 sdio0: dwmmc@fe310000 {
281 compatible = "rockchip,rk3399-dw-mshc",
282 "rockchip,rk3288-dw-mshc";
283 reg = <0x0 0xfe310000 0x0 0x4000>;
284 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH 0>;
285 max-frequency = <150000000>;
286 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
287 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
288 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
289 fifo-depth = <0x100>;
290 resets = <&cru SRST_SDIO0>;
291 reset-names = "reset";
295 sdmmc: dwmmc@fe320000 {
296 compatible = "rockchip,rk3399-dw-mshc",
297 "rockchip,rk3288-dw-mshc";
298 reg = <0x0 0xfe320000 0x0 0x4000>;
299 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>;
300 max-frequency = <150000000>;
301 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
302 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
303 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
304 fifo-depth = <0x100>;
305 power-domains = <&power RK3399_PD_SD>;
306 resets = <&cru SRST_SDMMC>;
307 reset-names = "reset";
311 sdhci: sdhci@fe330000 {
312 compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
313 reg = <0x0 0xfe330000 0x0 0x10000>;
314 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>;
315 arasan,soc-ctl-syscon = <&grf>;
316 assigned-clocks = <&cru SCLK_EMMC>;
317 assigned-clock-rates = <200000000>;
318 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
319 clock-names = "clk_xin", "clk_ahb";
320 clock-output-names = "emmc_cardclock";
323 phy-names = "phy_arasan";
324 power-domains = <&power RK3399_PD_EMMC>;
328 usb_host0_ehci: usb@fe380000 {
329 compatible = "generic-ehci";
330 reg = <0x0 0xfe380000 0x0 0x20000>;
331 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>;
332 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
334 clock-names = "usbhost", "arbiter",
336 phys = <&u2phy0_host>;
341 usb_host0_ohci: usb@fe3a0000 {
342 compatible = "generic-ohci";
343 reg = <0x0 0xfe3a0000 0x0 0x20000>;
344 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>;
345 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
347 clock-names = "usbhost", "arbiter",
349 phys = <&u2phy0_host>;
354 usb_host1_ehci: usb@fe3c0000 {
355 compatible = "generic-ehci";
356 reg = <0x0 0xfe3c0000 0x0 0x20000>;
357 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>;
358 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
360 clock-names = "usbhost", "arbiter",
362 phys = <&u2phy1_host>;
367 usb_host1_ohci: usb@fe3e0000 {
368 compatible = "generic-ohci";
369 reg = <0x0 0xfe3e0000 0x0 0x20000>;
370 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
371 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
373 clock-names = "usbhost", "arbiter",
375 phys = <&u2phy1_host>;
380 usbdrd3_0: usb@fe800000 {
381 compatible = "rockchip,rk3399-dwc3";
382 #address-cells = <2>;
385 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
386 <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>;
387 clock-names = "ref_clk", "suspend_clk",
388 "bus_clk", "grf_clk";
391 usbdrd_dwc3_0: dwc3 {
392 compatible = "snps,dwc3";
393 reg = <0x0 0xfe800000 0x0 0x100000>;
394 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>;
396 phys = <&u2phy0_otg>;
397 phy-names = "usb2-phy";
398 phy_type = "utmi_wide";
399 snps,dis_enblslpm_quirk;
400 snps,dis-u2-freeclk-exists-quirk;
401 snps,dis_u2_susphy_quirk;
402 snps,dis-del-phy-power-chg-quirk;
407 usbdrd3_1: usb@fe900000 {
408 compatible = "rockchip,rk3399-dwc3";
409 #address-cells = <2>;
412 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>,
413 <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_GRF>;
414 clock-names = "ref_clk", "suspend_clk",
415 "bus_clk", "grf_clk";
418 usbdrd_dwc3_1: dwc3 {
419 compatible = "snps,dwc3";
420 reg = <0x0 0xfe900000 0x0 0x100000>;
421 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>;
423 phys = <&u2phy1_otg>;
424 phy-names = "usb2-phy";
425 phy_type = "utmi_wide";
426 snps,dis_enblslpm_quirk;
427 snps,dis-u2-freeclk-exists-quirk;
428 snps,dis_u2_susphy_quirk;
429 snps,dis-del-phy-power-chg-quirk;
434 gic: interrupt-controller@fee00000 {
435 compatible = "arm,gic-v3";
436 #interrupt-cells = <4>;
437 #address-cells = <2>;
440 interrupt-controller;
442 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
443 <0x0 0xfef00000 0 0xc0000>, /* GICR */
444 <0x0 0xfff00000 0 0x10000>, /* GICC */
445 <0x0 0xfff10000 0 0x10000>, /* GICH */
446 <0x0 0xfff20000 0 0x10000>; /* GICV */
447 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
448 its: interrupt-controller@fee20000 {
449 compatible = "arm,gic-v3-its";
451 reg = <0x0 0xfee20000 0x0 0x20000>;
455 ppi_cluster0: interrupt-partition-0 {
456 affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>;
459 ppi_cluster1: interrupt-partition-1 {
460 affinity = <&cpu_b0 &cpu_b1>;
465 saradc: saradc@ff100000 {
466 compatible = "rockchip,rk3399-saradc";
467 reg = <0x0 0xff100000 0x0 0x100>;
468 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH 0>;
469 #io-channel-cells = <1>;
470 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
471 clock-names = "saradc", "apb_pclk";
472 resets = <&cru SRST_P_SARADC>;
473 reset-names = "saradc-apb";
478 compatible = "rockchip,rk3399-i2c";
479 reg = <0x0 0xff110000 0x0 0x1000>;
480 assigned-clocks = <&cru SCLK_I2C1>;
481 assigned-clock-rates = <200000000>;
482 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
483 clock-names = "i2c", "pclk";
484 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH 0>;
485 pinctrl-names = "default";
486 pinctrl-0 = <&i2c1_xfer>;
487 #address-cells = <1>;
493 compatible = "rockchip,rk3399-i2c";
494 reg = <0x0 0xff120000 0x0 0x1000>;
495 assigned-clocks = <&cru SCLK_I2C2>;
496 assigned-clock-rates = <200000000>;
497 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
498 clock-names = "i2c", "pclk";
499 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH 0>;
500 pinctrl-names = "default";
501 pinctrl-0 = <&i2c2_xfer>;
502 #address-cells = <1>;
508 compatible = "rockchip,rk3399-i2c";
509 reg = <0x0 0xff130000 0x0 0x1000>;
510 assigned-clocks = <&cru SCLK_I2C3>;
511 assigned-clock-rates = <200000000>;
512 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
513 clock-names = "i2c", "pclk";
514 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH 0>;
515 pinctrl-names = "default";
516 pinctrl-0 = <&i2c3_xfer>;
517 #address-cells = <1>;
523 compatible = "rockchip,rk3399-i2c";
524 reg = <0x0 0xff140000 0x0 0x1000>;
525 assigned-clocks = <&cru SCLK_I2C5>;
526 assigned-clock-rates = <200000000>;
527 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>;
528 clock-names = "i2c", "pclk";
529 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>;
530 pinctrl-names = "default";
531 pinctrl-0 = <&i2c5_xfer>;
532 #address-cells = <1>;
538 compatible = "rockchip,rk3399-i2c";
539 reg = <0x0 0xff150000 0x0 0x1000>;
540 assigned-clocks = <&cru SCLK_I2C6>;
541 assigned-clock-rates = <200000000>;
542 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>;
543 clock-names = "i2c", "pclk";
544 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH 0>;
545 pinctrl-names = "default";
546 pinctrl-0 = <&i2c6_xfer>;
547 #address-cells = <1>;
553 compatible = "rockchip,rk3399-i2c";
554 reg = <0x0 0xff160000 0x0 0x1000>;
555 assigned-clocks = <&cru SCLK_I2C7>;
556 assigned-clock-rates = <200000000>;
557 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
558 clock-names = "i2c", "pclk";
559 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>;
560 pinctrl-names = "default";
561 pinctrl-0 = <&i2c7_xfer>;
562 #address-cells = <1>;
567 uart0: serial@ff180000 {
568 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
569 reg = <0x0 0xff180000 0x0 0x100>;
570 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
571 clock-names = "baudclk", "apb_pclk";
572 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>;
575 pinctrl-names = "default";
576 pinctrl-0 = <&uart0_xfer>;
580 uart1: serial@ff190000 {
581 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
582 reg = <0x0 0xff190000 0x0 0x100>;
583 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
584 clock-names = "baudclk", "apb_pclk";
585 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH 0>;
588 pinctrl-names = "default";
589 pinctrl-0 = <&uart1_xfer>;
593 uart2: serial@ff1a0000 {
594 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
595 reg = <0x0 0xff1a0000 0x0 0x100>;
596 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
597 clock-names = "baudclk", "apb_pclk";
598 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH 0>;
601 pinctrl-names = "default";
602 pinctrl-0 = <&uart2c_xfer>;
606 uart3: serial@ff1b0000 {
607 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
608 reg = <0x0 0xff1b0000 0x0 0x100>;
609 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
610 clock-names = "baudclk", "apb_pclk";
611 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>;
614 pinctrl-names = "default";
615 pinctrl-0 = <&uart3_xfer>;
620 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
621 reg = <0x0 0xff1c0000 0x0 0x1000>;
622 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
623 clock-names = "spiclk", "apb_pclk";
624 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>;
625 pinctrl-names = "default";
626 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
627 #address-cells = <1>;
633 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
634 reg = <0x0 0xff1d0000 0x0 0x1000>;
635 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
636 clock-names = "spiclk", "apb_pclk";
637 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
638 pinctrl-names = "default";
639 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
640 #address-cells = <1>;
646 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
647 reg = <0x0 0xff1e0000 0x0 0x1000>;
648 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
649 clock-names = "spiclk", "apb_pclk";
650 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>;
651 pinctrl-names = "default";
652 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
653 #address-cells = <1>;
659 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
660 reg = <0x0 0xff1f0000 0x0 0x1000>;
661 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
662 clock-names = "spiclk", "apb_pclk";
663 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>;
664 pinctrl-names = "default";
665 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
666 #address-cells = <1>;
672 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
673 reg = <0x0 0xff200000 0x0 0x1000>;
674 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
675 clock-names = "spiclk", "apb_pclk";
676 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>;
677 pinctrl-names = "default";
678 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
679 #address-cells = <1>;
684 thermal_zones: thermal-zones {
686 polling-delay-passive = <100>;
687 polling-delay = <1000>;
689 thermal-sensors = <&tsadc 0>;
692 cpu_alert0: cpu_alert0 {
693 temperature = <70000>;
697 cpu_alert1: cpu_alert1 {
698 temperature = <75000>;
703 temperature = <95000>;
711 trip = <&cpu_alert0>;
713 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
716 trip = <&cpu_alert1>;
718 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
719 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
725 polling-delay-passive = <100>;
726 polling-delay = <1000>;
728 thermal-sensors = <&tsadc 1>;
731 gpu_alert0: gpu_alert0 {
732 temperature = <75000>;
737 temperature = <95000>;
745 trip = <&gpu_alert0>;
747 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
753 tsadc: tsadc@ff260000 {
754 compatible = "rockchip,rk3399-tsadc";
755 reg = <0x0 0xff260000 0x0 0x100>;
756 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH 0>;
757 assigned-clocks = <&cru SCLK_TSADC>;
758 assigned-clock-rates = <750000>;
759 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
760 clock-names = "tsadc", "apb_pclk";
761 resets = <&cru SRST_TSADC>;
762 reset-names = "tsadc-apb";
763 rockchip,grf = <&grf>;
764 rockchip,hw-tshut-temp = <95000>;
765 pinctrl-names = "init", "default", "sleep";
766 pinctrl-0 = <&otp_gpio>;
767 pinctrl-1 = <&otp_out>;
768 pinctrl-2 = <&otp_gpio>;
769 #thermal-sensor-cells = <1>;
773 qos_emmc: qos@ffa58000 {
774 compatible = "syscon";
775 reg = <0x0 0xffa58000 0x0 0x20>;
778 qos_gmac: qos@ffa5c000 {
779 compatible = "syscon";
780 reg = <0x0 0xffa5c000 0x0 0x20>;
783 qos_pcie: qos@ffa60080 {
784 compatible = "syscon";
785 reg = <0x0 0xffa60080 0x0 0x20>;
788 qos_usb_host0: qos@ffa60100 {
789 compatible = "syscon";
790 reg = <0x0 0xffa60100 0x0 0x20>;
793 qos_usb_host1: qos@ffa60180 {
794 compatible = "syscon";
795 reg = <0x0 0xffa60180 0x0 0x20>;
798 qos_usb_otg0: qos@ffa70000 {
799 compatible = "syscon";
800 reg = <0x0 0xffa70000 0x0 0x20>;
803 qos_usb_otg1: qos@ffa70080 {
804 compatible = "syscon";
805 reg = <0x0 0xffa70080 0x0 0x20>;
808 qos_sd: qos@ffa74000 {
809 compatible = "syscon";
810 reg = <0x0 0xffa74000 0x0 0x20>;
813 qos_sdioaudio: qos@ffa76000 {
814 compatible = "syscon";
815 reg = <0x0 0xffa76000 0x0 0x20>;
818 qos_hdcp: qos@ffa90000 {
819 compatible = "syscon";
820 reg = <0x0 0xffa90000 0x0 0x20>;
823 qos_iep: qos@ffa98000 {
824 compatible = "syscon";
825 reg = <0x0 0xffa98000 0x0 0x20>;
828 qos_isp0_m0: qos@ffaa0000 {
829 compatible = "syscon";
830 reg = <0x0 0xffaa0000 0x0 0x20>;
833 qos_isp0_m1: qos@ffaa0080 {
834 compatible = "syscon";
835 reg = <0x0 0xffaa0080 0x0 0x20>;
838 qos_isp1_m0: qos@ffaa8000 {
839 compatible = "syscon";
840 reg = <0x0 0xffaa8000 0x0 0x20>;
843 qos_isp1_m1: qos@ffaa8080 {
844 compatible = "syscon";
845 reg = <0x0 0xffaa8080 0x0 0x20>;
848 qos_rga_r: qos@ffab0000 {
849 compatible = "syscon";
850 reg = <0x0 0xffab0000 0x0 0x20>;
853 qos_rga_w: qos@ffab0080 {
854 compatible = "syscon";
855 reg = <0x0 0xffab0080 0x0 0x20>;
858 qos_video_m0: qos@ffab8000 {
859 compatible = "syscon";
860 reg = <0x0 0xffab8000 0x0 0x20>;
863 qos_video_m1_r: qos@ffac0000 {
864 compatible = "syscon";
865 reg = <0x0 0xffac0000 0x0 0x20>;
868 qos_video_m1_w: qos@ffac0080 {
869 compatible = "syscon";
870 reg = <0x0 0xffac0080 0x0 0x20>;
873 qos_vop_big_r: qos@ffac8000 {
874 compatible = "syscon";
875 reg = <0x0 0xffac8000 0x0 0x20>;
878 qos_vop_big_w: qos@ffac8080 {
879 compatible = "syscon";
880 reg = <0x0 0xffac8080 0x0 0x20>;
883 qos_vop_little: qos@ffad0000 {
884 compatible = "syscon";
885 reg = <0x0 0xffad0000 0x0 0x20>;
888 qos_perihp: qos@ffad8080 {
889 compatible = "syscon";
890 reg = <0x0 0xffad8080 0x0 0x20>;
893 qos_gpu: qos@ffae0000 {
894 compatible = "syscon";
895 reg = <0x0 0xffae0000 0x0 0x20>;
898 pmu: power-management@ff310000 {
899 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
900 reg = <0x0 0xff310000 0x0 0x1000>;
903 * Note: RK3399 supports 6 voltage domains including VD_CORE_L,
904 * VD_CORE_B, VD_CENTER, VD_GPU, VD_LOGIC and VD_PMU.
905 * Some of the power domains are grouped together for every
907 * The detail contents as below.
909 power: power-controller {
910 compatible = "rockchip,rk3399-power-controller";
911 #power-domain-cells = <1>;
912 #address-cells = <1>;
915 /* These power domains are grouped by VD_CENTER */
916 pd_iep@RK3399_PD_IEP {
917 reg = <RK3399_PD_IEP>;
918 clocks = <&cru ACLK_IEP>,
922 pd_rga@RK3399_PD_RGA {
923 reg = <RK3399_PD_RGA>;
924 clocks = <&cru ACLK_RGA>,
926 pm_qos = <&qos_rga_r>,
929 pd_vcodec@RK3399_PD_VCODEC {
930 reg = <RK3399_PD_VCODEC>;
931 clocks = <&cru ACLK_VCODEC>,
933 pm_qos = <&qos_video_m0>;
935 pd_vdu@RK3399_PD_VDU {
936 reg = <RK3399_PD_VDU>;
937 clocks = <&cru ACLK_VDU>,
939 pm_qos = <&qos_video_m1_r>,
943 /* These power domains are grouped by VD_GPU */
944 pd_gpu@RK3399_PD_GPU {
945 reg = <RK3399_PD_GPU>;
946 clocks = <&cru ACLK_GPU>;
950 /* These power domains are grouped by VD_LOGIC */
951 pd_emmc@RK3399_PD_EMMC {
952 reg = <RK3399_PD_EMMC>;
953 clocks = <&cru ACLK_EMMC>;
954 pm_qos = <&qos_emmc>;
956 pd_gmac@RK3399_PD_GMAC {
957 reg = <RK3399_PD_GMAC>;
958 clocks = <&cru ACLK_GMAC>,
960 pm_qos = <&qos_gmac>;
963 reg = <RK3399_PD_SD>;
964 clocks = <&cru HCLK_SDMMC>,
968 pd_vio@RK3399_PD_VIO {
969 reg = <RK3399_PD_VIO>;
970 #address-cells = <1>;
973 pd_hdcp@RK3399_PD_HDCP {
974 reg = <RK3399_PD_HDCP>;
975 clocks = <&cru ACLK_HDCP>,
978 pm_qos = <&qos_hdcp>;
980 pd_isp0@RK3399_PD_ISP0 {
981 reg = <RK3399_PD_ISP0>;
982 clocks = <&cru ACLK_ISP0>,
984 pm_qos = <&qos_isp0_m0>,
987 pd_isp1@RK3399_PD_ISP1 {
988 reg = <RK3399_PD_ISP1>;
989 clocks = <&cru ACLK_ISP1>,
991 pm_qos = <&qos_isp1_m0>,
994 pd_tcpc0@RK3399_PD_TCPC0 {
995 reg = <RK3399_PD_TCPD0>;
996 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
997 <&cru SCLK_UPHY0_TCPDPHY_REF>;
999 pd_tcpc1@RK3399_PD_TCPC1 {
1000 reg = <RK3399_PD_TCPD1>;
1001 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1002 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1004 pd_vo@RK3399_PD_VO {
1005 reg = <RK3399_PD_VO>;
1006 #address-cells = <1>;
1009 pd_vopb@RK3399_PD_VOPB {
1010 reg = <RK3399_PD_VOPB>;
1011 clocks = <&cru ACLK_VOP0>,
1013 pm_qos = <&qos_vop_big_r>,
1016 pd_vopl@RK3399_PD_VOPL {
1017 reg = <RK3399_PD_VOPL>;
1018 clocks = <&cru ACLK_VOP1>,
1020 pm_qos = <&qos_vop_little>;
1027 pmugrf: syscon@ff320000 {
1028 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd";
1029 reg = <0x0 0xff320000 0x0 0x1000>;
1030 #address-cells = <1>;
1033 pmu_io_domains: io-domains {
1034 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
1035 status = "disabled";
1039 spi3: spi@ff350000 {
1040 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
1041 reg = <0x0 0xff350000 0x0 0x1000>;
1042 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>;
1043 clock-names = "spiclk", "apb_pclk";
1044 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH 0>;
1045 pinctrl-names = "default";
1046 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
1047 #address-cells = <1>;
1049 status = "disabled";
1052 uart4: serial@ff370000 {
1053 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
1054 reg = <0x0 0xff370000 0x0 0x100>;
1055 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>;
1056 clock-names = "baudclk", "apb_pclk";
1057 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH 0>;
1060 pinctrl-names = "default";
1061 pinctrl-0 = <&uart4_xfer>;
1062 status = "disabled";
1065 i2c0: i2c@ff3c0000 {
1066 compatible = "rockchip,rk3399-i2c";
1067 reg = <0x0 0xff3c0000 0x0 0x1000>;
1068 assigned-clocks = <&pmucru SCLK_I2C0_PMU>;
1069 assigned-clock-rates = <200000000>;
1070 clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
1071 clock-names = "i2c", "pclk";
1072 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>;
1073 pinctrl-names = "default";
1074 pinctrl-0 = <&i2c0_xfer>;
1075 #address-cells = <1>;
1077 status = "disabled";
1080 i2c4: i2c@ff3d0000 {
1081 compatible = "rockchip,rk3399-i2c";
1082 reg = <0x0 0xff3d0000 0x0 0x1000>;
1083 assigned-clocks = <&pmucru SCLK_I2C4_PMU>;
1084 assigned-clock-rates = <200000000>;
1085 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>;
1086 clock-names = "i2c", "pclk";
1087 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH 0>;
1088 pinctrl-names = "default";
1089 pinctrl-0 = <&i2c4_xfer>;
1090 #address-cells = <1>;
1092 status = "disabled";
1095 i2c8: i2c@ff3e0000 {
1096 compatible = "rockchip,rk3399-i2c";
1097 reg = <0x0 0xff3e0000 0x0 0x1000>;
1098 assigned-clocks = <&pmucru SCLK_I2C8_PMU>;
1099 assigned-clock-rates = <200000000>;
1100 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>;
1101 clock-names = "i2c", "pclk";
1102 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
1103 pinctrl-names = "default";
1104 pinctrl-0 = <&i2c8_xfer>;
1105 #address-cells = <1>;
1107 status = "disabled";
1110 pwm0: pwm@ff420000 {
1111 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1112 reg = <0x0 0xff420000 0x0 0x10>;
1114 pinctrl-names = "default";
1115 pinctrl-0 = <&pwm0_pin>;
1116 clocks = <&pmucru PCLK_RKPWM_PMU>;
1117 clock-names = "pwm";
1118 status = "disabled";
1121 pwm1: pwm@ff420010 {
1122 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1123 reg = <0x0 0xff420010 0x0 0x10>;
1125 pinctrl-names = "default";
1126 pinctrl-0 = <&pwm1_pin>;
1127 clocks = <&pmucru PCLK_RKPWM_PMU>;
1128 clock-names = "pwm";
1129 status = "disabled";
1132 pwm2: pwm@ff420020 {
1133 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1134 reg = <0x0 0xff420020 0x0 0x10>;
1136 pinctrl-names = "default";
1137 pinctrl-0 = <&pwm2_pin>;
1138 clocks = <&pmucru PCLK_RKPWM_PMU>;
1139 clock-names = "pwm";
1140 status = "disabled";
1143 pwm3: pwm@ff420030 {
1144 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1145 reg = <0x0 0xff420030 0x0 0x10>;
1147 pinctrl-names = "default";
1148 pinctrl-0 = <&pwm3a_pin>;
1149 clocks = <&pmucru PCLK_RKPWM_PMU>;
1150 clock-names = "pwm";
1151 status = "disabled";
1154 efuse0: efuse@ff690000 {
1155 compatible = "rockchip,rk3399-efuse";
1156 reg = <0x0 0xff690000 0x0 0x80>;
1157 #address-cells = <1>;
1159 clocks = <&cru PCLK_EFUSE1024NS>;
1160 clock-names = "pclk_efuse";
1166 cpub_leakage: cpu-leakage@17 {
1169 gpu_leakage: gpu-leakage@18 {
1172 center_leakage: center-leakage@19 {
1175 cpul_leakage: cpu-leakage@1a {
1178 logic_leakage: logic-leakage@1b {
1181 wafer_info: wafer-info@1c {
1186 pmucru: pmu-clock-controller@ff750000 {
1187 compatible = "rockchip,rk3399-pmucru";
1188 reg = <0x0 0xff750000 0x0 0x1000>;
1189 rockchip,grf = <&pmugrf>;
1192 assigned-clocks = <&pmucru PLL_PPLL>;
1193 assigned-clock-rates = <676000000>;
1196 cru: clock-controller@ff760000 {
1197 compatible = "rockchip,rk3399-cru";
1198 reg = <0x0 0xff760000 0x0 0x1000>;
1199 rockchip,grf = <&grf>;
1203 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1205 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
1207 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
1208 <&cru PCLK_PERILP0>, <&cru ACLK_CCI>,
1209 <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>;
1210 assigned-clock-rates =
1211 <594000000>, <800000000>,
1213 <150000000>, <75000000>,
1215 <100000000>, <100000000>,
1216 <50000000>, <600000000>,
1217 <100000000>, <50000000>;
1220 grf: syscon@ff770000 {
1221 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
1222 reg = <0x0 0xff770000 0x0 0x10000>;
1223 #address-cells = <1>;
1226 io_domains: io-domains {
1227 compatible = "rockchip,rk3399-io-voltage-domain";
1228 status = "disabled";
1231 u2phy0: usb2-phy@e450 {
1232 compatible = "rockchip,rk3399-usb2phy";
1233 reg = <0xe450 0x10>;
1234 clocks = <&cru SCLK_USB2PHY0_REF>;
1235 clock-names = "phyclk";
1237 clock-output-names = "clk_usbphy0_480m";
1238 status = "disabled";
1240 u2phy0_host: host-port {
1242 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
1243 interrupt-names = "linestate";
1244 status = "disabled";
1247 u2phy0_otg: otg-port {
1249 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
1250 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
1251 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
1252 interrupt-names = "otg-bvalid", "otg-id",
1254 status = "disabled";
1258 u2phy1: usb2-phy@e460 {
1259 compatible = "rockchip,rk3399-usb2phy";
1260 reg = <0xe460 0x10>;
1261 clocks = <&cru SCLK_USB2PHY1_REF>;
1262 clock-names = "phyclk";
1264 clock-output-names = "clk_usbphy1_480m";
1265 status = "disabled";
1267 u2phy1_host: host-port {
1269 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH 0>;
1270 interrupt-names = "linestate";
1271 status = "disabled";
1274 u2phy1_otg: otg-port {
1276 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>,
1277 <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH 0>,
1278 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH 0>;
1279 interrupt-names = "otg-bvalid", "otg-id",
1281 status = "disabled";
1285 emmc_phy: phy@f780 {
1286 compatible = "rockchip,rk3399-emmc-phy";
1287 reg = <0xf780 0x24>;
1289 clock-names = "emmcclk";
1291 status = "disabled";
1294 pcie_phy: pcie-phy {
1295 compatible = "rockchip,rk3399-pcie-phy";
1296 clocks = <&cru SCLK_PCIEPHY_REF>;
1297 clock-names = "refclk";
1299 resets = <&cru SRST_PCIEPHY>;
1300 reset-names = "phy";
1301 status = "disabled";
1305 tcphy0: phy@ff7c0000 {
1306 compatible = "rockchip,rk3399-typec-phy";
1307 reg = <0x0 0xff7c0000 0x0 0x40000>;
1308 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1309 <&cru SCLK_UPHY0_TCPDPHY_REF>;
1310 clock-names = "tcpdcore", "tcpdphy-ref";
1311 assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>;
1312 assigned-clock-rates = <50000000>;
1313 power-domains = <&power RK3399_PD_TCPD0>;
1314 resets = <&cru SRST_UPHY0>,
1315 <&cru SRST_UPHY0_PIPE_L00>,
1316 <&cru SRST_P_UPHY0_TCPHY>;
1317 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1318 rockchip,grf = <&grf>;
1319 rockchip,typec-conn-dir = <0xe580 0 16>;
1320 rockchip,usb3tousb2-en = <0xe580 3 19>;
1321 rockchip,external-psm = <0xe588 14 30>;
1322 rockchip,pipe-status = <0xe5c0 0 0>;
1323 status = "disabled";
1325 tcphy0_dp: dp-port {
1329 tcphy0_usb3: usb3-port {
1334 tcphy1: phy@ff800000 {
1335 compatible = "rockchip,rk3399-typec-phy";
1336 reg = <0x0 0xff800000 0x0 0x40000>;
1337 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1338 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1339 clock-names = "tcpdcore", "tcpdphy-ref";
1340 assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>;
1341 assigned-clock-rates = <50000000>;
1342 power-domains = <&power RK3399_PD_TCPD1>;
1343 resets = <&cru SRST_UPHY1>,
1344 <&cru SRST_UPHY1_PIPE_L00>,
1345 <&cru SRST_P_UPHY1_TCPHY>;
1346 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1347 rockchip,grf = <&grf>;
1348 rockchip,typec-conn-dir = <0xe58c 0 16>;
1349 rockchip,usb3tousb2-en = <0xe58c 3 19>;
1350 rockchip,external-psm = <0xe594 14 30>;
1351 rockchip,pipe-status = <0xe5c0 16 16>;
1352 status = "disabled";
1354 tcphy1_dp: dp-port {
1358 tcphy1_usb3: usb3-port {
1364 compatible = "snps,dw-wdt";
1365 reg = <0x0 0xff848000 0x0 0x100>;
1366 clocks = <&cru PCLK_WDT>;
1367 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH 0>;
1370 rktimer: rktimer@ff850000 {
1371 compatible = "rockchip,rk3399-timer";
1372 reg = <0x0 0xff850000 0x0 0x1000>;
1373 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>;
1374 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>;
1375 clock-names = "pclk", "timer";
1378 spdif: spdif@ff870000 {
1379 compatible = "rockchip,rk3399-spdif";
1380 reg = <0x0 0xff870000 0x0 0x1000>;
1381 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>;
1382 dmas = <&dmac_bus 7>;
1384 clock-names = "mclk", "hclk";
1385 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
1386 pinctrl-names = "default";
1387 pinctrl-0 = <&spdif_bus>;
1388 status = "disabled";
1391 i2s0: i2s@ff880000 {
1392 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1393 reg = <0x0 0xff880000 0x0 0x1000>;
1394 rockchip,grf = <&grf>;
1395 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH 0>;
1396 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1397 dma-names = "tx", "rx";
1398 clock-names = "i2s_clk", "i2s_hclk";
1399 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>;
1400 pinctrl-names = "default";
1401 pinctrl-0 = <&i2s0_8ch_bus>;
1402 status = "disabled";
1405 i2s1: i2s@ff890000 {
1406 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1407 reg = <0x0 0xff890000 0x0 0x1000>;
1408 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 0>;
1409 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
1410 dma-names = "tx", "rx";
1411 clock-names = "i2s_clk", "i2s_hclk";
1412 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>;
1413 pinctrl-names = "default";
1414 pinctrl-0 = <&i2s1_2ch_bus>;
1415 status = "disabled";
1418 i2s2: i2s@ff8a0000 {
1419 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1420 reg = <0x0 0xff8a0000 0x0 0x1000>;
1421 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>;
1422 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
1423 dma-names = "tx", "rx";
1424 clock-names = "i2s_clk", "i2s_hclk";
1425 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
1426 status = "disabled";
1430 compatible = "rockchip,rk3399-pinctrl";
1431 rockchip,grf = <&grf>;
1432 rockchip,pmu = <&pmugrf>;
1433 #address-cells = <2>;
1437 gpio0: gpio0@ff720000 {
1438 compatible = "rockchip,gpio-bank";
1439 reg = <0x0 0xff720000 0x0 0x100>;
1440 clocks = <&pmucru PCLK_GPIO0_PMU>;
1441 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>;
1444 #gpio-cells = <0x2>;
1446 interrupt-controller;
1447 #interrupt-cells = <0x2>;
1450 gpio1: gpio1@ff730000 {
1451 compatible = "rockchip,gpio-bank";
1452 reg = <0x0 0xff730000 0x0 0x100>;
1453 clocks = <&pmucru PCLK_GPIO1_PMU>;
1454 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>;
1457 #gpio-cells = <0x2>;
1459 interrupt-controller;
1460 #interrupt-cells = <0x2>;
1463 gpio2: gpio2@ff780000 {
1464 compatible = "rockchip,gpio-bank";
1465 reg = <0x0 0xff780000 0x0 0x100>;
1466 clocks = <&cru PCLK_GPIO2>;
1467 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>;
1470 #gpio-cells = <0x2>;
1472 interrupt-controller;
1473 #interrupt-cells = <0x2>;
1476 gpio3: gpio3@ff788000 {
1477 compatible = "rockchip,gpio-bank";
1478 reg = <0x0 0xff788000 0x0 0x100>;
1479 clocks = <&cru PCLK_GPIO3>;
1480 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
1483 #gpio-cells = <0x2>;
1485 interrupt-controller;
1486 #interrupt-cells = <0x2>;
1489 gpio4: gpio4@ff790000 {
1490 compatible = "rockchip,gpio-bank";
1491 reg = <0x0 0xff790000 0x0 0x100>;
1492 clocks = <&cru PCLK_GPIO4>;
1493 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
1496 #gpio-cells = <0x2>;
1498 interrupt-controller;
1499 #interrupt-cells = <0x2>;
1502 pcfg_pull_up: pcfg-pull-up {
1506 pcfg_pull_down: pcfg-pull-down {
1510 pcfg_pull_none: pcfg-pull-none {
1514 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1516 drive-strength = <12>;
1519 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1521 drive-strength = <8>;
1524 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1526 drive-strength = <4>;
1529 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1531 drive-strength = <2>;
1534 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
1536 drive-strength = <12>;
1539 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
1541 drive-strength = <13>;
1546 rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;
1553 <4 23 RK_FUNC_2 &pcfg_pull_none>;
1558 rgmii_pins: rgmii-pins {
1561 <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>,
1563 <3 14 RK_FUNC_1 &pcfg_pull_none>,
1565 <3 13 RK_FUNC_1 &pcfg_pull_none>,
1567 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1569 <3 11 RK_FUNC_1 &pcfg_pull_none>,
1571 <3 9 RK_FUNC_1 &pcfg_pull_none>,
1573 <3 8 RK_FUNC_1 &pcfg_pull_none>,
1575 <3 7 RK_FUNC_1 &pcfg_pull_none>,
1577 <3 6 RK_FUNC_1 &pcfg_pull_none>,
1579 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1581 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1583 <3 3 RK_FUNC_1 &pcfg_pull_none>,
1585 <3 2 RK_FUNC_1 &pcfg_pull_none>,
1587 <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>,
1589 <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>;
1592 rmii_pins: rmii-pins {
1595 <3 13 RK_FUNC_1 &pcfg_pull_none>,
1597 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1599 <3 11 RK_FUNC_1 &pcfg_pull_none>,
1601 <3 10 RK_FUNC_1 &pcfg_pull_none>,
1603 <3 9 RK_FUNC_1 &pcfg_pull_none>,
1605 <3 8 RK_FUNC_1 &pcfg_pull_none>,
1607 <3 7 RK_FUNC_1 &pcfg_pull_none>,
1609 <3 6 RK_FUNC_1 &pcfg_pull_none>,
1611 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1613 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>;
1618 i2c0_xfer: i2c0-xfer {
1620 <1 15 RK_FUNC_2 &pcfg_pull_none>,
1621 <1 16 RK_FUNC_2 &pcfg_pull_none>;
1626 i2c1_xfer: i2c1-xfer {
1628 <4 2 RK_FUNC_1 &pcfg_pull_none>,
1629 <4 1 RK_FUNC_1 &pcfg_pull_none>;
1634 i2c2_xfer: i2c2-xfer {
1636 <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1637 <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>;
1642 i2c3_xfer: i2c3-xfer {
1644 <4 17 RK_FUNC_1 &pcfg_pull_none>,
1645 <4 16 RK_FUNC_1 &pcfg_pull_none>;
1650 i2c4_xfer: i2c4-xfer {
1652 <1 12 RK_FUNC_1 &pcfg_pull_none>,
1653 <1 11 RK_FUNC_1 &pcfg_pull_none>;
1658 i2c5_xfer: i2c5-xfer {
1660 <3 11 RK_FUNC_2 &pcfg_pull_none>,
1661 <3 10 RK_FUNC_2 &pcfg_pull_none>;
1666 i2c6_xfer: i2c6-xfer {
1668 <2 10 RK_FUNC_2 &pcfg_pull_none>,
1669 <2 9 RK_FUNC_2 &pcfg_pull_none>;
1674 i2c7_xfer: i2c7-xfer {
1676 <2 8 RK_FUNC_2 &pcfg_pull_none>,
1677 <2 7 RK_FUNC_2 &pcfg_pull_none>;
1682 i2c8_xfer: i2c8-xfer {
1684 <1 21 RK_FUNC_1 &pcfg_pull_none>,
1685 <1 20 RK_FUNC_1 &pcfg_pull_none>;
1690 i2s0_8ch_bus: i2s0-8ch-bus {
1692 <3 24 RK_FUNC_1 &pcfg_pull_none>,
1693 <3 25 RK_FUNC_1 &pcfg_pull_none>,
1694 <3 26 RK_FUNC_1 &pcfg_pull_none>,
1695 <3 27 RK_FUNC_1 &pcfg_pull_none>,
1696 <3 28 RK_FUNC_1 &pcfg_pull_none>,
1697 <3 29 RK_FUNC_1 &pcfg_pull_none>,
1698 <3 30 RK_FUNC_1 &pcfg_pull_none>,
1699 <3 31 RK_FUNC_1 &pcfg_pull_none>,
1700 <4 0 RK_FUNC_1 &pcfg_pull_none>;
1705 i2s1_2ch_bus: i2s1-2ch-bus {
1707 <4 3 RK_FUNC_1 &pcfg_pull_none>,
1708 <4 4 RK_FUNC_1 &pcfg_pull_none>,
1709 <4 5 RK_FUNC_1 &pcfg_pull_none>,
1710 <4 6 RK_FUNC_1 &pcfg_pull_none>,
1711 <4 7 RK_FUNC_1 &pcfg_pull_none>;
1716 sdio0_bus1: sdio0-bus1 {
1718 <2 RK_PC4 RK_FUNC_1 &pcfg_pull_up>;
1721 sdio0_bus4: sdio0-bus4 {
1723 <2 RK_PC4 RK_FUNC_1 &pcfg_pull_up>,
1724 <2 RK_PC5 RK_FUNC_1 &pcfg_pull_up>,
1725 <2 RK_PC6 RK_FUNC_1 &pcfg_pull_up>,
1726 <2 RK_PC7 RK_FUNC_1 &pcfg_pull_up>;
1729 sdio0_cmd: sdio0-cmd {
1731 <2 RK_PD0 RK_FUNC_1 &pcfg_pull_up>;
1734 sdio0_clk: sdio0-clk {
1736 <2 RK_PD1 RK_FUNC_1 &pcfg_pull_none>;
1739 sdio0_cd: sdio0-cd {
1741 <2 RK_PD2 RK_FUNC_1 &pcfg_pull_up>;
1744 sdio0_pwr: sdio0-pwr {
1746 <2 RK_PD3 RK_FUNC_1 &pcfg_pull_up>;
1749 sdio0_bkpwr: sdio0-bkpwr {
1751 <2 RK_PD4 RK_FUNC_1 &pcfg_pull_up>;
1754 sdio0_wp: sdio0-wp {
1756 <0 RK_PA3 RK_FUNC_1 &pcfg_pull_up>;
1759 sdio0_int: sdio0-int {
1761 <0 RK_PA4 RK_FUNC_1 &pcfg_pull_up>;
1766 sdmmc_bus1: sdmmc-bus1 {
1768 <4 RK_PB0 RK_FUNC_1 &pcfg_pull_up>;
1771 sdmmc_bus4: sdmmc-bus4 {
1773 <4 RK_PB0 RK_FUNC_1 &pcfg_pull_up>,
1774 <4 RK_PB1 RK_FUNC_1 &pcfg_pull_up>,
1775 <4 RK_PB2 RK_FUNC_1 &pcfg_pull_up>,
1776 <4 RK_PB3 RK_FUNC_1 &pcfg_pull_up>;
1779 sdmmc_clk: sdmmc-clk {
1781 <4 RK_PB4 RK_FUNC_1 &pcfg_pull_none>;
1784 sdmmc_cmd: sdmmc-cmd {
1786 <4 RK_PB5 RK_FUNC_1 &pcfg_pull_up>;
1789 sdmmc_cd: sdmcc-cd {
1791 <0 RK_PA7 RK_FUNC_1 &pcfg_pull_up>;
1794 sdmmc_wp: sdmmc-wp {
1796 <0 RK_PB0 RK_FUNC_1 &pcfg_pull_up>;
1801 ap_pwroff: ap-pwroff {
1802 rockchip,pins = <1 5 RK_FUNC_1 &pcfg_pull_none>;
1805 ddrio_pwroff: ddrio-pwroff {
1806 rockchip,pins = <0 1 RK_FUNC_1 &pcfg_pull_none>;
1811 spdif_bus: spdif-bus {
1813 <4 21 RK_FUNC_1 &pcfg_pull_none>;
1816 spdif_bus_1: spdif-bus-1 {
1818 <3 RK_PC0 RK_FUNC_3 &pcfg_pull_none>;
1823 spi0_clk: spi0-clk {
1825 <3 6 RK_FUNC_2 &pcfg_pull_up>;
1827 spi0_cs0: spi0-cs0 {
1829 <3 7 RK_FUNC_2 &pcfg_pull_up>;
1831 spi0_cs1: spi0-cs1 {
1833 <3 8 RK_FUNC_2 &pcfg_pull_up>;
1837 <3 5 RK_FUNC_2 &pcfg_pull_up>;
1841 <3 4 RK_FUNC_2 &pcfg_pull_up>;
1846 spi1_clk: spi1-clk {
1848 <1 9 RK_FUNC_2 &pcfg_pull_up>;
1850 spi1_cs0: spi1-cs0 {
1852 <1 10 RK_FUNC_2 &pcfg_pull_up>;
1856 <1 7 RK_FUNC_2 &pcfg_pull_up>;
1860 <1 8 RK_FUNC_2 &pcfg_pull_up>;
1865 spi2_clk: spi2-clk {
1867 <2 11 RK_FUNC_1 &pcfg_pull_up>;
1869 spi2_cs0: spi2-cs0 {
1871 <2 12 RK_FUNC_1 &pcfg_pull_up>;
1875 <2 9 RK_FUNC_1 &pcfg_pull_up>;
1879 <2 10 RK_FUNC_1 &pcfg_pull_up>;
1884 spi3_clk: spi3-clk {
1886 <1 17 RK_FUNC_1 &pcfg_pull_up>;
1888 spi3_cs0: spi3-cs0 {
1890 <1 18 RK_FUNC_1 &pcfg_pull_up>;
1894 <1 15 RK_FUNC_1 &pcfg_pull_up>;
1898 <1 16 RK_FUNC_1 &pcfg_pull_up>;
1903 spi4_clk: spi4-clk {
1905 <3 2 RK_FUNC_2 &pcfg_pull_up>;
1907 spi4_cs0: spi4-cs0 {
1909 <3 3 RK_FUNC_2 &pcfg_pull_up>;
1913 <3 0 RK_FUNC_2 &pcfg_pull_up>;
1917 <3 1 RK_FUNC_2 &pcfg_pull_up>;
1922 spi5_clk: spi5-clk {
1924 <2 22 RK_FUNC_2 &pcfg_pull_up>;
1926 spi5_cs0: spi5-cs0 {
1928 <2 23 RK_FUNC_2 &pcfg_pull_up>;
1932 <2 20 RK_FUNC_2 &pcfg_pull_up>;
1936 <2 21 RK_FUNC_2 &pcfg_pull_up>;
1941 otp_gpio: otp-gpio {
1942 rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
1946 rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>;
1951 uart0_xfer: uart0-xfer {
1953 <2 16 RK_FUNC_1 &pcfg_pull_up>,
1954 <2 17 RK_FUNC_1 &pcfg_pull_none>;
1957 uart0_cts: uart0-cts {
1959 <2 18 RK_FUNC_1 &pcfg_pull_none>;
1962 uart0_rts: uart0-rts {
1964 <2 19 RK_FUNC_1 &pcfg_pull_none>;
1969 uart1_xfer: uart1-xfer {
1971 <3 12 RK_FUNC_2 &pcfg_pull_up>,
1972 <3 13 RK_FUNC_2 &pcfg_pull_none>;
1977 uart2a_xfer: uart2a-xfer {
1979 <4 8 RK_FUNC_2 &pcfg_pull_up>,
1980 <4 9 RK_FUNC_2 &pcfg_pull_none>;
1985 uart2b_xfer: uart2b-xfer {
1987 <4 16 RK_FUNC_2 &pcfg_pull_up>,
1988 <4 17 RK_FUNC_2 &pcfg_pull_none>;
1993 uart2c_xfer: uart2c-xfer {
1995 <4 19 RK_FUNC_1 &pcfg_pull_up>,
1996 <4 20 RK_FUNC_1 &pcfg_pull_none>;
2001 uart3_xfer: uart3-xfer {
2003 <3 14 RK_FUNC_2 &pcfg_pull_up>,
2004 <3 15 RK_FUNC_2 &pcfg_pull_none>;
2007 uart3_cts: uart3-cts {
2009 <3 18 RK_FUNC_2 &pcfg_pull_none>;
2012 uart3_rts: uart3-rts {
2014 <3 19 RK_FUNC_2 &pcfg_pull_none>;
2019 uart4_xfer: uart4-xfer {
2021 <1 7 RK_FUNC_1 &pcfg_pull_up>,
2022 <1 8 RK_FUNC_1 &pcfg_pull_none>;
2027 uarthdcp_xfer: uarthdcp-xfer {
2029 <4 21 RK_FUNC_2 &pcfg_pull_up>,
2030 <4 22 RK_FUNC_2 &pcfg_pull_none>;
2035 pwm0_pin: pwm0-pin {
2037 <4 18 RK_FUNC_1 &pcfg_pull_none>;
2040 vop0_pwm_pin: vop0-pwm-pin {
2042 <4 18 RK_FUNC_2 &pcfg_pull_none>;
2047 pwm1_pin: pwm1-pin {
2049 <4 22 RK_FUNC_1 &pcfg_pull_none>;
2052 vop1_pwm_pin: vop1-pwm-pin {
2054 <4 18 RK_FUNC_3 &pcfg_pull_none>;
2059 pwm2_pin: pwm2-pin {
2061 <1 19 RK_FUNC_1 &pcfg_pull_none>;
2066 pwm3a_pin: pwm3a-pin {
2068 <0 6 RK_FUNC_1 &pcfg_pull_none>;
2073 pwm3b_pin: pwm3b-pin {
2075 <1 14 RK_FUNC_1 &pcfg_pull_none>;
2080 hdmi_i2c_xfer: hdmi-i2c-xfer {
2082 <4 RK_PC1 RK_FUNC_3 &pcfg_pull_none>,
2083 <4 RK_PC0 RK_FUNC_3 &pcfg_pull_none>;
2086 hdmi_cec: hdmi-cec {
2088 <4 RK_PC7 RK_FUNC_1 &pcfg_pull_none>;
2093 pcie_clkreqn: pci-clkreqn {
2095 <2 26 RK_FUNC_2 &pcfg_pull_none>;
2098 pcie_clkreqnb: pci-clkreqnb {
2100 <4 24 RK_FUNC_1 &pcfg_pull_none>;
2103 pcie_clkreqn_cpm: pci-clkreqn-cpm {
2105 <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
2108 pcie_clkreqnb_cpm: pci-clkreqnb-cpm {
2110 <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;