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>
49 #include <dt-bindings/dma/sun4i-a10.h>
50 #include <dt-bindings/clock/sun4i-a10-ccu.h>
51 #include <dt-bindings/reset/sun4i-a10-ccu.h>
54 interrupt-parent = <&gic>;
66 compatible = "allwinner,simple-framebuffer",
68 allwinner,pipeline = "de_be0-lcd0-hdmi";
69 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>,
70 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
71 <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_DE_BE0>,
77 compatible = "allwinner,simple-framebuffer",
79 allwinner,pipeline = "de_be0-lcd0";
80 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_DE_BE0>,
81 <&ccu CLK_DE_BE0>, <&ccu CLK_TCON0_CH0>,
82 <&ccu CLK_DRAM_DE_BE0>;
87 compatible = "allwinner,simple-framebuffer",
89 allwinner,pipeline = "de_be0-lcd0-tve0";
90 clocks = <&ccu CLK_AHB_TVE0>, <&ccu CLK_AHB_LCD0>,
91 <&ccu CLK_AHB_DE_BE0>,
92 <&ccu CLK_DE_BE0>, <&ccu CLK_TCON0_CH1>,
93 <&ccu CLK_DRAM_TVE0>, <&ccu CLK_DRAM_DE_BE0>;
103 compatible = "arm,cortex-a7";
106 clocks = <&ccu CLK_CPU>;
107 clock-latency = <244144>; /* 8 32k periods */
118 #cooling-cells = <2>;
119 cooling-min-level = <0>;
120 cooling-max-level = <6>;
124 compatible = "arm,cortex-a7";
133 polling-delay-passive = <250>;
134 polling-delay = <1000>;
135 thermal-sensors = <&rtp>;
139 trip = <&cpu_alert0>;
140 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
145 cpu_alert0: cpu_alert0 {
147 temperature = <75000>;
154 temperature = <100000>;
163 reg = <0x40000000 0x80000000>;
167 compatible = "arm,armv7-timer";
168 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
169 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
170 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
171 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
175 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
176 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
177 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
181 #address-cells = <1>;
185 osc24M: clk@1c20050 {
187 compatible = "fixed-clock";
188 clock-frequency = <24000000>;
189 clock-output-names = "osc24M";
194 compatible = "fixed-clock";
195 clock-frequency = <32768>;
196 clock-output-names = "osc32k";
200 * The following two are dummy clocks, placeholders
201 * used in the gmac_tx clock. The gmac driver will
202 * choose one parent depending on the PHY interface
203 * mode, using clk_set_rate auto-reparenting.
205 * The actual TX clock rate is not controlled by the
208 mii_phy_tx_clk: clk@1 {
210 compatible = "fixed-clock";
211 clock-frequency = <25000000>;
212 clock-output-names = "mii_phy_tx";
215 gmac_int_tx_clk: clk@2 {
217 compatible = "fixed-clock";
218 clock-frequency = <125000000>;
219 clock-output-names = "gmac_int_tx";
222 gmac_tx_clk: clk@1c20164 {
224 compatible = "allwinner,sun7i-a20-gmac-clk";
225 reg = <0x01c20164 0x4>;
226 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
227 clock-output-names = "gmac_tx";
233 compatible = "allwinner,sun7i-a20-display-engine";
234 allwinner,pipelines = <&fe0>, <&fe1>;
239 compatible = "simple-bus";
240 #address-cells = <1>;
244 sram-controller@1c00000 {
245 compatible = "allwinner,sun4i-a10-sram-controller";
246 reg = <0x01c00000 0x30>;
247 #address-cells = <1>;
252 compatible = "mmio-sram";
253 reg = <0x00000000 0xc000>;
254 #address-cells = <1>;
256 ranges = <0 0x00000000 0xc000>;
258 emac_sram: sram-section@8000 {
259 compatible = "allwinner,sun4i-a10-sram-a3-a4";
260 reg = <0x8000 0x4000>;
266 compatible = "mmio-sram";
267 reg = <0x00010000 0x1000>;
268 #address-cells = <1>;
270 ranges = <0 0x00010000 0x1000>;
272 otg_sram: sram-section@0 {
273 compatible = "allwinner,sun4i-a10-sram-d";
274 reg = <0x0000 0x1000>;
280 nmi_intc: interrupt-controller@1c00030 {
281 compatible = "allwinner,sun7i-a20-sc-nmi";
282 interrupt-controller;
283 #interrupt-cells = <2>;
284 reg = <0x01c00030 0x0c>;
285 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
288 dma: dma-controller@1c02000 {
289 compatible = "allwinner,sun4i-a10-dma";
290 reg = <0x01c02000 0x1000>;
291 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
292 clocks = <&ccu CLK_AHB_DMA>;
297 compatible = "allwinner,sun4i-a10-nand";
298 reg = <0x01c03000 0x1000>;
299 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
300 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
301 clock-names = "ahb", "mod";
302 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
305 #address-cells = <1>;
310 compatible = "allwinner,sun4i-a10-spi";
311 reg = <0x01c05000 0x1000>;
312 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
313 clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
314 clock-names = "ahb", "mod";
315 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
316 <&dma SUN4I_DMA_DEDICATED 26>;
317 dma-names = "rx", "tx";
319 #address-cells = <1>;
325 compatible = "allwinner,sun4i-a10-spi";
326 reg = <0x01c06000 0x1000>;
327 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
328 clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
329 clock-names = "ahb", "mod";
330 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
331 <&dma SUN4I_DMA_DEDICATED 8>;
332 dma-names = "rx", "tx";
334 #address-cells = <1>;
339 emac: ethernet@1c0b000 {
340 compatible = "allwinner,sun4i-a10-emac";
341 reg = <0x01c0b000 0x1000>;
342 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
343 clocks = <&ccu CLK_AHB_EMAC>;
344 allwinner,sram = <&emac_sram 1>;
349 compatible = "allwinner,sun4i-a10-mdio";
350 reg = <0x01c0b080 0x14>;
352 #address-cells = <1>;
356 tcon0: lcd-controller@1c0c000 {
357 compatible = "allwinner,sun7i-a20-tcon";
358 reg = <0x01c0c000 0x1000>;
359 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
360 resets = <&ccu RST_TCON0>;
362 clocks = <&ccu CLK_AHB_LCD0>,
363 <&ccu CLK_TCON0_CH0>,
364 <&ccu CLK_TCON0_CH1>;
368 clock-output-names = "tcon0-pixel-clock";
369 dmas = <&dma SUN4I_DMA_DEDICATED 14>;
372 #address-cells = <1>;
376 #address-cells = <1>;
380 tcon0_in_be0: endpoint@0 {
382 remote-endpoint = <&be0_out_tcon0>;
385 tcon0_in_be1: endpoint@1 {
387 remote-endpoint = <&be1_out_tcon0>;
392 #address-cells = <1>;
396 tcon0_out_hdmi: endpoint@1 {
398 remote-endpoint = <&hdmi_in_tcon0>;
399 allwinner,tcon-channel = <1>;
405 tcon1: lcd-controller@1c0d000 {
406 compatible = "allwinner,sun7i-a20-tcon";
407 reg = <0x01c0d000 0x1000>;
408 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
409 resets = <&ccu RST_TCON1>;
411 clocks = <&ccu CLK_AHB_LCD1>,
412 <&ccu CLK_TCON1_CH0>,
413 <&ccu CLK_TCON1_CH1>;
417 clock-output-names = "tcon1-pixel-clock";
418 dmas = <&dma SUN4I_DMA_DEDICATED 15>;
421 #address-cells = <1>;
425 #address-cells = <1>;
429 tcon1_in_be0: endpoint@0 {
431 remote-endpoint = <&be0_out_tcon1>;
434 tcon1_in_be1: endpoint@1 {
436 remote-endpoint = <&be1_out_tcon1>;
441 #address-cells = <1>;
445 tcon1_out_hdmi: endpoint@1 {
447 remote-endpoint = <&hdmi_in_tcon1>;
448 allwinner,tcon-channel = <1>;
455 compatible = "allwinner,sun7i-a20-mmc";
456 reg = <0x01c0f000 0x1000>;
457 clocks = <&ccu CLK_AHB_MMC0>,
459 <&ccu CLK_MMC0_OUTPUT>,
460 <&ccu CLK_MMC0_SAMPLE>;
465 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
467 #address-cells = <1>;
472 compatible = "allwinner,sun7i-a20-mmc";
473 reg = <0x01c10000 0x1000>;
474 clocks = <&ccu CLK_AHB_MMC1>,
476 <&ccu CLK_MMC1_OUTPUT>,
477 <&ccu CLK_MMC1_SAMPLE>;
482 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
484 #address-cells = <1>;
489 compatible = "allwinner,sun7i-a20-mmc";
490 reg = <0x01c11000 0x1000>;
491 clocks = <&ccu CLK_AHB_MMC2>,
493 <&ccu CLK_MMC2_OUTPUT>,
494 <&ccu CLK_MMC2_SAMPLE>;
499 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
501 #address-cells = <1>;
506 compatible = "allwinner,sun7i-a20-mmc";
507 reg = <0x01c12000 0x1000>;
508 clocks = <&ccu CLK_AHB_MMC3>,
510 <&ccu CLK_MMC3_OUTPUT>,
511 <&ccu CLK_MMC3_SAMPLE>;
516 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
518 #address-cells = <1>;
522 usb_otg: usb@1c13000 {
523 compatible = "allwinner,sun4i-a10-musb";
524 reg = <0x01c13000 0x0400>;
525 clocks = <&ccu CLK_AHB_OTG>;
526 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
527 interrupt-names = "mc";
530 extcon = <&usbphy 0>;
531 allwinner,sram = <&otg_sram 1>;
535 usbphy: phy@1c13400 {
537 compatible = "allwinner,sun7i-a20-usb-phy";
538 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
539 reg-names = "phy_ctrl", "pmu1", "pmu2";
540 clocks = <&ccu CLK_USB_PHY>;
541 clock-names = "usb_phy";
542 resets = <&ccu RST_USB_PHY0>,
545 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
550 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
551 reg = <0x01c14000 0x100>;
552 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
553 clocks = <&ccu CLK_AHB_EHCI0>;
560 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
561 reg = <0x01c14400 0x100>;
562 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
563 clocks = <&ccu CLK_USB_OHCI0>, <&ccu CLK_AHB_OHCI0>;
569 crypto: crypto-engine@1c15000 {
570 compatible = "allwinner,sun7i-a20-crypto",
571 "allwinner,sun4i-a10-crypto";
572 reg = <0x01c15000 0x1000>;
573 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
574 clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
575 clock-names = "ahb", "mod";
579 compatible = "allwinner,sun7i-a20-hdmi",
580 "allwinner,sun5i-a10s-hdmi";
581 reg = <0x01c16000 0x1000>;
582 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
583 clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>,
584 <&ccu CLK_PLL_VIDEO0_2X>,
585 <&ccu CLK_PLL_VIDEO1_2X>;
586 clock-names = "ahb", "mod", "pll-0", "pll-1";
587 dmas = <&dma SUN4I_DMA_NORMAL 16>,
588 <&dma SUN4I_DMA_NORMAL 16>,
589 <&dma SUN4I_DMA_DEDICATED 24>;
590 dma-names = "ddc-tx", "ddc-rx", "audio-tx";
594 #address-cells = <1>;
598 #address-cells = <1>;
602 hdmi_in_tcon0: endpoint@0 {
604 remote-endpoint = <&tcon0_out_hdmi>;
607 hdmi_in_tcon1: endpoint@1 {
609 remote-endpoint = <&tcon1_out_hdmi>;
614 #address-cells = <1>;
622 compatible = "allwinner,sun4i-a10-spi";
623 reg = <0x01c17000 0x1000>;
624 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
625 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
626 clock-names = "ahb", "mod";
627 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
628 <&dma SUN4I_DMA_DEDICATED 28>;
629 dma-names = "rx", "tx";
631 #address-cells = <1>;
637 compatible = "allwinner,sun4i-a10-ahci";
638 reg = <0x01c18000 0x1000>;
639 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
640 clocks = <&ccu CLK_AHB_SATA>, <&ccu CLK_SATA>;
645 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
646 reg = <0x01c1c000 0x100>;
647 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
648 clocks = <&ccu CLK_AHB_EHCI1>;
655 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
656 reg = <0x01c1c400 0x100>;
657 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
658 clocks = <&ccu CLK_USB_OHCI1>, <&ccu CLK_AHB_OHCI1>;
665 compatible = "allwinner,sun4i-a10-spi";
666 reg = <0x01c1f000 0x1000>;
667 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
668 clocks = <&ccu CLK_AHB_SPI3>, <&ccu CLK_SPI3>;
669 clock-names = "ahb", "mod";
670 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
671 <&dma SUN4I_DMA_DEDICATED 30>;
672 dma-names = "rx", "tx";
674 #address-cells = <1>;
680 compatible = "allwinner,sun7i-a20-ccu";
681 reg = <0x01c20000 0x400>;
682 clocks = <&osc24M>, <&osc32k>;
683 clock-names = "hosc", "losc";
688 pio: pinctrl@1c20800 {
689 compatible = "allwinner,sun7i-a20-pinctrl";
690 reg = <0x01c20800 0x400>;
691 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
692 clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
693 clock-names = "apb", "hosc", "losc";
695 interrupt-controller;
696 #interrupt-cells = <3>;
699 can0_pins_a: can0@0 {
700 pins = "PH20", "PH21";
704 clk_out_a_pins_a: clk_out_a@0 {
706 function = "clk_out_a";
709 clk_out_b_pins_a: clk_out_b@0 {
711 function = "clk_out_b";
714 emac_pins_a: emac0@0 {
715 pins = "PA0", "PA1", "PA2",
716 "PA3", "PA4", "PA5", "PA6",
717 "PA7", "PA8", "PA9", "PA10",
718 "PA11", "PA12", "PA13", "PA14",
723 gmac_pins_mii_a: gmac_mii@0 {
724 pins = "PA0", "PA1", "PA2",
725 "PA3", "PA4", "PA5", "PA6",
726 "PA7", "PA8", "PA9", "PA10",
727 "PA11", "PA12", "PA13", "PA14",
732 gmac_pins_rgmii_a: gmac_rgmii@0 {
733 pins = "PA0", "PA1", "PA2",
734 "PA3", "PA4", "PA5", "PA6",
735 "PA7", "PA8", "PA10",
736 "PA11", "PA12", "PA13",
740 * data lines in RGMII mode use DDR mode
741 * and need a higher signal drive strength
743 drive-strength = <40>;
746 i2c0_pins_a: i2c0@0 {
751 i2c1_pins_a: i2c1@0 {
752 pins = "PB18", "PB19";
756 i2c2_pins_a: i2c2@0 {
757 pins = "PB20", "PB21";
761 i2c3_pins_a: i2c3@0 {
766 ir0_rx_pins_a: ir0@0 {
771 ir0_tx_pins_a: ir0@1 {
776 ir1_rx_pins_a: ir1@0 {
781 ir1_tx_pins_a: ir1@1 {
786 mmc0_pins_a: mmc0@0 {
787 pins = "PF0", "PF1", "PF2",
790 drive-strength = <30>;
794 mmc2_pins_a: mmc2@0 {
795 pins = "PC6", "PC7", "PC8",
796 "PC9", "PC10", "PC11";
798 drive-strength = <30>;
802 mmc3_pins_a: mmc3@0 {
803 pins = "PI4", "PI5", "PI6",
806 drive-strength = <30>;
810 ps20_pins_a: ps20@0 {
811 pins = "PI20", "PI21";
815 ps21_pins_a: ps21@0 {
816 pins = "PH12", "PH13";
820 pwm0_pins_a: pwm0@0 {
825 pwm1_pins_a: pwm1@0 {
830 spdif_tx_pins_a: spdif@0 {
836 spi0_pins_a: spi0@0 {
837 pins = "PI11", "PI12", "PI13";
841 spi0_cs0_pins_a: spi0_cs0@0 {
846 spi0_cs1_pins_a: spi0_cs1@0 {
851 spi1_pins_a: spi1@0 {
852 pins = "PI17", "PI18", "PI19";
856 spi1_cs0_pins_a: spi1_cs0@0 {
861 spi2_pins_a: spi2@0 {
862 pins = "PC20", "PC21", "PC22";
866 spi2_pins_b: spi2@1 {
867 pins = "PB15", "PB16", "PB17";
871 spi2_cs0_pins_a: spi2_cs0@0 {
876 spi2_cs0_pins_b: spi2_cs0@1 {
881 uart0_pins_a: uart0@0 {
882 pins = "PB22", "PB23";
886 uart2_pins_a: uart2@0 {
887 pins = "PI16", "PI17", "PI18", "PI19";
891 uart3_pins_a: uart3@0 {
892 pins = "PG6", "PG7", "PG8", "PG9";
896 uart3_pins_b: uart3@1 {
901 uart4_pins_a: uart4@0 {
902 pins = "PG10", "PG11";
906 uart4_pins_b: uart4@1 {
911 uart5_pins_a: uart5@0 {
912 pins = "PI10", "PI11";
916 uart6_pins_a: uart6@0 {
917 pins = "PI12", "PI13";
921 uart7_pins_a: uart7@0 {
922 pins = "PI20", "PI21";
928 compatible = "allwinner,sun4i-a10-timer";
929 reg = <0x01c20c00 0x90>;
930 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
931 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
932 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
933 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
934 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
935 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
939 wdt: watchdog@1c20c90 {
940 compatible = "allwinner,sun4i-a10-wdt";
941 reg = <0x01c20c90 0x10>;
945 compatible = "allwinner,sun7i-a20-rtc";
946 reg = <0x01c20d00 0x20>;
947 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
951 compatible = "allwinner,sun7i-a20-pwm";
952 reg = <0x01c20e00 0xc>;
958 spdif: spdif@1c21000 {
959 #sound-dai-cells = <0>;
960 compatible = "allwinner,sun4i-a10-spdif";
961 reg = <0x01c21000 0x400>;
962 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
963 clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
964 clock-names = "apb", "spdif";
965 dmas = <&dma SUN4I_DMA_NORMAL 2>,
966 <&dma SUN4I_DMA_NORMAL 2>;
967 dma-names = "rx", "tx";
972 compatible = "allwinner,sun4i-a10-ir";
973 clocks = <&ccu CLK_APB0_IR0>, <&ccu CLK_IR0>;
974 clock-names = "apb", "ir";
975 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
976 reg = <0x01c21800 0x40>;
981 compatible = "allwinner,sun4i-a10-ir";
982 clocks = <&ccu CLK_APB0_IR1>, <&ccu CLK_IR1>;
983 clock-names = "apb", "ir";
984 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
985 reg = <0x01c21c00 0x40>;
990 #sound-dai-cells = <0>;
991 compatible = "allwinner,sun4i-a10-i2s";
992 reg = <0x01c22000 0x400>;
993 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
994 clocks = <&ccu CLK_APB0_I2S1>, <&ccu CLK_I2S1>;
995 clock-names = "apb", "mod";
996 dmas = <&dma SUN4I_DMA_NORMAL 4>,
997 <&dma SUN4I_DMA_NORMAL 4>;
998 dma-names = "rx", "tx";
1003 #sound-dai-cells = <0>;
1004 compatible = "allwinner,sun4i-a10-i2s";
1005 reg = <0x01c22400 0x400>;
1006 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1007 clocks = <&ccu CLK_APB0_I2S0>, <&ccu CLK_I2S0>;
1008 clock-names = "apb", "mod";
1009 dmas = <&dma SUN4I_DMA_NORMAL 3>,
1010 <&dma SUN4I_DMA_NORMAL 3>;
1011 dma-names = "rx", "tx";
1012 status = "disabled";
1015 lradc: lradc@1c22800 {
1016 compatible = "allwinner,sun4i-a10-lradc-keys";
1017 reg = <0x01c22800 0x100>;
1018 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
1019 status = "disabled";
1022 codec: codec@1c22c00 {
1023 #sound-dai-cells = <0>;
1024 compatible = "allwinner,sun7i-a20-codec";
1025 reg = <0x01c22c00 0x40>;
1026 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1027 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
1028 clock-names = "apb", "codec";
1029 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1030 <&dma SUN4I_DMA_NORMAL 19>;
1031 dma-names = "rx", "tx";
1032 status = "disabled";
1035 sid: eeprom@1c23800 {
1036 compatible = "allwinner,sun7i-a20-sid";
1037 reg = <0x01c23800 0x200>;
1041 #sound-dai-cells = <0>;
1042 compatible = "allwinner,sun4i-a10-i2s";
1043 reg = <0x01c24400 0x400>;
1044 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
1045 clocks = <&ccu CLK_APB0_I2S2>, <&ccu CLK_I2S2>;
1046 clock-names = "apb", "mod";
1047 dmas = <&dma SUN4I_DMA_NORMAL 6>,
1048 <&dma SUN4I_DMA_NORMAL 6>;
1049 dma-names = "rx", "tx";
1050 status = "disabled";
1054 compatible = "allwinner,sun5i-a13-ts";
1055 reg = <0x01c25000 0x100>;
1056 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1057 #thermal-sensor-cells = <0>;
1060 uart0: serial@1c28000 {
1061 compatible = "snps,dw-apb-uart";
1062 reg = <0x01c28000 0x400>;
1063 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1066 clocks = <&ccu CLK_APB1_UART0>;
1067 status = "disabled";
1070 uart1: serial@1c28400 {
1071 compatible = "snps,dw-apb-uart";
1072 reg = <0x01c28400 0x400>;
1073 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1076 clocks = <&ccu CLK_APB1_UART1>;
1077 status = "disabled";
1080 uart2: serial@1c28800 {
1081 compatible = "snps,dw-apb-uart";
1082 reg = <0x01c28800 0x400>;
1083 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1086 clocks = <&ccu CLK_APB1_UART2>;
1087 status = "disabled";
1090 uart3: serial@1c28c00 {
1091 compatible = "snps,dw-apb-uart";
1092 reg = <0x01c28c00 0x400>;
1093 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
1096 clocks = <&ccu CLK_APB1_UART3>;
1097 status = "disabled";
1100 uart4: serial@1c29000 {
1101 compatible = "snps,dw-apb-uart";
1102 reg = <0x01c29000 0x400>;
1103 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1106 clocks = <&ccu CLK_APB1_UART4>;
1107 status = "disabled";
1110 uart5: serial@1c29400 {
1111 compatible = "snps,dw-apb-uart";
1112 reg = <0x01c29400 0x400>;
1113 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1116 clocks = <&ccu CLK_APB1_UART5>;
1117 status = "disabled";
1120 uart6: serial@1c29800 {
1121 compatible = "snps,dw-apb-uart";
1122 reg = <0x01c29800 0x400>;
1123 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1126 clocks = <&ccu CLK_APB1_UART6>;
1127 status = "disabled";
1130 uart7: serial@1c29c00 {
1131 compatible = "snps,dw-apb-uart";
1132 reg = <0x01c29c00 0x400>;
1133 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
1136 clocks = <&ccu CLK_APB1_UART7>;
1137 status = "disabled";
1141 compatible = "allwinner,sun4i-a10-ps2";
1142 reg = <0x01c2a000 0x400>;
1143 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1144 clocks = <&ccu CLK_APB1_PS20>;
1145 status = "disabled";
1149 compatible = "allwinner,sun4i-a10-ps2";
1150 reg = <0x01c2a400 0x400>;
1151 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1152 clocks = <&ccu CLK_APB1_PS21>;
1153 status = "disabled";
1157 compatible = "allwinner,sun7i-a20-i2c",
1158 "allwinner,sun4i-a10-i2c";
1159 reg = <0x01c2ac00 0x400>;
1160 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1161 clocks = <&ccu CLK_APB1_I2C0>;
1162 status = "disabled";
1163 #address-cells = <1>;
1168 compatible = "allwinner,sun7i-a20-i2c",
1169 "allwinner,sun4i-a10-i2c";
1170 reg = <0x01c2b000 0x400>;
1171 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1172 clocks = <&ccu CLK_APB1_I2C1>;
1173 status = "disabled";
1174 #address-cells = <1>;
1179 compatible = "allwinner,sun7i-a20-i2c",
1180 "allwinner,sun4i-a10-i2c";
1181 reg = <0x01c2b400 0x400>;
1182 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1183 clocks = <&ccu CLK_APB1_I2C2>;
1184 status = "disabled";
1185 #address-cells = <1>;
1190 compatible = "allwinner,sun7i-a20-i2c",
1191 "allwinner,sun4i-a10-i2c";
1192 reg = <0x01c2b800 0x400>;
1193 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1194 clocks = <&ccu CLK_APB1_I2C3>;
1195 status = "disabled";
1196 #address-cells = <1>;
1201 compatible = "allwinner,sun7i-a20-can",
1202 "allwinner,sun4i-a10-can";
1203 reg = <0x01c2bc00 0x400>;
1204 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
1205 clocks = <&ccu CLK_APB1_CAN>;
1206 status = "disabled";
1210 compatible = "allwinner,sun7i-a20-i2c",
1211 "allwinner,sun4i-a10-i2c";
1212 reg = <0x01c2c000 0x400>;
1213 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1214 clocks = <&ccu CLK_APB1_I2C4>;
1215 status = "disabled";
1216 #address-cells = <1>;
1220 gmac: ethernet@1c50000 {
1221 compatible = "allwinner,sun7i-a20-gmac";
1222 reg = <0x01c50000 0x10000>;
1223 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1224 interrupt-names = "macirq";
1225 clocks = <&ccu CLK_AHB_GMAC>, <&gmac_tx_clk>;
1226 clock-names = "stmmaceth", "allwinner_gmac_tx";
1229 snps,force_sf_dma_mode;
1230 status = "disabled";
1231 #address-cells = <1>;
1236 compatible = "allwinner,sun7i-a20-hstimer";
1237 reg = <0x01c60000 0x1000>;
1238 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1239 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1240 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1241 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1242 clocks = <&ccu CLK_AHB_HSTIMER>;
1245 gic: interrupt-controller@1c81000 {
1246 compatible = "arm,gic-400", "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1247 reg = <0x01c81000 0x1000>,
1248 <0x01c82000 0x2000>,
1249 <0x01c84000 0x2000>,
1250 <0x01c86000 0x2000>;
1251 interrupt-controller;
1252 #interrupt-cells = <3>;
1253 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1256 fe0: display-frontend@1e00000 {
1257 compatible = "allwinner,sun7i-a20-display-frontend";
1258 reg = <0x01e00000 0x20000>;
1259 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
1260 clocks = <&ccu CLK_AHB_DE_FE0>, <&ccu CLK_DE_FE0>,
1261 <&ccu CLK_DRAM_DE_FE0>;
1262 clock-names = "ahb", "mod",
1264 resets = <&ccu RST_DE_FE0>;
1267 #address-cells = <1>;
1271 #address-cells = <1>;
1275 fe0_out_be0: endpoint@0 {
1277 remote-endpoint = <&be0_in_fe0>;
1280 fe0_out_be1: endpoint@1 {
1282 remote-endpoint = <&be1_in_fe0>;
1288 fe1: display-frontend@1e20000 {
1289 compatible = "allwinner,sun7i-a20-display-frontend";
1290 reg = <0x01e20000 0x20000>;
1291 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
1292 clocks = <&ccu CLK_AHB_DE_FE1>, <&ccu CLK_DE_FE1>,
1293 <&ccu CLK_DRAM_DE_FE1>;
1294 clock-names = "ahb", "mod",
1296 resets = <&ccu RST_DE_FE1>;
1299 #address-cells = <1>;
1303 #address-cells = <1>;
1307 fe1_out_be0: endpoint@0 {
1309 remote-endpoint = <&be0_in_fe1>;
1312 fe1_out_be1: endpoint@1 {
1314 remote-endpoint = <&be1_in_fe1>;
1320 be1: display-backend@1e40000 {
1321 compatible = "allwinner,sun7i-a20-display-backend";
1322 reg = <0x01e40000 0x10000>;
1323 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
1324 clocks = <&ccu CLK_AHB_DE_BE1>, <&ccu CLK_DE_BE1>,
1325 <&ccu CLK_DRAM_DE_BE1>;
1326 clock-names = "ahb", "mod",
1328 resets = <&ccu RST_DE_BE1>;
1331 #address-cells = <1>;
1335 #address-cells = <1>;
1339 be1_in_fe0: endpoint@0 {
1341 remote-endpoint = <&fe0_out_be1>;
1344 be1_in_fe1: endpoint@1 {
1346 remote-endpoint = <&fe1_out_be1>;
1351 #address-cells = <1>;
1355 be1_out_tcon0: endpoint@0 {
1357 remote-endpoint = <&tcon0_in_be1>;
1360 be1_out_tcon1: endpoint@1 {
1362 remote-endpoint = <&tcon1_in_be1>;
1368 be0: display-backend@1e60000 {
1369 compatible = "allwinner,sun7i-a20-display-backend";
1370 reg = <0x01e60000 0x10000>;
1371 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
1372 clocks = <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
1373 <&ccu CLK_DRAM_DE_BE0>;
1374 clock-names = "ahb", "mod",
1376 resets = <&ccu RST_DE_BE0>;
1379 #address-cells = <1>;
1383 #address-cells = <1>;
1387 be0_in_fe0: endpoint@0 {
1389 remote-endpoint = <&fe0_out_be0>;
1392 be0_in_fe1: endpoint@1 {
1394 remote-endpoint = <&fe1_out_be0>;
1399 #address-cells = <1>;
1403 be0_out_tcon0: endpoint@0 {
1405 remote-endpoint = <&tcon0_in_be0>;
1408 be0_out_tcon1: endpoint@1 {
1410 remote-endpoint = <&tcon1_in_be0>;