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>;
631 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
632 reg = <0x01c14400 0x100>;
633 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
634 clocks = <&ccu CLK_USB_OHCI0>, <&ccu CLK_AHB_OHCI0>;
640 crypto: crypto-engine@1c15000 {
641 compatible = "allwinner,sun7i-a20-crypto",
642 "allwinner,sun4i-a10-crypto";
643 reg = <0x01c15000 0x1000>;
644 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
645 clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
646 clock-names = "ahb", "mod";
650 compatible = "allwinner,sun7i-a20-hdmi",
651 "allwinner,sun5i-a10s-hdmi";
652 reg = <0x01c16000 0x1000>;
653 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
654 clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>,
655 <&ccu CLK_PLL_VIDEO0_2X>,
656 <&ccu CLK_PLL_VIDEO1_2X>;
657 clock-names = "ahb", "mod", "pll-0", "pll-1";
658 dmas = <&dma SUN4I_DMA_NORMAL 16>,
659 <&dma SUN4I_DMA_NORMAL 16>,
660 <&dma SUN4I_DMA_DEDICATED 24>;
661 dma-names = "ddc-tx", "ddc-rx", "audio-tx";
665 #address-cells = <1>;
669 #address-cells = <1>;
673 hdmi_in_tcon0: endpoint@0 {
675 remote-endpoint = <&tcon0_out_hdmi>;
678 hdmi_in_tcon1: endpoint@1 {
680 remote-endpoint = <&tcon1_out_hdmi>;
691 compatible = "allwinner,sun4i-a10-spi";
692 reg = <0x01c17000 0x1000>;
693 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
694 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
695 clock-names = "ahb", "mod";
696 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
697 <&dma SUN4I_DMA_DEDICATED 28>;
698 dma-names = "rx", "tx";
700 #address-cells = <1>;
706 compatible = "allwinner,sun4i-a10-ahci";
707 reg = <0x01c18000 0x1000>;
708 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
709 clocks = <&ccu CLK_AHB_SATA>, <&ccu CLK_SATA>;
714 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
715 reg = <0x01c1c000 0x100>;
716 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
717 clocks = <&ccu CLK_AHB_EHCI1>;
724 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
725 reg = <0x01c1c400 0x100>;
726 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
727 clocks = <&ccu CLK_USB_OHCI1>, <&ccu CLK_AHB_OHCI1>;
734 compatible = "allwinner,sun4i-a10-spi";
735 reg = <0x01c1f000 0x1000>;
736 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
737 clocks = <&ccu CLK_AHB_SPI3>, <&ccu CLK_SPI3>;
738 clock-names = "ahb", "mod";
739 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
740 <&dma SUN4I_DMA_DEDICATED 30>;
741 dma-names = "rx", "tx";
743 #address-cells = <1>;
749 compatible = "allwinner,sun7i-a20-ccu";
750 reg = <0x01c20000 0x400>;
751 clocks = <&osc24M>, <&osc32k>;
752 clock-names = "hosc", "losc";
757 pio: pinctrl@1c20800 {
758 compatible = "allwinner,sun7i-a20-pinctrl";
759 reg = <0x01c20800 0x400>;
760 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
761 clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
762 clock-names = "apb", "hosc", "losc";
764 interrupt-controller;
765 #interrupt-cells = <3>;
769 can_pa_pins: can-pa-pins {
770 pins = "PA16", "PA17";
775 can_ph_pins: can-ph-pins {
776 pins = "PH20", "PH21";
781 clk_out_a_pin: clk-out-a-pin {
783 function = "clk_out_a";
787 clk_out_b_pin: clk-out-b-pin {
789 function = "clk_out_b";
793 csi0_8bits_pins: csi-8bits-pins {
794 pins = "PE0", "PE2", "PE3", "PE4", "PE5",
795 "PE6", "PE7", "PE8", "PE9", "PE10",
801 csi0_clk_pin: csi-clk-pin {
807 emac_pa_pins: emac-pa-pins {
808 pins = "PA0", "PA1", "PA2",
809 "PA3", "PA4", "PA5", "PA6",
810 "PA7", "PA8", "PA9", "PA10",
811 "PA11", "PA12", "PA13", "PA14",
817 emac_ph_pins: emac-ph-pins {
818 pins = "PH8", "PH9", "PH10", "PH11",
819 "PH14", "PH15", "PH16", "PH17",
820 "PH18", "PH19", "PH20", "PH21",
821 "PH22", "PH23", "PH24", "PH25",
827 gmac_mii_pins: gmac-mii-pins {
828 pins = "PA0", "PA1", "PA2",
829 "PA3", "PA4", "PA5", "PA6",
830 "PA7", "PA8", "PA9", "PA10",
831 "PA11", "PA12", "PA13", "PA14",
837 gmac_rgmii_pins: gmac-rgmii-pins {
838 pins = "PA0", "PA1", "PA2",
839 "PA3", "PA4", "PA5", "PA6",
840 "PA7", "PA8", "PA10",
841 "PA11", "PA12", "PA13",
845 * data lines in RGMII mode use DDR mode
846 * and need a higher signal drive strength
848 drive-strength = <40>;
852 i2c0_pins: i2c0-pins {
858 i2c1_pins: i2c1-pins {
859 pins = "PB18", "PB19";
864 i2c2_pins: i2c2-pins {
865 pins = "PB20", "PB21";
870 i2c3_pins: i2c3-pins {
876 ir0_rx_pin: ir0-rx-pin {
882 ir0_tx_pin: ir0-tx-pin {
888 ir1_rx_pin: ir1-rx-pin {
894 ir1_tx_pin: ir1-tx-pin {
900 mmc0_pins: mmc0-pins {
901 pins = "PF0", "PF1", "PF2",
904 drive-strength = <30>;
909 mmc2_pins: mmc2-pins {
910 pins = "PC6", "PC7", "PC8",
911 "PC9", "PC10", "PC11";
913 drive-strength = <30>;
918 mmc3_pins: mmc3-pins {
919 pins = "PI4", "PI5", "PI6",
922 drive-strength = <30>;
927 ps2_0_pins: ps2-0-pins {
928 pins = "PI20", "PI21";
933 ps2_1_ph_pins: ps2-1-ph-pins {
934 pins = "PH12", "PH13";
951 spdif_tx_pin: spdif-tx-pin {
958 spi0_pi_pins: spi0-pi-pins {
959 pins = "PI11", "PI12", "PI13";
964 spi0_cs0_pi_pin: spi0-cs0-pi-pin {
970 spi0_cs1_pi_pin: spi0-cs1-pi-pin {
976 spi1_pi_pins: spi1-pi-pins {
977 pins = "PI17", "PI18", "PI19";
982 spi1_cs0_pi_pin: spi1-cs0-pi-pin {
988 spi2_pb_pins: spi2-pb-pins {
989 pins = "PB15", "PB16", "PB17";
994 spi2_cs0_pb_pin: spi2-cs0-pb-pin {
1000 spi2_pc_pins: spi2-pc-pins {
1001 pins = "PC20", "PC21", "PC22";
1006 spi2_cs0_pc_pin: spi2-cs0-pc-pin {
1012 uart0_pb_pins: uart0-pb-pins {
1013 pins = "PB22", "PB23";
1018 uart0_pf_pins: uart0-pf-pins {
1019 pins = "PF2", "PF4";
1024 uart1_pa_pins: uart1-pa-pins {
1025 pins = "PA10", "PA11";
1030 uart1_cts_rts_pa_pins: uart1-cts-rts-pa-pins {
1031 pins = "PA12", "PA13";
1036 uart2_pa_pins: uart2-pa-pins {
1037 pins = "PA2", "PA3";
1042 uart2_cts_rts_pa_pins: uart2-cts-rts-pa-pins {
1043 pins = "PA0", "PA1";
1048 uart2_pi_pins: uart2-pi-pins {
1049 pins = "PI18", "PI19";
1054 uart2_cts_rts_pi_pins: uart2-cts-rts-pi-pins {
1055 pins = "PI16", "PI17";
1060 uart3_pg_pins: uart3-pg-pins {
1061 pins = "PG6", "PG7";
1066 uart3_cts_rts_pg_pins: uart3-cts-rts-pg-pins {
1067 pins = "PG8", "PG9";
1072 uart3_ph_pins: uart3-ph-pins {
1073 pins = "PH0", "PH1";
1078 uart3_cts_rts_ph_pins: uart3-cts-rts-ph-pins {
1079 pins = "PH2", "PH3";
1084 uart4_pg_pins: uart4-pg-pins {
1085 pins = "PG10", "PG11";
1090 uart4_ph_pins: uart4-ph-pins {
1091 pins = "PH4", "PH5";
1096 uart5_ph_pins: uart5-ph-pins {
1097 pins = "PH6", "PH7";
1102 uart5_pi_pins: uart5-pi-pins {
1103 pins = "PI10", "PI11";
1108 uart6_pa_pins: uart6-pa-pins {
1109 pins = "PA12", "PA13";
1114 uart6_pi_pins: uart6-pi-pins {
1115 pins = "PI12", "PI13";
1120 uart7_pa_pins: uart7-pa-pins {
1121 pins = "PA14", "PA15";
1126 uart7_pi_pins: uart7-pi-pins {
1127 pins = "PI20", "PI21";
1133 compatible = "allwinner,sun4i-a10-timer";
1134 reg = <0x01c20c00 0x90>;
1135 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1136 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1137 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1138 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1139 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1140 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
1144 wdt: watchdog@1c20c90 {
1145 compatible = "allwinner,sun4i-a10-wdt";
1146 reg = <0x01c20c90 0x10>;
1147 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1152 compatible = "allwinner,sun7i-a20-rtc";
1153 reg = <0x01c20d00 0x20>;
1154 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1158 compatible = "allwinner,sun7i-a20-pwm";
1159 reg = <0x01c20e00 0xc>;
1162 status = "disabled";
1165 spdif: spdif@1c21000 {
1166 #sound-dai-cells = <0>;
1167 compatible = "allwinner,sun4i-a10-spdif";
1168 reg = <0x01c21000 0x400>;
1169 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1170 clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
1171 clock-names = "apb", "spdif";
1172 dmas = <&dma SUN4I_DMA_NORMAL 2>,
1173 <&dma SUN4I_DMA_NORMAL 2>;
1174 dma-names = "rx", "tx";
1175 status = "disabled";
1179 compatible = "allwinner,sun4i-a10-ir";
1180 clocks = <&ccu CLK_APB0_IR0>, <&ccu CLK_IR0>;
1181 clock-names = "apb", "ir";
1182 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1183 reg = <0x01c21800 0x40>;
1184 status = "disabled";
1188 compatible = "allwinner,sun4i-a10-ir";
1189 clocks = <&ccu CLK_APB0_IR1>, <&ccu CLK_IR1>;
1190 clock-names = "apb", "ir";
1191 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
1192 reg = <0x01c21c00 0x40>;
1193 status = "disabled";
1197 #sound-dai-cells = <0>;
1198 compatible = "allwinner,sun4i-a10-i2s";
1199 reg = <0x01c22000 0x400>;
1200 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1201 clocks = <&ccu CLK_APB0_I2S1>, <&ccu CLK_I2S1>;
1202 clock-names = "apb", "mod";
1203 dmas = <&dma SUN4I_DMA_NORMAL 4>,
1204 <&dma SUN4I_DMA_NORMAL 4>;
1205 dma-names = "rx", "tx";
1206 status = "disabled";
1210 #sound-dai-cells = <0>;
1211 compatible = "allwinner,sun4i-a10-i2s";
1212 reg = <0x01c22400 0x400>;
1213 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1214 clocks = <&ccu CLK_APB0_I2S0>, <&ccu CLK_I2S0>;
1215 clock-names = "apb", "mod";
1216 dmas = <&dma SUN4I_DMA_NORMAL 3>,
1217 <&dma SUN4I_DMA_NORMAL 3>;
1218 dma-names = "rx", "tx";
1219 status = "disabled";
1222 lradc: lradc@1c22800 {
1223 compatible = "allwinner,sun4i-a10-lradc-keys";
1224 reg = <0x01c22800 0x100>;
1225 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
1226 status = "disabled";
1229 codec: codec@1c22c00 {
1230 #sound-dai-cells = <0>;
1231 compatible = "allwinner,sun7i-a20-codec";
1232 reg = <0x01c22c00 0x40>;
1233 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1234 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
1235 clock-names = "apb", "codec";
1236 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1237 <&dma SUN4I_DMA_NORMAL 19>;
1238 dma-names = "rx", "tx";
1239 status = "disabled";
1242 sid: eeprom@1c23800 {
1243 compatible = "allwinner,sun7i-a20-sid";
1244 reg = <0x01c23800 0x200>;
1248 #sound-dai-cells = <0>;
1249 compatible = "allwinner,sun4i-a10-i2s";
1250 reg = <0x01c24400 0x400>;
1251 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
1252 clocks = <&ccu CLK_APB0_I2S2>, <&ccu CLK_I2S2>;
1253 clock-names = "apb", "mod";
1254 dmas = <&dma SUN4I_DMA_NORMAL 6>,
1255 <&dma SUN4I_DMA_NORMAL 6>;
1256 dma-names = "rx", "tx";
1257 status = "disabled";
1261 compatible = "allwinner,sun5i-a13-ts";
1262 reg = <0x01c25000 0x100>;
1263 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1264 #thermal-sensor-cells = <0>;
1267 uart0: serial@1c28000 {
1268 compatible = "snps,dw-apb-uart";
1269 reg = <0x01c28000 0x400>;
1270 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1273 clocks = <&ccu CLK_APB1_UART0>;
1274 status = "disabled";
1277 uart1: serial@1c28400 {
1278 compatible = "snps,dw-apb-uart";
1279 reg = <0x01c28400 0x400>;
1280 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1283 clocks = <&ccu CLK_APB1_UART1>;
1284 status = "disabled";
1287 uart2: serial@1c28800 {
1288 compatible = "snps,dw-apb-uart";
1289 reg = <0x01c28800 0x400>;
1290 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1293 clocks = <&ccu CLK_APB1_UART2>;
1294 status = "disabled";
1297 uart3: serial@1c28c00 {
1298 compatible = "snps,dw-apb-uart";
1299 reg = <0x01c28c00 0x400>;
1300 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
1303 clocks = <&ccu CLK_APB1_UART3>;
1304 status = "disabled";
1307 uart4: serial@1c29000 {
1308 compatible = "snps,dw-apb-uart";
1309 reg = <0x01c29000 0x400>;
1310 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1313 clocks = <&ccu CLK_APB1_UART4>;
1314 status = "disabled";
1317 uart5: serial@1c29400 {
1318 compatible = "snps,dw-apb-uart";
1319 reg = <0x01c29400 0x400>;
1320 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1323 clocks = <&ccu CLK_APB1_UART5>;
1324 status = "disabled";
1327 uart6: serial@1c29800 {
1328 compatible = "snps,dw-apb-uart";
1329 reg = <0x01c29800 0x400>;
1330 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1333 clocks = <&ccu CLK_APB1_UART6>;
1334 status = "disabled";
1337 uart7: serial@1c29c00 {
1338 compatible = "snps,dw-apb-uart";
1339 reg = <0x01c29c00 0x400>;
1340 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
1343 clocks = <&ccu CLK_APB1_UART7>;
1344 status = "disabled";
1348 compatible = "allwinner,sun4i-a10-ps2";
1349 reg = <0x01c2a000 0x400>;
1350 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1351 clocks = <&ccu CLK_APB1_PS20>;
1352 status = "disabled";
1356 compatible = "allwinner,sun4i-a10-ps2";
1357 reg = <0x01c2a400 0x400>;
1358 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1359 clocks = <&ccu CLK_APB1_PS21>;
1360 status = "disabled";
1364 compatible = "allwinner,sun7i-a20-i2c",
1365 "allwinner,sun4i-a10-i2c";
1366 reg = <0x01c2ac00 0x400>;
1367 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1368 clocks = <&ccu CLK_APB1_I2C0>;
1369 pinctrl-names = "default";
1370 pinctrl-0 = <&i2c0_pins>;
1371 status = "disabled";
1372 #address-cells = <1>;
1377 compatible = "allwinner,sun7i-a20-i2c",
1378 "allwinner,sun4i-a10-i2c";
1379 reg = <0x01c2b000 0x400>;
1380 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1381 clocks = <&ccu CLK_APB1_I2C1>;
1382 pinctrl-names = "default";
1383 pinctrl-0 = <&i2c1_pins>;
1384 status = "disabled";
1385 #address-cells = <1>;
1390 compatible = "allwinner,sun7i-a20-i2c",
1391 "allwinner,sun4i-a10-i2c";
1392 reg = <0x01c2b400 0x400>;
1393 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1394 clocks = <&ccu CLK_APB1_I2C2>;
1395 pinctrl-names = "default";
1396 pinctrl-0 = <&i2c2_pins>;
1397 status = "disabled";
1398 #address-cells = <1>;
1403 compatible = "allwinner,sun7i-a20-i2c",
1404 "allwinner,sun4i-a10-i2c";
1405 reg = <0x01c2b800 0x400>;
1406 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1407 clocks = <&ccu CLK_APB1_I2C3>;
1408 pinctrl-names = "default";
1409 pinctrl-0 = <&i2c3_pins>;
1410 status = "disabled";
1411 #address-cells = <1>;
1416 compatible = "allwinner,sun7i-a20-can",
1417 "allwinner,sun4i-a10-can";
1418 reg = <0x01c2bc00 0x400>;
1419 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
1420 clocks = <&ccu CLK_APB1_CAN>;
1421 status = "disabled";
1425 compatible = "allwinner,sun7i-a20-i2c",
1426 "allwinner,sun4i-a10-i2c";
1427 reg = <0x01c2c000 0x400>;
1428 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1429 clocks = <&ccu CLK_APB1_I2C4>;
1430 status = "disabled";
1431 #address-cells = <1>;
1436 compatible = "allwinner,sun7i-a20-mali", "arm,mali-400";
1437 reg = <0x01c40000 0x10000>;
1438 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
1439 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
1440 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
1441 <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
1442 <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
1443 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
1444 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
1445 interrupt-names = "gp",
1452 clocks = <&ccu CLK_AHB_GPU>, <&ccu CLK_GPU>;
1453 clock-names = "bus", "core";
1454 resets = <&ccu RST_GPU>;
1456 assigned-clocks = <&ccu CLK_GPU>;
1457 assigned-clock-rates = <384000000>;
1460 gmac: ethernet@1c50000 {
1461 compatible = "allwinner,sun7i-a20-gmac";
1462 reg = <0x01c50000 0x10000>;
1463 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1464 interrupt-names = "macirq";
1465 clocks = <&ccu CLK_AHB_GMAC>, <&gmac_tx_clk>;
1466 clock-names = "stmmaceth", "allwinner_gmac_tx";
1469 snps,force_sf_dma_mode;
1470 status = "disabled";
1473 compatible = "snps,dwmac-mdio";
1474 #address-cells = <1>;
1480 compatible = "allwinner,sun7i-a20-hstimer";
1481 reg = <0x01c60000 0x1000>;
1482 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1483 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1484 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1485 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1486 clocks = <&ccu CLK_AHB_HSTIMER>;
1489 gic: interrupt-controller@1c81000 {
1490 compatible = "arm,gic-400";
1491 reg = <0x01c81000 0x1000>,
1492 <0x01c82000 0x2000>,
1493 <0x01c84000 0x2000>,
1494 <0x01c86000 0x2000>;
1495 interrupt-controller;
1496 #interrupt-cells = <3>;
1497 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1500 fe0: display-frontend@1e00000 {
1501 compatible = "allwinner,sun7i-a20-display-frontend";
1502 reg = <0x01e00000 0x20000>;
1503 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
1504 clocks = <&ccu CLK_AHB_DE_FE0>, <&ccu CLK_DE_FE0>,
1505 <&ccu CLK_DRAM_DE_FE0>;
1506 clock-names = "ahb", "mod",
1508 resets = <&ccu RST_DE_FE0>;
1511 #address-cells = <1>;
1515 #address-cells = <1>;
1519 fe0_out_be0: endpoint@0 {
1521 remote-endpoint = <&be0_in_fe0>;
1524 fe0_out_be1: endpoint@1 {
1526 remote-endpoint = <&be1_in_fe0>;
1532 fe1: display-frontend@1e20000 {
1533 compatible = "allwinner,sun7i-a20-display-frontend";
1534 reg = <0x01e20000 0x20000>;
1535 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
1536 clocks = <&ccu CLK_AHB_DE_FE1>, <&ccu CLK_DE_FE1>,
1537 <&ccu CLK_DRAM_DE_FE1>;
1538 clock-names = "ahb", "mod",
1540 resets = <&ccu RST_DE_FE1>;
1543 #address-cells = <1>;
1547 #address-cells = <1>;
1551 fe1_out_be0: endpoint@0 {
1553 remote-endpoint = <&be0_in_fe1>;
1556 fe1_out_be1: endpoint@1 {
1558 remote-endpoint = <&be1_in_fe1>;
1564 be1: display-backend@1e40000 {
1565 compatible = "allwinner,sun7i-a20-display-backend";
1566 reg = <0x01e40000 0x10000>;
1567 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
1568 clocks = <&ccu CLK_AHB_DE_BE1>, <&ccu CLK_DE_BE1>,
1569 <&ccu CLK_DRAM_DE_BE1>;
1570 clock-names = "ahb", "mod",
1572 resets = <&ccu RST_DE_BE1>;
1575 #address-cells = <1>;
1579 #address-cells = <1>;
1583 be1_in_fe0: endpoint@0 {
1585 remote-endpoint = <&fe0_out_be1>;
1588 be1_in_fe1: endpoint@1 {
1590 remote-endpoint = <&fe1_out_be1>;
1595 #address-cells = <1>;
1599 be1_out_tcon0: endpoint@0 {
1601 remote-endpoint = <&tcon0_in_be1>;
1604 be1_out_tcon1: endpoint@1 {
1606 remote-endpoint = <&tcon1_in_be1>;
1612 be0: display-backend@1e60000 {
1613 compatible = "allwinner,sun7i-a20-display-backend";
1614 reg = <0x01e60000 0x10000>;
1615 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
1616 clocks = <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
1617 <&ccu CLK_DRAM_DE_BE0>;
1618 clock-names = "ahb", "mod",
1620 resets = <&ccu RST_DE_BE0>;
1623 #address-cells = <1>;
1627 #address-cells = <1>;
1631 be0_in_fe0: endpoint@0 {
1633 remote-endpoint = <&fe0_out_be0>;
1636 be0_in_fe1: endpoint@1 {
1638 remote-endpoint = <&fe1_out_be0>;
1643 #address-cells = <1>;
1647 be0_out_tcon0: endpoint@0 {
1649 remote-endpoint = <&tcon0_in_be0>;
1652 be0_out_tcon1: endpoint@1 {
1654 remote-endpoint = <&tcon1_in_be0>;