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 <dt-bindings/interrupt-controller/arm-gic.h>
46 #include <dt-bindings/thermal/thermal.h>
47 #include <dt-bindings/dma/sun4i-a10.h>
48 #include <dt-bindings/clock/sun7i-a20-ccu.h>
49 #include <dt-bindings/reset/sun4i-a10-ccu.h>
52 interrupt-parent = <&gic>;
65 framebuffer-lcd0-hdmi {
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>;
86 framebuffer-lcd0-tve0 {
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>;
122 compatible = "arm,cortex-a7";
125 clocks = <&ccu CLK_CPU>;
126 clock-latency = <244144>; /* 8 32k periods */
137 #cooling-cells = <2>;
144 polling-delay-passive = <250>;
145 polling-delay = <1000>;
146 thermal-sensors = <&rtp>;
150 trip = <&cpu_alert0>;
151 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
152 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
157 cpu_alert0: cpu_alert0 {
159 temperature = <75000>;
166 temperature = <100000>;
175 #address-cells = <1>;
179 /* Address must be kept in the lower 256 MiBs of DRAM for VE. */
181 compatible = "shared-dma-pool";
183 alloc-ranges = <0x4a000000 0x6000000>;
190 compatible = "arm,armv7-timer";
191 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
192 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
193 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
194 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
198 compatible = "arm,cortex-a7-pmu";
199 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
200 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
204 #address-cells = <1>;
210 compatible = "fixed-clock";
211 clock-frequency = <24000000>;
212 clock-output-names = "osc24M";
217 compatible = "fixed-clock";
218 clock-frequency = <32768>;
219 clock-output-names = "osc32k";
223 * The following two are dummy clocks, placeholders
224 * used in the gmac_tx clock. The gmac driver will
225 * choose one parent depending on the PHY interface
226 * mode, using clk_set_rate auto-reparenting.
228 * The actual TX clock rate is not controlled by the
231 mii_phy_tx_clk: clk-mii-phy-tx {
233 compatible = "fixed-clock";
234 clock-frequency = <25000000>;
235 clock-output-names = "mii_phy_tx";
238 gmac_int_tx_clk: clk-gmac-int-tx {
240 compatible = "fixed-clock";
241 clock-frequency = <125000000>;
242 clock-output-names = "gmac_int_tx";
245 gmac_tx_clk: clk@1c20164 {
247 compatible = "allwinner,sun7i-a20-gmac-clk";
248 reg = <0x01c20164 0x4>;
249 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
250 clock-output-names = "gmac_tx";
256 compatible = "allwinner,sun7i-a20-display-engine";
257 allwinner,pipelines = <&fe0>, <&fe1>;
262 compatible = "simple-bus";
263 #address-cells = <1>;
267 system-control@1c00000 {
268 compatible = "allwinner,sun7i-a20-system-control",
269 "allwinner,sun4i-a10-system-control";
270 reg = <0x01c00000 0x30>;
271 #address-cells = <1>;
276 compatible = "mmio-sram";
277 reg = <0x00000000 0xc000>;
278 #address-cells = <1>;
280 ranges = <0 0x00000000 0xc000>;
282 emac_sram: sram-section@8000 {
283 compatible = "allwinner,sun7i-a20-sram-a3-a4",
284 "allwinner,sun4i-a10-sram-a3-a4";
285 reg = <0x8000 0x4000>;
291 compatible = "mmio-sram";
292 reg = <0x00010000 0x1000>;
293 #address-cells = <1>;
295 ranges = <0 0x00010000 0x1000>;
297 otg_sram: sram-section@0 {
298 compatible = "allwinner,sun7i-a20-sram-d",
299 "allwinner,sun4i-a10-sram-d";
300 reg = <0x0000 0x1000>;
305 sram_c: sram@1d00000 {
306 compatible = "mmio-sram";
307 reg = <0x01d00000 0xd0000>;
308 #address-cells = <1>;
310 ranges = <0 0x01d00000 0xd0000>;
312 ve_sram: sram-section@0 {
313 compatible = "allwinner,sun7i-a20-sram-c1",
314 "allwinner,sun4i-a10-sram-c1";
315 reg = <0x000000 0x80000>;
320 nmi_intc: interrupt-controller@1c00030 {
321 compatible = "allwinner,sun7i-a20-sc-nmi";
322 interrupt-controller;
323 #interrupt-cells = <2>;
324 reg = <0x01c00030 0x0c>;
325 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
328 dma: dma-controller@1c02000 {
329 compatible = "allwinner,sun4i-a10-dma";
330 reg = <0x01c02000 0x1000>;
331 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
332 clocks = <&ccu CLK_AHB_DMA>;
336 nfc: nand-controller@1c03000 {
337 compatible = "allwinner,sun4i-a10-nand";
338 reg = <0x01c03000 0x1000>;
339 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
340 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
341 clock-names = "ahb", "mod";
342 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
345 #address-cells = <1>;
350 compatible = "allwinner,sun4i-a10-spi";
351 reg = <0x01c05000 0x1000>;
352 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
353 clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
354 clock-names = "ahb", "mod";
355 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
356 <&dma SUN4I_DMA_DEDICATED 26>;
357 dma-names = "rx", "tx";
359 #address-cells = <1>;
365 compatible = "allwinner,sun4i-a10-spi";
366 reg = <0x01c06000 0x1000>;
367 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
368 clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
369 clock-names = "ahb", "mod";
370 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
371 <&dma SUN4I_DMA_DEDICATED 8>;
372 dma-names = "rx", "tx";
374 #address-cells = <1>;
380 compatible = "allwinner,sun7i-a20-csi0";
381 reg = <0x01c09000 0x1000>;
382 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
383 clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI0>,
384 <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>;
385 clock-names = "bus", "mod", "isp", "ram";
386 resets = <&ccu RST_CSI0>;
390 emac: ethernet@1c0b000 {
391 compatible = "allwinner,sun4i-a10-emac";
392 reg = <0x01c0b000 0x1000>;
393 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
394 clocks = <&ccu CLK_AHB_EMAC>;
395 allwinner,sram = <&emac_sram 1>;
400 compatible = "allwinner,sun4i-a10-mdio";
401 reg = <0x01c0b080 0x14>;
403 #address-cells = <1>;
407 tcon0: lcd-controller@1c0c000 {
408 compatible = "allwinner,sun7i-a20-tcon";
409 reg = <0x01c0c000 0x1000>;
410 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
411 resets = <&ccu RST_TCON0>;
413 clocks = <&ccu CLK_AHB_LCD0>,
414 <&ccu CLK_TCON0_CH0>,
415 <&ccu CLK_TCON0_CH1>;
419 clock-output-names = "tcon0-pixel-clock";
421 dmas = <&dma SUN4I_DMA_DEDICATED 14>;
424 #address-cells = <1>;
428 #address-cells = <1>;
432 tcon0_in_be0: endpoint@0 {
434 remote-endpoint = <&be0_out_tcon0>;
437 tcon0_in_be1: endpoint@1 {
439 remote-endpoint = <&be1_out_tcon0>;
444 #address-cells = <1>;
448 tcon0_out_hdmi: endpoint@1 {
450 remote-endpoint = <&hdmi_in_tcon0>;
451 allwinner,tcon-channel = <1>;
457 tcon1: lcd-controller@1c0d000 {
458 compatible = "allwinner,sun7i-a20-tcon";
459 reg = <0x01c0d000 0x1000>;
460 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
461 resets = <&ccu RST_TCON1>;
463 clocks = <&ccu CLK_AHB_LCD1>,
464 <&ccu CLK_TCON1_CH0>,
465 <&ccu CLK_TCON1_CH1>;
469 clock-output-names = "tcon1-pixel-clock";
471 dmas = <&dma SUN4I_DMA_DEDICATED 15>;
474 #address-cells = <1>;
478 #address-cells = <1>;
482 tcon1_in_be0: endpoint@0 {
484 remote-endpoint = <&be0_out_tcon1>;
487 tcon1_in_be1: endpoint@1 {
489 remote-endpoint = <&be1_out_tcon1>;
494 #address-cells = <1>;
498 tcon1_out_hdmi: endpoint@1 {
500 remote-endpoint = <&hdmi_in_tcon1>;
501 allwinner,tcon-channel = <1>;
507 video-codec@1c0e000 {
508 compatible = "allwinner,sun7i-a20-video-engine";
509 reg = <0x01c0e000 0x1000>;
510 clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>,
512 clock-names = "ahb", "mod", "ram";
513 resets = <&ccu RST_VE>;
514 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
515 allwinner,sram = <&ve_sram 1>;
519 compatible = "allwinner,sun7i-a20-mmc";
520 reg = <0x01c0f000 0x1000>;
521 clocks = <&ccu CLK_AHB_MMC0>,
523 <&ccu CLK_MMC0_OUTPUT>,
524 <&ccu CLK_MMC0_SAMPLE>;
529 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
530 pinctrl-names = "default";
531 pinctrl-0 = <&mmc0_pins>;
533 #address-cells = <1>;
538 compatible = "allwinner,sun7i-a20-mmc";
539 reg = <0x01c10000 0x1000>;
540 clocks = <&ccu CLK_AHB_MMC1>,
542 <&ccu CLK_MMC1_OUTPUT>,
543 <&ccu CLK_MMC1_SAMPLE>;
548 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
550 #address-cells = <1>;
555 compatible = "allwinner,sun7i-a20-mmc";
556 reg = <0x01c11000 0x1000>;
557 clocks = <&ccu CLK_AHB_MMC2>,
559 <&ccu CLK_MMC2_OUTPUT>,
560 <&ccu CLK_MMC2_SAMPLE>;
565 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
566 pinctrl-names = "default";
567 pinctrl-0 = <&mmc2_pins>;
569 #address-cells = <1>;
574 compatible = "allwinner,sun7i-a20-mmc";
575 reg = <0x01c12000 0x1000>;
576 clocks = <&ccu CLK_AHB_MMC3>,
578 <&ccu CLK_MMC3_OUTPUT>,
579 <&ccu CLK_MMC3_SAMPLE>;
584 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
585 pinctrl-names = "default";
586 pinctrl-0 = <&mmc3_pins>;
588 #address-cells = <1>;
592 usb_otg: usb@1c13000 {
593 compatible = "allwinner,sun4i-a10-musb";
594 reg = <0x01c13000 0x0400>;
595 clocks = <&ccu CLK_AHB_OTG>;
596 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
597 interrupt-names = "mc";
600 extcon = <&usbphy 0>;
601 allwinner,sram = <&otg_sram 1>;
606 usbphy: phy@1c13400 {
608 compatible = "allwinner,sun7i-a20-usb-phy";
609 reg = <0x01c13400 0x10>, <0x01c14800 0x4>, <0x01c1c800 0x4>;
610 reg-names = "phy_ctrl", "pmu1", "pmu2";
611 clocks = <&ccu CLK_USB_PHY>;
612 clock-names = "usb_phy";
613 resets = <&ccu RST_USB_PHY0>,
616 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
621 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
622 reg = <0x01c14000 0x100>;
623 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
624 clocks = <&ccu CLK_AHB_EHCI0>;
630 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
631 reg = <0x01c14400 0x100>;
632 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
633 clocks = <&ccu CLK_USB_OHCI0>, <&ccu CLK_AHB_OHCI0>;
638 crypto: crypto-engine@1c15000 {
639 compatible = "allwinner,sun7i-a20-crypto",
640 "allwinner,sun4i-a10-crypto";
641 reg = <0x01c15000 0x1000>;
642 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
643 clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
644 clock-names = "ahb", "mod";
648 compatible = "allwinner,sun7i-a20-hdmi",
649 "allwinner,sun5i-a10s-hdmi";
650 reg = <0x01c16000 0x1000>;
651 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
652 clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>,
653 <&ccu CLK_PLL_VIDEO0_2X>,
654 <&ccu CLK_PLL_VIDEO1_2X>;
655 clock-names = "ahb", "mod", "pll-0", "pll-1";
656 dmas = <&dma SUN4I_DMA_NORMAL 16>,
657 <&dma SUN4I_DMA_NORMAL 16>,
658 <&dma SUN4I_DMA_DEDICATED 24>;
659 dma-names = "ddc-tx", "ddc-rx", "audio-tx";
663 #address-cells = <1>;
667 #address-cells = <1>;
671 hdmi_in_tcon0: endpoint@0 {
673 remote-endpoint = <&tcon0_out_hdmi>;
676 hdmi_in_tcon1: endpoint@1 {
678 remote-endpoint = <&tcon1_out_hdmi>;
689 compatible = "allwinner,sun4i-a10-spi";
690 reg = <0x01c17000 0x1000>;
691 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
692 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
693 clock-names = "ahb", "mod";
694 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
695 <&dma SUN4I_DMA_DEDICATED 28>;
696 dma-names = "rx", "tx";
698 #address-cells = <1>;
704 compatible = "allwinner,sun4i-a10-ahci";
705 reg = <0x01c18000 0x1000>;
706 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
707 clocks = <&ccu CLK_AHB_SATA>, <&ccu CLK_SATA>;
712 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
713 reg = <0x01c1c000 0x100>;
714 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
715 clocks = <&ccu CLK_AHB_EHCI1>;
721 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
722 reg = <0x01c1c400 0x100>;
723 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
724 clocks = <&ccu CLK_USB_OHCI1>, <&ccu CLK_AHB_OHCI1>;
730 compatible = "allwinner,sun4i-a10-spi";
731 reg = <0x01c1f000 0x1000>;
732 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
733 clocks = <&ccu CLK_AHB_SPI3>, <&ccu CLK_SPI3>;
734 clock-names = "ahb", "mod";
735 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
736 <&dma SUN4I_DMA_DEDICATED 30>;
737 dma-names = "rx", "tx";
739 #address-cells = <1>;
745 compatible = "allwinner,sun7i-a20-ccu";
746 reg = <0x01c20000 0x400>;
747 clocks = <&osc24M>, <&osc32k>;
748 clock-names = "hosc", "losc";
753 pio: pinctrl@1c20800 {
754 compatible = "allwinner,sun7i-a20-pinctrl";
755 reg = <0x01c20800 0x400>;
756 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
757 clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
758 clock-names = "apb", "hosc", "losc";
760 interrupt-controller;
761 #interrupt-cells = <3>;
765 can_pa_pins: can-pa-pins {
766 pins = "PA16", "PA17";
771 can_ph_pins: can-ph-pins {
772 pins = "PH20", "PH21";
777 clk_out_a_pin: clk-out-a-pin {
779 function = "clk_out_a";
783 clk_out_b_pin: clk-out-b-pin {
785 function = "clk_out_b";
789 csi0_8bits_pins: csi-8bits-pins {
790 pins = "PE0", "PE2", "PE3", "PE4", "PE5",
791 "PE6", "PE7", "PE8", "PE9", "PE10",
797 csi0_clk_pin: csi-clk-pin {
803 emac_pa_pins: emac-pa-pins {
804 pins = "PA0", "PA1", "PA2",
805 "PA3", "PA4", "PA5", "PA6",
806 "PA7", "PA8", "PA9", "PA10",
807 "PA11", "PA12", "PA13", "PA14",
813 emac_ph_pins: emac-ph-pins {
814 pins = "PH8", "PH9", "PH10", "PH11",
815 "PH14", "PH15", "PH16", "PH17",
816 "PH18", "PH19", "PH20", "PH21",
817 "PH22", "PH23", "PH24", "PH25",
823 gmac_mii_pins: gmac-mii-pins {
824 pins = "PA0", "PA1", "PA2",
825 "PA3", "PA4", "PA5", "PA6",
826 "PA7", "PA8", "PA9", "PA10",
827 "PA11", "PA12", "PA13", "PA14",
833 gmac_rgmii_pins: gmac-rgmii-pins {
834 pins = "PA0", "PA1", "PA2",
835 "PA3", "PA4", "PA5", "PA6",
836 "PA7", "PA8", "PA10",
837 "PA11", "PA12", "PA13",
841 * data lines in RGMII mode use DDR mode
842 * and need a higher signal drive strength
844 drive-strength = <40>;
848 i2c0_pins: i2c0-pins {
854 i2c1_pins: i2c1-pins {
855 pins = "PB18", "PB19";
860 i2c2_pins: i2c2-pins {
861 pins = "PB20", "PB21";
866 i2c3_pins: i2c3-pins {
872 ir0_rx_pin: ir0-rx-pin {
878 ir0_tx_pin: ir0-tx-pin {
884 ir1_rx_pin: ir1-rx-pin {
890 ir1_tx_pin: ir1-tx-pin {
896 mmc0_pins: mmc0-pins {
897 pins = "PF0", "PF1", "PF2",
900 drive-strength = <30>;
905 mmc2_pins: mmc2-pins {
906 pins = "PC6", "PC7", "PC8",
907 "PC9", "PC10", "PC11";
909 drive-strength = <30>;
914 mmc3_pins: mmc3-pins {
915 pins = "PI4", "PI5", "PI6",
918 drive-strength = <30>;
923 ps2_0_pins: ps2-0-pins {
924 pins = "PI20", "PI21";
929 ps2_1_ph_pins: ps2-1-ph-pins {
930 pins = "PH12", "PH13";
947 spdif_tx_pin: spdif-tx-pin {
954 spi0_pi_pins: spi0-pi-pins {
955 pins = "PI11", "PI12", "PI13";
960 spi0_cs0_pi_pin: spi0-cs0-pi-pin {
966 spi0_cs1_pi_pin: spi0-cs1-pi-pin {
972 spi1_pi_pins: spi1-pi-pins {
973 pins = "PI17", "PI18", "PI19";
978 spi1_cs0_pi_pin: spi1-cs0-pi-pin {
984 spi2_pb_pins: spi2-pb-pins {
985 pins = "PB15", "PB16", "PB17";
990 spi2_cs0_pb_pin: spi2-cs0-pb-pin {
996 spi2_pc_pins: spi2-pc-pins {
997 pins = "PC20", "PC21", "PC22";
1002 spi2_cs0_pc_pin: spi2-cs0-pc-pin {
1008 uart0_pb_pins: uart0-pb-pins {
1009 pins = "PB22", "PB23";
1014 uart0_pf_pins: uart0-pf-pins {
1015 pins = "PF2", "PF4";
1020 uart1_pa_pins: uart1-pa-pins {
1021 pins = "PA10", "PA11";
1026 uart1_cts_rts_pa_pins: uart1-cts-rts-pa-pins {
1027 pins = "PA12", "PA13";
1032 uart2_pa_pins: uart2-pa-pins {
1033 pins = "PA2", "PA3";
1038 uart2_cts_rts_pa_pins: uart2-cts-rts-pa-pins {
1039 pins = "PA0", "PA1";
1044 uart2_pi_pins: uart2-pi-pins {
1045 pins = "PI18", "PI19";
1050 uart2_cts_rts_pi_pins: uart2-cts-rts-pi-pins {
1051 pins = "PI16", "PI17";
1056 uart3_pg_pins: uart3-pg-pins {
1057 pins = "PG6", "PG7";
1062 uart3_cts_rts_pg_pins: uart3-cts-rts-pg-pins {
1063 pins = "PG8", "PG9";
1068 uart3_ph_pins: uart3-ph-pins {
1069 pins = "PH0", "PH1";
1074 uart3_cts_rts_ph_pins: uart3-cts-rts-ph-pins {
1075 pins = "PH2", "PH3";
1080 uart4_pg_pins: uart4-pg-pins {
1081 pins = "PG10", "PG11";
1086 uart4_ph_pins: uart4-ph-pins {
1087 pins = "PH4", "PH5";
1092 uart5_ph_pins: uart5-ph-pins {
1093 pins = "PH6", "PH7";
1098 uart5_pi_pins: uart5-pi-pins {
1099 pins = "PI10", "PI11";
1104 uart6_pa_pins: uart6-pa-pins {
1105 pins = "PA12", "PA13";
1110 uart6_pi_pins: uart6-pi-pins {
1111 pins = "PI12", "PI13";
1116 uart7_pa_pins: uart7-pa-pins {
1117 pins = "PA14", "PA15";
1122 uart7_pi_pins: uart7-pi-pins {
1123 pins = "PI20", "PI21";
1129 compatible = "allwinner,sun4i-a10-timer";
1130 reg = <0x01c20c00 0x90>;
1131 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1132 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1133 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1134 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1135 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1136 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
1140 wdt: watchdog@1c20c90 {
1141 compatible = "allwinner,sun4i-a10-wdt";
1142 reg = <0x01c20c90 0x10>;
1143 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1148 compatible = "allwinner,sun7i-a20-rtc";
1149 reg = <0x01c20d00 0x20>;
1150 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1154 compatible = "allwinner,sun7i-a20-pwm";
1155 reg = <0x01c20e00 0xc>;
1158 status = "disabled";
1161 spdif: spdif@1c21000 {
1162 #sound-dai-cells = <0>;
1163 compatible = "allwinner,sun4i-a10-spdif";
1164 reg = <0x01c21000 0x400>;
1165 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1166 clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
1167 clock-names = "apb", "spdif";
1168 dmas = <&dma SUN4I_DMA_NORMAL 2>,
1169 <&dma SUN4I_DMA_NORMAL 2>;
1170 dma-names = "rx", "tx";
1171 status = "disabled";
1175 compatible = "allwinner,sun4i-a10-ir";
1176 clocks = <&ccu CLK_APB0_IR0>, <&ccu CLK_IR0>;
1177 clock-names = "apb", "ir";
1178 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1179 reg = <0x01c21800 0x40>;
1180 status = "disabled";
1184 compatible = "allwinner,sun4i-a10-ir";
1185 clocks = <&ccu CLK_APB0_IR1>, <&ccu CLK_IR1>;
1186 clock-names = "apb", "ir";
1187 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
1188 reg = <0x01c21c00 0x40>;
1189 status = "disabled";
1193 #sound-dai-cells = <0>;
1194 compatible = "allwinner,sun4i-a10-i2s";
1195 reg = <0x01c22000 0x400>;
1196 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1197 clocks = <&ccu CLK_APB0_I2S1>, <&ccu CLK_I2S1>;
1198 clock-names = "apb", "mod";
1199 dmas = <&dma SUN4I_DMA_NORMAL 4>,
1200 <&dma SUN4I_DMA_NORMAL 4>;
1201 dma-names = "rx", "tx";
1202 status = "disabled";
1206 #sound-dai-cells = <0>;
1207 compatible = "allwinner,sun4i-a10-i2s";
1208 reg = <0x01c22400 0x400>;
1209 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1210 clocks = <&ccu CLK_APB0_I2S0>, <&ccu CLK_I2S0>;
1211 clock-names = "apb", "mod";
1212 dmas = <&dma SUN4I_DMA_NORMAL 3>,
1213 <&dma SUN4I_DMA_NORMAL 3>;
1214 dma-names = "rx", "tx";
1215 status = "disabled";
1218 lradc: lradc@1c22800 {
1219 compatible = "allwinner,sun4i-a10-lradc-keys";
1220 reg = <0x01c22800 0x100>;
1221 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
1222 status = "disabled";
1225 codec: codec@1c22c00 {
1226 #sound-dai-cells = <0>;
1227 compatible = "allwinner,sun7i-a20-codec";
1228 reg = <0x01c22c00 0x40>;
1229 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1230 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
1231 clock-names = "apb", "codec";
1232 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1233 <&dma SUN4I_DMA_NORMAL 19>;
1234 dma-names = "rx", "tx";
1235 status = "disabled";
1238 sid: eeprom@1c23800 {
1239 compatible = "allwinner,sun7i-a20-sid";
1240 reg = <0x01c23800 0x200>;
1244 #sound-dai-cells = <0>;
1245 compatible = "allwinner,sun4i-a10-i2s";
1246 reg = <0x01c24400 0x400>;
1247 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
1248 clocks = <&ccu CLK_APB0_I2S2>, <&ccu CLK_I2S2>;
1249 clock-names = "apb", "mod";
1250 dmas = <&dma SUN4I_DMA_NORMAL 6>,
1251 <&dma SUN4I_DMA_NORMAL 6>;
1252 dma-names = "rx", "tx";
1253 status = "disabled";
1257 compatible = "allwinner,sun5i-a13-ts";
1258 reg = <0x01c25000 0x100>;
1259 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1260 #thermal-sensor-cells = <0>;
1263 uart0: serial@1c28000 {
1264 compatible = "snps,dw-apb-uart";
1265 reg = <0x01c28000 0x400>;
1266 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1269 clocks = <&ccu CLK_APB1_UART0>;
1270 status = "disabled";
1273 uart1: serial@1c28400 {
1274 compatible = "snps,dw-apb-uart";
1275 reg = <0x01c28400 0x400>;
1276 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1279 clocks = <&ccu CLK_APB1_UART1>;
1280 status = "disabled";
1283 uart2: serial@1c28800 {
1284 compatible = "snps,dw-apb-uart";
1285 reg = <0x01c28800 0x400>;
1286 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1289 clocks = <&ccu CLK_APB1_UART2>;
1290 status = "disabled";
1293 uart3: serial@1c28c00 {
1294 compatible = "snps,dw-apb-uart";
1295 reg = <0x01c28c00 0x400>;
1296 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
1299 clocks = <&ccu CLK_APB1_UART3>;
1300 status = "disabled";
1303 uart4: serial@1c29000 {
1304 compatible = "snps,dw-apb-uart";
1305 reg = <0x01c29000 0x400>;
1306 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1309 clocks = <&ccu CLK_APB1_UART4>;
1310 status = "disabled";
1313 uart5: serial@1c29400 {
1314 compatible = "snps,dw-apb-uart";
1315 reg = <0x01c29400 0x400>;
1316 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1319 clocks = <&ccu CLK_APB1_UART5>;
1320 status = "disabled";
1323 uart6: serial@1c29800 {
1324 compatible = "snps,dw-apb-uart";
1325 reg = <0x01c29800 0x400>;
1326 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1329 clocks = <&ccu CLK_APB1_UART6>;
1330 status = "disabled";
1333 uart7: serial@1c29c00 {
1334 compatible = "snps,dw-apb-uart";
1335 reg = <0x01c29c00 0x400>;
1336 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
1339 clocks = <&ccu CLK_APB1_UART7>;
1340 status = "disabled";
1344 compatible = "allwinner,sun4i-a10-ps2";
1345 reg = <0x01c2a000 0x400>;
1346 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1347 clocks = <&ccu CLK_APB1_PS20>;
1348 status = "disabled";
1352 compatible = "allwinner,sun4i-a10-ps2";
1353 reg = <0x01c2a400 0x400>;
1354 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1355 clocks = <&ccu CLK_APB1_PS21>;
1356 status = "disabled";
1360 compatible = "allwinner,sun7i-a20-i2c",
1361 "allwinner,sun4i-a10-i2c";
1362 reg = <0x01c2ac00 0x400>;
1363 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1364 clocks = <&ccu CLK_APB1_I2C0>;
1365 pinctrl-names = "default";
1366 pinctrl-0 = <&i2c0_pins>;
1367 status = "disabled";
1368 #address-cells = <1>;
1373 compatible = "allwinner,sun7i-a20-i2c",
1374 "allwinner,sun4i-a10-i2c";
1375 reg = <0x01c2b000 0x400>;
1376 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1377 clocks = <&ccu CLK_APB1_I2C1>;
1378 pinctrl-names = "default";
1379 pinctrl-0 = <&i2c1_pins>;
1380 status = "disabled";
1381 #address-cells = <1>;
1386 compatible = "allwinner,sun7i-a20-i2c",
1387 "allwinner,sun4i-a10-i2c";
1388 reg = <0x01c2b400 0x400>;
1389 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1390 clocks = <&ccu CLK_APB1_I2C2>;
1391 pinctrl-names = "default";
1392 pinctrl-0 = <&i2c2_pins>;
1393 status = "disabled";
1394 #address-cells = <1>;
1399 compatible = "allwinner,sun7i-a20-i2c",
1400 "allwinner,sun4i-a10-i2c";
1401 reg = <0x01c2b800 0x400>;
1402 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1403 clocks = <&ccu CLK_APB1_I2C3>;
1404 pinctrl-names = "default";
1405 pinctrl-0 = <&i2c3_pins>;
1406 status = "disabled";
1407 #address-cells = <1>;
1412 compatible = "allwinner,sun7i-a20-can",
1413 "allwinner,sun4i-a10-can";
1414 reg = <0x01c2bc00 0x400>;
1415 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
1416 clocks = <&ccu CLK_APB1_CAN>;
1417 status = "disabled";
1421 compatible = "allwinner,sun7i-a20-i2c",
1422 "allwinner,sun4i-a10-i2c";
1423 reg = <0x01c2c000 0x400>;
1424 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1425 clocks = <&ccu CLK_APB1_I2C4>;
1426 status = "disabled";
1427 #address-cells = <1>;
1432 compatible = "allwinner,sun7i-a20-mali", "arm,mali-400";
1433 reg = <0x01c40000 0x10000>;
1434 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
1435 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
1436 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
1437 <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
1438 <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
1439 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
1440 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
1441 interrupt-names = "gp",
1448 clocks = <&ccu CLK_AHB_GPU>, <&ccu CLK_GPU>;
1449 clock-names = "bus", "core";
1450 resets = <&ccu RST_GPU>;
1452 assigned-clocks = <&ccu CLK_GPU>;
1453 assigned-clock-rates = <384000000>;
1456 gmac: ethernet@1c50000 {
1457 compatible = "allwinner,sun7i-a20-gmac";
1458 reg = <0x01c50000 0x10000>;
1459 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1460 interrupt-names = "macirq";
1461 clocks = <&ccu CLK_AHB_GMAC>, <&gmac_tx_clk>;
1462 clock-names = "stmmaceth", "allwinner_gmac_tx";
1465 snps,force_sf_dma_mode;
1466 status = "disabled";
1469 compatible = "snps,dwmac-mdio";
1470 #address-cells = <1>;
1476 compatible = "allwinner,sun7i-a20-hstimer";
1477 reg = <0x01c60000 0x1000>;
1478 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1479 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1480 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1481 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1482 clocks = <&ccu CLK_AHB_HSTIMER>;
1485 gic: interrupt-controller@1c81000 {
1486 compatible = "arm,gic-400";
1487 reg = <0x01c81000 0x1000>,
1488 <0x01c82000 0x2000>,
1489 <0x01c84000 0x2000>,
1490 <0x01c86000 0x2000>;
1491 interrupt-controller;
1492 #interrupt-cells = <3>;
1493 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1496 fe0: display-frontend@1e00000 {
1497 compatible = "allwinner,sun7i-a20-display-frontend";
1498 reg = <0x01e00000 0x20000>;
1499 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
1500 clocks = <&ccu CLK_AHB_DE_FE0>, <&ccu CLK_DE_FE0>,
1501 <&ccu CLK_DRAM_DE_FE0>;
1502 clock-names = "ahb", "mod",
1504 resets = <&ccu RST_DE_FE0>;
1507 #address-cells = <1>;
1511 #address-cells = <1>;
1515 fe0_out_be0: endpoint@0 {
1517 remote-endpoint = <&be0_in_fe0>;
1520 fe0_out_be1: endpoint@1 {
1522 remote-endpoint = <&be1_in_fe0>;
1528 fe1: display-frontend@1e20000 {
1529 compatible = "allwinner,sun7i-a20-display-frontend";
1530 reg = <0x01e20000 0x20000>;
1531 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
1532 clocks = <&ccu CLK_AHB_DE_FE1>, <&ccu CLK_DE_FE1>,
1533 <&ccu CLK_DRAM_DE_FE1>;
1534 clock-names = "ahb", "mod",
1536 resets = <&ccu RST_DE_FE1>;
1539 #address-cells = <1>;
1543 #address-cells = <1>;
1547 fe1_out_be0: endpoint@0 {
1549 remote-endpoint = <&be0_in_fe1>;
1552 fe1_out_be1: endpoint@1 {
1554 remote-endpoint = <&be1_in_fe1>;
1560 be1: display-backend@1e40000 {
1561 compatible = "allwinner,sun7i-a20-display-backend";
1562 reg = <0x01e40000 0x10000>;
1563 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
1564 clocks = <&ccu CLK_AHB_DE_BE1>, <&ccu CLK_DE_BE1>,
1565 <&ccu CLK_DRAM_DE_BE1>;
1566 clock-names = "ahb", "mod",
1568 resets = <&ccu RST_DE_BE1>;
1571 #address-cells = <1>;
1575 #address-cells = <1>;
1579 be1_in_fe0: endpoint@0 {
1581 remote-endpoint = <&fe0_out_be1>;
1584 be1_in_fe1: endpoint@1 {
1586 remote-endpoint = <&fe1_out_be1>;
1591 #address-cells = <1>;
1595 be1_out_tcon0: endpoint@0 {
1597 remote-endpoint = <&tcon0_in_be1>;
1600 be1_out_tcon1: endpoint@1 {
1602 remote-endpoint = <&tcon1_in_be1>;
1608 be0: display-backend@1e60000 {
1609 compatible = "allwinner,sun7i-a20-display-backend";
1610 reg = <0x01e60000 0x10000>;
1611 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
1612 clocks = <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
1613 <&ccu CLK_DRAM_DE_BE0>;
1614 clock-names = "ahb", "mod",
1616 resets = <&ccu RST_DE_BE0>;
1619 #address-cells = <1>;
1623 #address-cells = <1>;
1627 be0_in_fe0: endpoint@0 {
1629 remote-endpoint = <&fe0_out_be0>;
1632 be0_in_fe1: endpoint@1 {
1634 remote-endpoint = <&fe1_out_be0>;
1639 #address-cells = <1>;
1643 be0_out_tcon0: endpoint@0 {
1645 remote-endpoint = <&tcon0_in_be0>;
1648 be0_out_tcon1: endpoint@1 {
1650 remote-endpoint = <&tcon1_in_be0>;