1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2016-2017 Fuzhou Rockchip Electronics Co., Ltd.
6 #include <dt-bindings/clock/rk3399-cru.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/power/rk3399-power.h>
12 #include <dt-bindings/thermal/thermal.h>
13 #define USB_CLASS_HUB 9
16 compatible = "rockchip,rk3399";
18 interrupt-parent = <&gic>;
73 compatible = "arm,cortex-a53", "arm,armv8";
75 enable-method = "psci";
76 #cooling-cells = <2>; /* min followed by max */
77 clocks = <&cru ARMCLKL>;
82 compatible = "arm,cortex-a53", "arm,armv8";
84 enable-method = "psci";
85 clocks = <&cru ARMCLKL>;
90 compatible = "arm,cortex-a53", "arm,armv8";
92 enable-method = "psci";
93 clocks = <&cru ARMCLKL>;
98 compatible = "arm,cortex-a53", "arm,armv8";
100 enable-method = "psci";
101 clocks = <&cru ARMCLKL>;
106 compatible = "arm,cortex-a72", "arm,armv8";
108 enable-method = "psci";
109 #cooling-cells = <2>; /* min followed by max */
110 clocks = <&cru ARMCLKB>;
115 compatible = "arm,cortex-a72", "arm,armv8";
117 enable-method = "psci";
118 clocks = <&cru ARMCLKB>;
123 compatible = "arm,cortex-a53-pmu";
124 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster0>;
128 compatible = "arm,cortex-a72-pmu";
129 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster1>;
133 compatible = "arm,psci-1.0";
138 compatible = "arm,armv8-timer";
139 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
140 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
141 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
142 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>;
143 arm,no-tick-in-suspend;
147 compatible = "fixed-clock";
148 clock-frequency = <24000000>;
149 clock-output-names = "xin24m";
154 compatible = "simple-bus";
155 #address-cells = <2>;
159 dmac_bus: dma-controller@ff6d0000 {
160 compatible = "arm,pl330", "arm,primecell";
161 reg = <0x0 0xff6d0000 0x0 0x4000>;
162 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>,
163 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>;
165 clocks = <&cru ACLK_DMAC0_PERILP>;
166 clock-names = "apb_pclk";
169 dmac_peri: dma-controller@ff6e0000 {
170 compatible = "arm,pl330", "arm,primecell";
171 reg = <0x0 0xff6e0000 0x0 0x4000>;
172 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>,
173 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>;
175 clocks = <&cru ACLK_DMAC1_PERILP>;
176 clock-names = "apb_pclk";
180 pcie0: pcie@f8000000 {
181 compatible = "rockchip,rk3399-pcie";
182 reg = <0x0 0xf8000000 0x0 0x2000000>,
183 <0x0 0xfd000000 0x0 0x1000000>;
184 reg-names = "axi-base", "apb-base";
185 #address-cells = <3>;
187 #interrupt-cells = <1>;
189 bus-range = <0x0 0x1>;
190 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>,
191 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>;
192 clock-names = "aclk", "aclk-perf",
194 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>,
195 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>,
196 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>;
197 interrupt-names = "sys", "legacy", "client";
198 interrupt-map-mask = <0 0 0 7>;
199 interrupt-map = <0 0 0 1 &pcie0_intc 0>,
200 <0 0 0 2 &pcie0_intc 1>,
201 <0 0 0 3 &pcie0_intc 2>,
202 <0 0 0 4 &pcie0_intc 3>;
203 linux,pci-domain = <0>;
204 max-link-speed = <1>;
205 msi-map = <0x0 &its 0x0 0x1000>;
207 phy-names = "pcie-phy";
208 ranges = <0x83000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x600000
209 0x81000000 0x0 0xfa600000 0x0 0xfa600000 0x0 0x100000>;
210 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>,
211 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>,
212 <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>,
214 reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
215 "pm", "pclk", "aclk";
218 pcie0_intc: interrupt-controller {
219 interrupt-controller;
220 #address-cells = <0>;
221 #interrupt-cells = <1>;
225 gmac: ethernet@fe300000 {
226 compatible = "rockchip,rk3399-gmac";
227 reg = <0x0 0xfe300000 0x0 0x10000>;
228 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
229 interrupt-names = "macirq";
230 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
231 <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
232 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
234 clock-names = "stmmaceth", "mac_clk_rx",
235 "mac_clk_tx", "clk_mac_ref",
236 "clk_mac_refout", "aclk_mac",
238 power-domains = <&power RK3399_PD_GMAC>;
239 resets = <&cru SRST_A_GMAC>;
240 reset-names = "stmmaceth";
241 rockchip,grf = <&grf>;
245 sdio0: dwmmc@fe310000 {
246 compatible = "rockchip,rk3399-dw-mshc",
247 "rockchip,rk3288-dw-mshc";
248 reg = <0x0 0xfe310000 0x0 0x4000>;
249 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH 0>;
250 max-frequency = <150000000>;
251 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
252 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
253 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
254 fifo-depth = <0x100>;
255 power-domains = <&power RK3399_PD_SDIOAUDIO>;
256 resets = <&cru SRST_SDIO0>;
257 reset-names = "reset";
261 sdmmc: dwmmc@fe320000 {
262 compatible = "rockchip,rk3399-dw-mshc",
263 "rockchip,rk3288-dw-mshc";
264 reg = <0x0 0xfe320000 0x0 0x4000>;
265 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>;
266 max-frequency = <150000000>;
267 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
268 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
269 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
270 fifo-depth = <0x100>;
271 power-domains = <&power RK3399_PD_SD>;
272 resets = <&cru SRST_SDMMC>;
273 reset-names = "reset";
277 sdhci: sdhci@fe330000 {
279 compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
280 reg = <0x0 0xfe330000 0x0 0x10000>;
281 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>;
282 arasan,soc-ctl-syscon = <&grf>;
283 assigned-clocks = <&cru SCLK_EMMC>;
284 assigned-clock-rates = <200000000>;
285 max-frequency = <200000000>;
286 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
287 clock-names = "clk_xin", "clk_ahb";
288 clock-output-names = "emmc_cardclock";
291 phy-names = "phy_arasan";
292 power-domains = <&power RK3399_PD_EMMC>;
296 usb_host0_ehci: usb@fe380000 {
297 compatible = "generic-ehci";
298 reg = <0x0 0xfe380000 0x0 0x20000>;
299 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>;
300 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
302 clock-names = "usbhost", "arbiter",
304 phys = <&u2phy0_host>;
306 power-domains = <&power RK3399_PD_PERIHP>;
310 usb_host0_ohci: usb@fe3a0000 {
311 compatible = "generic-ohci";
312 reg = <0x0 0xfe3a0000 0x0 0x20000>;
313 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>;
314 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
316 clock-names = "usbhost", "arbiter",
318 phys = <&u2phy0_host>;
320 power-domains = <&power RK3399_PD_PERIHP>;
324 usb_host1_ehci: usb@fe3c0000 {
325 compatible = "generic-ehci";
326 reg = <0x0 0xfe3c0000 0x0 0x20000>;
327 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>;
328 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
330 clock-names = "usbhost", "arbiter",
332 phys = <&u2phy1_host>;
334 power-domains = <&power RK3399_PD_PERIHP>;
338 usb_host1_ohci: usb@fe3e0000 {
339 compatible = "generic-ohci";
340 reg = <0x0 0xfe3e0000 0x0 0x20000>;
341 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
342 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
344 clock-names = "usbhost", "arbiter",
346 phys = <&u2phy1_host>;
348 power-domains = <&power RK3399_PD_PERIHP>;
352 dwc3_typec0: usb@fe800000 {
353 compatible = "rockchip,rk3399-xhci";
354 reg = <0x0 0xfe800000 0x0 0x100000>;
356 snps,dis-enblslpm-quirk;
357 snps,phyif-utmi-bits = <16>;
358 snps,dis-u2-freeclk-exists-quirk;
359 snps,dis-u2-susphy-quirk;
361 #address-cells = <2>;
364 compatible = "usb-hub";
365 usb,device-class = <USB_CLASS_HUB>;
368 compatible = "rockchip,rk3399-usb3-phy";
369 reg = <0x0 0xff7c0000 0x0 0x40000>;
373 dwc3_typec1: usb@fe900000 {
374 compatible = "rockchip,rk3399-xhci";
375 reg = <0x0 0xfe900000 0x0 0x100000>;
377 snps,dis-enblslpm-quirk;
378 snps,phyif-utmi-bits = <16>;
379 snps,dis-u2-freeclk-exists-quirk;
380 snps,dis-u2-susphy-quirk;
382 #address-cells = <2>;
385 compatible = "usb-hub";
386 usb,device-class = <USB_CLASS_HUB>;
389 compatible = "rockchip,rk3399-usb3-phy";
390 reg = <0x0 0xff800000 0x0 0x40000>;
394 gic: interrupt-controller@fee00000 {
395 compatible = "arm,gic-v3";
396 #interrupt-cells = <4>;
397 #address-cells = <2>;
400 interrupt-controller;
402 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
403 <0x0 0xfef00000 0 0xc0000>, /* GICR */
404 <0x0 0xfff00000 0 0x10000>, /* GICC */
405 <0x0 0xfff10000 0 0x10000>, /* GICH */
406 <0x0 0xfff20000 0 0x10000>; /* GICV */
407 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
408 its: interrupt-controller@fee20000 {
409 compatible = "arm,gic-v3-its";
411 reg = <0x0 0xfee20000 0x0 0x20000>;
415 ppi_cluster0: interrupt-partition-0 {
416 affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>;
419 ppi_cluster1: interrupt-partition-1 {
420 affinity = <&cpu_b0 &cpu_b1>;
425 saradc: saradc@ff100000 {
426 compatible = "rockchip,rk3399-saradc";
427 reg = <0x0 0xff100000 0x0 0x100>;
428 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH 0>;
429 #io-channel-cells = <1>;
430 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
431 clock-names = "saradc", "apb_pclk";
432 resets = <&cru SRST_P_SARADC>;
433 reset-names = "saradc-apb";
438 compatible = "rockchip,rk3399-i2c";
439 reg = <0x0 0xff110000 0x0 0x1000>;
440 assigned-clocks = <&cru SCLK_I2C1>;
441 assigned-clock-rates = <200000000>;
442 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
443 clock-names = "i2c", "pclk";
444 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH 0>;
445 pinctrl-names = "default";
446 pinctrl-0 = <&i2c1_xfer>;
447 #address-cells = <1>;
453 compatible = "rockchip,rk3399-i2c";
454 reg = <0x0 0xff120000 0x0 0x1000>;
455 assigned-clocks = <&cru SCLK_I2C2>;
456 assigned-clock-rates = <200000000>;
457 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
458 clock-names = "i2c", "pclk";
459 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH 0>;
460 pinctrl-names = "default";
461 pinctrl-0 = <&i2c2_xfer>;
462 #address-cells = <1>;
468 compatible = "rockchip,rk3399-i2c";
469 reg = <0x0 0xff130000 0x0 0x1000>;
470 assigned-clocks = <&cru SCLK_I2C3>;
471 assigned-clock-rates = <200000000>;
472 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
473 clock-names = "i2c", "pclk";
474 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH 0>;
475 pinctrl-names = "default";
476 pinctrl-0 = <&i2c3_xfer>;
477 #address-cells = <1>;
483 compatible = "rockchip,rk3399-i2c";
484 reg = <0x0 0xff140000 0x0 0x1000>;
485 assigned-clocks = <&cru SCLK_I2C5>;
486 assigned-clock-rates = <200000000>;
487 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>;
488 clock-names = "i2c", "pclk";
489 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>;
490 pinctrl-names = "default";
491 pinctrl-0 = <&i2c5_xfer>;
492 #address-cells = <1>;
498 compatible = "rockchip,rk3399-i2c";
499 reg = <0x0 0xff150000 0x0 0x1000>;
500 assigned-clocks = <&cru SCLK_I2C6>;
501 assigned-clock-rates = <200000000>;
502 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>;
503 clock-names = "i2c", "pclk";
504 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH 0>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&i2c6_xfer>;
507 #address-cells = <1>;
513 compatible = "rockchip,rk3399-i2c";
514 reg = <0x0 0xff160000 0x0 0x1000>;
515 assigned-clocks = <&cru SCLK_I2C7>;
516 assigned-clock-rates = <200000000>;
517 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
518 clock-names = "i2c", "pclk";
519 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>;
520 pinctrl-names = "default";
521 pinctrl-0 = <&i2c7_xfer>;
522 #address-cells = <1>;
527 uart0: serial@ff180000 {
528 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
529 reg = <0x0 0xff180000 0x0 0x100>;
530 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
531 clock-names = "baudclk", "apb_pclk";
532 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>;
535 pinctrl-names = "default";
536 pinctrl-0 = <&uart0_xfer>;
540 uart1: serial@ff190000 {
541 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
542 reg = <0x0 0xff190000 0x0 0x100>;
543 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
544 clock-names = "baudclk", "apb_pclk";
545 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH 0>;
548 pinctrl-names = "default";
549 pinctrl-0 = <&uart1_xfer>;
553 uart2: serial@ff1a0000 {
554 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
555 reg = <0x0 0xff1a0000 0x0 0x100>;
556 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
557 clock-names = "baudclk", "apb_pclk";
558 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH 0>;
559 clock-frequency = <24000000>;
562 pinctrl-names = "default";
563 pinctrl-0 = <&uart2c_xfer>;
567 uart3: serial@ff1b0000 {
568 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
569 reg = <0x0 0xff1b0000 0x0 0x100>;
570 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
571 clock-names = "baudclk", "apb_pclk";
572 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>;
575 pinctrl-names = "default";
576 pinctrl-0 = <&uart3_xfer>;
581 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
582 reg = <0x0 0xff1c0000 0x0 0x1000>;
583 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
584 clock-names = "spiclk", "apb_pclk";
585 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>;
586 pinctrl-names = "default";
587 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
588 #address-cells = <1>;
594 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
595 reg = <0x0 0xff1d0000 0x0 0x1000>;
596 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
597 clock-names = "spiclk", "apb_pclk";
598 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
599 pinctrl-names = "default";
600 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
601 #address-cells = <1>;
607 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
608 reg = <0x0 0xff1e0000 0x0 0x1000>;
609 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
610 clock-names = "spiclk", "apb_pclk";
611 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>;
612 pinctrl-names = "default";
613 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
614 #address-cells = <1>;
620 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
621 reg = <0x0 0xff1f0000 0x0 0x1000>;
622 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
623 clock-names = "spiclk", "apb_pclk";
624 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>;
625 pinctrl-names = "default";
626 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
627 #address-cells = <1>;
633 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
634 reg = <0x0 0xff200000 0x0 0x1000>;
635 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
636 clock-names = "spiclk", "apb_pclk";
637 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>;
638 pinctrl-names = "default";
639 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
640 #address-cells = <1>;
645 thermal_zones: thermal-zones {
647 polling-delay-passive = <100>;
648 polling-delay = <1000>;
650 thermal-sensors = <&tsadc 0>;
653 cpu_alert0: cpu_alert0 {
654 temperature = <70000>;
658 cpu_alert1: cpu_alert1 {
659 temperature = <75000>;
664 temperature = <95000>;
672 trip = <&cpu_alert0>;
674 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
677 trip = <&cpu_alert1>;
679 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
680 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
686 polling-delay-passive = <100>;
687 polling-delay = <1000>;
689 thermal-sensors = <&tsadc 1>;
692 gpu_alert0: gpu_alert0 {
693 temperature = <75000>;
698 temperature = <95000>;
706 trip = <&gpu_alert0>;
708 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
714 tsadc: tsadc@ff260000 {
715 compatible = "rockchip,rk3399-tsadc";
716 reg = <0x0 0xff260000 0x0 0x100>;
717 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH 0>;
718 assigned-clocks = <&cru SCLK_TSADC>;
719 assigned-clock-rates = <750000>;
720 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
721 clock-names = "tsadc", "apb_pclk";
722 resets = <&cru SRST_TSADC>;
723 reset-names = "tsadc-apb";
724 rockchip,grf = <&grf>;
725 rockchip,hw-tshut-temp = <95000>;
726 pinctrl-names = "init", "default", "sleep";
727 pinctrl-0 = <&otp_gpio>;
728 pinctrl-1 = <&otp_out>;
729 pinctrl-2 = <&otp_gpio>;
730 #thermal-sensor-cells = <1>;
734 qos_emmc: qos@ffa58000 {
735 compatible = "syscon";
736 reg = <0x0 0xffa58000 0x0 0x20>;
739 qos_gmac: qos@ffa5c000 {
740 compatible = "syscon";
741 reg = <0x0 0xffa5c000 0x0 0x20>;
744 qos_pcie: qos@ffa60080 {
745 compatible = "syscon";
746 reg = <0x0 0xffa60080 0x0 0x20>;
749 qos_usb_host0: qos@ffa60100 {
750 compatible = "syscon";
751 reg = <0x0 0xffa60100 0x0 0x20>;
754 qos_usb_host1: qos@ffa60180 {
755 compatible = "syscon";
756 reg = <0x0 0xffa60180 0x0 0x20>;
759 qos_usb_otg0: qos@ffa70000 {
760 compatible = "syscon";
761 reg = <0x0 0xffa70000 0x0 0x20>;
764 qos_usb_otg1: qos@ffa70080 {
765 compatible = "syscon";
766 reg = <0x0 0xffa70080 0x0 0x20>;
769 qos_sd: qos@ffa74000 {
770 compatible = "syscon";
771 reg = <0x0 0xffa74000 0x0 0x20>;
774 qos_sdioaudio: qos@ffa76000 {
775 compatible = "syscon";
776 reg = <0x0 0xffa76000 0x0 0x20>;
779 qos_hdcp: qos@ffa90000 {
780 compatible = "syscon";
781 reg = <0x0 0xffa90000 0x0 0x20>;
784 qos_iep: qos@ffa98000 {
785 compatible = "syscon";
786 reg = <0x0 0xffa98000 0x0 0x20>;
789 qos_isp0_m0: qos@ffaa0000 {
790 compatible = "syscon";
791 reg = <0x0 0xffaa0000 0x0 0x20>;
794 qos_isp0_m1: qos@ffaa0080 {
795 compatible = "syscon";
796 reg = <0x0 0xffaa0080 0x0 0x20>;
799 qos_isp1_m0: qos@ffaa8000 {
800 compatible = "syscon";
801 reg = <0x0 0xffaa8000 0x0 0x20>;
804 qos_isp1_m1: qos@ffaa8080 {
805 compatible = "syscon";
806 reg = <0x0 0xffaa8080 0x0 0x20>;
809 qos_rga_r: qos@ffab0000 {
810 compatible = "syscon";
811 reg = <0x0 0xffab0000 0x0 0x20>;
814 qos_rga_w: qos@ffab0080 {
815 compatible = "syscon";
816 reg = <0x0 0xffab0080 0x0 0x20>;
819 qos_video_m0: qos@ffab8000 {
820 compatible = "syscon";
821 reg = <0x0 0xffab8000 0x0 0x20>;
824 qos_video_m1_r: qos@ffac0000 {
825 compatible = "syscon";
826 reg = <0x0 0xffac0000 0x0 0x20>;
829 qos_video_m1_w: qos@ffac0080 {
830 compatible = "syscon";
831 reg = <0x0 0xffac0080 0x0 0x20>;
834 qos_vop_big_r: qos@ffac8000 {
835 compatible = "syscon";
836 reg = <0x0 0xffac8000 0x0 0x20>;
839 qos_vop_big_w: qos@ffac8080 {
840 compatible = "syscon";
841 reg = <0x0 0xffac8080 0x0 0x20>;
844 qos_vop_little: qos@ffad0000 {
845 compatible = "syscon";
846 reg = <0x0 0xffad0000 0x0 0x20>;
849 qos_perihp: qos@ffad8080 {
850 compatible = "syscon";
851 reg = <0x0 0xffad8080 0x0 0x20>;
854 qos_gpu: qos@ffae0000 {
855 compatible = "syscon";
856 reg = <0x0 0xffae0000 0x0 0x20>;
859 pmu: power-management@ff310000 {
860 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
861 reg = <0x0 0xff310000 0x0 0x1000>;
864 * Note: RK3399 supports 6 voltage domains including VD_CORE_L,
865 * VD_CORE_B, VD_CENTER, VD_GPU, VD_LOGIC and VD_PMU.
866 * Some of the power domains are grouped together for every
868 * The detail contents as below.
870 power: power-controller {
871 compatible = "rockchip,rk3399-power-controller";
872 #power-domain-cells = <1>;
873 #address-cells = <1>;
876 /* These power domains are grouped by VD_CENTER */
877 pd_iep@RK3399_PD_IEP {
878 reg = <RK3399_PD_IEP>;
879 clocks = <&cru ACLK_IEP>,
883 pd_rga@RK3399_PD_RGA {
884 reg = <RK3399_PD_RGA>;
885 clocks = <&cru ACLK_RGA>,
887 pm_qos = <&qos_rga_r>,
890 pd_vcodec@RK3399_PD_VCODEC {
891 reg = <RK3399_PD_VCODEC>;
892 clocks = <&cru ACLK_VCODEC>,
894 pm_qos = <&qos_video_m0>;
896 pd_vdu@RK3399_PD_VDU {
897 reg = <RK3399_PD_VDU>;
898 clocks = <&cru ACLK_VDU>,
900 pm_qos = <&qos_video_m1_r>,
904 /* These power domains are grouped by VD_GPU */
905 pd_gpu@RK3399_PD_GPU {
906 reg = <RK3399_PD_GPU>;
907 clocks = <&cru ACLK_GPU>;
911 /* These power domains are grouped by VD_LOGIC */
912 pd_edp@RK3399_PD_EDP {
913 reg = <RK3399_PD_EDP>;
914 clocks = <&cru PCLK_EDP_CTRL>;
916 pd_emmc@RK3399_PD_EMMC {
917 reg = <RK3399_PD_EMMC>;
918 clocks = <&cru ACLK_EMMC>;
919 pm_qos = <&qos_emmc>;
921 pd_gmac@RK3399_PD_GMAC {
922 reg = <RK3399_PD_GMAC>;
923 clocks = <&cru ACLK_GMAC>,
925 pm_qos = <&qos_gmac>;
927 pd_perihp@RK3399_PD_PERIHP {
928 reg = <RK3399_PD_PERIHP>;
929 #address-cells = <1>;
931 clocks = <&cru ACLK_PERIHP>;
932 pm_qos = <&qos_perihp>,
938 reg = <RK3399_PD_SD>;
939 clocks = <&cru HCLK_SDMMC>,
944 pd_sdioaudio@RK3399_PD_SDIOAUDIO {
945 reg = <RK3399_PD_SDIOAUDIO>;
946 clocks = <&cru HCLK_SDIO>;
947 pm_qos = <&qos_sdioaudio>;
949 pd_usb3@RK3399_PD_USB3 {
950 reg = <RK3399_PD_USB3>;
951 clocks = <&cru ACLK_USB3>;
952 pm_qos = <&qos_usb_otg0>,
955 pd_vio@RK3399_PD_VIO {
956 reg = <RK3399_PD_VIO>;
957 #address-cells = <1>;
960 pd_hdcp@RK3399_PD_HDCP {
961 reg = <RK3399_PD_HDCP>;
962 clocks = <&cru ACLK_HDCP>,
965 pm_qos = <&qos_hdcp>;
967 pd_isp0@RK3399_PD_ISP0 {
968 reg = <RK3399_PD_ISP0>;
969 clocks = <&cru ACLK_ISP0>,
971 pm_qos = <&qos_isp0_m0>,
974 pd_isp1@RK3399_PD_ISP1 {
975 reg = <RK3399_PD_ISP1>;
976 clocks = <&cru ACLK_ISP1>,
978 pm_qos = <&qos_isp1_m0>,
981 pd_tcpc0@RK3399_PD_TCPC0 {
982 reg = <RK3399_PD_TCPD0>;
983 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
984 <&cru SCLK_UPHY0_TCPDPHY_REF>;
986 pd_tcpc1@RK3399_PD_TCPC1 {
987 reg = <RK3399_PD_TCPD1>;
988 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
989 <&cru SCLK_UPHY1_TCPDPHY_REF>;
992 reg = <RK3399_PD_VO>;
993 #address-cells = <1>;
996 pd_vopb@RK3399_PD_VOPB {
997 reg = <RK3399_PD_VOPB>;
998 clocks = <&cru ACLK_VOP0>,
1000 pm_qos = <&qos_vop_big_r>,
1003 pd_vopl@RK3399_PD_VOPL {
1004 reg = <RK3399_PD_VOPL>;
1005 clocks = <&cru ACLK_VOP1>,
1007 pm_qos = <&qos_vop_little>;
1014 pmugrf: syscon@ff320000 {
1015 u-boot,dm-pre-reloc;
1016 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd";
1017 reg = <0x0 0xff320000 0x0 0x1000>;
1018 #address-cells = <1>;
1021 pmu_io_domains: io-domains {
1022 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
1023 status = "disabled";
1027 pmusgrf: syscon@ff330000 {
1028 u-boot,dm-pre-reloc;
1029 compatible = "rockchip,rk3399-pmusgrf", "syscon";
1030 reg = <0x0 0xff330000 0x0 0xe3d4>;
1033 spi3: spi@ff350000 {
1034 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
1035 reg = <0x0 0xff350000 0x0 0x1000>;
1036 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>;
1037 clock-names = "spiclk", "apb_pclk";
1038 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH 0>;
1039 pinctrl-names = "default";
1040 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
1041 #address-cells = <1>;
1043 status = "disabled";
1046 uart4: serial@ff370000 {
1047 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
1048 reg = <0x0 0xff370000 0x0 0x100>;
1049 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>;
1050 clock-names = "baudclk", "apb_pclk";
1051 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH 0>;
1054 pinctrl-names = "default";
1055 pinctrl-0 = <&uart4_xfer>;
1056 status = "disabled";
1059 i2c4: i2c@ff3d0000 {
1060 compatible = "rockchip,rk3399-i2c";
1061 reg = <0x0 0xff3d0000 0x0 0x1000>;
1062 assigned-clocks = <&pmucru SCLK_I2C4_PMU>;
1063 assigned-clock-rates = <200000000>;
1064 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>;
1065 clock-names = "i2c", "pclk";
1066 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH 0>;
1067 pinctrl-names = "default";
1068 pinctrl-0 = <&i2c4_xfer>;
1069 #address-cells = <1>;
1071 status = "disabled";
1074 i2c8: i2c@ff3e0000 {
1075 compatible = "rockchip,rk3399-i2c";
1076 reg = <0x0 0xff3e0000 0x0 0x1000>;
1077 assigned-clocks = <&pmucru SCLK_I2C8_PMU>;
1078 assigned-clock-rates = <200000000>;
1079 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>;
1080 clock-names = "i2c", "pclk";
1081 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
1082 pinctrl-names = "default";
1083 pinctrl-0 = <&i2c8_xfer>;
1084 #address-cells = <1>;
1086 status = "disabled";
1089 pwm0: pwm@ff420000 {
1090 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1091 reg = <0x0 0xff420000 0x0 0x10>;
1093 pinctrl-names = "default";
1094 pinctrl-0 = <&pwm0_pin>;
1095 clocks = <&pmucru PCLK_RKPWM_PMU>;
1096 clock-names = "pwm";
1097 status = "disabled";
1100 pwm1: pwm@ff420010 {
1101 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1102 reg = <0x0 0xff420010 0x0 0x10>;
1104 pinctrl-names = "default";
1105 pinctrl-0 = <&pwm1_pin>;
1106 clocks = <&pmucru PCLK_RKPWM_PMU>;
1107 clock-names = "pwm";
1108 status = "disabled";
1111 pwm2: pwm@ff420020 {
1112 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1113 reg = <0x0 0xff420020 0x0 0x10>;
1115 pinctrl-names = "default";
1116 pinctrl-0 = <&pwm2_pin>;
1117 clocks = <&pmucru PCLK_RKPWM_PMU>;
1118 clock-names = "pwm";
1119 status = "disabled";
1122 pwm3: pwm@ff420030 {
1123 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1124 reg = <0x0 0xff420030 0x0 0x10>;
1126 pinctrl-names = "default";
1127 pinctrl-0 = <&pwm3a_pin>;
1128 clocks = <&pmucru PCLK_RKPWM_PMU>;
1129 clock-names = "pwm";
1130 status = "disabled";
1133 cic: syscon@ff620000 {
1134 u-boot,dm-pre-reloc;
1135 compatible = "rockchip,rk3399-cic", "syscon";
1136 reg = <0x0 0xff620000 0x0 0x100>;
1140 reg = <0x00 0xff630000 0x00 0x4000>;
1141 compatible = "rockchip,rk3399-dfi";
1142 rockchip,pmu = <&pmugrf>;
1143 clocks = <&cru PCLK_DDR_MON>;
1144 clock-names = "pclk_ddr_mon";
1145 status = "disabled";
1149 u-boot,dm-pre-reloc;
1150 compatible = "rockchip,rk3399-dmc";
1151 devfreq-events = <&dfi>;
1152 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH 0>;
1153 clocks = <&cru SCLK_DDRCLK>;
1154 clock-names = "dmc_clk";
1155 reg = <0x0 0xffa80000 0x0 0x0800
1156 0x0 0xffa80800 0x0 0x1800
1157 0x0 0xffa82000 0x0 0x2000
1158 0x0 0xffa84000 0x0 0x1000
1159 0x0 0xffa88000 0x0 0x0800
1160 0x0 0xffa88800 0x0 0x1800
1161 0x0 0xffa8a000 0x0 0x2000
1162 0x0 0xffa8c000 0x0 0x1000>;
1165 efuse0: efuse@ff690000 {
1166 compatible = "rockchip,rk3399-efuse";
1167 reg = <0x0 0xff690000 0x0 0x80>;
1168 #address-cells = <1>;
1170 clocks = <&cru PCLK_EFUSE1024NS>;
1171 clock-names = "pclk_efuse";
1177 cpub_leakage: cpu-leakage@17 {
1180 gpu_leakage: gpu-leakage@18 {
1183 center_leakage: center-leakage@19 {
1186 cpul_leakage: cpu-leakage@1a {
1189 logic_leakage: logic-leakage@1b {
1192 wafer_info: wafer-info@1c {
1197 pmucru: pmu-clock-controller@ff750000 {
1198 u-boot,dm-pre-reloc;
1199 compatible = "rockchip,rk3399-pmucru";
1200 reg = <0x0 0xff750000 0x0 0x1000>;
1201 rockchip,grf = <&pmugrf>;
1204 assigned-clocks = <&pmucru PLL_PPLL>;
1205 assigned-clock-rates = <676000000>;
1208 cru: clock-controller@ff760000 {
1209 u-boot,dm-pre-reloc;
1210 compatible = "rockchip,rk3399-cru";
1211 reg = <0x0 0xff760000 0x0 0x1000>;
1212 rockchip,grf = <&grf>;
1216 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1218 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
1220 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
1221 <&cru PCLK_PERILP0>, <&cru ACLK_CCI>,
1222 <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>;
1223 assigned-clock-rates =
1224 <594000000>, <800000000>,
1226 <150000000>, <75000000>,
1228 <100000000>, <100000000>,
1229 <50000000>, <600000000>,
1230 <100000000>, <50000000>;
1233 grf: syscon@ff770000 {
1234 u-boot,dm-pre-reloc;
1235 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
1236 reg = <0x0 0xff770000 0x0 0x10000>;
1237 #address-cells = <1>;
1240 io_domains: io-domains {
1241 compatible = "rockchip,rk3399-io-voltage-domain";
1242 status = "disabled";
1245 u2phy0: usb2-phy@e450 {
1246 compatible = "rockchip,rk3399-usb2phy";
1247 reg = <0xe450 0x10>;
1248 clocks = <&cru SCLK_USB2PHY0_REF>;
1249 clock-names = "phyclk";
1251 clock-output-names = "clk_usbphy0_480m";
1252 status = "disabled";
1254 u2phy0_host: host-port {
1256 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
1257 interrupt-names = "linestate";
1258 status = "disabled";
1261 u2phy0_otg: otg-port {
1263 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
1264 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
1265 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
1266 interrupt-names = "otg-bvalid", "otg-id",
1268 status = "disabled";
1272 u2phy1: usb2-phy@e460 {
1273 compatible = "rockchip,rk3399-usb2phy";
1274 reg = <0xe460 0x10>;
1275 clocks = <&cru SCLK_USB2PHY1_REF>;
1276 clock-names = "phyclk";
1278 clock-output-names = "clk_usbphy1_480m";
1279 status = "disabled";
1281 u2phy1_host: host-port {
1283 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH 0>;
1284 interrupt-names = "linestate";
1285 status = "disabled";
1288 u2phy1_otg: otg-port {
1290 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>,
1291 <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH 0>,
1292 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH 0>;
1293 interrupt-names = "otg-bvalid", "otg-id",
1295 status = "disabled";
1299 emmc_phy: phy@f780 {
1300 compatible = "rockchip,rk3399-emmc-phy";
1301 reg = <0xf780 0x24>;
1303 clock-names = "emmcclk";
1305 status = "disabled";
1308 pcie_phy: pcie-phy {
1309 compatible = "rockchip,rk3399-pcie-phy";
1310 clocks = <&cru SCLK_PCIEPHY_REF>;
1311 clock-names = "refclk";
1313 resets = <&cru SRST_PCIEPHY>;
1314 reset-names = "phy";
1315 status = "disabled";
1320 compatible = "snps,dw-wdt";
1321 reg = <0x0 0xff848000 0x0 0x100>;
1322 clocks = <&cru PCLK_WDT>;
1323 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH 0>;
1326 rktimer: rktimer@ff850000 {
1327 compatible = "rockchip,rk3399-timer";
1328 reg = <0x0 0xff850000 0x0 0x1000>;
1329 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>;
1330 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>;
1331 clock-names = "pclk", "timer";
1334 spdif: spdif@ff870000 {
1335 compatible = "rockchip,rk3399-spdif";
1336 reg = <0x0 0xff870000 0x0 0x1000>;
1337 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>;
1338 dmas = <&dmac_bus 7>;
1340 clock-names = "mclk", "hclk";
1341 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
1342 pinctrl-names = "default";
1343 pinctrl-0 = <&spdif_bus>;
1344 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1345 status = "disabled";
1348 i2s0: i2s@ff880000 {
1349 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1350 reg = <0x0 0xff880000 0x0 0x1000>;
1351 rockchip,grf = <&grf>;
1352 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH 0>;
1353 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1354 dma-names = "tx", "rx";
1355 clock-names = "i2s_clk", "i2s_hclk";
1356 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>;
1357 pinctrl-names = "default";
1358 pinctrl-0 = <&i2s0_8ch_bus>;
1359 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1360 status = "disabled";
1363 i2s1: i2s@ff890000 {
1364 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1365 reg = <0x0 0xff890000 0x0 0x1000>;
1366 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 0>;
1367 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
1368 dma-names = "tx", "rx";
1369 clock-names = "i2s_clk", "i2s_hclk";
1370 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>;
1371 pinctrl-names = "default";
1372 pinctrl-0 = <&i2s1_2ch_bus>;
1373 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1374 status = "disabled";
1377 i2s2: i2s@ff8a0000 {
1378 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1379 reg = <0x0 0xff8a0000 0x0 0x1000>;
1380 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>;
1381 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
1382 dma-names = "tx", "rx";
1383 clock-names = "i2s_clk", "i2s_hclk";
1384 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
1385 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1386 status = "disabled";
1389 i2c0: i2c@ff3c0000 {
1390 compatible = "rockchip,rk3399-i2c";
1391 reg = <0x0 0xff3c0000 0x0 0x1000>;
1392 assigned-clocks = <&pmucru SCLK_I2C0_PMU>;
1393 assigned-clock-rates = <200000000>;
1394 clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
1395 clock-names = "i2c", "pclk";
1396 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>;
1397 pinctrl-names = "default";
1398 pinctrl-0 = <&i2c0_xfer>;
1399 #address-cells = <1>;
1401 status = "disabled";
1404 vopl: vop@ff8f0000 {
1405 u-boot,dm-pre-reloc;
1406 compatible = "rockchip,rk3399-vop-lit";
1407 reg = <0x0 0xff8f0000 0x0 0x3efc>;
1408 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
1409 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>;
1410 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1411 resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>;
1412 reset-names = "axi", "ahb", "dclk";
1413 status = "disabled";
1415 #address-cells = <1>;
1417 vopl_out_mipi: endpoint@0 {
1419 remote-endpoint = <&mipi_in_vopl>;
1422 vopl_out_hdmi: endpoint@1 {
1424 remote-endpoint = <&hdmi_in_vopl>;
1429 vopb: vop@ff900000 {
1430 u-boot,dm-pre-reloc;
1431 compatible = "rockchip,rk3399-vop-big";
1432 reg = <0x0 0xff900000 0x0 0x3efc>;
1433 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>;
1434 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
1436 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1437 resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>;
1438 reset-names = "axi", "ahb", "dclk";
1439 status = "disabled";
1441 #address-cells = <1>;
1443 vopb_out_mipi: endpoint@0 {
1445 remote-endpoint = <&mipi_in_vopb>;
1448 vopb_out_hdmi: endpoint@1 {
1450 remote-endpoint = <&hdmi_in_vopb>;
1455 hdmi: hdmi@ff940000 {
1456 compatible = "rockchip,rk3399-dw-hdmi";
1457 reg = <0x0 0xff940000 0x0 0x20000>;
1459 rockchip,grf = <&grf>;
1460 pinctrl-names = "default";
1461 pinctrl-0 = <&hdmi_i2c_xfer>;
1462 power-domains = <&power RK3399_PD_HDCP>;
1463 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>;
1464 clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_SFR>, <&cru PLL_VPLL>, <&cru PCLK_VIO_GRF>;
1465 clock-names = "iahb", "isfr", "vpll", "grf";
1466 status = "disabled";
1470 #address-cells = <1>;
1472 hdmi_in_vopb: endpoint@0 {
1474 remote-endpoint = <&vopb_out_hdmi>;
1476 hdmi_in_vopl: endpoint@1 {
1478 remote-endpoint = <&vopl_out_hdmi>;
1484 mipi_dsi: mipi@ff960000 {
1485 compatible = "rockchip,rk3399_mipi_dsi";
1486 reg = <0x0 0xff960000 0x0 0x8000>;
1487 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>;
1488 clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>,
1489 <&cru SCLK_DPHY_TX0_CFG>;
1490 clock-names = "ref", "pclk", "phy_cfg";
1491 rockchip,grf = <&grf>;
1492 #address-cells = <1>;
1494 status = "disabled";
1496 #address-cells = <1>;
1500 #address-cells = <1>;
1502 mipi_in_vopb: endpoint@0 {
1504 remote-endpoint = <&vopb_out_mipi>;
1506 mipi_in_vopl: endpoint@1 {
1508 remote-endpoint = <&vopl_out_mipi>;
1515 u-boot,dm-pre-reloc;
1516 compatible = "rockchip,rk3399-pinctrl";
1517 rockchip,grf = <&grf>;
1518 rockchip,pmu = <&pmugrf>;
1519 #address-cells = <2>;
1523 gpio0: gpio0@ff720000 {
1524 compatible = "rockchip,gpio-bank";
1525 reg = <0x0 0xff720000 0x0 0x100>;
1526 clocks = <&pmucru PCLK_GPIO0_PMU>;
1527 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>;
1530 #gpio-cells = <0x2>;
1532 interrupt-controller;
1533 #interrupt-cells = <0x2>;
1536 gpio1: gpio1@ff730000 {
1537 compatible = "rockchip,gpio-bank";
1538 reg = <0x0 0xff730000 0x0 0x100>;
1539 clocks = <&pmucru PCLK_GPIO1_PMU>;
1540 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>;
1543 #gpio-cells = <0x2>;
1545 interrupt-controller;
1546 #interrupt-cells = <0x2>;
1549 gpio2: gpio2@ff780000 {
1550 compatible = "rockchip,gpio-bank";
1551 reg = <0x0 0xff780000 0x0 0x100>;
1552 clocks = <&cru PCLK_GPIO2>;
1553 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>;
1556 #gpio-cells = <0x2>;
1558 interrupt-controller;
1559 #interrupt-cells = <0x2>;
1562 gpio3: gpio3@ff788000 {
1563 compatible = "rockchip,gpio-bank";
1564 reg = <0x0 0xff788000 0x0 0x100>;
1565 clocks = <&cru PCLK_GPIO3>;
1566 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
1569 #gpio-cells = <0x2>;
1571 interrupt-controller;
1572 #interrupt-cells = <0x2>;
1575 gpio4: gpio4@ff790000 {
1576 compatible = "rockchip,gpio-bank";
1577 reg = <0x0 0xff790000 0x0 0x100>;
1578 clocks = <&cru PCLK_GPIO4>;
1579 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
1582 #gpio-cells = <0x2>;
1584 interrupt-controller;
1585 #interrupt-cells = <0x2>;
1588 pcfg_pull_up: pcfg-pull-up {
1592 pcfg_pull_down: pcfg-pull-down {
1596 pcfg_pull_none: pcfg-pull-none {
1600 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1602 drive-strength = <12>;
1605 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1607 drive-strength = <8>;
1610 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1612 drive-strength = <4>;
1615 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1617 drive-strength = <2>;
1620 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
1622 drive-strength = <12>;
1625 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
1627 drive-strength = <13>;
1632 rockchip,pins = <0 RK_PA0 RK_FUNC_2 &pcfg_pull_none>;
1639 <4 RK_PC7 RK_FUNC_2 &pcfg_pull_none>;
1644 rgmii_pins: rgmii-pins {
1647 <3 RK_PC1 RK_FUNC_1 &pcfg_pull_none_13ma>,
1649 <3 RK_PB6 RK_FUNC_1 &pcfg_pull_none>,
1651 <3 RK_PB5 RK_FUNC_1 &pcfg_pull_none>,
1653 <3 RK_PB4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1655 <3 RK_PB3 RK_FUNC_1 &pcfg_pull_none>,
1657 <3 RK_PB1 RK_FUNC_1 &pcfg_pull_none>,
1659 <3 RK_PB0 RK_FUNC_1 &pcfg_pull_none>,
1661 <3 RK_PA7 RK_FUNC_1 &pcfg_pull_none>,
1663 <3 RK_PA6 RK_FUNC_1 &pcfg_pull_none>,
1665 <3 RK_PA5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1667 <3 RK_PA4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1669 <3 RK_PA3 RK_FUNC_1 &pcfg_pull_none>,
1671 <3 RK_PA2 RK_FUNC_1 &pcfg_pull_none>,
1673 <3 RK_PA1 RK_FUNC_1 &pcfg_pull_none_13ma>,
1675 <3 RK_PA0 RK_FUNC_1 &pcfg_pull_none_13ma>;
1678 rmii_pins: rmii-pins {
1681 <3 RK_PB5 RK_FUNC_1 &pcfg_pull_none>,
1683 <3 RK_PB4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1685 <3 RK_PB3 RK_FUNC_1 &pcfg_pull_none>,
1687 <3 RK_PB2 RK_FUNC_1 &pcfg_pull_none>,
1689 <3 RK_PB1 RK_FUNC_1 &pcfg_pull_none>,
1691 <3 RK_PB0 RK_FUNC_1 &pcfg_pull_none>,
1693 <3 RK_PA7 RK_FUNC_1 &pcfg_pull_none>,
1695 <3 RK_PA6 RK_FUNC_1 &pcfg_pull_none>,
1697 <3 RK_PA5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1699 <3 RK_PA4 RK_FUNC_1 &pcfg_pull_none_13ma>;
1704 i2c0_xfer: i2c0-xfer {
1706 <1 RK_PB7 RK_FUNC_2 &pcfg_pull_none>,
1707 <1 RK_PC0 RK_FUNC_2 &pcfg_pull_none>;
1712 i2c1_xfer: i2c1-xfer {
1714 <4 RK_PA2 RK_FUNC_1 &pcfg_pull_none>,
1715 <4 RK_PA1 RK_FUNC_1 &pcfg_pull_none>;
1720 i2c2_xfer: i2c2-xfer {
1722 <2 RK_PA1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1723 <2 RK_PA0 RK_FUNC_2 &pcfg_pull_none_12ma>;
1728 i2c3_xfer: i2c3-xfer {
1730 <4 RK_PC1 RK_FUNC_1 &pcfg_pull_none>,
1731 <4 RK_PC0 RK_FUNC_1 &pcfg_pull_none>;
1736 i2c4_xfer: i2c4-xfer {
1738 <1 RK_PB4 RK_FUNC_1 &pcfg_pull_none>,
1739 <1 RK_PB3 RK_FUNC_1 &pcfg_pull_none>;
1744 i2c5_xfer: i2c5-xfer {
1746 <3 RK_PB3 RK_FUNC_2 &pcfg_pull_none>,
1747 <3 RK_PB2 RK_FUNC_2 &pcfg_pull_none>;
1752 i2c6_xfer: i2c6-xfer {
1754 <2 RK_PB2 RK_FUNC_2 &pcfg_pull_none>,
1755 <2 RK_PB1 RK_FUNC_2 &pcfg_pull_none>;
1760 i2c7_xfer: i2c7-xfer {
1762 <2 RK_PB0 RK_FUNC_2 &pcfg_pull_none>,
1763 <2 RK_PA7 RK_FUNC_2 &pcfg_pull_none>;
1768 i2c8_xfer: i2c8-xfer {
1770 <1 RK_PC5 RK_FUNC_1 &pcfg_pull_none>,
1771 <1 RK_PC4 RK_FUNC_1 &pcfg_pull_none>;
1776 i2s0_8ch_bus: i2s0-8ch-bus {
1778 <3 RK_PD0 RK_FUNC_1 &pcfg_pull_none>,
1779 <3 RK_PD1 RK_FUNC_1 &pcfg_pull_none>,
1780 <3 RK_PD2 RK_FUNC_1 &pcfg_pull_none>,
1781 <3 RK_PD3 RK_FUNC_1 &pcfg_pull_none>,
1782 <3 RK_PD4 RK_FUNC_1 &pcfg_pull_none>,
1783 <3 RK_PD5 RK_FUNC_1 &pcfg_pull_none>,
1784 <3 RK_PD6 RK_FUNC_1 &pcfg_pull_none>,
1785 <3 RK_PD7 RK_FUNC_1 &pcfg_pull_none>,
1786 <4 RK_PA0 RK_FUNC_1 &pcfg_pull_none>;
1791 i2s1_2ch_bus: i2s1-2ch-bus {
1793 <4 RK_PA3 RK_FUNC_1 &pcfg_pull_none>,
1794 <4 RK_PA4 RK_FUNC_1 &pcfg_pull_none>,
1795 <4 RK_PA5 RK_FUNC_1 &pcfg_pull_none>,
1796 <4 RK_PA6 RK_FUNC_1 &pcfg_pull_none>,
1797 <4 RK_PA7 RK_FUNC_1 &pcfg_pull_none>;
1802 sdio0_bus1: sdio0-bus1 {
1804 <2 RK_PC4 RK_FUNC_1 &pcfg_pull_up>;
1807 sdio0_bus4: sdio0-bus4 {
1809 <2 RK_PC4 RK_FUNC_1 &pcfg_pull_up>,
1810 <2 RK_PC5 RK_FUNC_1 &pcfg_pull_up>,
1811 <2 RK_PC6 RK_FUNC_1 &pcfg_pull_up>,
1812 <2 RK_PC7 RK_FUNC_1 &pcfg_pull_up>;
1815 sdio0_cmd: sdio0-cmd {
1817 <2 RK_PD0 RK_FUNC_1 &pcfg_pull_up>;
1820 sdio0_clk: sdio0-clk {
1822 <2 RK_PD1 RK_FUNC_1 &pcfg_pull_none>;
1825 sdio0_cd: sdio0-cd {
1827 <2 RK_PD2 RK_FUNC_1 &pcfg_pull_up>;
1830 sdio0_pwr: sdio0-pwr {
1832 <2 RK_PD3 RK_FUNC_1 &pcfg_pull_up>;
1835 sdio0_bkpwr: sdio0-bkpwr {
1837 <2 RK_PD4 RK_FUNC_1 &pcfg_pull_up>;
1840 sdio0_wp: sdio0-wp {
1842 <0 RK_PA3 RK_FUNC_1 &pcfg_pull_up>;
1845 sdio0_int: sdio0-int {
1847 <0 RK_PA4 RK_FUNC_1 &pcfg_pull_up>;
1852 sdmmc_bus1: sdmmc-bus1 {
1854 <4 RK_PB0 RK_FUNC_1 &pcfg_pull_up>;
1857 sdmmc_bus4: sdmmc-bus4 {
1859 <4 RK_PB0 RK_FUNC_1 &pcfg_pull_up>,
1860 <4 RK_PB1 RK_FUNC_1 &pcfg_pull_up>,
1861 <4 RK_PB2 RK_FUNC_1 &pcfg_pull_up>,
1862 <4 RK_PB3 RK_FUNC_1 &pcfg_pull_up>;
1865 sdmmc_clk: sdmmc-clk {
1867 <4 RK_PB4 RK_FUNC_1 &pcfg_pull_none>;
1870 sdmmc_cmd: sdmmc-cmd {
1872 <4 RK_PB5 RK_FUNC_1 &pcfg_pull_up>;
1875 sdmmc_cd: sdmcc-cd {
1877 <0 RK_PA7 RK_FUNC_1 &pcfg_pull_up>;
1880 sdmmc_wp: sdmmc-wp {
1882 <0 RK_PB0 RK_FUNC_1 &pcfg_pull_up>;
1887 ap_pwroff: ap-pwroff {
1888 rockchip,pins = <1 RK_PA5 RK_FUNC_1 &pcfg_pull_none>;
1891 ddrio_pwroff: ddrio-pwroff {
1892 rockchip,pins = <0 RK_PA1 RK_FUNC_1 &pcfg_pull_none>;
1897 spdif_bus: spdif-bus {
1899 <4 RK_PC5 RK_FUNC_1 &pcfg_pull_none>;
1902 spdif_bus_1: spdif-bus-1 {
1904 <3 RK_PC0 RK_FUNC_3 &pcfg_pull_none>;
1909 spi0_clk: spi0-clk {
1911 <3 RK_PA6 RK_FUNC_2 &pcfg_pull_up>;
1913 spi0_cs0: spi0-cs0 {
1915 <3 RK_PA7 RK_FUNC_2 &pcfg_pull_up>;
1917 spi0_cs1: spi0-cs1 {
1919 <3 RK_PB0 RK_FUNC_2 &pcfg_pull_up>;
1923 <3 RK_PA5 RK_FUNC_2 &pcfg_pull_up>;
1927 <3 RK_PA4 RK_FUNC_2 &pcfg_pull_up>;
1932 spi1_clk: spi1-clk {
1934 <1 RK_PB1 RK_FUNC_2 &pcfg_pull_up>;
1936 spi1_cs0: spi1-cs0 {
1938 <1 RK_PB2 RK_FUNC_2 &pcfg_pull_up>;
1942 <1 RK_PA7 RK_FUNC_2 &pcfg_pull_up>;
1946 <1 RK_PB0 RK_FUNC_2 &pcfg_pull_up>;
1951 spi2_clk: spi2-clk {
1953 <2 RK_PB3 RK_FUNC_1 &pcfg_pull_up>;
1955 spi2_cs0: spi2-cs0 {
1957 <2 RK_PB4 RK_FUNC_1 &pcfg_pull_up>;
1961 <2 RK_PB1 RK_FUNC_1 &pcfg_pull_up>;
1965 <2 RK_PB2 RK_FUNC_1 &pcfg_pull_up>;
1970 spi3_clk: spi3-clk {
1972 <1 RK_PC1 RK_FUNC_1 &pcfg_pull_up>;
1974 spi3_cs0: spi3-cs0 {
1976 <1 RK_PC2 RK_FUNC_1 &pcfg_pull_up>;
1980 <1 RK_PB7 RK_FUNC_1 &pcfg_pull_up>;
1984 <1 RK_PC0 RK_FUNC_1 &pcfg_pull_up>;
1989 spi4_clk: spi4-clk {
1991 <3 RK_PA2 RK_FUNC_2 &pcfg_pull_up>;
1993 spi4_cs0: spi4-cs0 {
1995 <3 RK_PA3 RK_FUNC_2 &pcfg_pull_up>;
1999 <3 RK_PA0 RK_FUNC_2 &pcfg_pull_up>;
2003 <3 RK_PA1 RK_FUNC_2 &pcfg_pull_up>;
2008 spi5_clk: spi5-clk {
2010 <2 RK_PC6 RK_FUNC_2 &pcfg_pull_up>;
2012 spi5_cs0: spi5-cs0 {
2014 <2 RK_PC7 RK_FUNC_2 &pcfg_pull_up>;
2018 <2 RK_PC4 RK_FUNC_2 &pcfg_pull_up>;
2022 <2 RK_PC5 RK_FUNC_2 &pcfg_pull_up>;
2027 otp_gpio: otp-gpio {
2028 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
2032 rockchip,pins = <1 RK_PA6 RK_FUNC_1 &pcfg_pull_none>;
2037 uart0_xfer: uart0-xfer {
2039 <2 RK_PC0 RK_FUNC_1 &pcfg_pull_up>,
2040 <2 RK_PC1 RK_FUNC_1 &pcfg_pull_none>;
2043 uart0_cts: uart0-cts {
2045 <2 RK_PC2 RK_FUNC_1 &pcfg_pull_none>;
2048 uart0_rts: uart0-rts {
2050 <2 RK_PC3 RK_FUNC_1 &pcfg_pull_none>;
2055 uart1_xfer: uart1-xfer {
2057 <3 RK_PB4 RK_FUNC_2 &pcfg_pull_up>,
2058 <3 RK_PB5 RK_FUNC_2 &pcfg_pull_none>;
2063 uart2a_xfer: uart2a-xfer {
2065 <4 RK_PB0 RK_FUNC_2 &pcfg_pull_up>,
2066 <4 RK_PB1 RK_FUNC_2 &pcfg_pull_none>;
2071 uart2b_xfer: uart2b-xfer {
2073 <4 RK_PC0 RK_FUNC_2 &pcfg_pull_up>,
2074 <4 RK_PC1 RK_FUNC_2 &pcfg_pull_none>;
2079 uart2c_xfer: uart2c-xfer {
2081 <4 RK_PC3 RK_FUNC_1 &pcfg_pull_up>,
2082 <4 RK_PC4 RK_FUNC_1 &pcfg_pull_none>;
2087 uart3_xfer: uart3-xfer {
2089 <3 RK_PB6 RK_FUNC_2 &pcfg_pull_up>,
2090 <3 RK_PB7 RK_FUNC_2 &pcfg_pull_none>;
2093 uart3_cts: uart3-cts {
2095 <3 RK_PC2 RK_FUNC_2 &pcfg_pull_none>;
2098 uart3_rts: uart3-rts {
2100 <3 RK_PC3 RK_FUNC_2 &pcfg_pull_none>;
2105 uart4_xfer: uart4-xfer {
2107 <1 RK_PA7 RK_FUNC_1 &pcfg_pull_up>,
2108 <1 RK_PB0 RK_FUNC_1 &pcfg_pull_none>;
2113 uarthdcp_xfer: uarthdcp-xfer {
2115 <4 RK_PC5 RK_FUNC_2 &pcfg_pull_up>,
2116 <4 RK_PC6 RK_FUNC_2 &pcfg_pull_none>;
2121 pwm0_pin: pwm0-pin {
2123 <4 RK_PC2 RK_FUNC_1 &pcfg_pull_none>;
2126 vop0_pwm_pin: vop0-pwm-pin {
2128 <4 RK_PC2 RK_FUNC_2 &pcfg_pull_none>;
2133 pwm1_pin: pwm1-pin {
2135 <4 RK_PC6 RK_FUNC_1 &pcfg_pull_none>;
2138 vop1_pwm_pin: vop1-pwm-pin {
2140 <4 RK_PC2 RK_FUNC_3 &pcfg_pull_none>;
2145 pwm2_pin: pwm2-pin {
2147 <1 RK_PC3 RK_FUNC_1 &pcfg_pull_none>;
2152 pwm3a_pin: pwm3a-pin {
2154 <0 RK_PA6 RK_FUNC_1 &pcfg_pull_none>;
2159 pwm3b_pin: pwm3b-pin {
2161 <1 RK_PB6 RK_FUNC_1 &pcfg_pull_none>;
2166 hdmi_i2c_xfer: hdmi-i2c-xfer {
2168 <4 RK_PC1 RK_FUNC_3 &pcfg_pull_none>,
2169 <4 RK_PC0 RK_FUNC_3 &pcfg_pull_none>;
2172 hdmi_cec: hdmi-cec {
2174 <4 RK_PC7 RK_FUNC_1 &pcfg_pull_none>;
2179 pcie_clkreqn: pci-clkreqn {
2181 <2 RK_PD2 RK_FUNC_2 &pcfg_pull_none>;
2184 pcie_clkreqnb: pci-clkreqnb {
2186 <4 RK_PD0 RK_FUNC_1 &pcfg_pull_none>;
2189 pcie_clkreqn_cpm: pci-clkreqn-cpm {
2191 <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
2194 pcie_clkreqnb_cpm: pci-clkreqnb-cpm {
2196 <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;