2 * This file is dual-licensed: you can use it either under the terms
3 * of the GPL or the X11 license, at your option. Note that this dual
4 * licensing only applies to this file, and not this project as a
7 * a) This file is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This file is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
19 * b) Permission is hereby granted, free of charge, to any person
20 * obtaining a copy of this software and associated documentation
21 * files (the "Software"), to deal in the Software without
22 * restriction, including without limitation the rights to use,
23 * copy, modify, merge, publish, distribute, sublicense, and/or
24 * sell copies of the Software, and to permit persons to whom the
25 * Software is furnished to do so, subject to the following
28 * The above copyright notice and this permission notice shall be
29 * included in all copies or substantial portions of the Software.
31 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38 * OTHER DEALINGS IN THE SOFTWARE.
41 #include <dt-bindings/gpio/gpio.h>
42 #include <dt-bindings/interrupt-controller/irq.h>
43 #include <dt-bindings/interrupt-controller/arm-gic.h>
44 #include <dt-bindings/pinctrl/rockchip.h>
45 #include <dt-bindings/clock/rk3228-cru.h>
46 #include <dt-bindings/thermal/thermal.h>
47 #include "skeleton.dtsi"
50 interrupt-parent = <&gic>;
64 compatible = "arm,cortex-a7";
66 resets = <&cru SRST_CORE0>;
67 operating-points-v2 = <&cpu0_opp_table>;
68 #cooling-cells = <2>; /* min followed by max */
69 clock-latency = <40000>;
70 clocks = <&cru ARMCLK>;
75 compatible = "arm,cortex-a7";
77 resets = <&cru SRST_CORE1>;
78 operating-points-v2 = <&cpu0_opp_table>;
83 compatible = "arm,cortex-a7";
85 resets = <&cru SRST_CORE2>;
86 operating-points-v2 = <&cpu0_opp_table>;
91 compatible = "arm,cortex-a7";
93 resets = <&cru SRST_CORE3>;
94 operating-points-v2 = <&cpu0_opp_table>;
98 cpu0_opp_table: opp_table0 {
99 compatible = "operating-points-v2";
102 nvmem-cells = <&cpu_leakage>;
103 nvmem-cell-names = "cpu_leakage";
106 opp-hz = /bits/ 64 <408000000>;
107 opp-microvolt = <950000>;
108 clock-latency-ns = <40000>;
112 opp-hz = /bits/ 64 <600000000>;
113 opp-microvolt = <975000>;
116 opp-hz = /bits/ 64 <816000000>;
117 opp-microvolt = <1000000>;
120 opp-hz = /bits/ 64 <1008000000>;
121 opp-microvolt = <1175000>;
124 opp-hz = /bits/ 64 <1200000000>;
125 opp-microvolt = <1275000>;
130 compatible = "arm,amba-bus";
131 #address-cells = <1>;
135 pdma: pdma@110f0000 {
136 compatible = "arm,pl330", "arm,primecell";
137 reg = <0x110f0000 0x4000>;
138 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
139 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
141 clocks = <&cru ACLK_DMAC>;
142 clock-names = "apb_pclk";
147 compatible = "arm,cortex-a7-pmu";
148 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
149 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
150 <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
151 <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
152 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
156 compatible = "arm,armv7-timer";
157 arm,cpu-registers-not-fw-configured;
158 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
159 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
160 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
161 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
162 clock-frequency = <24000000>;
166 compatible = "fixed-clock";
167 clock-frequency = <24000000>;
168 clock-output-names = "xin24m";
172 i2s1: i2s1@100b0000 {
173 compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
174 reg = <0x100b0000 0x4000>;
175 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
176 #address-cells = <1>;
178 clock-names = "i2s_clk", "i2s_hclk";
179 clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
180 dmas = <&pdma 14>, <&pdma 15>;
181 dma-names = "tx", "rx";
182 pinctrl-names = "default";
183 pinctrl-0 = <&i2s1_bus>;
187 i2s0: i2s0@100c0000 {
188 compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
189 reg = <0x100c0000 0x4000>;
190 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
191 #address-cells = <1>;
193 clock-names = "i2s_clk", "i2s_hclk";
194 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
195 dmas = <&pdma 11>, <&pdma 12>;
196 dma-names = "tx", "rx";
200 spdif: spdif@100d0000 {
201 compatible = "rockchip,rk3228-spdif";
202 reg = <0x100d0000 0x1000>;
203 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
204 clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
205 clock-names = "mclk", "hclk";
209 pinctrl-names = "default";
210 pinctrl-0 = <&spdif_tx>;
214 i2s2: i2s2@100e0000 {
215 compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
216 reg = <0x100e0000 0x4000>;
217 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
218 #address-cells = <1>;
220 clock-names = "i2s_clk", "i2s_hclk";
221 clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
222 dmas = <&pdma 0>, <&pdma 1>;
223 dma-names = "tx", "rx";
227 grf: syscon@11000000 {
228 compatible = "syscon", "simple-mfd";
229 reg = <0x11000000 0x1000>;
230 #address-cells = <1>;
233 io_domains: io-domains {
234 compatible = "rockchip,rk322x-io-voltage-domain";
238 u2phy0: usb2-phy@760 {
239 compatible = "rockchip,rk322x-usb2phy";
241 clocks = <&cru SCLK_OTGPHY0>;
242 clock-names = "phyclk";
244 clock-output-names = "usb480m_phy0";
247 u2phy0_otg: otg-port {
249 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
250 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
251 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
252 interrupt-names = "otg-bvalid", "otg-id",
257 u2phy0_host: host-port {
259 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
260 interrupt-names = "linestate";
265 u2phy1: usb2-phy@800 {
266 compatible = "rockchip,rk322x-usb2phy";
268 clocks = <&cru SCLK_OTGPHY1>;
269 clock-names = "phyclk";
271 clock-output-names = "usb480m_phy1";
274 u2phy1_host: host-port {
276 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
277 interrupt-names = "linestate";
283 uart0: serial@11010000 {
284 compatible = "snps,dw-apb-uart";
285 reg = <0x11010000 0x100>;
286 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
287 clock-frequency = <24000000>;
288 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
289 clock-names = "baudclk", "apb_pclk";
290 pinctrl-names = "default";
291 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
297 uart1: serial@11020000 {
298 compatible = "snps,dw-apb-uart";
299 reg = <0x11020000 0x100>;
300 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
301 clock-frequency = <24000000>;
302 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
303 clock-names = "baudclk", "apb_pclk";
304 pinctrl-names = "default";
305 pinctrl-0 = <&uart1_xfer>;
311 uart2: serial@11030000 {
312 compatible = "snps,dw-apb-uart";
313 reg = <0x11030000 0x100>;
314 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
315 clock-frequency = <24000000>;
316 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
317 clock-names = "baudclk", "apb_pclk";
318 pinctrl-names = "default";
319 pinctrl-0 = <&uart21_xfer>;
325 efuse: efuse@11040000 {
326 compatible = "rockchip,rk322x-efuse";
327 reg = <0x11040000 0x20>;
328 #address-cells = <1>;
330 clocks = <&cru PCLK_EFUSE_256>;
331 clock-names = "pclk_efuse";
337 cpu_leakage: cpu_leakage@17 {
343 compatible = "rockchip,rk3228-i2c";
344 reg = <0x11050000 0x1000>;
345 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
346 #address-cells = <1>;
349 clocks = <&cru PCLK_I2C0>;
350 pinctrl-names = "default";
351 pinctrl-0 = <&i2c0_xfer>;
356 compatible = "rockchip,rk3228-i2c";
357 reg = <0x11060000 0x1000>;
358 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
359 #address-cells = <1>;
362 clocks = <&cru PCLK_I2C1>;
363 pinctrl-names = "default";
364 pinctrl-0 = <&i2c1_xfer>;
369 compatible = "rockchip,rk3228-i2c";
370 reg = <0x11070000 0x1000>;
371 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
372 #address-cells = <1>;
375 clocks = <&cru PCLK_I2C2>;
376 pinctrl-names = "default";
377 pinctrl-0 = <&i2c2_xfer>;
382 compatible = "rockchip,rk3228-i2c";
383 reg = <0x11080000 0x1000>;
384 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
385 #address-cells = <1>;
388 clocks = <&cru PCLK_I2C3>;
389 pinctrl-names = "default";
390 pinctrl-0 = <&i2c3_xfer>;
394 wdt: watchdog@110a0000 {
395 compatible = "rockchip,rk322x-wdt", "snps,dw-wdt";
396 reg = <0x110a0000 0x100>;
397 clocks = <&cru PCLK_CPU>;
398 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
403 compatible = "rockchip,rk3288-pwm";
404 reg = <0x110b0000 0x10>;
406 clocks = <&cru PCLK_PWM>;
408 pinctrl-names = "default";
409 pinctrl-0 = <&pwm0_pin>;
414 compatible = "rockchip,rk3288-pwm";
415 reg = <0x110b0010 0x10>;
417 clocks = <&cru PCLK_PWM>;
419 pinctrl-names = "default";
420 pinctrl-0 = <&pwm1_pin>;
425 compatible = "rockchip,rk3288-pwm";
426 reg = <0x110b0020 0x10>;
428 clocks = <&cru PCLK_PWM>;
430 pinctrl-names = "default";
431 pinctrl-0 = <&pwm2_pin>;
436 compatible = "rockchip,rk3288-pwm";
437 reg = <0x110b0030 0x10>;
439 clocks = <&cru PCLK_PWM>;
441 pinctrl-names = "default";
442 pinctrl-0 = <&pwm3_pin>;
446 timer: timer@110c0000 {
447 compatible = "rockchip,rk3288-timer";
448 reg = <0x110c0000 0x20>;
449 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
450 clocks = <&xin24m>, <&cru PCLK_TIMER>;
451 clock-names = "timer", "pclk";
454 cru: clock-controller@110e0000 {
455 compatible = "rockchip,rk3228-cru";
456 reg = <0x110e0000 0x1000>;
457 rockchip,grf = <&grf>;
461 <&cru PLL_GPLL>, <&cru ARMCLK>,
462 <&cru PLL_CPLL>, <&cru ACLK_PERI>,
463 <&cru HCLK_PERI>, <&cru PCLK_PERI>,
464 <&cru ACLK_CPU>, <&cru HCLK_CPU>,
466 assigned-clock-rates =
467 <594000000>, <816000000>,
468 <500000000>, <150000000>,
469 <150000000>, <75000000>,
470 <150000000>, <150000000>,
475 cpu_thermal: cpu-thermal {
476 polling-delay-passive = <100>; /* milliseconds */
477 polling-delay = <5000>; /* milliseconds */
479 thermal-sensors = <&tsadc 0>;
482 cpu_alert0: cpu_alert0 {
483 temperature = <70000>; /* millicelsius */
484 hysteresis = <2000>; /* millicelsius */
487 cpu_alert1: cpu_alert1 {
488 temperature = <75000>; /* millicelsius */
489 hysteresis = <2000>; /* millicelsius */
493 temperature = <90000>; /* millicelsius */
494 hysteresis = <2000>; /* millicelsius */
501 trip = <&cpu_alert0>;
503 <&cpu0 THERMAL_NO_LIMIT 6>;
506 trip = <&cpu_alert1>;
508 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
514 tsadc: tsadc@11150000 {
515 compatible = "rockchip,rk3228-tsadc";
516 reg = <0x11150000 0x100>;
517 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
518 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
519 clock-names = "tsadc", "apb_pclk";
520 resets = <&cru SRST_TSADC>;
521 reset-names = "tsadc-apb";
522 pinctrl-names = "init", "default", "sleep";
523 pinctrl-0 = <&otp_gpio>;
524 pinctrl-1 = <&otp_out>;
525 pinctrl-2 = <&otp_gpio>;
526 #thermal-sensor-cells = <0>;
527 rockchip,hw-tshut-temp = <95000>;
531 gpu: gpu@0x20001000 {
532 compatible = "arm,mali400";
533 reg = <0x20001000 0x200>,
541 reg-names = "Mali_L2",
549 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
550 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
551 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
552 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
553 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
554 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
556 interrupt-names = "Mali_GP_IRQ",
562 clocks = <&cru ACLK_GPU>;
563 clock-names = "clk_mali";
564 operating-points-v2 = <&gpu_opp_table>;
568 gpu_opp_table: opp-table2 {
569 compatible = "operating-points-v2";
572 opp-hz = /bits/ 64 <200000000>;
573 opp-microvolt = <1050000>;
576 opp-hz = /bits/ 64 <300000000>;
577 opp-microvolt = <1050000>;
580 opp-hz = /bits/ 64 <500000000>;
581 opp-microvolt = <1150000>;
586 compatible = "rockchip,rk322x-vop";
587 reg = <0x20050000 0x1ffc>, <0x20052000 0x1000>;
588 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
589 clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
590 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
591 resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
592 reset-names = "axi", "ahb", "dclk";
597 #address-cells = <1>;
602 vop_mmu: iommu@20050300 {
603 compatible = "rockchip,iommu";
604 reg = <0x20053f00 0x100>;
605 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
606 interrupt-names = "vop_mmu";
607 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
608 clock-names = "aclk", "hclk";
614 compatible = "rockchip,display-subsystem";
618 emmc: dwmmc@30020000 {
619 compatible = "rockchip,rk3288-dw-mshc";
620 reg = <0x30020000 0x4000>;
621 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
622 clock-frequency = <37500000>;
623 clock-freq-min-max = <400000 37500000>;
624 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
625 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
626 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
628 default-sample-phase = <158>;
630 fifo-depth = <0x100>;
631 pinctrl-names = "default";
632 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
636 usb_otg: usb@30040000 {
637 compatible = "rockchip,rk322x-usb", "rockchip,rk3066-usb",
639 reg = <0x30040000 0x40000>;
640 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
641 clocks = <&cru HCLK_OTG>;
644 g-np-tx-fifo-size = <16>;
645 g-rx-fifo-size = <275>;
646 g-tx-fifo-size = <256 128 128 64 64 32>;
648 phys = <&u2phy0_otg>;
649 phy-names = "usb2-phy";
653 usb_host0_ehci: usb@30080000 {
654 compatible = "generic-ehci";
655 reg = <0x30080000 0x20000>;
656 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
657 clocks = <&cru HCLK_HOST0>, <&u2phy0>;
658 clock-names = "usbhost", "utmi";
659 phys = <&u2phy0_host>;
664 usb_host0_ohci: usb@300a0000 {
665 compatible = "generic-ohci";
666 reg = <0x300a0000 0x20000>;
667 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
668 clocks = <&cru HCLK_HOST0>, <&u2phy0>;
669 clock-names = "usbhost", "utmi";
670 phys = <&u2phy0_host>;
675 usb_host1_ehci: usb@300c0000 {
676 compatible = "generic-ehci";
677 reg = <0x300c0000 0x20000>;
678 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
679 clocks = <&cru HCLK_HOST1>, <&u2phy1>;
680 clock-names = "usbhost", "utmi";
681 phys = <&u2phy1_host>;
686 usb_host1_ohci: usb@300e0000 {
687 compatible = "generic-ohci";
688 reg = <0x300e0000 0x20000>;
689 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
690 clocks = <&cru HCLK_HOST1>, <&u2phy1>;
691 clock-names = "usbhost", "utmi";
692 phys = <&u2phy1_host>;
697 usb_host2_ehci: usb@30100000 {
698 compatible = "generic-ehci";
699 reg = <0x30100000 0x20000>;
700 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
701 clocks = <&cru HCLK_HOST2>, <&u2phy1>;
702 clock-names = "usbhost", "utmi";
706 usb_host2_ohci: usb@30120000 {
707 compatible = "generic-ohci";
708 reg = <0x30120000 0x20000>;
709 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
710 clocks = <&cru HCLK_HOST2>, <&u2phy1>;
711 clock-names = "usbhost", "utmi";
715 gmac: ethernet@30200000 {
716 compatible = "rockchip,rk3228-gmac";
717 reg = <0x30200000 0x10000>;
718 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
719 interrupt-names = "macirq";
720 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
721 <&cru SCLK_MAC_TX>, <&cru SCLK_MAC_REF>,
722 <&cru SCLK_MAC_REFOUT>, <&cru ACLK_GMAC>,
724 clock-names = "stmmaceth", "mac_clk_rx",
725 "mac_clk_tx", "clk_mac_ref",
726 "clk_mac_refout", "aclk_mac",
728 resets = <&cru SRST_GMAC>;
729 reset-names = "stmmaceth";
730 rockchip,grf = <&grf>;
734 gic: interrupt-controller@32010000 {
735 compatible = "arm,gic-400";
736 interrupt-controller;
737 #interrupt-cells = <3>;
738 #address-cells = <0>;
740 reg = <0x32011000 0x1000>,
744 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
748 compatible = "rockchip,rk3228-pinctrl";
749 rockchip,grf = <&grf>;
750 #address-cells = <1>;
754 gpio0: gpio0@11110000 {
755 compatible = "rockchip,gpio-bank";
756 reg = <0x11110000 0x100>;
757 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
758 clocks = <&cru PCLK_GPIO0>;
763 interrupt-controller;
764 #interrupt-cells = <2>;
767 gpio1: gpio1@11120000 {
768 compatible = "rockchip,gpio-bank";
769 reg = <0x11120000 0x100>;
770 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
771 clocks = <&cru PCLK_GPIO1>;
776 interrupt-controller;
777 #interrupt-cells = <2>;
780 gpio2: gpio2@11130000 {
781 compatible = "rockchip,gpio-bank";
782 reg = <0x11130000 0x100>;
783 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
784 clocks = <&cru PCLK_GPIO2>;
789 interrupt-controller;
790 #interrupt-cells = <2>;
793 gpio3: gpio3@11140000 {
794 compatible = "rockchip,gpio-bank";
795 reg = <0x11140000 0x100>;
796 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
797 clocks = <&cru PCLK_GPIO3>;
802 interrupt-controller;
803 #interrupt-cells = <2>;
806 pcfg_pull_up: pcfg-pull-up {
810 pcfg_pull_down: pcfg-pull-down {
814 pcfg_pull_none: pcfg-pull-none {
818 pcfg_pull_none_drv_12ma: pcfg-pull-none-drv-12ma {
819 drive-strength = <12>;
824 rockchip,pins = <2 7 RK_FUNC_2 &pcfg_pull_none>;
828 rockchip,pins = <1 22 RK_FUNC_2 &pcfg_pull_none>;
831 emmc_bus8: emmc-bus8 {
832 rockchip,pins = <1 24 RK_FUNC_2 &pcfg_pull_none>,
833 <1 25 RK_FUNC_2 &pcfg_pull_none>,
834 <1 26 RK_FUNC_2 &pcfg_pull_none>,
835 <1 27 RK_FUNC_2 &pcfg_pull_none>,
836 <1 28 RK_FUNC_2 &pcfg_pull_none>,
837 <1 29 RK_FUNC_2 &pcfg_pull_none>,
838 <1 30 RK_FUNC_2 &pcfg_pull_none>,
839 <1 31 RK_FUNC_2 &pcfg_pull_none>;
844 rgmii_pins: rgmii-pins {
845 rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>,
846 <2 12 RK_FUNC_1 &pcfg_pull_none>,
847 <2 25 RK_FUNC_1 &pcfg_pull_none>,
848 <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
849 <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
850 <2 22 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
851 <2 23 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
852 <2 9 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
853 <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
854 <2 17 RK_FUNC_1 &pcfg_pull_none>,
855 <2 16 RK_FUNC_1 &pcfg_pull_none>,
856 <2 21 RK_FUNC_2 &pcfg_pull_none>,
857 <2 20 RK_FUNC_2 &pcfg_pull_none>,
858 <2 11 RK_FUNC_1 &pcfg_pull_none>,
859 <2 8 RK_FUNC_1 &pcfg_pull_none>;
862 rmii_pins: rmii-pins {
863 rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>,
864 <2 12 RK_FUNC_1 &pcfg_pull_none>,
865 <2 25 RK_FUNC_1 &pcfg_pull_none>,
866 <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
867 <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
868 <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
869 <2 17 RK_FUNC_1 &pcfg_pull_none>,
870 <2 16 RK_FUNC_1 &pcfg_pull_none>,
871 <2 8 RK_FUNC_1 &pcfg_pull_none>,
872 <2 15 RK_FUNC_1 &pcfg_pull_none>;
876 rockchip,pins = <2 14 RK_FUNC_2 &pcfg_pull_none>,
877 <2 8 RK_FUNC_2 &pcfg_pull_none>;
882 i2c0_xfer: i2c0-xfer {
883 rockchip,pins = <0 0 RK_FUNC_1 &pcfg_pull_none>,
884 <0 1 RK_FUNC_1 &pcfg_pull_none>;
889 i2c1_xfer: i2c1-xfer {
890 rockchip,pins = <0 2 RK_FUNC_1 &pcfg_pull_none>,
891 <0 3 RK_FUNC_1 &pcfg_pull_none>;
896 i2c2_xfer: i2c2-xfer {
897 rockchip,pins = <2 20 RK_FUNC_1 &pcfg_pull_none>,
898 <2 21 RK_FUNC_1 &pcfg_pull_none>;
903 i2c3_xfer: i2c3-xfer {
904 rockchip,pins = <0 6 RK_FUNC_1 &pcfg_pull_none>,
905 <0 7 RK_FUNC_1 &pcfg_pull_none>;
911 rockchip,pins = <0 8 RK_FUNC_1 &pcfg_pull_none>,
912 <0 9 RK_FUNC_1 &pcfg_pull_none>,
913 <0 11 RK_FUNC_1 &pcfg_pull_none>,
914 <0 12 RK_FUNC_1 &pcfg_pull_none>,
915 <0 13 RK_FUNC_1 &pcfg_pull_none>,
916 <0 14 RK_FUNC_1 &pcfg_pull_none>,
917 <1 2 RK_FUNC_1 &pcfg_pull_none>,
918 <1 4 RK_FUNC_1 &pcfg_pull_none>,
919 <1 5 RK_FUNC_1 &pcfg_pull_none>;
925 rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_none>;
931 rockchip,pins = <0 30 RK_FUNC_2 &pcfg_pull_none>;
937 rockchip,pins = <1 12 RK_FUNC_2 &pcfg_pull_none>;
943 rockchip,pins = <1 11 RK_FUNC_2 &pcfg_pull_none>;
949 rockchip,pins = <3 31 RK_FUNC_2 &pcfg_pull_none>;
955 rockchip,pins = <0 24 RK_FUNC_GPIO &pcfg_pull_none>;
959 rockchip,pins = <0 24 RK_FUNC_2 &pcfg_pull_none>;
964 uart0_xfer: uart0-xfer {
965 rockchip,pins = <2 26 RK_FUNC_1 &pcfg_pull_none>,
966 <2 27 RK_FUNC_1 &pcfg_pull_none>;
969 uart0_cts: uart0-cts {
970 rockchip,pins = <2 29 RK_FUNC_1 &pcfg_pull_none>;
973 uart0_rts: uart0-rts {
974 rockchip,pins = <0 17 RK_FUNC_1 &pcfg_pull_none>;
979 uart1_xfer: uart1-xfer {
980 rockchip,pins = <1 9 RK_FUNC_1 &pcfg_pull_none>,
981 <1 10 RK_FUNC_1 &pcfg_pull_none>;
984 uart1_cts: uart1-cts {
985 rockchip,pins = <1 8 RK_FUNC_1 &pcfg_pull_none>;
988 uart1_rts: uart1-rts {
989 rockchip,pins = <1 11 RK_FUNC_1 &pcfg_pull_none>;
994 uart2_xfer: uart2-xfer {
995 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>,
996 <1 19 RK_FUNC_2 &pcfg_pull_none>;
999 uart2_cts: uart2-cts {
1000 rockchip,pins = <0 25 RK_FUNC_1 &pcfg_pull_none>;
1003 uart2_rts: uart2-rts {
1004 rockchip,pins = <0 24 RK_FUNC_1 &pcfg_pull_none>;
1009 uart21_xfer: uart21-xfer {
1010 rockchip,pins = <1 10 RK_FUNC_2 &pcfg_pull_up>,
1011 <1 9 RK_FUNC_2 &pcfg_pull_none>;