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>;
286 bus-range = <0x0 0x1>;
287 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>,
288 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>;
289 clock-names = "aclk", "aclk-perf",
291 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>,
292 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>,
293 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>;
294 interrupt-names = "sys", "legacy", "client";
295 interrupt-map-mask = <0 0 0 7>;
296 interrupt-map = <0 0 0 1 &pcie0_intc 0>,
297 <0 0 0 2 &pcie0_intc 1>,
298 <0 0 0 3 &pcie0_intc 2>,
299 <0 0 0 4 &pcie0_intc 3>;
300 msi-map = <0x0 &its 0x0 0x1000>;
302 phy-names = "pcie-phy";
303 ranges = <0x83000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x600000
304 0x81000000 0x0 0xfa600000 0x0 0xfa600000 0x0 0x100000>;
305 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>,
306 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>,
307 <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>,
309 reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
310 "pm", "pclk", "aclk";
313 pcie0_intc: interrupt-controller {
314 interrupt-controller;
315 #address-cells = <0>;
316 #interrupt-cells = <1>;
320 usb_host0_ehci: usb@fe380000 {
321 compatible = "generic-ehci";
322 reg = <0x0 0xfe380000 0x0 0x20000>;
323 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>;
324 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>;
325 clock-names = "hclk_host0", "hclk_host0_arb";
326 phys = <&u2phy0_host>;
331 usb_host0_ohci: usb@fe3a0000 {
332 compatible = "generic-ohci";
333 reg = <0x0 0xfe3a0000 0x0 0x20000>;
334 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>;
335 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>;
336 clock-names = "hclk_host0", "hclk_host0_arb";
340 usb_host1_ehci: usb@fe3c0000 {
341 compatible = "generic-ehci";
342 reg = <0x0 0xfe3c0000 0x0 0x20000>;
343 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>;
344 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>;
345 clock-names = "hclk_host1", "hclk_host1_arb";
346 phys = <&u2phy1_host>;
351 usb_host1_ohci: usb@fe3e0000 {
352 compatible = "generic-ohci";
353 reg = <0x0 0xfe3e0000 0x0 0x20000>;
354 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
355 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>;
356 clock-names = "hclk_host1", "hclk_host1_arb";
360 gic: interrupt-controller@fee00000 {
361 compatible = "arm,gic-v3";
362 #interrupt-cells = <4>;
363 #address-cells = <2>;
366 interrupt-controller;
368 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
369 <0x0 0xfef00000 0 0xc0000>, /* GICR */
370 <0x0 0xfff00000 0 0x10000>, /* GICC */
371 <0x0 0xfff10000 0 0x10000>, /* GICH */
372 <0x0 0xfff20000 0 0x10000>; /* GICV */
373 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
374 its: interrupt-controller@fee20000 {
375 compatible = "arm,gic-v3-its";
377 reg = <0x0 0xfee20000 0x0 0x20000>;
381 ppi_cluster0: interrupt-partition-0 {
382 affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>;
385 ppi_cluster1: interrupt-partition-1 {
386 affinity = <&cpu_b0 &cpu_b1>;
391 saradc: saradc@ff100000 {
392 compatible = "rockchip,rk3399-saradc";
393 reg = <0x0 0xff100000 0x0 0x100>;
394 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH 0>;
395 #io-channel-cells = <1>;
396 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
397 clock-names = "saradc", "apb_pclk";
398 resets = <&cru SRST_P_SARADC>;
399 reset-names = "saradc-apb";
404 compatible = "rockchip,rk3399-i2c";
405 reg = <0x0 0xff110000 0x0 0x1000>;
406 assigned-clocks = <&cru SCLK_I2C1>;
407 assigned-clock-rates = <200000000>;
408 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
409 clock-names = "i2c", "pclk";
410 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH 0>;
411 pinctrl-names = "default";
412 pinctrl-0 = <&i2c1_xfer>;
413 #address-cells = <1>;
419 compatible = "rockchip,rk3399-i2c";
420 reg = <0x0 0xff120000 0x0 0x1000>;
421 assigned-clocks = <&cru SCLK_I2C2>;
422 assigned-clock-rates = <200000000>;
423 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
424 clock-names = "i2c", "pclk";
425 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH 0>;
426 pinctrl-names = "default";
427 pinctrl-0 = <&i2c2_xfer>;
428 #address-cells = <1>;
434 compatible = "rockchip,rk3399-i2c";
435 reg = <0x0 0xff130000 0x0 0x1000>;
436 assigned-clocks = <&cru SCLK_I2C3>;
437 assigned-clock-rates = <200000000>;
438 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
439 clock-names = "i2c", "pclk";
440 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH 0>;
441 pinctrl-names = "default";
442 pinctrl-0 = <&i2c3_xfer>;
443 #address-cells = <1>;
449 compatible = "rockchip,rk3399-i2c";
450 reg = <0x0 0xff140000 0x0 0x1000>;
451 assigned-clocks = <&cru SCLK_I2C5>;
452 assigned-clock-rates = <200000000>;
453 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>;
454 clock-names = "i2c", "pclk";
455 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>;
456 pinctrl-names = "default";
457 pinctrl-0 = <&i2c5_xfer>;
458 #address-cells = <1>;
464 compatible = "rockchip,rk3399-i2c";
465 reg = <0x0 0xff150000 0x0 0x1000>;
466 assigned-clocks = <&cru SCLK_I2C6>;
467 assigned-clock-rates = <200000000>;
468 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>;
469 clock-names = "i2c", "pclk";
470 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH 0>;
471 pinctrl-names = "default";
472 pinctrl-0 = <&i2c6_xfer>;
473 #address-cells = <1>;
479 compatible = "rockchip,rk3399-i2c";
480 reg = <0x0 0xff160000 0x0 0x1000>;
481 assigned-clocks = <&cru SCLK_I2C7>;
482 assigned-clock-rates = <200000000>;
483 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
484 clock-names = "i2c", "pclk";
485 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>;
486 pinctrl-names = "default";
487 pinctrl-0 = <&i2c7_xfer>;
488 #address-cells = <1>;
493 uart0: serial@ff180000 {
494 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
495 reg = <0x0 0xff180000 0x0 0x100>;
496 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
497 clock-names = "baudclk", "apb_pclk";
498 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>;
501 pinctrl-names = "default";
502 pinctrl-0 = <&uart0_xfer>;
506 uart1: serial@ff190000 {
507 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
508 reg = <0x0 0xff190000 0x0 0x100>;
509 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
510 clock-names = "baudclk", "apb_pclk";
511 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH 0>;
514 pinctrl-names = "default";
515 pinctrl-0 = <&uart1_xfer>;
519 uart2: serial@ff1a0000 {
520 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
521 reg = <0x0 0xff1a0000 0x0 0x100>;
522 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
523 clock-names = "baudclk", "apb_pclk";
524 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH 0>;
527 pinctrl-names = "default";
528 pinctrl-0 = <&uart2c_xfer>;
532 uart3: serial@ff1b0000 {
533 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
534 reg = <0x0 0xff1b0000 0x0 0x100>;
535 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
536 clock-names = "baudclk", "apb_pclk";
537 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>;
540 pinctrl-names = "default";
541 pinctrl-0 = <&uart3_xfer>;
546 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
547 reg = <0x0 0xff1c0000 0x0 0x1000>;
548 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
549 clock-names = "spiclk", "apb_pclk";
550 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>;
551 pinctrl-names = "default";
552 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
553 #address-cells = <1>;
559 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
560 reg = <0x0 0xff1d0000 0x0 0x1000>;
561 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
562 clock-names = "spiclk", "apb_pclk";
563 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
564 pinctrl-names = "default";
565 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
566 #address-cells = <1>;
572 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
573 reg = <0x0 0xff1e0000 0x0 0x1000>;
574 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
575 clock-names = "spiclk", "apb_pclk";
576 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>;
577 pinctrl-names = "default";
578 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
579 #address-cells = <1>;
585 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
586 reg = <0x0 0xff1f0000 0x0 0x1000>;
587 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
588 clock-names = "spiclk", "apb_pclk";
589 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>;
590 pinctrl-names = "default";
591 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
592 #address-cells = <1>;
598 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
599 reg = <0x0 0xff200000 0x0 0x1000>;
600 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
601 clock-names = "spiclk", "apb_pclk";
602 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>;
603 pinctrl-names = "default";
604 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
605 #address-cells = <1>;
612 polling-delay-passive = <100>;
613 polling-delay = <1000>;
615 thermal-sensors = <&tsadc 0>;
618 cpu_alert0: cpu_alert0 {
619 temperature = <70000>;
623 cpu_alert1: cpu_alert1 {
624 temperature = <75000>;
629 temperature = <95000>;
637 trip = <&cpu_alert0>;
639 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
642 trip = <&cpu_alert1>;
644 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
645 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
651 polling-delay-passive = <100>;
652 polling-delay = <1000>;
654 thermal-sensors = <&tsadc 1>;
657 gpu_alert0: gpu_alert0 {
658 temperature = <75000>;
663 temperature = <95000>;
671 trip = <&gpu_alert0>;
673 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
679 tsadc: tsadc@ff260000 {
680 compatible = "rockchip,rk3399-tsadc";
681 reg = <0x0 0xff260000 0x0 0x100>;
682 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH 0>;
683 assigned-clocks = <&cru SCLK_TSADC>;
684 assigned-clock-rates = <750000>;
685 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
686 clock-names = "tsadc", "apb_pclk";
687 resets = <&cru SRST_TSADC>;
688 reset-names = "tsadc-apb";
689 rockchip,grf = <&grf>;
690 rockchip,hw-tshut-temp = <95000>;
691 pinctrl-names = "init", "default", "sleep";
692 pinctrl-0 = <&otp_gpio>;
693 pinctrl-1 = <&otp_out>;
694 pinctrl-2 = <&otp_gpio>;
695 #thermal-sensor-cells = <1>;
699 qos_sd: qos@ffa74000 {
700 compatible = "syscon";
701 reg = <0x0 0xffa74000 0x0 0x20>;
704 qos_emmc: qos@ffa58000 {
705 compatible = "syscon";
706 reg = <0x0 0xffa58000 0x0 0x20>;
709 qos_gmac: qos@ffa5c000 {
710 compatible = "syscon";
711 reg = <0x0 0xffa5c000 0x0 0x20>;
714 qos_hdcp: qos@ffa90000 {
715 compatible = "syscon";
716 reg = <0x0 0xffa90000 0x0 0x20>;
719 qos_iep: qos@ffa98000 {
720 compatible = "syscon";
721 reg = <0x0 0xffa98000 0x0 0x20>;
724 qos_isp0_m0: qos@ffaa0000 {
725 compatible = "syscon";
726 reg = <0x0 0xffaa0000 0x0 0x20>;
729 qos_isp0_m1: qos@ffaa0080 {
730 compatible = "syscon";
731 reg = <0x0 0xffaa0080 0x0 0x20>;
734 qos_isp1_m0: qos@ffaa8000 {
735 compatible = "syscon";
736 reg = <0x0 0xffaa8000 0x0 0x20>;
739 qos_isp1_m1: qos@ffaa8080 {
740 compatible = "syscon";
741 reg = <0x0 0xffaa8080 0x0 0x20>;
744 qos_rga_r: qos@ffab0000 {
745 compatible = "syscon";
746 reg = <0x0 0xffab0000 0x0 0x20>;
749 qos_rga_w: qos@ffab0080 {
750 compatible = "syscon";
751 reg = <0x0 0xffab0080 0x0 0x20>;
754 qos_video_m0: qos@ffab8000 {
755 compatible = "syscon";
756 reg = <0x0 0xffab8000 0x0 0x20>;
759 qos_video_m1_r: qos@ffac0000 {
760 compatible = "syscon";
761 reg = <0x0 0xffac0000 0x0 0x20>;
764 qos_video_m1_w: qos@ffac0080 {
765 compatible = "syscon";
766 reg = <0x0 0xffac0080 0x0 0x20>;
769 qos_vop_big_r: qos@ffac8000 {
770 compatible = "syscon";
771 reg = <0x0 0xffac8000 0x0 0x20>;
774 qos_vop_big_w: qos@ffac8080 {
775 compatible = "syscon";
776 reg = <0x0 0xffac8080 0x0 0x20>;
779 qos_vop_little: qos@ffad0000 {
780 compatible = "syscon";
781 reg = <0x0 0xffad0000 0x0 0x20>;
784 qos_gpu: qos@ffae0000 {
785 compatible = "syscon";
786 reg = <0x0 0xffae0000 0x0 0x20>;
789 pmu: power-management@ff310000 {
790 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
791 reg = <0x0 0xff310000 0x0 0x1000>;
794 * Note: RK3399 supports 6 voltage domains including VD_CORE_L,
795 * VD_CORE_B, VD_CENTER, VD_GPU, VD_LOGIC and VD_PMU.
796 * Some of the power domains are grouped together for every
798 * The detail contents as below.
800 power: power-controller {
801 compatible = "rockchip,rk3399-power-controller";
802 #power-domain-cells = <1>;
803 #address-cells = <1>;
806 /* These power domains are grouped by VD_CENTER */
807 pd_iep@RK3399_PD_IEP {
808 reg = <RK3399_PD_IEP>;
809 clocks = <&cru ACLK_IEP>,
813 pd_rga@RK3399_PD_RGA {
814 reg = <RK3399_PD_RGA>;
815 clocks = <&cru ACLK_RGA>,
817 pm_qos = <&qos_rga_r>,
820 pd_vcodec@RK3399_PD_VCODEC {
821 reg = <RK3399_PD_VCODEC>;
822 clocks = <&cru ACLK_VCODEC>,
824 pm_qos = <&qos_video_m0>;
826 pd_vdu@RK3399_PD_VDU {
827 reg = <RK3399_PD_VDU>;
828 clocks = <&cru ACLK_VDU>,
830 pm_qos = <&qos_video_m1_r>,
834 /* These power domains are grouped by VD_GPU */
835 pd_gpu@RK3399_PD_GPU {
836 reg = <RK3399_PD_GPU>;
837 clocks = <&cru ACLK_GPU>;
841 /* These power domains are grouped by VD_LOGIC */
842 pd_emmc@RK3399_PD_EMMC {
843 reg = <RK3399_PD_EMMC>;
844 clocks = <&cru ACLK_EMMC>;
845 pm_qos = <&qos_emmc>;
847 pd_gmac@RK3399_PD_GMAC {
848 reg = <RK3399_PD_GMAC>;
849 clocks = <&cru ACLK_GMAC>,
851 pm_qos = <&qos_gmac>;
854 reg = <RK3399_PD_SD>;
855 clocks = <&cru HCLK_SDMMC>,
859 pd_vio@RK3399_PD_VIO {
860 reg = <RK3399_PD_VIO>;
861 #address-cells = <1>;
864 pd_hdcp@RK3399_PD_HDCP {
865 reg = <RK3399_PD_HDCP>;
866 clocks = <&cru ACLK_HDCP>,
869 pm_qos = <&qos_hdcp>;
871 pd_isp0@RK3399_PD_ISP0 {
872 reg = <RK3399_PD_ISP0>;
873 clocks = <&cru ACLK_ISP0>,
875 pm_qos = <&qos_isp0_m0>,
878 pd_isp1@RK3399_PD_ISP1 {
879 reg = <RK3399_PD_ISP1>;
880 clocks = <&cru ACLK_ISP1>,
882 pm_qos = <&qos_isp1_m0>,
885 pd_tcpc0@RK3399_PD_TCPC0 {
886 reg = <RK3399_PD_TCPD0>;
887 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
888 <&cru SCLK_UPHY0_TCPDPHY_REF>;
890 pd_tcpc1@RK3399_PD_TCPC1 {
891 reg = <RK3399_PD_TCPD1>;
892 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
893 <&cru SCLK_UPHY1_TCPDPHY_REF>;
896 reg = <RK3399_PD_VO>;
897 #address-cells = <1>;
900 pd_vopb@RK3399_PD_VOPB {
901 reg = <RK3399_PD_VOPB>;
902 clocks = <&cru ACLK_VOP0>,
904 pm_qos = <&qos_vop_big_r>,
907 pd_vopl@RK3399_PD_VOPL {
908 reg = <RK3399_PD_VOPL>;
909 clocks = <&cru ACLK_VOP1>,
911 pm_qos = <&qos_vop_little>;
918 pmugrf: syscon@ff320000 {
919 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd";
920 reg = <0x0 0xff320000 0x0 0x1000>;
921 #address-cells = <1>;
924 pmu_io_domains: io-domains {
925 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
931 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
932 reg = <0x0 0xff350000 0x0 0x1000>;
933 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>;
934 clock-names = "spiclk", "apb_pclk";
935 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH 0>;
936 pinctrl-names = "default";
937 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
938 #address-cells = <1>;
943 uart4: serial@ff370000 {
944 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
945 reg = <0x0 0xff370000 0x0 0x100>;
946 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>;
947 clock-names = "baudclk", "apb_pclk";
948 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH 0>;
951 pinctrl-names = "default";
952 pinctrl-0 = <&uart4_xfer>;
957 compatible = "rockchip,rk3399-i2c";
958 reg = <0x0 0xff3c0000 0x0 0x1000>;
959 assigned-clocks = <&pmucru SCLK_I2C0_PMU>;
960 assigned-clock-rates = <200000000>;
961 clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
962 clock-names = "i2c", "pclk";
963 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>;
964 pinctrl-names = "default";
965 pinctrl-0 = <&i2c0_xfer>;
966 #address-cells = <1>;
972 compatible = "rockchip,rk3399-i2c";
973 reg = <0x0 0xff3d0000 0x0 0x1000>;
974 assigned-clocks = <&pmucru SCLK_I2C4_PMU>;
975 assigned-clock-rates = <200000000>;
976 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>;
977 clock-names = "i2c", "pclk";
978 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH 0>;
979 pinctrl-names = "default";
980 pinctrl-0 = <&i2c4_xfer>;
981 #address-cells = <1>;
987 compatible = "rockchip,rk3399-i2c";
988 reg = <0x0 0xff3e0000 0x0 0x1000>;
989 assigned-clocks = <&pmucru SCLK_I2C8_PMU>;
990 assigned-clock-rates = <200000000>;
991 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>;
992 clock-names = "i2c", "pclk";
993 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
994 pinctrl-names = "default";
995 pinctrl-0 = <&i2c8_xfer>;
996 #address-cells = <1>;
1001 pwm0: pwm@ff420000 {
1002 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1003 reg = <0x0 0xff420000 0x0 0x10>;
1005 pinctrl-names = "default";
1006 pinctrl-0 = <&pwm0_pin>;
1007 clocks = <&pmucru PCLK_RKPWM_PMU>;
1008 clock-names = "pwm";
1009 status = "disabled";
1012 pwm1: pwm@ff420010 {
1013 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1014 reg = <0x0 0xff420010 0x0 0x10>;
1016 pinctrl-names = "default";
1017 pinctrl-0 = <&pwm1_pin>;
1018 clocks = <&pmucru PCLK_RKPWM_PMU>;
1019 clock-names = "pwm";
1020 status = "disabled";
1023 pwm2: pwm@ff420020 {
1024 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1025 reg = <0x0 0xff420020 0x0 0x10>;
1027 pinctrl-names = "default";
1028 pinctrl-0 = <&pwm2_pin>;
1029 clocks = <&pmucru PCLK_RKPWM_PMU>;
1030 clock-names = "pwm";
1031 status = "disabled";
1034 pwm3: pwm@ff420030 {
1035 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1036 reg = <0x0 0xff420030 0x0 0x10>;
1038 pinctrl-names = "default";
1039 pinctrl-0 = <&pwm3a_pin>;
1040 clocks = <&pmucru PCLK_RKPWM_PMU>;
1041 clock-names = "pwm";
1042 status = "disabled";
1045 efuse0: efuse@ff690000 {
1046 compatible = "rockchip,rk3399-efuse";
1047 reg = <0x0 0xff690000 0x0 0x80>;
1048 #address-cells = <1>;
1050 clocks = <&cru PCLK_EFUSE1024NS>;
1051 clock-names = "pclk_efuse";
1057 cpub_leakage: cpu-leakage@17 {
1060 gpu_leakage: gpu-leakage@18 {
1063 center_leakage: center-leakage@19 {
1066 cpul_leakage: cpu-leakage@1a {
1069 logic_leakage: logic-leakage@1b {
1072 wafer_info: wafer-info@1c {
1077 pmucru: pmu-clock-controller@ff750000 {
1078 compatible = "rockchip,rk3399-pmucru";
1079 reg = <0x0 0xff750000 0x0 0x1000>;
1082 assigned-clocks = <&pmucru PLL_PPLL>;
1083 assigned-clock-rates = <676000000>;
1086 cru: clock-controller@ff760000 {
1087 compatible = "rockchip,rk3399-cru";
1088 reg = <0x0 0xff760000 0x0 0x1000>;
1092 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1094 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
1096 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
1097 <&cru PCLK_PERILP0>, <&cru ACLK_CCI>,
1098 <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>;
1099 assigned-clock-rates =
1100 <594000000>, <800000000>,
1102 <150000000>, <75000000>,
1104 <100000000>, <100000000>,
1105 <50000000>, <600000000>,
1106 <100000000>, <50000000>;
1109 grf: syscon@ff770000 {
1110 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
1111 reg = <0x0 0xff770000 0x0 0x10000>;
1112 #address-cells = <1>;
1115 io_domains: io-domains {
1116 compatible = "rockchip,rk3399-io-voltage-domain";
1117 status = "disabled";
1120 u2phy0: usb2-phy@e450 {
1121 compatible = "rockchip,rk3399-usb2phy";
1122 reg = <0xe450 0x10>;
1123 clocks = <&cru SCLK_USB2PHY0_REF>;
1124 clock-names = "phyclk";
1126 clock-output-names = "clk_usbphy0_480m";
1127 status = "disabled";
1129 u2phy0_host: host-port {
1131 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
1132 interrupt-names = "linestate";
1133 status = "disabled";
1136 u2phy0_otg: otg-port {
1138 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
1139 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
1140 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
1141 interrupt-names = "otg-bvalid", "otg-id",
1143 status = "disabled";
1147 u2phy1: usb2-phy@e460 {
1148 compatible = "rockchip,rk3399-usb2phy";
1149 reg = <0xe460 0x10>;
1150 clocks = <&cru SCLK_USB2PHY1_REF>;
1151 clock-names = "phyclk";
1153 clock-output-names = "clk_usbphy1_480m";
1154 status = "disabled";
1156 u2phy1_host: host-port {
1158 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH 0>;
1159 interrupt-names = "linestate";
1160 status = "disabled";
1163 u2phy1_otg: otg-port {
1165 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>,
1166 <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH 0>,
1167 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH 0>;
1168 interrupt-names = "otg-bvalid", "otg-id",
1170 status = "disabled";
1174 emmc_phy: phy@f780 {
1175 compatible = "rockchip,rk3399-emmc-phy";
1176 reg = <0xf780 0x24>;
1178 clock-names = "emmcclk";
1180 status = "disabled";
1183 pcie_phy: pcie-phy {
1184 compatible = "rockchip,rk3399-pcie-phy";
1185 clocks = <&cru SCLK_PCIEPHY_REF>;
1186 clock-names = "refclk";
1188 resets = <&cru SRST_PCIEPHY>;
1189 reset-names = "phy";
1190 status = "disabled";
1194 tcphy0: phy@ff7c0000 {
1195 compatible = "rockchip,rk3399-typec-phy";
1196 reg = <0x0 0xff7c0000 0x0 0x40000>;
1197 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1198 <&cru SCLK_UPHY0_TCPDPHY_REF>;
1199 clock-names = "tcpdcore", "tcpdphy-ref";
1200 assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>;
1201 assigned-clock-rates = <50000000>;
1202 power-domains = <&power RK3399_PD_TCPD0>;
1203 resets = <&cru SRST_UPHY0>,
1204 <&cru SRST_UPHY0_PIPE_L00>,
1205 <&cru SRST_P_UPHY0_TCPHY>;
1206 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1207 rockchip,grf = <&grf>;
1208 rockchip,typec-conn-dir = <0xe580 0 16>;
1209 rockchip,usb3tousb2-en = <0xe580 3 19>;
1210 rockchip,external-psm = <0xe588 14 30>;
1211 rockchip,pipe-status = <0xe5c0 0 0>;
1212 status = "disabled";
1214 tcphy0_dp: dp-port {
1218 tcphy0_usb3: usb3-port {
1223 tcphy1: phy@ff800000 {
1224 compatible = "rockchip,rk3399-typec-phy";
1225 reg = <0x0 0xff800000 0x0 0x40000>;
1226 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1227 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1228 clock-names = "tcpdcore", "tcpdphy-ref";
1229 assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>;
1230 assigned-clock-rates = <50000000>;
1231 power-domains = <&power RK3399_PD_TCPD1>;
1232 resets = <&cru SRST_UPHY1>,
1233 <&cru SRST_UPHY1_PIPE_L00>,
1234 <&cru SRST_P_UPHY1_TCPHY>;
1235 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1236 rockchip,grf = <&grf>;
1237 rockchip,typec-conn-dir = <0xe58c 0 16>;
1238 rockchip,usb3tousb2-en = <0xe58c 3 19>;
1239 rockchip,external-psm = <0xe594 14 30>;
1240 rockchip,pipe-status = <0xe5c0 16 16>;
1241 status = "disabled";
1243 tcphy1_dp: dp-port {
1247 tcphy1_usb3: usb3-port {
1253 compatible = "snps,dw-wdt";
1254 reg = <0x0 0xff848000 0x0 0x100>;
1255 clocks = <&cru PCLK_WDT>;
1256 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH 0>;
1259 rktimer: rktimer@ff850000 {
1260 compatible = "rockchip,rk3399-timer";
1261 reg = <0x0 0xff850000 0x0 0x1000>;
1262 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>;
1263 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>;
1264 clock-names = "pclk", "timer";
1267 spdif: spdif@ff870000 {
1268 compatible = "rockchip,rk3399-spdif";
1269 reg = <0x0 0xff870000 0x0 0x1000>;
1270 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>;
1271 dmas = <&dmac_bus 7>;
1273 clock-names = "mclk", "hclk";
1274 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
1275 pinctrl-names = "default";
1276 pinctrl-0 = <&spdif_bus>;
1277 status = "disabled";
1280 i2s0: i2s@ff880000 {
1281 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1282 reg = <0x0 0xff880000 0x0 0x1000>;
1283 rockchip,grf = <&grf>;
1284 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH 0>;
1285 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1286 dma-names = "tx", "rx";
1287 clock-names = "i2s_clk", "i2s_hclk";
1288 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>;
1289 pinctrl-names = "default";
1290 pinctrl-0 = <&i2s0_8ch_bus>;
1291 status = "disabled";
1294 i2s1: i2s@ff890000 {
1295 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1296 reg = <0x0 0xff890000 0x0 0x1000>;
1297 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 0>;
1298 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
1299 dma-names = "tx", "rx";
1300 clock-names = "i2s_clk", "i2s_hclk";
1301 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>;
1302 pinctrl-names = "default";
1303 pinctrl-0 = <&i2s1_2ch_bus>;
1304 status = "disabled";
1307 i2s2: i2s@ff8a0000 {
1308 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1309 reg = <0x0 0xff8a0000 0x0 0x1000>;
1310 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>;
1311 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
1312 dma-names = "tx", "rx";
1313 clock-names = "i2s_clk", "i2s_hclk";
1314 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
1315 status = "disabled";
1319 compatible = "rockchip,rk3399-pinctrl";
1320 rockchip,grf = <&grf>;
1321 rockchip,pmu = <&pmugrf>;
1322 #address-cells = <2>;
1326 gpio0: gpio0@ff720000 {
1327 compatible = "rockchip,gpio-bank";
1328 reg = <0x0 0xff720000 0x0 0x100>;
1329 clocks = <&pmucru PCLK_GPIO0_PMU>;
1330 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>;
1333 #gpio-cells = <0x2>;
1335 interrupt-controller;
1336 #interrupt-cells = <0x2>;
1339 gpio1: gpio1@ff730000 {
1340 compatible = "rockchip,gpio-bank";
1341 reg = <0x0 0xff730000 0x0 0x100>;
1342 clocks = <&pmucru PCLK_GPIO1_PMU>;
1343 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>;
1346 #gpio-cells = <0x2>;
1348 interrupt-controller;
1349 #interrupt-cells = <0x2>;
1352 gpio2: gpio2@ff780000 {
1353 compatible = "rockchip,gpio-bank";
1354 reg = <0x0 0xff780000 0x0 0x100>;
1355 clocks = <&cru PCLK_GPIO2>;
1356 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>;
1359 #gpio-cells = <0x2>;
1361 interrupt-controller;
1362 #interrupt-cells = <0x2>;
1365 gpio3: gpio3@ff788000 {
1366 compatible = "rockchip,gpio-bank";
1367 reg = <0x0 0xff788000 0x0 0x100>;
1368 clocks = <&cru PCLK_GPIO3>;
1369 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
1372 #gpio-cells = <0x2>;
1374 interrupt-controller;
1375 #interrupt-cells = <0x2>;
1378 gpio4: gpio4@ff790000 {
1379 compatible = "rockchip,gpio-bank";
1380 reg = <0x0 0xff790000 0x0 0x100>;
1381 clocks = <&cru PCLK_GPIO4>;
1382 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
1385 #gpio-cells = <0x2>;
1387 interrupt-controller;
1388 #interrupt-cells = <0x2>;
1391 pcfg_pull_up: pcfg-pull-up {
1395 pcfg_pull_down: pcfg-pull-down {
1399 pcfg_pull_none: pcfg-pull-none {
1403 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1405 drive-strength = <12>;
1408 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1410 drive-strength = <8>;
1413 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1415 drive-strength = <4>;
1418 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1420 drive-strength = <2>;
1423 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
1425 drive-strength = <12>;
1428 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
1430 drive-strength = <13>;
1435 rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;
1440 rgmii_pins: rgmii-pins {
1443 <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>,
1445 <3 14 RK_FUNC_1 &pcfg_pull_none>,
1447 <3 13 RK_FUNC_1 &pcfg_pull_none>,
1449 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1451 <3 11 RK_FUNC_1 &pcfg_pull_none>,
1453 <3 9 RK_FUNC_1 &pcfg_pull_none>,
1455 <3 8 RK_FUNC_1 &pcfg_pull_none>,
1457 <3 7 RK_FUNC_1 &pcfg_pull_none>,
1459 <3 6 RK_FUNC_1 &pcfg_pull_none>,
1461 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1463 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1465 <3 3 RK_FUNC_1 &pcfg_pull_none>,
1467 <3 2 RK_FUNC_1 &pcfg_pull_none>,
1469 <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>,
1471 <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>;
1474 rmii_pins: rmii-pins {
1477 <3 13 RK_FUNC_1 &pcfg_pull_none>,
1479 <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1481 <3 11 RK_FUNC_1 &pcfg_pull_none>,
1483 <3 10 RK_FUNC_1 &pcfg_pull_none>,
1485 <3 9 RK_FUNC_1 &pcfg_pull_none>,
1487 <3 8 RK_FUNC_1 &pcfg_pull_none>,
1489 <3 7 RK_FUNC_1 &pcfg_pull_none>,
1491 <3 6 RK_FUNC_1 &pcfg_pull_none>,
1493 <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1495 <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>;
1500 i2c0_xfer: i2c0-xfer {
1502 <1 15 RK_FUNC_2 &pcfg_pull_none>,
1503 <1 16 RK_FUNC_2 &pcfg_pull_none>;
1508 i2c1_xfer: i2c1-xfer {
1510 <4 2 RK_FUNC_1 &pcfg_pull_none>,
1511 <4 1 RK_FUNC_1 &pcfg_pull_none>;
1516 i2c2_xfer: i2c2-xfer {
1518 <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1519 <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>;
1524 i2c3_xfer: i2c3-xfer {
1526 <4 17 RK_FUNC_1 &pcfg_pull_none>,
1527 <4 16 RK_FUNC_1 &pcfg_pull_none>;
1532 i2c4_xfer: i2c4-xfer {
1534 <1 12 RK_FUNC_1 &pcfg_pull_none>,
1535 <1 11 RK_FUNC_1 &pcfg_pull_none>;
1540 i2c5_xfer: i2c5-xfer {
1542 <3 11 RK_FUNC_2 &pcfg_pull_none>,
1543 <3 10 RK_FUNC_2 &pcfg_pull_none>;
1548 i2c6_xfer: i2c6-xfer {
1550 <2 10 RK_FUNC_2 &pcfg_pull_none>,
1551 <2 9 RK_FUNC_2 &pcfg_pull_none>;
1556 i2c7_xfer: i2c7-xfer {
1558 <2 8 RK_FUNC_2 &pcfg_pull_none>,
1559 <2 7 RK_FUNC_2 &pcfg_pull_none>;
1564 i2c8_xfer: i2c8-xfer {
1566 <1 21 RK_FUNC_1 &pcfg_pull_none>,
1567 <1 20 RK_FUNC_1 &pcfg_pull_none>;
1572 i2s0_8ch_bus: i2s0-8ch-bus {
1574 <3 24 RK_FUNC_1 &pcfg_pull_none>,
1575 <3 25 RK_FUNC_1 &pcfg_pull_none>,
1576 <3 26 RK_FUNC_1 &pcfg_pull_none>,
1577 <3 27 RK_FUNC_1 &pcfg_pull_none>,
1578 <3 28 RK_FUNC_1 &pcfg_pull_none>,
1579 <3 29 RK_FUNC_1 &pcfg_pull_none>,
1580 <3 30 RK_FUNC_1 &pcfg_pull_none>,
1581 <3 31 RK_FUNC_1 &pcfg_pull_none>,
1582 <4 0 RK_FUNC_1 &pcfg_pull_none>;
1587 i2s1_2ch_bus: i2s1-2ch-bus {
1589 <4 3 RK_FUNC_1 &pcfg_pull_none>,
1590 <4 4 RK_FUNC_1 &pcfg_pull_none>,
1591 <4 5 RK_FUNC_1 &pcfg_pull_none>,
1592 <4 6 RK_FUNC_1 &pcfg_pull_none>,
1593 <4 7 RK_FUNC_1 &pcfg_pull_none>;
1598 ap_pwroff: ap-pwroff {
1599 rockchip,pins = <1 5 RK_FUNC_1 &pcfg_pull_none>;
1602 ddrio_pwroff: ddrio-pwroff {
1603 rockchip,pins = <0 1 RK_FUNC_1 &pcfg_pull_none>;
1608 spdif_bus: spdif-bus {
1610 <4 21 RK_FUNC_1 &pcfg_pull_none>;
1615 spi0_clk: spi0-clk {
1617 <3 6 RK_FUNC_2 &pcfg_pull_up>;
1619 spi0_cs0: spi0-cs0 {
1621 <3 7 RK_FUNC_2 &pcfg_pull_up>;
1623 spi0_cs1: spi0-cs1 {
1625 <3 8 RK_FUNC_2 &pcfg_pull_up>;
1629 <3 5 RK_FUNC_2 &pcfg_pull_up>;
1633 <3 4 RK_FUNC_2 &pcfg_pull_up>;
1638 spi1_clk: spi1-clk {
1640 <1 9 RK_FUNC_2 &pcfg_pull_up>;
1642 spi1_cs0: spi1-cs0 {
1644 <1 10 RK_FUNC_2 &pcfg_pull_up>;
1648 <1 7 RK_FUNC_2 &pcfg_pull_up>;
1652 <1 8 RK_FUNC_2 &pcfg_pull_up>;
1657 spi2_clk: spi2-clk {
1659 <2 11 RK_FUNC_1 &pcfg_pull_up>;
1661 spi2_cs0: spi2-cs0 {
1663 <2 12 RK_FUNC_1 &pcfg_pull_up>;
1667 <2 9 RK_FUNC_1 &pcfg_pull_up>;
1671 <2 10 RK_FUNC_1 &pcfg_pull_up>;
1676 spi3_clk: spi3-clk {
1678 <1 17 RK_FUNC_1 &pcfg_pull_up>;
1680 spi3_cs0: spi3-cs0 {
1682 <1 18 RK_FUNC_1 &pcfg_pull_up>;
1686 <1 15 RK_FUNC_1 &pcfg_pull_up>;
1690 <1 16 RK_FUNC_1 &pcfg_pull_up>;
1695 spi4_clk: spi4-clk {
1697 <3 2 RK_FUNC_2 &pcfg_pull_up>;
1699 spi4_cs0: spi4-cs0 {
1701 <3 3 RK_FUNC_2 &pcfg_pull_up>;
1705 <3 0 RK_FUNC_2 &pcfg_pull_up>;
1709 <3 1 RK_FUNC_2 &pcfg_pull_up>;
1714 spi5_clk: spi5-clk {
1716 <2 22 RK_FUNC_2 &pcfg_pull_up>;
1718 spi5_cs0: spi5-cs0 {
1720 <2 23 RK_FUNC_2 &pcfg_pull_up>;
1724 <2 20 RK_FUNC_2 &pcfg_pull_up>;
1728 <2 21 RK_FUNC_2 &pcfg_pull_up>;
1733 otp_gpio: otp-gpio {
1734 rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
1738 rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>;
1743 uart0_xfer: uart0-xfer {
1745 <2 16 RK_FUNC_1 &pcfg_pull_up>,
1746 <2 17 RK_FUNC_1 &pcfg_pull_none>;
1749 uart0_cts: uart0-cts {
1751 <2 18 RK_FUNC_1 &pcfg_pull_none>;
1754 uart0_rts: uart0-rts {
1756 <2 19 RK_FUNC_1 &pcfg_pull_none>;
1761 uart1_xfer: uart1-xfer {
1763 <3 12 RK_FUNC_2 &pcfg_pull_up>,
1764 <3 13 RK_FUNC_2 &pcfg_pull_none>;
1769 uart2a_xfer: uart2a-xfer {
1771 <4 8 RK_FUNC_2 &pcfg_pull_up>,
1772 <4 9 RK_FUNC_2 &pcfg_pull_none>;
1777 uart2b_xfer: uart2b-xfer {
1779 <4 16 RK_FUNC_2 &pcfg_pull_up>,
1780 <4 17 RK_FUNC_2 &pcfg_pull_none>;
1785 uart2c_xfer: uart2c-xfer {
1787 <4 19 RK_FUNC_1 &pcfg_pull_up>,
1788 <4 20 RK_FUNC_1 &pcfg_pull_none>;
1793 uart3_xfer: uart3-xfer {
1795 <3 14 RK_FUNC_2 &pcfg_pull_up>,
1796 <3 15 RK_FUNC_2 &pcfg_pull_none>;
1799 uart3_cts: uart3-cts {
1801 <3 18 RK_FUNC_2 &pcfg_pull_none>;
1804 uart3_rts: uart3-rts {
1806 <3 19 RK_FUNC_2 &pcfg_pull_none>;
1811 uart4_xfer: uart4-xfer {
1813 <1 7 RK_FUNC_1 &pcfg_pull_up>,
1814 <1 8 RK_FUNC_1 &pcfg_pull_none>;
1819 uarthdcp_xfer: uarthdcp-xfer {
1821 <4 21 RK_FUNC_2 &pcfg_pull_up>,
1822 <4 22 RK_FUNC_2 &pcfg_pull_none>;
1827 pwm0_pin: pwm0-pin {
1829 <4 18 RK_FUNC_1 &pcfg_pull_none>;
1832 vop0_pwm_pin: vop0-pwm-pin {
1834 <4 18 RK_FUNC_2 &pcfg_pull_none>;
1839 pwm1_pin: pwm1-pin {
1841 <4 22 RK_FUNC_1 &pcfg_pull_none>;
1844 vop1_pwm_pin: vop1-pwm-pin {
1846 <4 18 RK_FUNC_3 &pcfg_pull_none>;
1851 pwm2_pin: pwm2-pin {
1853 <1 19 RK_FUNC_1 &pcfg_pull_none>;
1858 pwm3a_pin: pwm3a-pin {
1860 <0 6 RK_FUNC_1 &pcfg_pull_none>;
1865 pwm3b_pin: pwm3b-pin {
1867 <1 14 RK_FUNC_1 &pcfg_pull_none>;
1872 pcie_clkreqn: pci-clkreqn {
1874 <2 26 RK_FUNC_2 &pcfg_pull_none>;
1877 pcie_clkreqnb: pci-clkreqnb {
1879 <4 24 RK_FUNC_1 &pcfg_pull_none>;