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>;
107 compatible = "arm,cortex-a53", "arm,armv8";
109 enable-method = "psci";
110 #cooling-cells = <2>; /* min followed by max */
111 clocks = <&cru ARMCLKL>;
116 compatible = "arm,cortex-a53", "arm,armv8";
118 enable-method = "psci";
119 clocks = <&cru ARMCLKL>;
124 compatible = "arm,cortex-a53", "arm,armv8";
126 enable-method = "psci";
127 clocks = <&cru ARMCLKL>;
132 compatible = "arm,cortex-a53", "arm,armv8";
134 enable-method = "psci";
135 clocks = <&cru ARMCLKL>;
140 compatible = "arm,cortex-a72", "arm,armv8";
142 enable-method = "psci";
143 #cooling-cells = <2>; /* min followed by max */
144 clocks = <&cru ARMCLKB>;
149 compatible = "arm,cortex-a72", "arm,armv8";
151 enable-method = "psci";
152 clocks = <&cru ARMCLKB>;
157 compatible = "arm,cortex-a53-pmu";
158 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster0>;
162 compatible = "arm,cortex-a72-pmu";
163 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster1>;
167 compatible = "arm,psci-1.0";
172 compatible = "arm,armv8-timer";
173 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
174 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
175 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
176 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>;
177 arm,no-tick-in-suspend;
181 compatible = "fixed-clock";
182 clock-frequency = <24000000>;
183 clock-output-names = "xin24m";
188 compatible = "simple-bus";
189 #address-cells = <2>;
193 dmac_bus: dma-controller@ff6d0000 {
194 compatible = "arm,pl330", "arm,primecell";
195 reg = <0x0 0xff6d0000 0x0 0x4000>;
196 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>,
197 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>;
199 clocks = <&cru ACLK_DMAC0_PERILP>;
200 clock-names = "apb_pclk";
203 dmac_peri: dma-controller@ff6e0000 {
204 compatible = "arm,pl330", "arm,primecell";
205 reg = <0x0 0xff6e0000 0x0 0x4000>;
206 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>,
207 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>;
209 clocks = <&cru ACLK_DMAC1_PERILP>;
210 clock-names = "apb_pclk";
214 gmac: ethernet@fe300000 {
215 compatible = "rockchip,rk3399-gmac";
216 reg = <0x0 0xfe300000 0x0 0x10000>;
217 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
218 interrupt-names = "macirq";
219 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
220 <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
221 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
223 clock-names = "stmmaceth", "mac_clk_rx",
224 "mac_clk_tx", "clk_mac_ref",
225 "clk_mac_refout", "aclk_mac",
227 power-domains = <&power RK3399_PD_GMAC>;
228 resets = <&cru SRST_A_GMAC>;
229 reset-names = "stmmaceth";
230 rockchip,grf = <&grf>;
234 sdio0: dwmmc@fe310000 {
235 compatible = "rockchip,rk3399-dw-mshc",
236 "rockchip,rk3288-dw-mshc";
237 reg = <0x0 0xfe310000 0x0 0x4000>;
238 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH 0>;
239 max-frequency = <150000000>;
240 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
241 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
242 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
243 fifo-depth = <0x100>;
247 sdmmc: dwmmc@fe320000 {
248 compatible = "rockchip,rk3399-dw-mshc",
249 "rockchip,rk3288-dw-mshc";
250 reg = <0x0 0xfe320000 0x0 0x4000>;
251 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>;
252 max-frequency = <150000000>;
253 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
254 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
255 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
256 fifo-depth = <0x100>;
257 power-domains = <&power RK3399_PD_SD>;
261 sdhci: sdhci@fe330000 {
262 compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
263 reg = <0x0 0xfe330000 0x0 0x10000>;
264 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>;
265 arasan,soc-ctl-syscon = <&grf>;
266 assigned-clocks = <&cru SCLK_EMMC>;
267 assigned-clock-rates = <200000000>;
268 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
269 clock-names = "clk_xin", "clk_ahb";
270 clock-output-names = "emmc_cardclock";
273 phy-names = "phy_arasan";
274 power-domains = <&power RK3399_PD_EMMC>;
278 pcie0: pcie@f8000000 {
279 compatible = "rockchip,rk3399-pcie";
280 reg = <0x0 0xf8000000 0x0 0x2000000>,
281 <0x0 0xfd000000 0x0 0x1000000>;
282 reg-names = "axi-base", "apb-base";
283 #address-cells = <3>;
285 #interrupt-cells = <1>;
287 bus-range = <0x0 0x1>;
288 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>,
289 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>;
290 clock-names = "aclk", "aclk-perf",
292 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>,
293 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>,
294 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>;
295 interrupt-names = "sys", "legacy", "client";
296 interrupt-map-mask = <0 0 0 7>;
297 interrupt-map = <0 0 0 1 &pcie0_intc 0>,
298 <0 0 0 2 &pcie0_intc 1>,
299 <0 0 0 3 &pcie0_intc 2>,
300 <0 0 0 4 &pcie0_intc 3>;
301 max-link-speed = <1>;
302 msi-map = <0x0 &its 0x0 0x1000>;
304 phy-names = "pcie-phy";
305 ranges = <0x83000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x600000
306 0x81000000 0x0 0xfa600000 0x0 0xfa600000 0x0 0x100000>;
307 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>,
308 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>,
309 <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>,
311 reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
312 "pm", "pclk", "aclk";
315 pcie0_intc: interrupt-controller {
316 interrupt-controller;
317 #address-cells = <0>;
318 #interrupt-cells = <1>;
322 usb_host0_ehci: usb@fe380000 {
323 compatible = "generic-ehci";
324 reg = <0x0 0xfe380000 0x0 0x20000>;
325 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>;
326 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
328 clock-names = "usbhost", "arbiter",
330 phys = <&u2phy0_host>;
335 usb_host0_ohci: usb@fe3a0000 {
336 compatible = "generic-ohci";
337 reg = <0x0 0xfe3a0000 0x0 0x20000>;
338 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>;
339 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
341 clock-names = "usbhost", "arbiter",
343 phys = <&u2phy0_host>;
348 usb_host1_ehci: usb@fe3c0000 {
349 compatible = "generic-ehci";
350 reg = <0x0 0xfe3c0000 0x0 0x20000>;
351 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>;
352 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
354 clock-names = "usbhost", "arbiter",
356 phys = <&u2phy1_host>;
361 usb_host1_ohci: usb@fe3e0000 {
362 compatible = "generic-ohci";
363 reg = <0x0 0xfe3e0000 0x0 0x20000>;
364 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
365 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
367 clock-names = "usbhost", "arbiter",
369 phys = <&u2phy1_host>;
374 gic: interrupt-controller@fee00000 {
375 compatible = "arm,gic-v3";
376 #interrupt-cells = <4>;
377 #address-cells = <2>;
380 interrupt-controller;
382 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
383 <0x0 0xfef00000 0 0xc0000>, /* GICR */
384 <0x0 0xfff00000 0 0x10000>, /* GICC */
385 <0x0 0xfff10000 0 0x10000>, /* GICH */
386 <0x0 0xfff20000 0 0x10000>; /* GICV */
387 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
388 its: interrupt-controller@fee20000 {
389 compatible = "arm,gic-v3-its";
391 reg = <0x0 0xfee20000 0x0 0x20000>;
395 ppi_cluster0: interrupt-partition-0 {
396 affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>;
399 ppi_cluster1: interrupt-partition-1 {
400 affinity = <&cpu_b0 &cpu_b1>;
405 saradc: saradc@ff100000 {
406 compatible = "rockchip,rk3399-saradc";
407 reg = <0x0 0xff100000 0x0 0x100>;
408 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH 0>;
409 #io-channel-cells = <1>;
410 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
411 clock-names = "saradc", "apb_pclk";
412 resets = <&cru SRST_P_SARADC>;
413 reset-names = "saradc-apb";
418 compatible = "rockchip,rk3399-i2c";
419 reg = <0x0 0xff110000 0x0 0x1000>;
420 assigned-clocks = <&cru SCLK_I2C1>;
421 assigned-clock-rates = <200000000>;
422 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
423 clock-names = "i2c", "pclk";
424 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH 0>;
425 pinctrl-names = "default";
426 pinctrl-0 = <&i2c1_xfer>;
427 #address-cells = <1>;
433 compatible = "rockchip,rk3399-i2c";
434 reg = <0x0 0xff120000 0x0 0x1000>;
435 assigned-clocks = <&cru SCLK_I2C2>;
436 assigned-clock-rates = <200000000>;
437 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
438 clock-names = "i2c", "pclk";
439 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH 0>;
440 pinctrl-names = "default";
441 pinctrl-0 = <&i2c2_xfer>;
442 #address-cells = <1>;
448 compatible = "rockchip,rk3399-i2c";
449 reg = <0x0 0xff130000 0x0 0x1000>;
450 assigned-clocks = <&cru SCLK_I2C3>;
451 assigned-clock-rates = <200000000>;
452 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
453 clock-names = "i2c", "pclk";
454 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH 0>;
455 pinctrl-names = "default";
456 pinctrl-0 = <&i2c3_xfer>;
457 #address-cells = <1>;
463 compatible = "rockchip,rk3399-i2c";
464 reg = <0x0 0xff140000 0x0 0x1000>;
465 assigned-clocks = <&cru SCLK_I2C5>;
466 assigned-clock-rates = <200000000>;
467 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>;
468 clock-names = "i2c", "pclk";
469 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>;
470 pinctrl-names = "default";
471 pinctrl-0 = <&i2c5_xfer>;
472 #address-cells = <1>;
478 compatible = "rockchip,rk3399-i2c";
479 reg = <0x0 0xff150000 0x0 0x1000>;
480 assigned-clocks = <&cru SCLK_I2C6>;
481 assigned-clock-rates = <200000000>;
482 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>;
483 clock-names = "i2c", "pclk";
484 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH 0>;
485 pinctrl-names = "default";
486 pinctrl-0 = <&i2c6_xfer>;
487 #address-cells = <1>;
493 compatible = "rockchip,rk3399-i2c";
494 reg = <0x0 0xff160000 0x0 0x1000>;
495 assigned-clocks = <&cru SCLK_I2C7>;
496 assigned-clock-rates = <200000000>;
497 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
498 clock-names = "i2c", "pclk";
499 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>;
500 pinctrl-names = "default";
501 pinctrl-0 = <&i2c7_xfer>;
502 #address-cells = <1>;
507 uart0: serial@ff180000 {
508 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
509 reg = <0x0 0xff180000 0x0 0x100>;
510 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
511 clock-names = "baudclk", "apb_pclk";
512 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>;
515 pinctrl-names = "default";
516 pinctrl-0 = <&uart0_xfer>;
520 uart1: serial@ff190000 {
521 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
522 reg = <0x0 0xff190000 0x0 0x100>;
523 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
524 clock-names = "baudclk", "apb_pclk";
525 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH 0>;
528 pinctrl-names = "default";
529 pinctrl-0 = <&uart1_xfer>;
533 uart2: serial@ff1a0000 {
534 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
535 reg = <0x0 0xff1a0000 0x0 0x100>;
536 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
537 clock-names = "baudclk", "apb_pclk";
538 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH 0>;
541 pinctrl-names = "default";
542 pinctrl-0 = <&uart2c_xfer>;
546 uart3: serial@ff1b0000 {
547 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
548 reg = <0x0 0xff1b0000 0x0 0x100>;
549 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
550 clock-names = "baudclk", "apb_pclk";
551 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>;
554 pinctrl-names = "default";
555 pinctrl-0 = <&uart3_xfer>;
560 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
561 reg = <0x0 0xff1c0000 0x0 0x1000>;
562 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
563 clock-names = "spiclk", "apb_pclk";
564 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>;
565 pinctrl-names = "default";
566 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
567 #address-cells = <1>;
573 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
574 reg = <0x0 0xff1d0000 0x0 0x1000>;
575 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
576 clock-names = "spiclk", "apb_pclk";
577 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
578 pinctrl-names = "default";
579 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
580 #address-cells = <1>;
586 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
587 reg = <0x0 0xff1e0000 0x0 0x1000>;
588 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
589 clock-names = "spiclk", "apb_pclk";
590 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>;
591 pinctrl-names = "default";
592 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
593 #address-cells = <1>;
599 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
600 reg = <0x0 0xff1f0000 0x0 0x1000>;
601 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
602 clock-names = "spiclk", "apb_pclk";
603 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>;
604 pinctrl-names = "default";
605 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
606 #address-cells = <1>;
612 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
613 reg = <0x0 0xff200000 0x0 0x1000>;
614 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
615 clock-names = "spiclk", "apb_pclk";
616 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>;
617 pinctrl-names = "default";
618 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
619 #address-cells = <1>;
624 thermal_zones: thermal-zones {
626 polling-delay-passive = <100>;
627 polling-delay = <1000>;
629 thermal-sensors = <&tsadc 0>;
632 cpu_alert0: cpu_alert0 {
633 temperature = <70000>;
637 cpu_alert1: cpu_alert1 {
638 temperature = <75000>;
643 temperature = <95000>;
651 trip = <&cpu_alert0>;
653 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
656 trip = <&cpu_alert1>;
658 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
659 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
665 polling-delay-passive = <100>;
666 polling-delay = <1000>;
668 thermal-sensors = <&tsadc 1>;
671 gpu_alert0: gpu_alert0 {
672 temperature = <75000>;
677 temperature = <95000>;
685 trip = <&gpu_alert0>;
687 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
693 tsadc: tsadc@ff260000 {
694 compatible = "rockchip,rk3399-tsadc";
695 reg = <0x0 0xff260000 0x0 0x100>;
696 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH 0>;
697 assigned-clocks = <&cru SCLK_TSADC>;
698 assigned-clock-rates = <750000>;
699 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
700 clock-names = "tsadc", "apb_pclk";
701 resets = <&cru SRST_TSADC>;
702 reset-names = "tsadc-apb";
703 rockchip,grf = <&grf>;
704 rockchip,hw-tshut-temp = <95000>;
705 pinctrl-names = "init", "default", "sleep";
706 pinctrl-0 = <&otp_gpio>;
707 pinctrl-1 = <&otp_out>;
708 pinctrl-2 = <&otp_gpio>;
709 #thermal-sensor-cells = <1>;
713 qos_sd: qos@ffa74000 {
714 compatible = "syscon";
715 reg = <0x0 0xffa74000 0x0 0x20>;
718 qos_emmc: qos@ffa58000 {
719 compatible = "syscon";
720 reg = <0x0 0xffa58000 0x0 0x20>;
723 qos_gmac: qos@ffa5c000 {
724 compatible = "syscon";
725 reg = <0x0 0xffa5c000 0x0 0x20>;
728 qos_hdcp: qos@ffa90000 {
729 compatible = "syscon";
730 reg = <0x0 0xffa90000 0x0 0x20>;
733 qos_iep: qos@ffa98000 {
734 compatible = "syscon";
735 reg = <0x0 0xffa98000 0x0 0x20>;
738 qos_isp0_m0: qos@ffaa0000 {
739 compatible = "syscon";
740 reg = <0x0 0xffaa0000 0x0 0x20>;
743 qos_isp0_m1: qos@ffaa0080 {
744 compatible = "syscon";
745 reg = <0x0 0xffaa0080 0x0 0x20>;
748 qos_isp1_m0: qos@ffaa8000 {
749 compatible = "syscon";
750 reg = <0x0 0xffaa8000 0x0 0x20>;
753 qos_isp1_m1: qos@ffaa8080 {
754 compatible = "syscon";
755 reg = <0x0 0xffaa8080 0x0 0x20>;
758 qos_rga_r: qos@ffab0000 {
759 compatible = "syscon";
760 reg = <0x0 0xffab0000 0x0 0x20>;
763 qos_rga_w: qos@ffab0080 {
764 compatible = "syscon";
765 reg = <0x0 0xffab0080 0x0 0x20>;
768 qos_video_m0: qos@ffab8000 {
769 compatible = "syscon";
770 reg = <0x0 0xffab8000 0x0 0x20>;
773 qos_video_m1_r: qos@ffac0000 {
774 compatible = "syscon";
775 reg = <0x0 0xffac0000 0x0 0x20>;
778 qos_video_m1_w: qos@ffac0080 {
779 compatible = "syscon";
780 reg = <0x0 0xffac0080 0x0 0x20>;
783 qos_vop_big_r: qos@ffac8000 {
784 compatible = "syscon";
785 reg = <0x0 0xffac8000 0x0 0x20>;
788 qos_vop_big_w: qos@ffac8080 {
789 compatible = "syscon";
790 reg = <0x0 0xffac8080 0x0 0x20>;
793 qos_vop_little: qos@ffad0000 {
794 compatible = "syscon";
795 reg = <0x0 0xffad0000 0x0 0x20>;
798 qos_gpu: qos@ffae0000 {
799 compatible = "syscon";
800 reg = <0x0 0xffae0000 0x0 0x20>;
803 pmu: power-management@ff310000 {
804 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
805 reg = <0x0 0xff310000 0x0 0x1000>;
808 * Note: RK3399 supports 6 voltage domains including VD_CORE_L,
809 * VD_CORE_B, VD_CENTER, VD_GPU, VD_LOGIC and VD_PMU.
810 * Some of the power domains are grouped together for every
812 * The detail contents as below.
814 power: power-controller {
815 compatible = "rockchip,rk3399-power-controller";
816 #power-domain-cells = <1>;
817 #address-cells = <1>;
820 /* These power domains are grouped by VD_CENTER */
821 pd_iep@RK3399_PD_IEP {
822 reg = <RK3399_PD_IEP>;
823 clocks = <&cru ACLK_IEP>,
827 pd_rga@RK3399_PD_RGA {
828 reg = <RK3399_PD_RGA>;
829 clocks = <&cru ACLK_RGA>,
831 pm_qos = <&qos_rga_r>,
834 pd_vcodec@RK3399_PD_VCODEC {
835 reg = <RK3399_PD_VCODEC>;
836 clocks = <&cru ACLK_VCODEC>,
838 pm_qos = <&qos_video_m0>;
840 pd_vdu@RK3399_PD_VDU {
841 reg = <RK3399_PD_VDU>;
842 clocks = <&cru ACLK_VDU>,
844 pm_qos = <&qos_video_m1_r>,
848 /* These power domains are grouped by VD_GPU */
849 pd_gpu@RK3399_PD_GPU {
850 reg = <RK3399_PD_GPU>;
851 clocks = <&cru ACLK_GPU>;
855 /* These power domains are grouped by VD_LOGIC */
856 pd_emmc@RK3399_PD_EMMC {
857 reg = <RK3399_PD_EMMC>;
858 clocks = <&cru ACLK_EMMC>;
859 pm_qos = <&qos_emmc>;
861 pd_gmac@RK3399_PD_GMAC {
862 reg = <RK3399_PD_GMAC>;
863 clocks = <&cru ACLK_GMAC>,
865 pm_qos = <&qos_gmac>;
868 reg = <RK3399_PD_SD>;
869 clocks = <&cru HCLK_SDMMC>,
873 pd_vio@RK3399_PD_VIO {
874 reg = <RK3399_PD_VIO>;
875 #address-cells = <1>;
878 pd_hdcp@RK3399_PD_HDCP {
879 reg = <RK3399_PD_HDCP>;
880 clocks = <&cru ACLK_HDCP>,
883 pm_qos = <&qos_hdcp>;
885 pd_isp0@RK3399_PD_ISP0 {
886 reg = <RK3399_PD_ISP0>;
887 clocks = <&cru ACLK_ISP0>,
889 pm_qos = <&qos_isp0_m0>,
892 pd_isp1@RK3399_PD_ISP1 {
893 reg = <RK3399_PD_ISP1>;
894 clocks = <&cru ACLK_ISP1>,
896 pm_qos = <&qos_isp1_m0>,
899 pd_tcpc0@RK3399_PD_TCPC0 {
900 reg = <RK3399_PD_TCPD0>;
901 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
902 <&cru SCLK_UPHY0_TCPDPHY_REF>;
904 pd_tcpc1@RK3399_PD_TCPC1 {
905 reg = <RK3399_PD_TCPD1>;
906 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
907 <&cru SCLK_UPHY1_TCPDPHY_REF>;
910 reg = <RK3399_PD_VO>;
911 #address-cells = <1>;
914 pd_vopb@RK3399_PD_VOPB {
915 reg = <RK3399_PD_VOPB>;
916 clocks = <&cru ACLK_VOP0>,
918 pm_qos = <&qos_vop_big_r>,
921 pd_vopl@RK3399_PD_VOPL {
922 reg = <RK3399_PD_VOPL>;
923 clocks = <&cru ACLK_VOP1>,
925 pm_qos = <&qos_vop_little>;
932 pmugrf: syscon@ff320000 {
933 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd";
934 reg = <0x0 0xff320000 0x0 0x1000>;
935 #address-cells = <1>;
938 pmu_io_domains: io-domains {
939 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
945 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
946 reg = <0x0 0xff350000 0x0 0x1000>;
947 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>;
948 clock-names = "spiclk", "apb_pclk";
949 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH 0>;
950 pinctrl-names = "default";
951 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
952 #address-cells = <1>;
957 uart4: serial@ff370000 {
958 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
959 reg = <0x0 0xff370000 0x0 0x100>;
960 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>;
961 clock-names = "baudclk", "apb_pclk";
962 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH 0>;
965 pinctrl-names = "default";
966 pinctrl-0 = <&uart4_xfer>;
971 compatible = "rockchip,rk3399-i2c";
972 reg = <0x0 0xff3c0000 0x0 0x1000>;
973 assigned-clocks = <&pmucru SCLK_I2C0_PMU>;
974 assigned-clock-rates = <200000000>;
975 clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
976 clock-names = "i2c", "pclk";
977 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>;
978 pinctrl-names = "default";
979 pinctrl-0 = <&i2c0_xfer>;
980 #address-cells = <1>;
986 compatible = "rockchip,rk3399-i2c";
987 reg = <0x0 0xff3d0000 0x0 0x1000>;
988 assigned-clocks = <&pmucru SCLK_I2C4_PMU>;
989 assigned-clock-rates = <200000000>;
990 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>;
991 clock-names = "i2c", "pclk";
992 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH 0>;
993 pinctrl-names = "default";
994 pinctrl-0 = <&i2c4_xfer>;
995 #address-cells = <1>;
1000 i2c8: i2c@ff3e0000 {
1001 compatible = "rockchip,rk3399-i2c";
1002 reg = <0x0 0xff3e0000 0x0 0x1000>;
1003 assigned-clocks = <&pmucru SCLK_I2C8_PMU>;
1004 assigned-clock-rates = <200000000>;
1005 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>;
1006 clock-names = "i2c", "pclk";
1007 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
1008 pinctrl-names = "default";
1009 pinctrl-0 = <&i2c8_xfer>;
1010 #address-cells = <1>;
1012 status = "disabled";
1015 pwm0: pwm@ff420000 {
1016 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1017 reg = <0x0 0xff420000 0x0 0x10>;
1019 pinctrl-names = "default";
1020 pinctrl-0 = <&pwm0_pin>;
1021 clocks = <&pmucru PCLK_RKPWM_PMU>;
1022 clock-names = "pwm";
1023 status = "disabled";
1026 pwm1: pwm@ff420010 {
1027 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1028 reg = <0x0 0xff420010 0x0 0x10>;
1030 pinctrl-names = "default";
1031 pinctrl-0 = <&pwm1_pin>;
1032 clocks = <&pmucru PCLK_RKPWM_PMU>;
1033 clock-names = "pwm";
1034 status = "disabled";
1037 pwm2: pwm@ff420020 {
1038 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1039 reg = <0x0 0xff420020 0x0 0x10>;
1041 pinctrl-names = "default";
1042 pinctrl-0 = <&pwm2_pin>;
1043 clocks = <&pmucru PCLK_RKPWM_PMU>;
1044 clock-names = "pwm";
1045 status = "disabled";
1048 pwm3: pwm@ff420030 {
1049 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1050 reg = <0x0 0xff420030 0x0 0x10>;
1052 pinctrl-names = "default";
1053 pinctrl-0 = <&pwm3a_pin>;
1054 clocks = <&pmucru PCLK_RKPWM_PMU>;
1055 clock-names = "pwm";
1056 status = "disabled";
1059 efuse0: efuse@ff690000 {
1060 compatible = "rockchip,rk3399-efuse";
1061 reg = <0x0 0xff690000 0x0 0x80>;
1062 #address-cells = <1>;
1064 clocks = <&cru PCLK_EFUSE1024NS>;
1065 clock-names = "pclk_efuse";
1071 cpub_leakage: cpu-leakage@17 {
1074 gpu_leakage: gpu-leakage@18 {
1077 center_leakage: center-leakage@19 {
1080 cpul_leakage: cpu-leakage@1a {
1083 logic_leakage: logic-leakage@1b {
1086 wafer_info: wafer-info@1c {
1091 pmucru: pmu-clock-controller@ff750000 {
1092 compatible = "rockchip,rk3399-pmucru";
1093 reg = <0x0 0xff750000 0x0 0x1000>;
1094 rockchip,grf = <&pmugrf>;
1097 assigned-clocks = <&pmucru PLL_PPLL>;
1098 assigned-clock-rates = <676000000>;
1101 cru: clock-controller@ff760000 {
1102 compatible = "rockchip,rk3399-cru";
1103 reg = <0x0 0xff760000 0x0 0x1000>;
1104 rockchip,grf = <&grf>;
1108 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1110 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
1112 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
1113 <&cru PCLK_PERILP0>, <&cru ACLK_CCI>,
1114 <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>;
1115 assigned-clock-rates =
1116 <594000000>, <800000000>,
1118 <150000000>, <75000000>,
1120 <100000000>, <100000000>,
1121 <50000000>, <600000000>,
1122 <100000000>, <50000000>;
1125 grf: syscon@ff770000 {
1126 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
1127 reg = <0x0 0xff770000 0x0 0x10000>;
1128 #address-cells = <1>;
1131 io_domains: io-domains {
1132 compatible = "rockchip,rk3399-io-voltage-domain";
1133 status = "disabled";
1136 u2phy0: usb2-phy@e450 {
1137 compatible = "rockchip,rk3399-usb2phy";
1138 reg = <0xe450 0x10>;
1139 clocks = <&cru SCLK_USB2PHY0_REF>;
1140 clock-names = "phyclk";
1142 clock-output-names = "clk_usbphy0_480m";
1143 status = "disabled";
1145 u2phy0_host: host-port {
1147 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
1148 interrupt-names = "linestate";
1149 status = "disabled";
1152 u2phy0_otg: otg-port {
1154 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
1155 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
1156 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
1157 interrupt-names = "otg-bvalid", "otg-id",
1159 status = "disabled";
1163 u2phy1: usb2-phy@e460 {
1164 compatible = "rockchip,rk3399-usb2phy";
1165 reg = <0xe460 0x10>;
1166 clocks = <&cru SCLK_USB2PHY1_REF>;
1167 clock-names = "phyclk";
1169 clock-output-names = "clk_usbphy1_480m";
1170 status = "disabled";
1172 u2phy1_host: host-port {
1174 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH 0>;
1175 interrupt-names = "linestate";
1176 status = "disabled";
1179 u2phy1_otg: otg-port {
1181 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>,
1182 <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH 0>,
1183 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH 0>;
1184 interrupt-names = "otg-bvalid", "otg-id",
1186 status = "disabled";
1190 emmc_phy: phy@f780 {
1191 compatible = "rockchip,rk3399-emmc-phy";
1192 reg = <0xf780 0x24>;
1194 clock-names = "emmcclk";
1196 status = "disabled";
1199 pcie_phy: pcie-phy {
1200 compatible = "rockchip,rk3399-pcie-phy";
1201 clocks = <&cru SCLK_PCIEPHY_REF>;
1202 clock-names = "refclk";
1204 resets = <&cru SRST_PCIEPHY>;
1205 reset-names = "phy";
1206 status = "disabled";
1210 tcphy0: phy@ff7c0000 {
1211 compatible = "rockchip,rk3399-typec-phy";
1212 reg = <0x0 0xff7c0000 0x0 0x40000>;
1213 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1214 <&cru SCLK_UPHY0_TCPDPHY_REF>;
1215 clock-names = "tcpdcore", "tcpdphy-ref";
1216 assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>;
1217 assigned-clock-rates = <50000000>;
1218 power-domains = <&power RK3399_PD_TCPD0>;
1219 resets = <&cru SRST_UPHY0>,
1220 <&cru SRST_UPHY0_PIPE_L00>,
1221 <&cru SRST_P_UPHY0_TCPHY>;
1222 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1223 rockchip,grf = <&grf>;
1224 rockchip,typec-conn-dir = <0xe580 0 16>;
1225 rockchip,usb3tousb2-en = <0xe580 3 19>;
1226 rockchip,external-psm = <0xe588 14 30>;
1227 rockchip,pipe-status = <0xe5c0 0 0>;
1228 status = "disabled";
1230 tcphy0_dp: dp-port {
1234 tcphy0_usb3: usb3-port {
1239 tcphy1: phy@ff800000 {
1240 compatible = "rockchip,rk3399-typec-phy";
1241 reg = <0x0 0xff800000 0x0 0x40000>;
1242 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1243 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1244 clock-names = "tcpdcore", "tcpdphy-ref";
1245 assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>;
1246 assigned-clock-rates = <50000000>;
1247 power-domains = <&power RK3399_PD_TCPD1>;
1248 resets = <&cru SRST_UPHY1>,
1249 <&cru SRST_UPHY1_PIPE_L00>,
1250 <&cru SRST_P_UPHY1_TCPHY>;
1251 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1252 rockchip,grf = <&grf>;
1253 rockchip,typec-conn-dir = <0xe58c 0 16>;
1254 rockchip,usb3tousb2-en = <0xe58c 3 19>;
1255 rockchip,external-psm = <0xe594 14 30>;
1256 rockchip,pipe-status = <0xe5c0 16 16>;
1257 status = "disabled";
1259 tcphy1_dp: dp-port {
1263 tcphy1_usb3: usb3-port {
1269 compatible = "snps,dw-wdt";
1270 reg = <0x0 0xff848000 0x0 0x100>;
1271 clocks = <&cru PCLK_WDT>;
1272 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH 0>;
1275 rktimer: rktimer@ff850000 {
1276 compatible = "rockchip,rk3399-timer";
1277 reg = <0x0 0xff850000 0x0 0x1000>;
1278 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>;
1279 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>;
1280 clock-names = "pclk", "timer";
1283 spdif: spdif@ff870000 {
1284 compatible = "rockchip,rk3399-spdif";
1285 reg = <0x0 0xff870000 0x0 0x1000>;
1286 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>;
1287 dmas = <&dmac_bus 7>;
1289 clock-names = "mclk", "hclk";
1290 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
1291 pinctrl-names = "default";
1292 pinctrl-0 = <&spdif_bus>;
1293 status = "disabled";
1296 i2s0: i2s@ff880000 {
1297 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1298 reg = <0x0 0xff880000 0x0 0x1000>;
1299 rockchip,grf = <&grf>;
1300 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH 0>;
1301 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1302 dma-names = "tx", "rx";
1303 clock-names = "i2s_clk", "i2s_hclk";
1304 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>;
1305 pinctrl-names = "default";
1306 pinctrl-0 = <&i2s0_8ch_bus>;
1307 status = "disabled";
1310 i2s1: i2s@ff890000 {
1311 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1312 reg = <0x0 0xff890000 0x0 0x1000>;
1313 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 0>;
1314 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
1315 dma-names = "tx", "rx";
1316 clock-names = "i2s_clk", "i2s_hclk";
1317 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>;
1318 pinctrl-names = "default";
1319 pinctrl-0 = <&i2s1_2ch_bus>;
1320 status = "disabled";
1323 i2s2: i2s@ff8a0000 {
1324 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1325 reg = <0x0 0xff8a0000 0x0 0x1000>;
1326 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>;
1327 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
1328 dma-names = "tx", "rx";
1329 clock-names = "i2s_clk", "i2s_hclk";
1330 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
1331 status = "disabled";
1335 compatible = "rockchip,rk3399-pinctrl";
1336 rockchip,grf = <&grf>;
1337 rockchip,pmu = <&pmugrf>;
1338 #address-cells = <2>;
1342 gpio0: gpio0@ff720000 {
1343 compatible = "rockchip,gpio-bank";
1344 reg = <0x0 0xff720000 0x0 0x100>;
1345 clocks = <&pmucru PCLK_GPIO0_PMU>;
1346 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>;
1349 #gpio-cells = <0x2>;
1351 interrupt-controller;
1352 #interrupt-cells = <0x2>;
1355 gpio1: gpio1@ff730000 {
1356 compatible = "rockchip,gpio-bank";
1357 reg = <0x0 0xff730000 0x0 0x100>;
1358 clocks = <&pmucru PCLK_GPIO1_PMU>;
1359 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>;
1362 #gpio-cells = <0x2>;
1364 interrupt-controller;
1365 #interrupt-cells = <0x2>;
1368 gpio2: gpio2@ff780000 {
1369 compatible = "rockchip,gpio-bank";
1370 reg = <0x0 0xff780000 0x0 0x100>;
1371 clocks = <&cru PCLK_GPIO2>;
1372 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>;
1375 #gpio-cells = <0x2>;
1377 interrupt-controller;
1378 #interrupt-cells = <0x2>;
1381 gpio3: gpio3@ff788000 {
1382 compatible = "rockchip,gpio-bank";
1383 reg = <0x0 0xff788000 0x0 0x100>;
1384 clocks = <&cru PCLK_GPIO3>;
1385 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
1388 #gpio-cells = <0x2>;
1390 interrupt-controller;
1391 #interrupt-cells = <0x2>;
1394 gpio4: gpio4@ff790000 {
1395 compatible = "rockchip,gpio-bank";
1396 reg = <0x0 0xff790000 0x0 0x100>;
1397 clocks = <&cru PCLK_GPIO4>;
1398 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
1401 #gpio-cells = <0x2>;
1403 interrupt-controller;
1404 #interrupt-cells = <0x2>;
1407 pcfg_pull_up: pcfg-pull-up {
1411 pcfg_pull_down: pcfg-pull-down {
1415 pcfg_pull_none: pcfg-pull-none {
1419 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1421 drive-strength = <12>;
1424 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1426 drive-strength = <8>;
1429 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1431 drive-strength = <4>;
1434 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1436 drive-strength = <2>;
1439 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
1441 drive-strength = <12>;
1444 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
1446 drive-strength = <13>;
1451 rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;
1458 <4 23 RK_FUNC_2 &pcfg_pull_none>;
1463 rgmii_pins: rgmii-pins {
1466 <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>,
1468 <3 14 RK_FUNC_1 &pcfg_pull_none>,
1470 <3 13 RK_FUNC_1 &pcfg_pull_none>,
1472 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1474 <3 11 RK_FUNC_1 &pcfg_pull_none>,
1476 <3 9 RK_FUNC_1 &pcfg_pull_none>,
1478 <3 8 RK_FUNC_1 &pcfg_pull_none>,
1480 <3 7 RK_FUNC_1 &pcfg_pull_none>,
1482 <3 6 RK_FUNC_1 &pcfg_pull_none>,
1484 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1486 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1488 <3 3 RK_FUNC_1 &pcfg_pull_none>,
1490 <3 2 RK_FUNC_1 &pcfg_pull_none>,
1492 <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>,
1494 <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>;
1497 rmii_pins: rmii-pins {
1500 <3 13 RK_FUNC_1 &pcfg_pull_none>,
1502 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1504 <3 11 RK_FUNC_1 &pcfg_pull_none>,
1506 <3 10 RK_FUNC_1 &pcfg_pull_none>,
1508 <3 9 RK_FUNC_1 &pcfg_pull_none>,
1510 <3 8 RK_FUNC_1 &pcfg_pull_none>,
1512 <3 7 RK_FUNC_1 &pcfg_pull_none>,
1514 <3 6 RK_FUNC_1 &pcfg_pull_none>,
1516 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1518 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>;
1523 i2c0_xfer: i2c0-xfer {
1525 <1 15 RK_FUNC_2 &pcfg_pull_none>,
1526 <1 16 RK_FUNC_2 &pcfg_pull_none>;
1531 i2c1_xfer: i2c1-xfer {
1533 <4 2 RK_FUNC_1 &pcfg_pull_none>,
1534 <4 1 RK_FUNC_1 &pcfg_pull_none>;
1539 i2c2_xfer: i2c2-xfer {
1541 <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1542 <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>;
1547 i2c3_xfer: i2c3-xfer {
1549 <4 17 RK_FUNC_1 &pcfg_pull_none>,
1550 <4 16 RK_FUNC_1 &pcfg_pull_none>;
1555 i2c4_xfer: i2c4-xfer {
1557 <1 12 RK_FUNC_1 &pcfg_pull_none>,
1558 <1 11 RK_FUNC_1 &pcfg_pull_none>;
1563 i2c5_xfer: i2c5-xfer {
1565 <3 11 RK_FUNC_2 &pcfg_pull_none>,
1566 <3 10 RK_FUNC_2 &pcfg_pull_none>;
1571 i2c6_xfer: i2c6-xfer {
1573 <2 10 RK_FUNC_2 &pcfg_pull_none>,
1574 <2 9 RK_FUNC_2 &pcfg_pull_none>;
1579 i2c7_xfer: i2c7-xfer {
1581 <2 8 RK_FUNC_2 &pcfg_pull_none>,
1582 <2 7 RK_FUNC_2 &pcfg_pull_none>;
1587 i2c8_xfer: i2c8-xfer {
1589 <1 21 RK_FUNC_1 &pcfg_pull_none>,
1590 <1 20 RK_FUNC_1 &pcfg_pull_none>;
1595 i2s0_8ch_bus: i2s0-8ch-bus {
1597 <3 24 RK_FUNC_1 &pcfg_pull_none>,
1598 <3 25 RK_FUNC_1 &pcfg_pull_none>,
1599 <3 26 RK_FUNC_1 &pcfg_pull_none>,
1600 <3 27 RK_FUNC_1 &pcfg_pull_none>,
1601 <3 28 RK_FUNC_1 &pcfg_pull_none>,
1602 <3 29 RK_FUNC_1 &pcfg_pull_none>,
1603 <3 30 RK_FUNC_1 &pcfg_pull_none>,
1604 <3 31 RK_FUNC_1 &pcfg_pull_none>,
1605 <4 0 RK_FUNC_1 &pcfg_pull_none>;
1610 i2s1_2ch_bus: i2s1-2ch-bus {
1612 <4 3 RK_FUNC_1 &pcfg_pull_none>,
1613 <4 4 RK_FUNC_1 &pcfg_pull_none>,
1614 <4 5 RK_FUNC_1 &pcfg_pull_none>,
1615 <4 6 RK_FUNC_1 &pcfg_pull_none>,
1616 <4 7 RK_FUNC_1 &pcfg_pull_none>;
1621 ap_pwroff: ap-pwroff {
1622 rockchip,pins = <1 5 RK_FUNC_1 &pcfg_pull_none>;
1625 ddrio_pwroff: ddrio-pwroff {
1626 rockchip,pins = <0 1 RK_FUNC_1 &pcfg_pull_none>;
1631 spdif_bus: spdif-bus {
1633 <4 21 RK_FUNC_1 &pcfg_pull_none>;
1638 spi0_clk: spi0-clk {
1640 <3 6 RK_FUNC_2 &pcfg_pull_up>;
1642 spi0_cs0: spi0-cs0 {
1644 <3 7 RK_FUNC_2 &pcfg_pull_up>;
1646 spi0_cs1: spi0-cs1 {
1648 <3 8 RK_FUNC_2 &pcfg_pull_up>;
1652 <3 5 RK_FUNC_2 &pcfg_pull_up>;
1656 <3 4 RK_FUNC_2 &pcfg_pull_up>;
1661 spi1_clk: spi1-clk {
1663 <1 9 RK_FUNC_2 &pcfg_pull_up>;
1665 spi1_cs0: spi1-cs0 {
1667 <1 10 RK_FUNC_2 &pcfg_pull_up>;
1671 <1 7 RK_FUNC_2 &pcfg_pull_up>;
1675 <1 8 RK_FUNC_2 &pcfg_pull_up>;
1680 spi2_clk: spi2-clk {
1682 <2 11 RK_FUNC_1 &pcfg_pull_up>;
1684 spi2_cs0: spi2-cs0 {
1686 <2 12 RK_FUNC_1 &pcfg_pull_up>;
1690 <2 9 RK_FUNC_1 &pcfg_pull_up>;
1694 <2 10 RK_FUNC_1 &pcfg_pull_up>;
1699 spi3_clk: spi3-clk {
1701 <1 17 RK_FUNC_1 &pcfg_pull_up>;
1703 spi3_cs0: spi3-cs0 {
1705 <1 18 RK_FUNC_1 &pcfg_pull_up>;
1709 <1 15 RK_FUNC_1 &pcfg_pull_up>;
1713 <1 16 RK_FUNC_1 &pcfg_pull_up>;
1718 spi4_clk: spi4-clk {
1720 <3 2 RK_FUNC_2 &pcfg_pull_up>;
1722 spi4_cs0: spi4-cs0 {
1724 <3 3 RK_FUNC_2 &pcfg_pull_up>;
1728 <3 0 RK_FUNC_2 &pcfg_pull_up>;
1732 <3 1 RK_FUNC_2 &pcfg_pull_up>;
1737 spi5_clk: spi5-clk {
1739 <2 22 RK_FUNC_2 &pcfg_pull_up>;
1741 spi5_cs0: spi5-cs0 {
1743 <2 23 RK_FUNC_2 &pcfg_pull_up>;
1747 <2 20 RK_FUNC_2 &pcfg_pull_up>;
1751 <2 21 RK_FUNC_2 &pcfg_pull_up>;
1756 otp_gpio: otp-gpio {
1757 rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
1761 rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>;
1766 uart0_xfer: uart0-xfer {
1768 <2 16 RK_FUNC_1 &pcfg_pull_up>,
1769 <2 17 RK_FUNC_1 &pcfg_pull_none>;
1772 uart0_cts: uart0-cts {
1774 <2 18 RK_FUNC_1 &pcfg_pull_none>;
1777 uart0_rts: uart0-rts {
1779 <2 19 RK_FUNC_1 &pcfg_pull_none>;
1784 uart1_xfer: uart1-xfer {
1786 <3 12 RK_FUNC_2 &pcfg_pull_up>,
1787 <3 13 RK_FUNC_2 &pcfg_pull_none>;
1792 uart2a_xfer: uart2a-xfer {
1794 <4 8 RK_FUNC_2 &pcfg_pull_up>,
1795 <4 9 RK_FUNC_2 &pcfg_pull_none>;
1800 uart2b_xfer: uart2b-xfer {
1802 <4 16 RK_FUNC_2 &pcfg_pull_up>,
1803 <4 17 RK_FUNC_2 &pcfg_pull_none>;
1808 uart2c_xfer: uart2c-xfer {
1810 <4 19 RK_FUNC_1 &pcfg_pull_up>,
1811 <4 20 RK_FUNC_1 &pcfg_pull_none>;
1816 uart3_xfer: uart3-xfer {
1818 <3 14 RK_FUNC_2 &pcfg_pull_up>,
1819 <3 15 RK_FUNC_2 &pcfg_pull_none>;
1822 uart3_cts: uart3-cts {
1824 <3 18 RK_FUNC_2 &pcfg_pull_none>;
1827 uart3_rts: uart3-rts {
1829 <3 19 RK_FUNC_2 &pcfg_pull_none>;
1834 uart4_xfer: uart4-xfer {
1836 <1 7 RK_FUNC_1 &pcfg_pull_up>,
1837 <1 8 RK_FUNC_1 &pcfg_pull_none>;
1842 uarthdcp_xfer: uarthdcp-xfer {
1844 <4 21 RK_FUNC_2 &pcfg_pull_up>,
1845 <4 22 RK_FUNC_2 &pcfg_pull_none>;
1850 pwm0_pin: pwm0-pin {
1852 <4 18 RK_FUNC_1 &pcfg_pull_none>;
1855 vop0_pwm_pin: vop0-pwm-pin {
1857 <4 18 RK_FUNC_2 &pcfg_pull_none>;
1862 pwm1_pin: pwm1-pin {
1864 <4 22 RK_FUNC_1 &pcfg_pull_none>;
1867 vop1_pwm_pin: vop1-pwm-pin {
1869 <4 18 RK_FUNC_3 &pcfg_pull_none>;
1874 pwm2_pin: pwm2-pin {
1876 <1 19 RK_FUNC_1 &pcfg_pull_none>;
1881 pwm3a_pin: pwm3a-pin {
1883 <0 6 RK_FUNC_1 &pcfg_pull_none>;
1888 pwm3b_pin: pwm3b-pin {
1890 <1 14 RK_FUNC_1 &pcfg_pull_none>;
1895 pcie_clkreqn: pci-clkreqn {
1897 <2 26 RK_FUNC_2 &pcfg_pull_none>;
1900 pcie_clkreqnb: pci-clkreqnb {
1902 <4 24 RK_FUNC_1 &pcfg_pull_none>;