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/suspend/rockchip-rk322x.h>
47 #include <dt-bindings/thermal/thermal.h>
48 #include "skeleton.dtsi"
51 interrupt-parent = <&gic>;
65 compatible = "arm,cortex-a7";
67 resets = <&cru SRST_CORE0>;
68 operating-points-v2 = <&cpu0_opp_table>;
69 #cooling-cells = <2>; /* min followed by max */
70 clock-latency = <40000>;
71 clocks = <&cru ARMCLK>;
76 compatible = "arm,cortex-a7";
78 resets = <&cru SRST_CORE1>;
79 operating-points-v2 = <&cpu0_opp_table>;
84 compatible = "arm,cortex-a7";
86 resets = <&cru SRST_CORE2>;
87 operating-points-v2 = <&cpu0_opp_table>;
92 compatible = "arm,cortex-a7";
94 resets = <&cru SRST_CORE3>;
95 operating-points-v2 = <&cpu0_opp_table>;
99 cpu0_opp_table: opp_table0 {
100 compatible = "operating-points-v2";
103 nvmem-cells = <&cpu_leakage>;
104 nvmem-cell-names = "cpu_leakage";
107 opp-hz = /bits/ 64 <408000000>;
108 opp-microvolt = <950000>;
109 clock-latency-ns = <40000>;
113 opp-hz = /bits/ 64 <600000000>;
114 opp-microvolt = <975000>;
117 opp-hz = /bits/ 64 <816000000>;
118 opp-microvolt = <1000000>;
121 opp-hz = /bits/ 64 <1008000000>;
122 opp-microvolt = <1175000>;
125 opp-hz = /bits/ 64 <1200000000>;
126 opp-microvolt = <1275000>;
131 compatible = "arm,amba-bus";
132 #address-cells = <1>;
136 pdma: pdma@110f0000 {
137 compatible = "arm,pl330", "arm,primecell";
138 reg = <0x110f0000 0x4000>;
139 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
140 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
142 clocks = <&cru ACLK_DMAC>;
143 clock-names = "apb_pclk";
144 peripherals-req-type-burst;
149 compatible = "arm,cortex-a7-pmu";
150 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
151 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
152 <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
153 <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
154 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
158 compatible = "arm,armv7-timer";
159 arm,cpu-registers-not-fw-configured;
160 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
161 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
162 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
163 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
164 clock-frequency = <24000000>;
168 compatible = "fixed-clock";
169 clock-frequency = <24000000>;
170 clock-output-names = "xin24m";
174 i2s1: i2s1@100b0000 {
175 compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
176 reg = <0x100b0000 0x4000>;
177 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
178 #address-cells = <1>;
180 clock-names = "i2s_clk", "i2s_hclk";
181 clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
182 dmas = <&pdma 14>, <&pdma 15>;
183 dma-names = "tx", "rx";
184 pinctrl-names = "default";
185 pinctrl-0 = <&i2s1_bus>;
189 i2s0: i2s0@100c0000 {
190 compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
191 reg = <0x100c0000 0x4000>;
192 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
193 #address-cells = <1>;
195 clock-names = "i2s_clk", "i2s_hclk";
196 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
197 dmas = <&pdma 11>, <&pdma 12>;
198 dma-names = "tx", "rx";
202 spdif: spdif@100d0000 {
203 compatible = "rockchip,rk3228-spdif";
204 reg = <0x100d0000 0x1000>;
205 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
206 clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
207 clock-names = "mclk", "hclk";
211 pinctrl-names = "default";
212 pinctrl-0 = <&spdif_tx>;
216 i2s2: i2s2@100e0000 {
217 compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
218 reg = <0x100e0000 0x4000>;
219 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
220 #address-cells = <1>;
222 clock-names = "i2s_clk", "i2s_hclk";
223 clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
224 dmas = <&pdma 0>, <&pdma 1>;
225 dma-names = "tx", "rx";
229 grf: syscon@11000000 {
230 compatible = "syscon", "simple-mfd";
231 reg = <0x11000000 0x1000>;
232 #address-cells = <1>;
235 io_domains: io-domains {
236 compatible = "rockchip,rk322x-io-voltage-domain";
240 u2phy0: usb2-phy@760 {
241 compatible = "rockchip,rk322x-usb2phy";
243 clocks = <&cru SCLK_OTGPHY0>;
244 clock-names = "phyclk";
246 clock-output-names = "usb480m_phy0";
249 u2phy0_otg: otg-port {
251 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
252 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
253 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
254 interrupt-names = "otg-bvalid", "otg-id",
259 u2phy0_host: host-port {
261 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
262 interrupt-names = "linestate";
267 u2phy1: usb2-phy@800 {
268 compatible = "rockchip,rk322x-usb2phy";
270 clocks = <&cru SCLK_OTGPHY1>;
271 clock-names = "phyclk";
273 clock-output-names = "usb480m_phy1";
276 u2phy1_otg: otg-port {
278 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
279 interrupt-names = "linestate";
283 u2phy1_host: host-port {
285 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
286 interrupt-names = "linestate";
292 uart0: serial@11010000 {
293 compatible = "snps,dw-apb-uart";
294 reg = <0x11010000 0x100>;
295 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
296 clock-frequency = <24000000>;
297 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
298 clock-names = "baudclk", "apb_pclk";
299 pinctrl-names = "default";
300 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
306 uart1: serial@11020000 {
307 compatible = "snps,dw-apb-uart";
308 reg = <0x11020000 0x100>;
309 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
310 clock-frequency = <24000000>;
311 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
312 clock-names = "baudclk", "apb_pclk";
313 pinctrl-names = "default";
314 pinctrl-0 = <&uart1_xfer>;
320 uart2: serial@11030000 {
321 compatible = "snps,dw-apb-uart";
322 reg = <0x11030000 0x100>;
323 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
324 clock-frequency = <24000000>;
325 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
326 clock-names = "baudclk", "apb_pclk";
327 pinctrl-names = "default";
328 pinctrl-0 = <&uart21_xfer>;
334 efuse: efuse@11040000 {
335 compatible = "rockchip,rk322x-efuse";
336 reg = <0x11040000 0x20>;
337 #address-cells = <1>;
339 clocks = <&cru PCLK_EFUSE_256>;
340 clock-names = "pclk_efuse";
346 cpu_leakage: cpu_leakage@17 {
352 compatible = "rockchip,rk3228-i2c";
353 reg = <0x11050000 0x1000>;
354 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
355 #address-cells = <1>;
358 clocks = <&cru PCLK_I2C0>;
359 pinctrl-names = "default";
360 pinctrl-0 = <&i2c0_xfer>;
365 compatible = "rockchip,rk3228-i2c";
366 reg = <0x11060000 0x1000>;
367 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
368 #address-cells = <1>;
371 clocks = <&cru PCLK_I2C1>;
372 pinctrl-names = "default";
373 pinctrl-0 = <&i2c1_xfer>;
378 compatible = "rockchip,rk3228-i2c";
379 reg = <0x11070000 0x1000>;
380 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
381 #address-cells = <1>;
384 clocks = <&cru PCLK_I2C2>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&i2c2_xfer>;
391 compatible = "rockchip,rk3228-i2c";
392 reg = <0x11080000 0x1000>;
393 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
394 #address-cells = <1>;
397 clocks = <&cru PCLK_I2C3>;
398 pinctrl-names = "default";
399 pinctrl-0 = <&i2c3_xfer>;
403 wdt: watchdog@110a0000 {
404 compatible = "rockchip,rk322x-wdt", "snps,dw-wdt";
405 reg = <0x110a0000 0x100>;
406 clocks = <&cru PCLK_CPU>;
407 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
412 compatible = "rockchip,rk3288-pwm";
413 reg = <0x110b0000 0x10>;
415 clocks = <&cru PCLK_PWM>;
417 pinctrl-names = "default";
418 pinctrl-0 = <&pwm0_pin>;
423 compatible = "rockchip,rk3288-pwm";
424 reg = <0x110b0010 0x10>;
426 clocks = <&cru PCLK_PWM>;
428 pinctrl-names = "default";
429 pinctrl-0 = <&pwm1_pin>;
434 compatible = "rockchip,rk3288-pwm";
435 reg = <0x110b0020 0x10>;
437 clocks = <&cru PCLK_PWM>;
439 pinctrl-names = "default";
440 pinctrl-0 = <&pwm2_pin>;
445 compatible = "rockchip,rk3288-pwm";
446 reg = <0x110b0030 0x10>;
448 clocks = <&cru PCLK_PWM>;
450 pinctrl-names = "default";
451 pinctrl-0 = <&pwm3_pin>;
455 timer: timer@110c0000 {
456 compatible = "rockchip,rk3288-timer";
457 reg = <0x110c0000 0x20>;
458 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
459 clocks = <&xin24m>, <&cru PCLK_TIMER>;
460 clock-names = "timer", "pclk";
463 cru: clock-controller@110e0000 {
464 compatible = "rockchip,rk3228-cru";
465 reg = <0x110e0000 0x1000>;
466 rockchip,grf = <&grf>;
470 <&cru PLL_GPLL>, <&cru ARMCLK>,
471 <&cru PLL_CPLL>, <&cru ACLK_PERI>,
472 <&cru HCLK_PERI>, <&cru PCLK_PERI>,
473 <&cru ACLK_CPU>, <&cru HCLK_CPU>,
475 assigned-clock-rates =
476 <594000000>, <816000000>,
477 <500000000>, <150000000>,
478 <150000000>, <75000000>,
479 <150000000>, <150000000>,
484 cpu_thermal: cpu-thermal {
485 polling-delay-passive = <100>; /* milliseconds */
486 polling-delay = <5000>; /* milliseconds */
488 thermal-sensors = <&tsadc 0>;
491 cpu_alert0: cpu_alert0 {
492 temperature = <70000>; /* millicelsius */
493 hysteresis = <2000>; /* millicelsius */
496 cpu_alert1: cpu_alert1 {
497 temperature = <75000>; /* millicelsius */
498 hysteresis = <2000>; /* millicelsius */
502 temperature = <90000>; /* millicelsius */
503 hysteresis = <2000>; /* millicelsius */
510 trip = <&cpu_alert0>;
512 <&cpu0 THERMAL_NO_LIMIT 6>;
515 trip = <&cpu_alert1>;
517 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
523 tsadc: tsadc@11150000 {
524 compatible = "rockchip,rk3228-tsadc";
525 reg = <0x11150000 0x100>;
526 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
527 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
528 clock-names = "tsadc", "apb_pclk";
529 assigned-clocks = <&cru SCLK_TSADC>;
530 assigned-clock-rates = <32768>;
531 resets = <&cru SRST_TSADC>;
532 reset-names = "tsadc-apb";
533 pinctrl-names = "init", "default", "sleep";
534 pinctrl-0 = <&otp_gpio>;
535 pinctrl-1 = <&otp_out>;
536 pinctrl-2 = <&otp_gpio>;
537 #thermal-sensor-cells = <0>;
538 rockchip,hw-tshut-temp = <95000>;
542 gpu: gpu@0x20001000 {
543 compatible = "arm,mali400";
544 reg = <0x20001000 0x200>,
552 reg-names = "Mali_L2",
560 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
561 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
562 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
563 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
564 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
565 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
567 interrupt-names = "Mali_GP_IRQ",
573 clocks = <&cru ACLK_GPU>;
574 clock-names = "clk_mali";
575 operating-points-v2 = <&gpu_opp_table>;
579 gpu_opp_table: opp-table2 {
580 compatible = "operating-points-v2";
583 opp-hz = /bits/ 64 <200000000>;
584 opp-microvolt = <1050000>;
587 opp-hz = /bits/ 64 <300000000>;
588 opp-microvolt = <1050000>;
591 opp-hz = /bits/ 64 <500000000>;
592 opp-microvolt = <1150000>;
597 compatible = "rockchip,rk322x-vop";
598 reg = <0x20050000 0x1ffc>, <0x20052000 0x1000>;
599 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
600 clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
601 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
602 resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>;
603 reset-names = "axi", "ahb", "dclk";
608 #address-cells = <1>;
613 vop_mmu: iommu@20050300 {
614 compatible = "rockchip,iommu";
615 reg = <0x20053f00 0x100>;
616 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
617 interrupt-names = "vop_mmu";
618 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
619 clock-names = "aclk", "hclk";
625 compatible = "rockchip,display-subsystem";
629 sdmmc: dwmmc@30000000 {
630 compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc";
631 reg = <0x30000000 0x4000>;
632 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
633 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
634 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
635 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
636 fifo-depth = <0x100>;
637 pinctrl-names = "default";
638 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
642 sdio: dwmmc@30010000 {
643 compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc";
644 reg = <0x30010000 0x4000>;
645 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
646 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
647 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
648 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
649 fifo-depth = <0x100>;
650 pinctrl-names = "default";
651 pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>;
655 emmc: dwmmc@30020000 {
656 compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc";
657 reg = <0x30020000 0x4000>;
658 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
659 clock-frequency = <37500000>;
660 clock-freq-min-max = <400000 37500000>;
661 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
662 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
663 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
665 default-sample-phase = <158>;
667 fifo-depth = <0x100>;
668 pinctrl-names = "default";
669 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
673 usb_otg: usb@30040000 {
674 compatible = "rockchip,rk322x-usb", "rockchip,rk3066-usb",
676 reg = <0x30040000 0x40000>;
677 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
678 clocks = <&cru HCLK_OTG>;
681 g-np-tx-fifo-size = <16>;
682 g-rx-fifo-size = <275>;
683 g-tx-fifo-size = <256 128 128 64 64 32>;
685 phys = <&u2phy0_otg>;
686 phy-names = "usb2-phy";
690 usb_host0_ehci: usb@30080000 {
691 compatible = "generic-ehci";
692 reg = <0x30080000 0x20000>;
693 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
694 clocks = <&cru HCLK_HOST0>, <&u2phy0>;
695 clock-names = "usbhost", "utmi";
696 phys = <&u2phy0_host>;
701 usb_host0_ohci: usb@300a0000 {
702 compatible = "generic-ohci";
703 reg = <0x300a0000 0x20000>;
704 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
705 clocks = <&cru HCLK_HOST0>, <&u2phy0>;
706 clock-names = "usbhost", "utmi";
707 phys = <&u2phy0_host>;
712 usb_host1_ehci: usb@300c0000 {
713 compatible = "generic-ehci";
714 reg = <0x300c0000 0x20000>;
715 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
716 clocks = <&cru HCLK_HOST1>, <&u2phy1>;
717 clock-names = "usbhost", "utmi";
718 phys = <&u2phy1_host>;
723 usb_host1_ohci: usb@300e0000 {
724 compatible = "generic-ohci";
725 reg = <0x300e0000 0x20000>;
726 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
727 clocks = <&cru HCLK_HOST1>, <&u2phy1>;
728 clock-names = "usbhost", "utmi";
729 phys = <&u2phy1_host>;
734 usb_host2_ehci: usb@30100000 {
735 compatible = "generic-ehci";
736 reg = <0x30100000 0x20000>;
737 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
738 clocks = <&cru HCLK_HOST2>, <&u2phy1>;
739 phys = <&u2phy1_otg>;
741 clock-names = "usbhost", "utmi";
745 usb_host2_ohci: usb@30120000 {
746 compatible = "generic-ohci";
747 reg = <0x30120000 0x20000>;
748 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
749 clocks = <&cru HCLK_HOST2>, <&u2phy1>;
750 clock-names = "usbhost", "utmi";
751 phys = <&u2phy1_otg>;
756 gmac: ethernet@30200000 {
757 compatible = "rockchip,rk3228-gmac";
758 reg = <0x30200000 0x10000>;
759 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
760 interrupt-names = "macirq";
761 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
762 <&cru SCLK_MAC_TX>, <&cru SCLK_MAC_REF>,
763 <&cru SCLK_MAC_REFOUT>, <&cru ACLK_GMAC>,
765 clock-names = "stmmaceth", "mac_clk_rx",
766 "mac_clk_tx", "clk_mac_ref",
767 "clk_mac_refout", "aclk_mac",
769 resets = <&cru SRST_GMAC>;
770 reset-names = "stmmaceth";
771 rockchip,grf = <&grf>;
775 gic: interrupt-controller@32010000 {
776 compatible = "arm,gic-400";
777 interrupt-controller;
778 #interrupt-cells = <3>;
779 #address-cells = <0>;
781 reg = <0x32011000 0x1000>,
785 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
789 compatible = "rockchip,rk3228-pinctrl";
790 rockchip,grf = <&grf>;
791 #address-cells = <1>;
795 gpio0: gpio0@11110000 {
796 compatible = "rockchip,gpio-bank";
797 reg = <0x11110000 0x100>;
798 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
799 clocks = <&cru PCLK_GPIO0>;
804 interrupt-controller;
805 #interrupt-cells = <2>;
808 gpio1: gpio1@11120000 {
809 compatible = "rockchip,gpio-bank";
810 reg = <0x11120000 0x100>;
811 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
812 clocks = <&cru PCLK_GPIO1>;
817 interrupt-controller;
818 #interrupt-cells = <2>;
821 gpio2: gpio2@11130000 {
822 compatible = "rockchip,gpio-bank";
823 reg = <0x11130000 0x100>;
824 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
825 clocks = <&cru PCLK_GPIO2>;
830 interrupt-controller;
831 #interrupt-cells = <2>;
834 gpio3: gpio3@11140000 {
835 compatible = "rockchip,gpio-bank";
836 reg = <0x11140000 0x100>;
837 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
838 clocks = <&cru PCLK_GPIO3>;
843 interrupt-controller;
844 #interrupt-cells = <2>;
847 pcfg_pull_up: pcfg-pull-up {
851 pcfg_pull_down: pcfg-pull-down {
855 pcfg_pull_none: pcfg-pull-none {
859 pcfg_pull_none_drv_12ma: pcfg-pull-none-drv-12ma {
860 drive-strength = <12>;
864 sdmmc_clk: sdmmc-clk {
865 rockchip,pins = <1 16 RK_FUNC_1 &pcfg_pull_none_drv_12ma>;
868 sdmmc_cmd: sdmmc-cmd {
869 rockchip,pins = <1 15 RK_FUNC_1 &pcfg_pull_none_drv_12ma>;
872 sdmmc_bus4: sdmmc-bus4 {
873 rockchip,pins = <1 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
874 <1 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
875 <1 20 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
876 <1 21 RK_FUNC_1 &pcfg_pull_none_drv_12ma>;
882 rockchip,pins = <3 0 RK_FUNC_1 &pcfg_pull_none_drv_12ma>;
886 rockchip,pins = <3 1 RK_FUNC_1 &pcfg_pull_none_drv_12ma>;
889 sdio_bus4: sdio-bus4 {
890 rockchip,pins = <3 2 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
891 <3 3 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
892 <3 4 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
893 <3 5 RK_FUNC_1 &pcfg_pull_none_drv_12ma>;
899 rockchip,pins = <2 7 RK_FUNC_2 &pcfg_pull_none>;
903 rockchip,pins = <1 22 RK_FUNC_2 &pcfg_pull_none>;
906 emmc_bus8: emmc-bus8 {
907 rockchip,pins = <1 24 RK_FUNC_2 &pcfg_pull_none>,
908 <1 25 RK_FUNC_2 &pcfg_pull_none>,
909 <1 26 RK_FUNC_2 &pcfg_pull_none>,
910 <1 27 RK_FUNC_2 &pcfg_pull_none>,
911 <1 28 RK_FUNC_2 &pcfg_pull_none>,
912 <1 29 RK_FUNC_2 &pcfg_pull_none>,
913 <1 30 RK_FUNC_2 &pcfg_pull_none>,
914 <1 31 RK_FUNC_2 &pcfg_pull_none>;
919 rgmii_pins: rgmii-pins {
920 rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>,
921 <2 12 RK_FUNC_1 &pcfg_pull_none>,
922 <2 25 RK_FUNC_1 &pcfg_pull_none>,
923 <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
924 <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
925 <2 22 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
926 <2 23 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
927 <2 9 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
928 <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
929 <2 17 RK_FUNC_1 &pcfg_pull_none>,
930 <2 16 RK_FUNC_1 &pcfg_pull_none>,
931 <2 21 RK_FUNC_2 &pcfg_pull_none>,
932 <2 20 RK_FUNC_2 &pcfg_pull_none>,
933 <2 11 RK_FUNC_1 &pcfg_pull_none>,
934 <2 8 RK_FUNC_1 &pcfg_pull_none>;
937 rmii_pins: rmii-pins {
938 rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>,
939 <2 12 RK_FUNC_1 &pcfg_pull_none>,
940 <2 25 RK_FUNC_1 &pcfg_pull_none>,
941 <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
942 <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
943 <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
944 <2 17 RK_FUNC_1 &pcfg_pull_none>,
945 <2 16 RK_FUNC_1 &pcfg_pull_none>,
946 <2 8 RK_FUNC_1 &pcfg_pull_none>,
947 <2 15 RK_FUNC_1 &pcfg_pull_none>;
951 rockchip,pins = <2 14 RK_FUNC_2 &pcfg_pull_none>,
952 <2 8 RK_FUNC_2 &pcfg_pull_none>;
957 i2c0_xfer: i2c0-xfer {
958 rockchip,pins = <0 0 RK_FUNC_1 &pcfg_pull_none>,
959 <0 1 RK_FUNC_1 &pcfg_pull_none>;
964 i2c1_xfer: i2c1-xfer {
965 rockchip,pins = <0 2 RK_FUNC_1 &pcfg_pull_none>,
966 <0 3 RK_FUNC_1 &pcfg_pull_none>;
971 i2c2_xfer: i2c2-xfer {
972 rockchip,pins = <2 20 RK_FUNC_1 &pcfg_pull_none>,
973 <2 21 RK_FUNC_1 &pcfg_pull_none>;
978 i2c3_xfer: i2c3-xfer {
979 rockchip,pins = <0 6 RK_FUNC_1 &pcfg_pull_none>,
980 <0 7 RK_FUNC_1 &pcfg_pull_none>;
986 rockchip,pins = <0 8 RK_FUNC_1 &pcfg_pull_none>,
987 <0 9 RK_FUNC_1 &pcfg_pull_none>,
988 <0 11 RK_FUNC_1 &pcfg_pull_none>,
989 <0 12 RK_FUNC_1 &pcfg_pull_none>,
990 <0 13 RK_FUNC_1 &pcfg_pull_none>,
991 <0 14 RK_FUNC_1 &pcfg_pull_none>,
992 <1 2 RK_FUNC_2 &pcfg_pull_none>,
993 <1 4 RK_FUNC_2 &pcfg_pull_none>,
994 <1 5 RK_FUNC_2 &pcfg_pull_none>;
1000 rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_none>;
1005 pwm1_pin: pwm1-pin {
1006 rockchip,pins = <0 30 RK_FUNC_2 &pcfg_pull_none>;
1011 pwm2_pin: pwm2-pin {
1012 rockchip,pins = <1 12 RK_FUNC_2 &pcfg_pull_none>;
1017 pwm3_pin: pwm3-pin {
1018 rockchip,pins = <1 11 RK_FUNC_2 &pcfg_pull_none>;
1023 spdif_tx: spdif-tx {
1024 rockchip,pins = <3 31 RK_FUNC_2 &pcfg_pull_none>;
1029 otp_gpio: otp-gpio {
1030 rockchip,pins = <0 24 RK_FUNC_GPIO &pcfg_pull_none>;
1034 rockchip,pins = <0 24 RK_FUNC_2 &pcfg_pull_none>;
1039 uart0_xfer: uart0-xfer {
1040 rockchip,pins = <2 26 RK_FUNC_1 &pcfg_pull_none>,
1041 <2 27 RK_FUNC_1 &pcfg_pull_none>;
1044 uart0_cts: uart0-cts {
1045 rockchip,pins = <2 29 RK_FUNC_1 &pcfg_pull_none>;
1048 uart0_rts: uart0-rts {
1049 rockchip,pins = <0 17 RK_FUNC_1 &pcfg_pull_none>;
1054 uart1_xfer: uart1-xfer {
1055 rockchip,pins = <1 9 RK_FUNC_1 &pcfg_pull_none>,
1056 <1 10 RK_FUNC_1 &pcfg_pull_none>;
1059 uart1_cts: uart1-cts {
1060 rockchip,pins = <1 8 RK_FUNC_1 &pcfg_pull_none>;
1063 uart1_rts: uart1-rts {
1064 rockchip,pins = <1 11 RK_FUNC_1 &pcfg_pull_none>;
1069 uart2_xfer: uart2-xfer {
1070 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>,
1071 <1 19 RK_FUNC_2 &pcfg_pull_none>;
1074 uart2_cts: uart2-cts {
1075 rockchip,pins = <0 25 RK_FUNC_1 &pcfg_pull_none>;
1078 uart2_rts: uart2-rts {
1079 rockchip,pins = <0 24 RK_FUNC_1 &pcfg_pull_none>;
1084 uart21_xfer: uart21-xfer {
1085 rockchip,pins = <1 10 RK_FUNC_2 &pcfg_pull_up>,
1086 <1 9 RK_FUNC_2 &pcfg_pull_none>;
1091 rockchip_suspend: rockchip-suspend {
1092 compatible = "rockchip,pm-rk322x";
1093 status = "disabled";
1094 rockchip,sleep-mode-config = <
1097 |RKPM_CTR_IDLESRAM_MD