2 * Copyright 2013 Maxime Ripard
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
45 #include "skeleton.dtsi"
47 #include <dt-bindings/interrupt-controller/arm-gic.h>
48 #include <dt-bindings/thermal/thermal.h>
50 #include <dt-bindings/pinctrl/sun4i-a10.h>
53 interrupt-parent = <&gic>;
64 simplefb_hdmi: framebuffer@0 {
65 compatible = "allwinner,simple-framebuffer",
67 allwinner,pipeline = "de_be0-lcd0-hdmi";
72 simplefb_lcd: framebuffer@1 {
73 compatible = "allwinner,simple-framebuffer",
75 allwinner,pipeline = "de_be0-lcd0";
82 compatible = "arm,armv7-timer";
83 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
84 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
85 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
86 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
87 clock-frequency = <24000000>;
88 arm,cpu-registers-not-fw-configured;
92 enable-method = "allwinner,sun6i-a31";
97 compatible = "arm,cortex-a7";
101 clock-latency = <244144>; /* 8 32k periods */
109 #cooling-cells = <2>;
110 cooling-min-level = <0>;
111 cooling-max-level = <3>;
115 compatible = "arm,cortex-a7";
121 compatible = "arm,cortex-a7";
127 compatible = "arm,cortex-a7";
136 polling-delay-passive = <250>;
137 polling-delay = <1000>;
138 thermal-sensors = <&rtp>;
142 trip = <&cpu_alert0>;
143 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
148 cpu_alert0: cpu_alert0 {
150 temperature = <70000>;
157 temperature = <100000>;
166 reg = <0x40000000 0x80000000>;
170 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
171 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
172 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
173 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
174 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
178 #address-cells = <1>;
184 compatible = "fixed-clock";
185 clock-frequency = <24000000>;
190 compatible = "fixed-clock";
191 clock-frequency = <32768>;
192 clock-output-names = "osc32k";
197 compatible = "allwinner,sun6i-a31-pll1-clk";
198 reg = <0x01c20000 0x4>;
200 clock-output-names = "pll1";
205 compatible = "allwinner,sun6i-a31-pll6-clk";
206 reg = <0x01c20028 0x4>;
208 clock-output-names = "pll6", "pll6x2";
213 compatible = "allwinner,sun4i-a10-cpu-clk";
214 reg = <0x01c20050 0x4>;
217 * PLL1 is listed twice here.
218 * While it looks suspicious, it's actually documented
219 * that way both in the datasheet and in the code from
222 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
223 clock-output-names = "cpu";
228 compatible = "allwinner,sun4i-a10-axi-clk";
229 reg = <0x01c20050 0x4>;
231 clock-output-names = "axi";
234 ahb1: ahb1@01c20054 {
236 compatible = "allwinner,sun6i-a31-ahb1-clk";
237 reg = <0x01c20054 0x4>;
238 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6 0>;
239 clock-output-names = "ahb1";
242 * Clock AHB1 from PLL6, instead of CPU/AXI which
243 * has rate changes due to cpufreq. Also the DMA
244 * controller requires AHB1 clocked from PLL6.
246 assigned-clocks = <&ahb1>;
247 assigned-clock-parents = <&pll6 0>;
250 ahb1_gates: clk@01c20060 {
252 compatible = "allwinner,sun6i-a31-ahb1-gates-clk";
253 reg = <0x01c20060 0x8>;
255 clock-indices = <1>, <5>,
269 clock-output-names = "ahb1_mipidsi", "ahb1_ss",
270 "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1",
271 "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1",
272 "ahb1_nand0", "ahb1_sdram",
273 "ahb1_gmac", "ahb1_ts", "ahb1_hstimer",
274 "ahb1_spi0", "ahb1_spi1", "ahb1_spi2",
275 "ahb1_spi3", "ahb1_otg", "ahb1_ehci0",
276 "ahb1_ehci1", "ahb1_ohci0",
277 "ahb1_ohci1", "ahb1_ohci2", "ahb1_ve",
278 "ahb1_lcd0", "ahb1_lcd1", "ahb1_csi",
279 "ahb1_hdmi", "ahb1_de0", "ahb1_de1",
280 "ahb1_fe0", "ahb1_fe1", "ahb1_mp",
281 "ahb1_gpu", "ahb1_deu0", "ahb1_deu1",
282 "ahb1_drc0", "ahb1_drc1";
285 apb1: apb1@01c20054 {
287 compatible = "allwinner,sun4i-a10-apb0-clk";
288 reg = <0x01c20054 0x4>;
290 clock-output-names = "apb1";
293 apb1_gates: clk@01c20068 {
295 compatible = "allwinner,sun6i-a31-apb1-gates-clk";
296 reg = <0x01c20068 0x4>;
298 clock-indices = <0>, <4>,
301 clock-output-names = "apb1_codec", "apb1_digital_mic",
302 "apb1_pio", "apb1_daudio0",
308 compatible = "allwinner,sun4i-a10-apb1-clk";
309 reg = <0x01c20058 0x4>;
310 clocks = <&osc32k>, <&osc24M>, <&pll6 0>, <&pll6 0>;
311 clock-output-names = "apb2";
314 apb2_gates: clk@01c2006c {
316 compatible = "allwinner,sun6i-a31-apb2-gates-clk";
317 reg = <0x01c2006c 0x4>;
319 clock-indices = <0>, <1>,
323 clock-output-names = "apb2_i2c0", "apb2_i2c1",
324 "apb2_i2c2", "apb2_i2c3",
325 "apb2_uart0", "apb2_uart1",
326 "apb2_uart2", "apb2_uart3",
327 "apb2_uart4", "apb2_uart5";
330 mmc0_clk: clk@01c20088 {
332 compatible = "allwinner,sun4i-a10-mmc-clk";
333 reg = <0x01c20088 0x4>;
334 clocks = <&osc24M>, <&pll6 0>;
335 clock-output-names = "mmc0",
340 mmc1_clk: clk@01c2008c {
342 compatible = "allwinner,sun4i-a10-mmc-clk";
343 reg = <0x01c2008c 0x4>;
344 clocks = <&osc24M>, <&pll6 0>;
345 clock-output-names = "mmc1",
350 mmc2_clk: clk@01c20090 {
352 compatible = "allwinner,sun4i-a10-mmc-clk";
353 reg = <0x01c20090 0x4>;
354 clocks = <&osc24M>, <&pll6 0>;
355 clock-output-names = "mmc2",
360 mmc3_clk: clk@01c20094 {
362 compatible = "allwinner,sun4i-a10-mmc-clk";
363 reg = <0x01c20094 0x4>;
364 clocks = <&osc24M>, <&pll6 0>;
365 clock-output-names = "mmc3",
370 ss_clk: clk@01c2009c {
372 compatible = "allwinner,sun4i-a10-mod0-clk";
373 reg = <0x01c2009c 0x4>;
374 clocks = <&osc24M>, <&pll6 0>;
375 clock-output-names = "ss";
378 spi0_clk: clk@01c200a0 {
380 compatible = "allwinner,sun4i-a10-mod0-clk";
381 reg = <0x01c200a0 0x4>;
382 clocks = <&osc24M>, <&pll6 0>;
383 clock-output-names = "spi0";
386 spi1_clk: clk@01c200a4 {
388 compatible = "allwinner,sun4i-a10-mod0-clk";
389 reg = <0x01c200a4 0x4>;
390 clocks = <&osc24M>, <&pll6 0>;
391 clock-output-names = "spi1";
394 spi2_clk: clk@01c200a8 {
396 compatible = "allwinner,sun4i-a10-mod0-clk";
397 reg = <0x01c200a8 0x4>;
398 clocks = <&osc24M>, <&pll6 0>;
399 clock-output-names = "spi2";
402 spi3_clk: clk@01c200ac {
404 compatible = "allwinner,sun4i-a10-mod0-clk";
405 reg = <0x01c200ac 0x4>;
406 clocks = <&osc24M>, <&pll6 0>;
407 clock-output-names = "spi3";
410 usb_clk: clk@01c200cc {
413 compatible = "allwinner,sun6i-a31-usb-clk";
414 reg = <0x01c200cc 0x4>;
416 clock-indices = <8>, <9>, <10>,
419 clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2",
420 "usb_ohci0", "usb_ohci1",
425 * The following two are dummy clocks, placeholders
426 * used in the gmac_tx clock. The gmac driver will
427 * choose one parent depending on the PHY interface
428 * mode, using clk_set_rate auto-reparenting.
430 * The actual TX clock rate is not controlled by the
433 mii_phy_tx_clk: clk@1 {
435 compatible = "fixed-clock";
436 clock-frequency = <25000000>;
437 clock-output-names = "mii_phy_tx";
440 gmac_int_tx_clk: clk@2 {
442 compatible = "fixed-clock";
443 clock-frequency = <125000000>;
444 clock-output-names = "gmac_int_tx";
447 gmac_tx_clk: clk@01c200d0 {
449 compatible = "allwinner,sun7i-a20-gmac-clk";
450 reg = <0x01c200d0 0x4>;
451 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
452 clock-output-names = "gmac_tx";
457 compatible = "simple-bus";
458 #address-cells = <1>;
462 dma: dma-controller@01c02000 {
463 compatible = "allwinner,sun6i-a31-dma";
464 reg = <0x01c02000 0x1000>;
465 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
466 clocks = <&ahb1_gates 6>;
467 resets = <&ahb1_rst 6>;
472 compatible = "allwinner,sun5i-a13-mmc";
473 reg = <0x01c0f000 0x1000>;
474 clocks = <&ahb1_gates 8>,
482 resets = <&ahb1_rst 8>;
484 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
486 #address-cells = <1>;
491 compatible = "allwinner,sun5i-a13-mmc";
492 reg = <0x01c10000 0x1000>;
493 clocks = <&ahb1_gates 9>,
501 resets = <&ahb1_rst 9>;
503 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
505 #address-cells = <1>;
510 compatible = "allwinner,sun5i-a13-mmc";
511 reg = <0x01c11000 0x1000>;
512 clocks = <&ahb1_gates 10>,
520 resets = <&ahb1_rst 10>;
522 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
524 #address-cells = <1>;
529 compatible = "allwinner,sun5i-a13-mmc";
530 reg = <0x01c12000 0x1000>;
531 clocks = <&ahb1_gates 11>,
539 resets = <&ahb1_rst 11>;
541 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
543 #address-cells = <1>;
547 usb_otg: usb@01c19000 {
548 compatible = "allwinner,sun6i-a31-musb";
549 reg = <0x01c19000 0x0400>;
550 clocks = <&ahb1_gates 24>;
551 resets = <&ahb1_rst 24>;
552 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
553 interrupt-names = "mc";
556 extcon = <&usbphy 0>;
560 usbphy: phy@01c19400 {
561 compatible = "allwinner,sun6i-a31-usb-phy";
562 reg = <0x01c19400 0x10>,
565 reg-names = "phy_ctrl",
568 clocks = <&usb_clk 8>,
571 clock-names = "usb0_phy",
574 resets = <&usb_clk 0>,
577 reset-names = "usb0_reset",
584 ehci0: usb@01c1a000 {
585 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
586 reg = <0x01c1a000 0x100>;
587 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
588 clocks = <&ahb1_gates 26>;
589 resets = <&ahb1_rst 26>;
595 ohci0: usb@01c1a400 {
596 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
597 reg = <0x01c1a400 0x100>;
598 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
599 clocks = <&ahb1_gates 29>, <&usb_clk 16>;
600 resets = <&ahb1_rst 29>;
606 ehci1: usb@01c1b000 {
607 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
608 reg = <0x01c1b000 0x100>;
609 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
610 clocks = <&ahb1_gates 27>;
611 resets = <&ahb1_rst 27>;
617 ohci1: usb@01c1b400 {
618 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
619 reg = <0x01c1b400 0x100>;
620 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
621 clocks = <&ahb1_gates 30>, <&usb_clk 17>;
622 resets = <&ahb1_rst 30>;
628 ohci2: usb@01c1c400 {
629 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
630 reg = <0x01c1c400 0x100>;
631 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
632 clocks = <&ahb1_gates 31>, <&usb_clk 18>;
633 resets = <&ahb1_rst 31>;
637 pio: pinctrl@01c20800 {
638 compatible = "allwinner,sun6i-a31-pinctrl";
639 reg = <0x01c20800 0x400>;
640 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
641 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
642 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
643 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
644 clocks = <&apb1_gates 5>;
646 interrupt-controller;
647 #interrupt-cells = <3>;
650 uart0_pins_a: uart0@0 {
651 allwinner,pins = "PH20", "PH21";
652 allwinner,function = "uart0";
653 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
654 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
657 i2c0_pins_a: i2c0@0 {
658 allwinner,pins = "PH14", "PH15";
659 allwinner,function = "i2c0";
660 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
661 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
664 i2c1_pins_a: i2c1@0 {
665 allwinner,pins = "PH16", "PH17";
666 allwinner,function = "i2c1";
667 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
668 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
671 i2c2_pins_a: i2c2@0 {
672 allwinner,pins = "PH18", "PH19";
673 allwinner,function = "i2c2";
674 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
675 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
678 mmc0_pins_a: mmc0@0 {
679 allwinner,pins = "PF0", "PF1", "PF2",
681 allwinner,function = "mmc0";
682 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
683 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
686 mmc1_pins_a: mmc1@0 {
687 allwinner,pins = "PG0", "PG1", "PG2", "PG3",
689 allwinner,function = "mmc1";
690 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
691 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
694 mmc2_pins_a: mmc2@0 {
695 allwinner,pins = "PC6", "PC7", "PC8", "PC9",
697 allwinner,function = "mmc2";
698 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
699 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
702 mmc2_8bit_emmc_pins: mmc2@1 {
703 allwinner,pins = "PC6", "PC7", "PC8", "PC9",
704 "PC10", "PC11", "PC12",
705 "PC13", "PC14", "PC15",
707 allwinner,function = "mmc2";
708 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
709 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
712 gmac_pins_mii_a: gmac_mii@0 {
713 allwinner,pins = "PA0", "PA1", "PA2", "PA3",
714 "PA8", "PA9", "PA11",
715 "PA12", "PA13", "PA14", "PA19",
716 "PA20", "PA21", "PA22", "PA23",
717 "PA24", "PA26", "PA27";
718 allwinner,function = "gmac";
719 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
720 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
723 gmac_pins_gmii_a: gmac_gmii@0 {
724 allwinner,pins = "PA0", "PA1", "PA2", "PA3",
725 "PA4", "PA5", "PA6", "PA7",
726 "PA8", "PA9", "PA10", "PA11",
727 "PA12", "PA13", "PA14", "PA15",
728 "PA16", "PA17", "PA18", "PA19",
729 "PA20", "PA21", "PA22", "PA23",
730 "PA24", "PA25", "PA26", "PA27";
731 allwinner,function = "gmac";
733 * data lines in GMII mode run at 125MHz and
734 * might need a higher signal drive strength
736 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
737 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
740 gmac_pins_rgmii_a: gmac_rgmii@0 {
741 allwinner,pins = "PA0", "PA1", "PA2", "PA3",
742 "PA9", "PA10", "PA11",
743 "PA12", "PA13", "PA14", "PA19",
744 "PA20", "PA25", "PA26", "PA27";
745 allwinner,function = "gmac";
747 * data lines in RGMII mode use DDR mode
748 * and need a higher signal drive strength
750 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
751 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
755 ahb1_rst: reset@01c202c0 {
757 compatible = "allwinner,sun6i-a31-ahb1-reset";
758 reg = <0x01c202c0 0xc>;
761 apb1_rst: reset@01c202d0 {
763 compatible = "allwinner,sun6i-a31-clock-reset";
764 reg = <0x01c202d0 0x4>;
767 apb2_rst: reset@01c202d8 {
769 compatible = "allwinner,sun6i-a31-clock-reset";
770 reg = <0x01c202d8 0x4>;
774 compatible = "allwinner,sun4i-a10-timer";
775 reg = <0x01c20c00 0xa0>;
776 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
777 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
778 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
779 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
780 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
784 wdt1: watchdog@01c20ca0 {
785 compatible = "allwinner,sun6i-a31-wdt";
786 reg = <0x01c20ca0 0x20>;
789 lradc: lradc@01c22800 {
790 compatible = "allwinner,sun4i-a10-lradc-keys";
791 reg = <0x01c22800 0x100>;
792 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
797 compatible = "allwinner,sun6i-a31-ts";
798 reg = <0x01c25000 0x100>;
799 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
800 #thermal-sensor-cells = <0>;
803 uart0: serial@01c28000 {
804 compatible = "snps,dw-apb-uart";
805 reg = <0x01c28000 0x400>;
806 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
809 clocks = <&apb2_gates 16>;
810 resets = <&apb2_rst 16>;
811 dmas = <&dma 6>, <&dma 6>;
812 dma-names = "rx", "tx";
816 uart1: serial@01c28400 {
817 compatible = "snps,dw-apb-uart";
818 reg = <0x01c28400 0x400>;
819 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
822 clocks = <&apb2_gates 17>;
823 resets = <&apb2_rst 17>;
824 dmas = <&dma 7>, <&dma 7>;
825 dma-names = "rx", "tx";
829 uart2: serial@01c28800 {
830 compatible = "snps,dw-apb-uart";
831 reg = <0x01c28800 0x400>;
832 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
835 clocks = <&apb2_gates 18>;
836 resets = <&apb2_rst 18>;
837 dmas = <&dma 8>, <&dma 8>;
838 dma-names = "rx", "tx";
842 uart3: serial@01c28c00 {
843 compatible = "snps,dw-apb-uart";
844 reg = <0x01c28c00 0x400>;
845 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
848 clocks = <&apb2_gates 19>;
849 resets = <&apb2_rst 19>;
850 dmas = <&dma 9>, <&dma 9>;
851 dma-names = "rx", "tx";
855 uart4: serial@01c29000 {
856 compatible = "snps,dw-apb-uart";
857 reg = <0x01c29000 0x400>;
858 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
861 clocks = <&apb2_gates 20>;
862 resets = <&apb2_rst 20>;
863 dmas = <&dma 10>, <&dma 10>;
864 dma-names = "rx", "tx";
868 uart5: serial@01c29400 {
869 compatible = "snps,dw-apb-uart";
870 reg = <0x01c29400 0x400>;
871 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
874 clocks = <&apb2_gates 21>;
875 resets = <&apb2_rst 21>;
876 dmas = <&dma 22>, <&dma 22>;
877 dma-names = "rx", "tx";
882 compatible = "allwinner,sun6i-a31-i2c";
883 reg = <0x01c2ac00 0x400>;
884 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
885 clocks = <&apb2_gates 0>;
886 resets = <&apb2_rst 0>;
888 #address-cells = <1>;
893 compatible = "allwinner,sun6i-a31-i2c";
894 reg = <0x01c2b000 0x400>;
895 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
896 clocks = <&apb2_gates 1>;
897 resets = <&apb2_rst 1>;
899 #address-cells = <1>;
904 compatible = "allwinner,sun6i-a31-i2c";
905 reg = <0x01c2b400 0x400>;
906 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
907 clocks = <&apb2_gates 2>;
908 resets = <&apb2_rst 2>;
910 #address-cells = <1>;
915 compatible = "allwinner,sun6i-a31-i2c";
916 reg = <0x01c2b800 0x400>;
917 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
918 clocks = <&apb2_gates 3>;
919 resets = <&apb2_rst 3>;
921 #address-cells = <1>;
925 gmac: ethernet@01c30000 {
926 compatible = "allwinner,sun7i-a20-gmac";
927 reg = <0x01c30000 0x1054>;
928 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
929 interrupt-names = "macirq";
930 clocks = <&ahb1_gates 17>, <&gmac_tx_clk>;
931 clock-names = "stmmaceth", "allwinner_gmac_tx";
932 resets = <&ahb1_rst 17>;
933 reset-names = "stmmaceth";
936 snps,force_sf_dma_mode;
938 #address-cells = <1>;
942 crypto: crypto-engine@01c15000 {
943 compatible = "allwinner,sun4i-a10-crypto";
944 reg = <0x01c15000 0x1000>;
945 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
946 clocks = <&ahb1_gates 5>, <&ss_clk>;
947 clock-names = "ahb", "mod";
948 resets = <&ahb1_rst 5>;
953 compatible = "allwinner,sun6i-a31-hstimer",
954 "allwinner,sun7i-a20-hstimer";
955 reg = <0x01c60000 0x1000>;
956 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
957 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
958 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
959 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
960 clocks = <&ahb1_gates 19>;
961 resets = <&ahb1_rst 19>;
965 compatible = "allwinner,sun6i-a31-spi";
966 reg = <0x01c68000 0x1000>;
967 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
968 clocks = <&ahb1_gates 20>, <&spi0_clk>;
969 clock-names = "ahb", "mod";
970 dmas = <&dma 23>, <&dma 23>;
971 dma-names = "rx", "tx";
972 resets = <&ahb1_rst 20>;
977 compatible = "allwinner,sun6i-a31-spi";
978 reg = <0x01c69000 0x1000>;
979 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
980 clocks = <&ahb1_gates 21>, <&spi1_clk>;
981 clock-names = "ahb", "mod";
982 dmas = <&dma 24>, <&dma 24>;
983 dma-names = "rx", "tx";
984 resets = <&ahb1_rst 21>;
989 compatible = "allwinner,sun6i-a31-spi";
990 reg = <0x01c6a000 0x1000>;
991 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
992 clocks = <&ahb1_gates 22>, <&spi2_clk>;
993 clock-names = "ahb", "mod";
994 dmas = <&dma 25>, <&dma 25>;
995 dma-names = "rx", "tx";
996 resets = <&ahb1_rst 22>;
1000 spi3: spi@01c6b000 {
1001 compatible = "allwinner,sun6i-a31-spi";
1002 reg = <0x01c6b000 0x1000>;
1003 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
1004 clocks = <&ahb1_gates 23>, <&spi3_clk>;
1005 clock-names = "ahb", "mod";
1006 dmas = <&dma 26>, <&dma 26>;
1007 dma-names = "rx", "tx";
1008 resets = <&ahb1_rst 23>;
1009 status = "disabled";
1012 gic: interrupt-controller@01c81000 {
1013 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1014 reg = <0x01c81000 0x1000>,
1015 <0x01c82000 0x1000>,
1016 <0x01c84000 0x2000>,
1017 <0x01c86000 0x2000>;
1018 interrupt-controller;
1019 #interrupt-cells = <3>;
1020 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1024 compatible = "allwinner,sun6i-a31-rtc";
1025 reg = <0x01f00000 0x54>;
1026 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1027 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1030 nmi_intc: interrupt-controller@01f00c0c {
1031 compatible = "allwinner,sun6i-a31-sc-nmi";
1032 interrupt-controller;
1033 #interrupt-cells = <2>;
1034 reg = <0x01f00c0c 0x38>;
1035 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1039 compatible = "allwinner,sun6i-a31-prcm";
1040 reg = <0x01f01400 0x200>;
1043 compatible = "allwinner,sun6i-a31-ar100-clk";
1045 clocks = <&osc32k>, <&osc24M>, <&pll6 0>,
1047 clock-output-names = "ar100";
1051 compatible = "fixed-factor-clock";
1056 clock-output-names = "ahb0";
1060 compatible = "allwinner,sun6i-a31-apb0-clk";
1063 clock-output-names = "apb0";
1066 apb0_gates: apb0_gates_clk {
1067 compatible = "allwinner,sun6i-a31-apb0-gates-clk";
1070 clock-output-names = "apb0_pio", "apb0_ir",
1071 "apb0_timer", "apb0_p2wi",
1072 "apb0_uart", "apb0_1wire",
1078 compatible = "allwinner,sun4i-a10-mod0-clk";
1079 clocks = <&osc32k>, <&osc24M>;
1080 clock-output-names = "ir";
1083 apb0_rst: apb0_rst {
1084 compatible = "allwinner,sun6i-a31-clock-reset";
1090 compatible = "allwinner,sun6i-a31-cpuconfig";
1091 reg = <0x01f01c00 0x300>;
1095 compatible = "allwinner,sun5i-a13-ir";
1096 clocks = <&apb0_gates 1>, <&ir_clk>;
1097 clock-names = "apb", "ir";
1098 resets = <&apb0_rst 1>;
1099 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1100 reg = <0x01f02000 0x40>;
1101 status = "disabled";
1104 r_pio: pinctrl@01f02c00 {
1105 compatible = "allwinner,sun6i-a31-r-pinctrl";
1106 reg = <0x01f02c00 0x400>;
1107 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
1108 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
1109 clocks = <&apb0_gates 0>;
1110 resets = <&apb0_rst 0>;
1112 interrupt-controller;
1113 #interrupt-cells = <3>;
1118 allwinner,pins = "PL4";
1119 allwinner,function = "s_ir";
1120 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1121 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1125 allwinner,pins = "PL0", "PL1";
1126 allwinner,function = "s_p2wi";
1127 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1128 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1132 p2wi: i2c@01f03400 {
1133 compatible = "allwinner,sun6i-a31-p2wi";
1134 reg = <0x01f03400 0x400>;
1135 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1136 clocks = <&apb0_gates 3>;
1137 clock-frequency = <100000>;
1138 resets = <&apb0_rst 3>;
1139 pinctrl-names = "default";
1140 pinctrl-0 = <&p2wi_pins>;
1141 status = "disabled";
1142 #address-cells = <1>;