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.
42 #include <dt-bindings/clock/rk3399-cru.h>
43 #include <dt-bindings/gpio/gpio.h>
44 #include <dt-bindings/interrupt-controller/arm-gic.h>
45 #include <dt-bindings/interrupt-controller/irq.h>
46 #include <dt-bindings/pinctrl/rockchip.h>
47 #include <dt-bindings/thermal/thermal.h>
50 compatible = "rockchip,rk3399";
51 interrupt-parent = <&gic>;
103 compatible = "arm,cortex-a53", "arm,armv8";
106 #cooling-cells = <2>; /* min followed by max */
111 compatible = "arm,cortex-a53", "arm,armv8";
117 compatible = "arm,cortex-a53", "arm,armv8";
123 compatible = "arm,cortex-a53", "arm,armv8";
129 compatible = "arm,cortex-a72", "arm,armv8";
132 #cooling-cells = <2>; /* min followed by max */
137 compatible = "arm,cortex-a72", "arm,armv8";
143 compatible = "arm,armv8-timer";
144 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
145 <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>,
146 <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>,
147 <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>;
151 compatible = "fixed-clock";
153 clock-frequency = <24000000>;
154 clock-output-names = "xin24m";
157 gic: interrupt-controller@fee00000 {
158 compatible = "arm,gic-v3";
159 #interrupt-cells = <3>;
160 #address-cells = <2>;
163 interrupt-controller;
165 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
166 <0x0 0xfef00000 0 0xc0000>, /* GICR */
167 <0x0 0xfff00000 0 0x10000>, /* GICC */
168 <0x0 0xfff10000 0 0x10000>, /* GICH */
169 <0x0 0xfff20000 0 0x10000>; /* GICV */
170 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
171 its: interrupt-controller@fee20000 {
172 compatible = "arm,gic-v3-its";
174 reg = <0x0 0xfee20000 0x0 0x20000>;
179 compatible = "arm,amba-bus";
180 #address-cells = <2>;
184 dmac_bus: dma-controller@ff6d0000 {
185 compatible = "arm,pl330", "arm,primecell";
186 reg = <0x0 0xff6d0000 0x0 0x4000>;
187 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
188 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
190 clocks = <&cru ACLK_DMAC0_PERILP>;
191 clock-names = "apb_pclk";
194 dmac_peri: dma-controller@ff6e0000 {
195 compatible = "arm,pl330", "arm,primecell";
196 reg = <0x0 0xff6e0000 0x0 0x4000>;
197 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
198 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
200 clocks = <&cru ACLK_DMAC1_PERILP>;
201 clock-names = "apb_pclk";
205 saradc: saradc@ff100000 {
206 compatible = "rockchip,rk3399-saradc";
207 reg = <0x0 0xff100000 0x0 0x100>;
208 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
209 #io-channel-cells = <1>;
210 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
211 clock-names = "saradc", "apb_pclk";
216 compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c";
217 reg = <0x0 0xff3c0000 0x0 0x1000>;
218 clocks = <&cru PCLK_I2C0_PMU>, <&cru SCLK_I2C0_PMU>;
219 clock-names = "i2c", "i2c_sclk";
220 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
221 pinctrl-names = "default";
222 pinctrl-0 = <&i2c0_xfer>;
223 #address-cells = <1>;
229 compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c";
230 reg = <0x0 0xff110000 0x0 0x1000>;
231 clocks = <&cru PCLK_I2C1>, <&cru SCLK_I2C1>;
232 clock-names = "i2c", "i2c_sclk";
233 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&i2c1_xfer>;
236 #address-cells = <1>;
242 compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c";
243 reg = <0x0 0xff120000 0x0 0x1000>;
244 clocks = <&cru PCLK_I2C2>, <&cru SCLK_I2C2>;
245 clock-names = "i2c", "i2c_sclk";
246 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&i2c2_xfer>;
249 #address-cells = <1>;
255 compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c";
256 reg = <0x0 0xff130000 0x0 0x1000>;
257 clocks = <&cru PCLK_I2C3>, <&cru SCLK_I2C3>;
258 clock-names = "i2c", "i2c_sclk";
259 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
260 pinctrl-names = "default";
261 pinctrl-0 = <&i2c3_xfer>;
262 #address-cells = <1>;
268 compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c";
269 reg = <0x0 0xff140000 0x0 0x1000>;
270 clocks = <&cru PCLK_I2C5>, <&cru SCLK_I2C5>;
271 clock-names = "i2c", "i2c_sclk";
272 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
273 pinctrl-names = "default";
274 pinctrl-0 = <&i2c5_xfer>;
275 #address-cells = <1>;
281 compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c";
282 reg = <0x0 0xff150000 0x0 0x1000>;
283 clocks = <&cru PCLK_I2C6>, <&cru SCLK_I2C6>;
284 clock-names = "i2c", "i2c_sclk";
285 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&i2c6_xfer>;
288 #address-cells = <1>;
294 compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c";
295 reg = <0x0 0xff160000 0x0 0x1000>;
296 clocks = <&cru PCLK_I2C7>, <&cru SCLK_I2C7>;
297 clock-names = "i2c", "i2c_sclk";
298 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&i2c7_xfer>;
301 #address-cells = <1>;
307 compatible = "rockchip,rk3399-emmc-phy";
308 reg-offset = <0xf780>;
310 rockchip,grf = <&grf>;
314 sdio0: dwmmc@fe310000 {
315 compatible = "rockchip,rk3399-dw-mshc", "rockchip,rk3288-dw-mshc";
316 reg = <0x0 0xfe310000 0x0 0x4000>;
317 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
318 clock-freq-min-max = <400000 150000000>;
319 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
320 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
321 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
322 fifo-depth = <0x100>;
326 sdmmc: dwmmc@fe320000 {
327 compatible = "rockchip,rk3399-dw-mshc", "rockchip,rk3288-dw-mshc";
328 reg = <0x0 0xfe320000 0x0 0x4000>;
329 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
330 clock-freq-min-max = <400000 150000000>;
331 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
332 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
333 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
334 fifo-depth = <0x100>;
338 sdhci: sdhci@fe330000 {
339 compatible = "arasan,sdhci-5.1";
340 reg = <0x0 0xfe330000 0x0 0x10000>;
341 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
342 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
343 clock-names = "clk_xin", "clk_ahb";
345 phy-names = "phy_arasan";
349 uart0: serial@ff180000 {
350 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
351 reg = <0x0 0xff180000 0x0 0x100>;
352 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
353 clock-names = "baudclk", "apb_pclk";
354 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
360 uart1: serial@ff190000 {
361 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
362 reg = <0x0 0xff190000 0x0 0x100>;
363 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
364 clock-names = "baudclk", "apb_pclk";
365 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
371 uart2: serial@ff1a0000 {
372 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
373 reg = <0x0 0xff1a0000 0x0 0x100>;
374 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
375 clock-names = "baudclk", "apb_pclk";
376 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
382 uart3: serial@ff1b0000 {
383 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
384 reg = <0x0 0xff1b0000 0x0 0x100>;
385 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
386 clock-names = "baudclk", "apb_pclk";
387 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
394 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
395 reg = <0x0 0xff110000 0x0 0x1000>;
396 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
397 clock-names = "spiclk", "apb_pclk";
398 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
399 pinctrl-names = "default";
400 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
401 #address-cells = <1>;
407 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
408 reg = <0x0 0xff120000 0x0 0x1000>;
409 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
410 clock-names = "spiclk", "apb_pclk";
411 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
412 pinctrl-names = "default";
413 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
414 #address-cells = <1>;
420 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
421 reg = <0x0 0xff130000 0x0 0x1000>;
422 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
423 clock-names = "spiclk", "apb_pclk";
424 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
425 pinctrl-names = "default";
426 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
427 #address-cells = <1>;
433 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
434 reg = <0x0 0xff120000 0x0 0x1000>;
435 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
436 clock-names = "spiclk", "apb_pclk";
437 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
438 pinctrl-names = "default";
439 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
440 #address-cells = <1>;
446 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
447 reg = <0x0 0xff130000 0x0 0x1000>;
448 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
449 clock-names = "spiclk", "apb_pclk";
450 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
451 pinctrl-names = "default";
452 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
453 #address-cells = <1>;
459 #include "rk3368-thermal.dtsi"
462 tsadc: tsadc@ff260000 {
463 compatible = "rockchip,rk3399-tsadc";
464 reg = <0x0 0xff260000 0x0 0x100>;
465 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
466 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
467 clock-names = "tsadc", "apb_pclk";
468 resets = <&cru SRST_TSADC>;
469 reset-names = "tsadc-apb";
470 pinctrl-names = "init", "default", "sleep";
471 pinctrl-0 = <&otp_gpio>;
472 pinctrl-1 = <&otp_out>;
473 pinctrl-2 = <&otp_gpio>;
474 #thermal-sensor-cells = <1>;
475 rockchip,hw-tshut-temp = <95000>;
479 pmugrf: syscon@ff320000 {
480 compatible = "rockchip,rk3399-pmugrf", "syscon";
481 reg = <0x0 0xff320000 0x0 0x1000>;
485 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
486 reg = <0x0 0xff110000 0x0 0x1000>;
487 clocks = <&cru SCLK_SPI3_PMU>, <&cru PCLK_SPI3_PMU>;
488 clock-names = "spiclk", "apb_pclk";
489 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
490 pinctrl-names = "default";
491 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
492 #address-cells = <1>;
497 uart4: serial@ff370000 {
498 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
499 reg = <0x0 0xff370000 0x0 0x100>;
500 clocks = <&cru SCLK_UART4_PMU>, <&cru PCLK_UART4_PMU>;
501 clock-names = "baudclk", "apb_pclk";
502 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
509 compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c";
510 reg = <0x0 0xff3d0000 0x0 0x1000>;
511 clocks = <&cru PCLK_I2C4_PMU>, <&cru SCLK_I2C4_PMU>;
512 clock-names = "i2c", "i2c_sclk";
513 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
514 pinctrl-names = "default";
515 pinctrl-0 = <&i2c4_xfer>;
516 #address-cells = <1>;
522 compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c";
523 reg = <0x0 0xff3e0000 0x0 0x1000>;
524 clocks = <&cru PCLK_I2C8_PMU>, <&cru SCLK_I2C8_PMU>;
525 clock-names = "i2c", "i2c_sclk";
526 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
527 pinctrl-names = "default";
528 pinctrl-0 = <&i2c8_xfer>;
529 #address-cells = <1>;
535 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
536 reg = <0x0 0xff420000 0x0 0x10>;
538 pinctrl-names = "default";
539 pinctrl-0 = <&pwm0_pin>;
540 clocks = <&cru PCLK_RKPWM_PMU>;
546 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
547 reg = <0x0 0xff420010 0x0 0x10>;
549 pinctrl-names = "default";
550 pinctrl-0 = <&pwm1_pin>;
551 clocks = <&cru PCLK_RKPWM_PMU>;
557 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
558 reg = <0x0 0xff420020 0x0 0x10>;
560 pinctrl-names = "default";
561 pinctrl-0 = <&pwm2_pin>;
562 clocks = <&cru PCLK_RKPWM_PMU>;
568 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
569 reg = <0x0 0xff420030 0x0 0x10>;
571 pinctrl-names = "default";
572 pinctrl-0 = <&pwm3a_pin>;
573 clocks = <&cru PCLK_RKPWM_PMU>;
578 pmucru: pmu-clock-controller@ff750000 {
579 compatible = "rockchip,rk3399-pmucru";
580 reg = <0x0 0xff750000 0x0 0x1000>;
581 rockchip,grf = <&pmugrf>;
586 cru: clock-controller@ff760000 {
587 compatible = "rockchip,rk3399-cru";
588 reg = <0x0 0xff760000 0x0 0x1000>;
589 rockchip,grf = <&grf>;
594 grf: syscon@ff770000 {
595 compatible = "rockchip,rk3399-grf", "syscon";
596 reg = <0x0 0xff770000 0x0 0x10000>;
599 spdif: spdif@ff870000 {
600 compatible = "rockchip,rk3399-spdif";
601 reg = <0x0 0xff870000 0x0 0x1000>;
602 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
603 dmas = <&dmac_bus 7>;
605 clock-names = "hclk", "mclk";
606 clocks = <&cru HCLK_SPDIF>, <&cru SCLK_SPDIF_8CH>;
607 pinctrl-names = "default";
608 pinctrl-0 = <&spdif_bus>;
613 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
614 reg = <0x0 0xff880000 0x0 0x1000>;
615 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
616 #address-cells = <1>;
618 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
619 dma-names = "tx", "rx";
620 clock-names = "i2s_hclk", "i2s_clk";
621 clocks = <&cru HCLK_I2S0_8CH>, <&cru SCLK_I2S0_8CH>;
622 pinctrl-names = "default";
623 pinctrl-0 = <&i2s0_8ch_bus>;
628 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
629 reg = <0x0 0xff890000 0x0 0x1000>;
630 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
631 #address-cells = <1>;
633 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
634 dma-names = "tx", "rx";
635 clock-names = "i2s_hclk", "i2s_clk";
636 clocks = <&cru HCLK_I2S1_8CH>, <&cru SCLK_I2S1_8CH>;
637 pinctrl-names = "default";
638 pinctrl-0 = <&i2s1_2ch_bus>;
643 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
644 reg = <0x0 0xff8a0000 0x0 0x1000>;
645 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
646 #address-cells = <1>;
648 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
649 dma-names = "tx", "rx";
650 clock-names = "i2s_hclk", "i2s_clk";
651 clocks = <&cru HCLK_I2S2_8CH>, <&cru SCLK_I2S2_8CH>;
656 compatible = "rockchip,rk3399-pinctrl";
657 rockchip,grf = <&grf>;
658 rockchip,pmu = <&pmugrf>;
659 #address-cells = <0x2>;
663 gpio0: gpio0@ff720000 {
664 compatible = "rockchip,gpio-bank";
665 reg = <0x0 0xff720000 0x0 0x100>;
667 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
672 interrupt-controller;
673 #interrupt-cells = <0x2>;
676 gpio1: gpio1@ff730000 {
677 compatible = "rockchip,gpio-bank";
678 reg = <0x0 0xff730000 0x0 0x100>;
680 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
685 interrupt-controller;
686 #interrupt-cells = <0x2>;
689 gpio2: gpio2@ff780000 {
690 compatible = "rockchip,gpio-bank";
691 reg = <0x0 0xff780000 0x0 0x100>;
693 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
698 interrupt-controller;
699 #interrupt-cells = <0x2>;
702 gpio3: gpio3@ff788000 {
703 compatible = "rockchip,gpio-bank";
704 reg = <0x0 0xff788000 0x0 0x100>;
706 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
711 interrupt-controller;
712 #interrupt-cells = <0x2>;
715 gpio4: gpio4@ff790000 {
716 compatible = "rockchip,gpio-bank";
717 reg = <0x0 0xff790000 0x0 0x100>;
719 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
724 interrupt-controller;
725 #interrupt-cells = <0x2>;
728 pcfg_pull_up: pcfg-pull-up {
732 pcfg_pull_down: pcfg-pull-down {
736 pcfg_pull_none: pcfg-pull-none {
740 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
742 drive-strength = <12>;
745 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
747 drive-strength = <8>;
750 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
752 drive-strength = <4>;
755 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
757 drive-strength = <2>;
760 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
762 drive-strength = <12>;
768 <0 5 RK_FUNC_1 &pcfg_pull_up>;
773 rgmii_pins: rgmii-pins {
775 <3 11 RK_FUNC_1 &pcfg_pull_none>,
776 <3 13 RK_FUNC_1 &pcfg_pull_none>,
777 <3 8 RK_FUNC_1 &pcfg_pull_none>,
778 <3 4 RK_FUNC_1 &pcfg_pull_none_12ma>,
779 <3 5 RK_FUNC_1 &pcfg_pull_none_12ma>,
780 <3 0 RK_FUNC_1 &pcfg_pull_none_12ma>,
781 <3 1 RK_FUNC_1 &pcfg_pull_none_12ma>,
782 <3 17 RK_FUNC_1 &pcfg_pull_none_12ma>,
783 <3 12 RK_FUNC_1 &pcfg_pull_none_12ma>,
784 <3 6 RK_FUNC_1 &pcfg_pull_none>,
785 <3 7 RK_FUNC_1 &pcfg_pull_none>,
786 <3 2 RK_FUNC_1 &pcfg_pull_none>,
787 <3 3 RK_FUNC_1 &pcfg_pull_none>,
788 <3 14 RK_FUNC_1 &pcfg_pull_none>,
789 <3 9 RK_FUNC_1 &pcfg_pull_none>;
792 rmii_pins: rmii-pins {
794 <3 11 RK_FUNC_1 &pcfg_pull_none>,
795 <3 13 RK_FUNC_1 &pcfg_pull_none>,
796 <3 8 RK_FUNC_1 &pcfg_pull_none>,
797 <3 4 RK_FUNC_1 &pcfg_pull_none_12ma>,
798 <3 5 RK_FUNC_1 &pcfg_pull_none_12ma>,
799 <3 12 RK_FUNC_1 &pcfg_pull_none_12ma>,
800 <3 6 RK_FUNC_1 &pcfg_pull_none>,
801 <3 7 RK_FUNC_1 &pcfg_pull_none>,
802 <3 9 RK_FUNC_1 &pcfg_pull_none>,
803 <3 10 RK_FUNC_1 &pcfg_pull_none>;
808 i2c0_xfer: i2c0-xfer {
810 <1 15 RK_FUNC_2 &pcfg_pull_none>,
811 <1 16 RK_FUNC_2 &pcfg_pull_none>;
816 i2c1_xfer: i2c1-xfer {
818 <4 2 RK_FUNC_1 &pcfg_pull_none>,
819 <4 1 RK_FUNC_1 &pcfg_pull_none>;
824 i2c2_xfer: i2c2-xfer {
826 <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
827 <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>;
832 i2c3_xfer: i2c3-xfer {
834 <4 17 RK_FUNC_1 &pcfg_pull_none>,
835 <4 16 RK_FUNC_1 &pcfg_pull_none>;
840 i2c4_xfer: i2c4-xfer {
842 <1 12 RK_FUNC_1 &pcfg_pull_none>,
843 <1 11 RK_FUNC_1 &pcfg_pull_none>;
848 i2c5_xfer: i2c5-xfer {
850 <3 11 RK_FUNC_2 &pcfg_pull_none>,
851 <3 10 RK_FUNC_2 &pcfg_pull_none>;
856 i2c6_xfer: i2c6-xfer {
858 <2 10 RK_FUNC_2 &pcfg_pull_none>,
859 <2 9 RK_FUNC_2 &pcfg_pull_none>;
864 i2c7_xfer: i2c7-xfer {
866 <2 8 RK_FUNC_2 &pcfg_pull_none>,
867 <2 7 RK_FUNC_2 &pcfg_pull_none>;
872 i2c8_xfer: i2c8-xfer {
874 <1 21 RK_FUNC_1 &pcfg_pull_none>,
875 <1 20 RK_FUNC_1 &pcfg_pull_none>;
880 i2s0_8ch_bus: i2s0-8ch-bus {
882 <3 24 RK_FUNC_1 &pcfg_pull_none>,
883 <3 25 RK_FUNC_1 &pcfg_pull_none>,
884 <3 26 RK_FUNC_1 &pcfg_pull_none>,
885 <3 27 RK_FUNC_1 &pcfg_pull_none>,
886 <3 28 RK_FUNC_1 &pcfg_pull_none>,
887 <3 29 RK_FUNC_1 &pcfg_pull_none>,
888 <3 30 RK_FUNC_1 &pcfg_pull_none>,
889 <3 31 RK_FUNC_1 &pcfg_pull_none>,
890 <4 0 RK_FUNC_1 &pcfg_pull_none>;
895 i2s1_2ch_bus: i2s1-2ch-bus {
897 <4 3 RK_FUNC_1 &pcfg_pull_none>,
898 <4 4 RK_FUNC_1 &pcfg_pull_none>,
899 <4 5 RK_FUNC_1 &pcfg_pull_none>,
900 <4 6 RK_FUNC_1 &pcfg_pull_none>,
901 <4 7 RK_FUNC_1 &pcfg_pull_none>;
906 sdio0_bus1: sdio0-bus1 {
908 <2 20 RK_FUNC_1 &pcfg_pull_up>;
911 sdio0_bus4: sdio0-bus4 {
913 <2 20 RK_FUNC_1 &pcfg_pull_up>,
914 <2 21 RK_FUNC_1 &pcfg_pull_up>,
915 <2 22 RK_FUNC_1 &pcfg_pull_up>,
916 <2 23 RK_FUNC_1 &pcfg_pull_up>;
919 sdio0_cmd: sdio0-cmd {
921 <2 24 RK_FUNC_1 &pcfg_pull_up>;
924 sdio0_clk: sdio0-clk {
926 <2 25 RK_FUNC_1 &pcfg_pull_none>;
931 <2 26 RK_FUNC_1 &pcfg_pull_up>;
934 sdio0_pwr: sdio0-pwr {
936 <2 27 RK_FUNC_1 &pcfg_pull_up>;
939 sdio0_bkpwr: sdio0-bkpwr {
941 <2 28 RK_FUNC_1 &pcfg_pull_up>;
946 <0 3 RK_FUNC_1 &pcfg_pull_up>;
949 sdio0_int: sdio0-int {
951 <0 4 RK_FUNC_1 &pcfg_pull_up>;
956 sdmmc_bus1: sdmmc-bus1 {
958 <4 8 RK_FUNC_1 &pcfg_pull_up>;
961 sdmmc_bus4: sdmmc-bus4 {
963 <4 8 RK_FUNC_1 &pcfg_pull_up>,
964 <4 9 RK_FUNC_1 &pcfg_pull_up>,
965 <4 10 RK_FUNC_1 &pcfg_pull_up>,
966 <4 11 RK_FUNC_1 &pcfg_pull_up>;
969 sdmmc_clk: sdmmc-clk {
971 <4 12 RK_FUNC_1 &pcfg_pull_none>;
974 sdmmc_cmd: sdmmc-cmd {
976 <4 13 RK_FUNC_1 &pcfg_pull_up>;
981 <0 7 RK_FUNC_1 &pcfg_pull_up>;
986 <0 8 RK_FUNC_1 &pcfg_pull_up>;
991 spdif_bus: spdif-bus {
993 <4 21 RK_FUNC_1 &pcfg_pull_none>;
1000 <3 6 RK_FUNC_2 &pcfg_pull_up>;
1002 spi0_cs0: spi0-cs0 {
1004 <3 7 RK_FUNC_2 &pcfg_pull_up>;
1006 spi0_cs1: spi0-cs1 {
1008 <3 8 RK_FUNC_2 &pcfg_pull_up>;
1012 <3 5 RK_FUNC_2 &pcfg_pull_up>;
1016 <3 4 RK_FUNC_2 &pcfg_pull_up>;
1021 spi1_clk: spi1-clk {
1023 <1 9 RK_FUNC_2 &pcfg_pull_up>;
1025 spi1_cs0: spi1-cs0 {
1027 <1 10 RK_FUNC_2 &pcfg_pull_up>;
1031 <1 7 RK_FUNC_2 &pcfg_pull_up>;
1035 <1 8 RK_FUNC_2 &pcfg_pull_up>;
1040 spi2_clk: spi2-clk {
1042 <2 11 RK_FUNC_1 &pcfg_pull_up>;
1044 spi2_cs0: spi2-cs0 {
1046 <2 12 RK_FUNC_1 &pcfg_pull_up>;
1050 <2 9 RK_FUNC_1 &pcfg_pull_up>;
1054 <2 10 RK_FUNC_1 &pcfg_pull_up>;
1059 spi3_clk: spi3-clk {
1061 <1 17 RK_FUNC_1 &pcfg_pull_up>;
1063 spi3_cs0: spi3-cs0 {
1065 <1 18 RK_FUNC_1 &pcfg_pull_up>;
1069 <1 15 RK_FUNC_1 &pcfg_pull_up>;
1073 <1 16 RK_FUNC_1 &pcfg_pull_up>;
1078 spi4_clk: spi4-clk {
1080 <3 2 RK_FUNC_2 &pcfg_pull_up>;
1082 spi4_cs0: spi4-cs0 {
1084 <3 3 RK_FUNC_2 &pcfg_pull_up>;
1088 <3 0 RK_FUNC_2 &pcfg_pull_up>;
1092 <3 1 RK_FUNC_2 &pcfg_pull_up>;
1097 spi5_clk: spi5-clk {
1099 <2 22 RK_FUNC_2 &pcfg_pull_up>;
1101 spi5_cs0: spi5-cs0 {
1103 <2 23 RK_FUNC_2 &pcfg_pull_up>;
1107 <2 20 RK_FUNC_2 &pcfg_pull_up>;
1111 <2 21 RK_FUNC_2 &pcfg_pull_up>;
1116 otp_gpio: otp-gpio {
1117 rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
1121 rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>;
1126 uart0_xfer: uart0-xfer {
1128 <2 16 RK_FUNC_1 &pcfg_pull_up>,
1129 <2 17 RK_FUNC_1 &pcfg_pull_none>;
1132 uart0_cts: uart0-cts {
1134 <2 18 RK_FUNC_1 &pcfg_pull_none>;
1137 uart0_rts: uart0-rts {
1139 <2 19 RK_FUNC_1 &pcfg_pull_none>;
1144 uart1_xfer: uart1-xfer {
1146 <3 12 RK_FUNC_2 &pcfg_pull_up>,
1147 <3 13 RK_FUNC_2 &pcfg_pull_none>;
1152 uart2a_xfer: uart2a-xfer {
1154 <4 8 RK_FUNC_2 &pcfg_pull_up>,
1155 <4 9 RK_FUNC_2 &pcfg_pull_none>;
1160 uart2b_xfer: uart2b-xfer {
1162 <4 16 RK_FUNC_2 &pcfg_pull_up>,
1163 <4 17 RK_FUNC_2 &pcfg_pull_none>;
1168 uart2c_xfer: uart2c-xfer {
1170 <4 19 RK_FUNC_1 &pcfg_pull_up>,
1171 <4 20 RK_FUNC_1 &pcfg_pull_none>;
1176 uart3_xfer: uart3-xfer {
1178 <3 14 RK_FUNC_2 &pcfg_pull_up>,
1179 <3 15 RK_FUNC_2 &pcfg_pull_none>;
1182 uart3_cts: uart3-cts {
1184 <3 18 RK_FUNC_2 &pcfg_pull_none>;
1187 uart3_rts: uart3-rts {
1189 <3 19 RK_FUNC_2 &pcfg_pull_none>;
1194 uart4_xfer: uart4-xfer {
1196 <1 7 RK_FUNC_1 &pcfg_pull_up>,
1197 <1 8 RK_FUNC_1 &pcfg_pull_none>;
1202 uarthdcp_xfer: uarthdcp-xfer {
1204 <4 21 RK_FUNC_2 &pcfg_pull_up>,
1205 <4 22 RK_FUNC_2 &pcfg_pull_none>;
1210 pwm0_pin: pwm0-pin {
1212 <4 18 RK_FUNC_1 &pcfg_pull_none>;
1215 vop0_pwm_pin: vop0-pwm-pin {
1217 <4 18 RK_FUNC_2 &pcfg_pull_none>;
1222 pwm1_pin: pwm1-pin {
1224 <4 22 RK_FUNC_1 &pcfg_pull_none>;
1227 vop1_pwm_pin: vop1-pwm-pin {
1229 <4 18 RK_FUNC_3 &pcfg_pull_none>;
1234 pwm2_pin: pwm2-pin {
1236 <1 19 RK_FUNC_1 &pcfg_pull_none>;
1241 pwm3a_pin: pwm3a-pin {
1243 <0 6 RK_FUNC_1 &pcfg_pull_none>;
1248 pwm3b_pin: pwm3b-pin {
1250 <1 14 RK_FUNC_1 &pcfg_pull_none>;