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>
48 #include <dt-bindings/clock/sun6i-a31-ccu.h>
49 #include <dt-bindings/reset/sun6i-a31-ccu.h>
52 interrupt-parent = <&gic>;
65 simplefb_hdmi: framebuffer-lcd0-hdmi {
66 compatible = "allwinner,simple-framebuffer",
68 allwinner,pipeline = "de_be0-lcd0-hdmi";
69 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
70 <&ccu CLK_AHB1_HDMI>, <&ccu CLK_DRAM_BE0>,
71 <&ccu CLK_IEP_DRC0>, <&ccu CLK_BE0>,
72 <&ccu CLK_LCD0_CH1>, <&ccu CLK_HDMI>;
76 simplefb_lcd: framebuffer-lcd0 {
77 compatible = "allwinner,simple-framebuffer",
79 allwinner,pipeline = "de_be0-lcd0";
80 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
81 <&ccu CLK_DRAM_BE0>, <&ccu CLK_IEP_DRC0>,
82 <&ccu CLK_BE0>, <&ccu CLK_LCD0_CH0>;
88 compatible = "arm,armv7-timer";
89 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
90 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
92 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
93 clock-frequency = <24000000>;
94 arm,cpu-registers-not-fw-configured;
98 enable-method = "allwinner,sun6i-a31";
103 compatible = "arm,cortex-a7";
106 clocks = <&ccu CLK_CPU>;
107 clock-latency = <244144>; /* 8 32k periods */
115 #cooling-cells = <2>;
119 compatible = "arm,cortex-a7";
122 clocks = <&ccu CLK_CPU>;
123 clock-latency = <244144>; /* 8 32k periods */
131 #cooling-cells = <2>;
135 compatible = "arm,cortex-a7";
138 clocks = <&ccu CLK_CPU>;
139 clock-latency = <244144>; /* 8 32k periods */
147 #cooling-cells = <2>;
151 compatible = "arm,cortex-a7";
154 clocks = <&ccu CLK_CPU>;
155 clock-latency = <244144>; /* 8 32k periods */
163 #cooling-cells = <2>;
170 polling-delay-passive = <250>;
171 polling-delay = <1000>;
172 thermal-sensors = <&rtp>;
176 trip = <&cpu_alert0>;
177 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
178 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
179 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
180 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
185 cpu_alert0: cpu_alert0 {
187 temperature = <70000>;
194 temperature = <100000>;
203 compatible = "arm,cortex-a7-pmu";
204 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
205 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
206 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
207 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
211 #address-cells = <1>;
217 compatible = "fixed-clock";
218 clock-frequency = <24000000>;
219 clock-accuracy = <50000>;
220 clock-output-names = "osc24M";
225 compatible = "fixed-clock";
226 clock-frequency = <32768>;
227 clock-accuracy = <50000>;
228 clock-output-names = "ext_osc32k";
232 * The following two are dummy clocks, placeholders
233 * used in the gmac_tx clock. The gmac driver will
234 * choose one parent depending on the PHY interface
235 * mode, using clk_set_rate auto-reparenting.
237 * The actual TX clock rate is not controlled by the
240 mii_phy_tx_clk: clk-mii-phy-tx {
242 compatible = "fixed-clock";
243 clock-frequency = <25000000>;
244 clock-output-names = "mii_phy_tx";
247 gmac_int_tx_clk: clk-gmac-int-tx {
249 compatible = "fixed-clock";
250 clock-frequency = <125000000>;
251 clock-output-names = "gmac_int_tx";
254 gmac_tx_clk: clk@1c200d0 {
256 compatible = "allwinner,sun7i-a20-gmac-clk";
257 reg = <0x01c200d0 0x4>;
258 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
259 clock-output-names = "gmac_tx";
264 compatible = "allwinner,sun6i-a31-display-engine";
265 allwinner,pipelines = <&fe0>, <&fe1>;
270 compatible = "simple-bus";
271 #address-cells = <1>;
275 dma: dma-controller@1c02000 {
276 compatible = "allwinner,sun6i-a31-dma";
277 reg = <0x01c02000 0x1000>;
278 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
279 clocks = <&ccu CLK_AHB1_DMA>;
280 resets = <&ccu RST_AHB1_DMA>;
284 tcon0: lcd-controller@1c0c000 {
285 compatible = "allwinner,sun6i-a31-tcon";
286 reg = <0x01c0c000 0x1000>;
287 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
288 resets = <&ccu RST_AHB1_LCD0>;
290 clocks = <&ccu CLK_AHB1_LCD0>,
296 clock-output-names = "tcon0-pixel-clock";
300 #address-cells = <1>;
304 #address-cells = <1>;
308 tcon0_in_drc0: endpoint@0 {
310 remote-endpoint = <&drc0_out_tcon0>;
313 tcon0_in_drc1: endpoint@1 {
315 remote-endpoint = <&drc1_out_tcon0>;
320 #address-cells = <1>;
324 tcon0_out_hdmi: endpoint@1 {
326 remote-endpoint = <&hdmi_in_tcon0>;
327 allwinner,tcon-channel = <1>;
333 tcon1: lcd-controller@1c0d000 {
334 compatible = "allwinner,sun6i-a31-tcon";
335 reg = <0x01c0d000 0x1000>;
336 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
337 resets = <&ccu RST_AHB1_LCD1>;
339 clocks = <&ccu CLK_AHB1_LCD1>,
345 clock-output-names = "tcon1-pixel-clock";
349 #address-cells = <1>;
353 #address-cells = <1>;
357 tcon1_in_drc0: endpoint@0 {
359 remote-endpoint = <&drc0_out_tcon1>;
362 tcon1_in_drc1: endpoint@1 {
364 remote-endpoint = <&drc1_out_tcon1>;
369 #address-cells = <1>;
373 tcon1_out_hdmi: endpoint@1 {
375 remote-endpoint = <&hdmi_in_tcon1>;
376 allwinner,tcon-channel = <1>;
383 compatible = "allwinner,sun7i-a20-mmc";
384 reg = <0x01c0f000 0x1000>;
385 clocks = <&ccu CLK_AHB1_MMC0>,
387 <&ccu CLK_MMC0_OUTPUT>,
388 <&ccu CLK_MMC0_SAMPLE>;
393 resets = <&ccu RST_AHB1_MMC0>;
395 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
396 pinctrl-names = "default";
397 pinctrl-0 = <&mmc0_pins>;
399 #address-cells = <1>;
404 compatible = "allwinner,sun7i-a20-mmc";
405 reg = <0x01c10000 0x1000>;
406 clocks = <&ccu CLK_AHB1_MMC1>,
408 <&ccu CLK_MMC1_OUTPUT>,
409 <&ccu CLK_MMC1_SAMPLE>;
414 resets = <&ccu RST_AHB1_MMC1>;
416 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
417 pinctrl-names = "default";
418 pinctrl-0 = <&mmc1_pins>;
420 #address-cells = <1>;
425 compatible = "allwinner,sun7i-a20-mmc";
426 reg = <0x01c11000 0x1000>;
427 clocks = <&ccu CLK_AHB1_MMC2>,
429 <&ccu CLK_MMC2_OUTPUT>,
430 <&ccu CLK_MMC2_SAMPLE>;
435 resets = <&ccu RST_AHB1_MMC2>;
437 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
439 #address-cells = <1>;
444 compatible = "allwinner,sun7i-a20-mmc";
445 reg = <0x01c12000 0x1000>;
446 clocks = <&ccu CLK_AHB1_MMC3>,
448 <&ccu CLK_MMC3_OUTPUT>,
449 <&ccu CLK_MMC3_SAMPLE>;
454 resets = <&ccu RST_AHB1_MMC3>;
456 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
458 #address-cells = <1>;
463 compatible = "allwinner,sun6i-a31-hdmi";
464 reg = <0x01c16000 0x1000>;
465 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
466 clocks = <&ccu CLK_AHB1_HDMI>, <&ccu CLK_HDMI>,
468 <&ccu CLK_PLL_VIDEO0_2X>,
469 <&ccu CLK_PLL_VIDEO1_2X>;
470 clock-names = "ahb", "mod", "ddc", "pll-0", "pll-1";
471 resets = <&ccu RST_AHB1_HDMI>;
473 dma-names = "ddc-tx", "ddc-rx", "audio-tx";
474 dmas = <&dma 13>, <&dma 13>, <&dma 14>;
478 #address-cells = <1>;
482 #address-cells = <1>;
486 hdmi_in_tcon0: endpoint@0 {
488 remote-endpoint = <&tcon0_out_hdmi>;
491 hdmi_in_tcon1: endpoint@1 {
493 remote-endpoint = <&tcon1_out_hdmi>;
503 usb_otg: usb@1c19000 {
504 compatible = "allwinner,sun6i-a31-musb";
505 reg = <0x01c19000 0x0400>;
506 clocks = <&ccu CLK_AHB1_OTG>;
507 resets = <&ccu RST_AHB1_OTG>;
508 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
509 interrupt-names = "mc";
512 extcon = <&usbphy 0>;
517 usbphy: phy@1c19400 {
518 compatible = "allwinner,sun6i-a31-usb-phy";
519 reg = <0x01c19400 0x10>,
522 reg-names = "phy_ctrl",
525 clocks = <&ccu CLK_USB_PHY0>,
528 clock-names = "usb0_phy",
531 resets = <&ccu RST_USB_PHY0>,
534 reset-names = "usb0_reset",
542 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
543 reg = <0x01c1a000 0x100>;
544 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
545 clocks = <&ccu CLK_AHB1_EHCI0>;
546 resets = <&ccu RST_AHB1_EHCI0>;
553 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
554 reg = <0x01c1a400 0x100>;
555 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
556 clocks = <&ccu CLK_AHB1_OHCI0>, <&ccu CLK_USB_OHCI0>;
557 resets = <&ccu RST_AHB1_OHCI0>;
564 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
565 reg = <0x01c1b000 0x100>;
566 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
567 clocks = <&ccu CLK_AHB1_EHCI1>;
568 resets = <&ccu RST_AHB1_EHCI1>;
575 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
576 reg = <0x01c1b400 0x100>;
577 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
578 clocks = <&ccu CLK_AHB1_OHCI1>, <&ccu CLK_USB_OHCI1>;
579 resets = <&ccu RST_AHB1_OHCI1>;
586 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
587 reg = <0x01c1c400 0x100>;
588 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
589 clocks = <&ccu CLK_AHB1_OHCI2>, <&ccu CLK_USB_OHCI2>;
590 resets = <&ccu RST_AHB1_OHCI2>;
595 compatible = "allwinner,sun6i-a31-ccu";
596 reg = <0x01c20000 0x400>;
597 clocks = <&osc24M>, <&rtc 0>;
598 clock-names = "hosc", "losc";
603 pio: pinctrl@1c20800 {
604 compatible = "allwinner,sun6i-a31-pinctrl";
605 reg = <0x01c20800 0x400>;
606 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
607 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
608 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
609 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
610 clocks = <&ccu CLK_APB1_PIO>, <&osc24M>, <&rtc 0>;
611 clock-names = "apb", "hosc", "losc";
613 interrupt-controller;
614 #interrupt-cells = <3>;
617 gmac_gmii_pins: gmac-gmii-pins {
618 pins = "PA0", "PA1", "PA2", "PA3",
619 "PA4", "PA5", "PA6", "PA7",
620 "PA8", "PA9", "PA10", "PA11",
621 "PA12", "PA13", "PA14", "PA15",
622 "PA16", "PA17", "PA18", "PA19",
623 "PA20", "PA21", "PA22", "PA23",
624 "PA24", "PA25", "PA26", "PA27";
627 * data lines in GMII mode run at 125MHz and
628 * might need a higher signal drive strength
630 drive-strength = <30>;
633 gmac_mii_pins: gmac-mii-pins {
634 pins = "PA0", "PA1", "PA2", "PA3",
635 "PA8", "PA9", "PA11",
636 "PA12", "PA13", "PA14", "PA19",
637 "PA20", "PA21", "PA22", "PA23",
638 "PA24", "PA26", "PA27";
642 gmac_rgmii_pins: gmac-rgmii-pins {
643 pins = "PA0", "PA1", "PA2", "PA3",
644 "PA9", "PA10", "PA11",
645 "PA12", "PA13", "PA14", "PA19",
646 "PA20", "PA25", "PA26", "PA27";
649 * data lines in RGMII mode use DDR mode
650 * and need a higher signal drive strength
652 drive-strength = <40>;
655 i2c0_pins: i2c0-pins {
656 pins = "PH14", "PH15";
660 i2c1_pins: i2c1-pins {
661 pins = "PH16", "PH17";
665 i2c2_pins: i2c2-pins {
666 pins = "PH18", "PH19";
670 lcd0_rgb888_pins: lcd0-rgb888-pins {
671 pins = "PD0", "PD1", "PD2", "PD3",
672 "PD4", "PD5", "PD6", "PD7",
673 "PD8", "PD9", "PD10", "PD11",
674 "PD12", "PD13", "PD14", "PD15",
675 "PD16", "PD17", "PD18", "PD19",
676 "PD20", "PD21", "PD22", "PD23",
677 "PD24", "PD25", "PD26", "PD27";
681 mmc0_pins: mmc0-pins {
682 pins = "PF0", "PF1", "PF2",
685 drive-strength = <30>;
689 mmc1_pins: mmc1-pins {
690 pins = "PG0", "PG1", "PG2", "PG3",
693 drive-strength = <30>;
697 mmc2_4bit_pins: mmc2-4bit-pins {
698 pins = "PC6", "PC7", "PC8", "PC9",
701 drive-strength = <30>;
705 mmc2_8bit_emmc_pins: mmc2-8bit-emmc-pins {
706 pins = "PC6", "PC7", "PC8", "PC9",
707 "PC10", "PC11", "PC12",
708 "PC13", "PC14", "PC15",
711 drive-strength = <30>;
715 mmc3_8bit_emmc_pins: mmc3-8bit-emmc-pins {
716 pins = "PC6", "PC7", "PC8", "PC9",
717 "PC10", "PC11", "PC12",
718 "PC13", "PC14", "PC15",
721 drive-strength = <40>;
725 spdif_tx_pin: spdif-tx-pin {
730 uart0_ph_pins: uart0-ph-pins {
731 pins = "PH20", "PH21";
737 compatible = "allwinner,sun4i-a10-timer";
738 reg = <0x01c20c00 0xa0>;
739 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
740 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
741 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
742 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
743 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
744 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
748 wdt1: watchdog@1c20ca0 {
749 compatible = "allwinner,sun6i-a31-wdt";
750 reg = <0x01c20ca0 0x20>;
751 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
755 spdif: spdif@1c21000 {
756 #sound-dai-cells = <0>;
757 compatible = "allwinner,sun6i-a31-spdif";
758 reg = <0x01c21000 0x400>;
759 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
760 clocks = <&ccu CLK_APB1_SPDIF>, <&ccu CLK_SPDIF>;
761 resets = <&ccu RST_APB1_SPDIF>;
762 clock-names = "apb", "spdif";
763 dmas = <&dma 2>, <&dma 2>;
764 dma-names = "rx", "tx";
769 #sound-dai-cells = <0>;
770 compatible = "allwinner,sun6i-a31-i2s";
771 reg = <0x01c22000 0x400>;
772 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
773 clocks = <&ccu CLK_APB1_DAUDIO0>, <&ccu CLK_DAUDIO0>;
774 resets = <&ccu RST_APB1_DAUDIO0>;
775 clock-names = "apb", "mod";
776 dmas = <&dma 3>, <&dma 3>;
777 dma-names = "rx", "tx";
782 #sound-dai-cells = <0>;
783 compatible = "allwinner,sun6i-a31-i2s";
784 reg = <0x01c22400 0x400>;
785 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
786 clocks = <&ccu CLK_APB1_DAUDIO1>, <&ccu CLK_DAUDIO1>;
787 resets = <&ccu RST_APB1_DAUDIO1>;
788 clock-names = "apb", "mod";
789 dmas = <&dma 4>, <&dma 4>;
790 dma-names = "rx", "tx";
794 lradc: lradc@1c22800 {
795 compatible = "allwinner,sun4i-a10-lradc-keys";
796 reg = <0x01c22800 0x100>;
797 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
802 compatible = "allwinner,sun6i-a31-ts";
803 reg = <0x01c25000 0x100>;
804 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
805 #thermal-sensor-cells = <0>;
808 uart0: serial@1c28000 {
809 compatible = "snps,dw-apb-uart";
810 reg = <0x01c28000 0x400>;
811 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
814 clocks = <&ccu CLK_APB2_UART0>;
815 resets = <&ccu RST_APB2_UART0>;
816 dmas = <&dma 6>, <&dma 6>;
817 dma-names = "rx", "tx";
821 uart1: serial@1c28400 {
822 compatible = "snps,dw-apb-uart";
823 reg = <0x01c28400 0x400>;
824 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
827 clocks = <&ccu CLK_APB2_UART1>;
828 resets = <&ccu RST_APB2_UART1>;
829 dmas = <&dma 7>, <&dma 7>;
830 dma-names = "rx", "tx";
834 uart2: serial@1c28800 {
835 compatible = "snps,dw-apb-uart";
836 reg = <0x01c28800 0x400>;
837 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
840 clocks = <&ccu CLK_APB2_UART2>;
841 resets = <&ccu RST_APB2_UART2>;
842 dmas = <&dma 8>, <&dma 8>;
843 dma-names = "rx", "tx";
847 uart3: serial@1c28c00 {
848 compatible = "snps,dw-apb-uart";
849 reg = <0x01c28c00 0x400>;
850 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
853 clocks = <&ccu CLK_APB2_UART3>;
854 resets = <&ccu RST_APB2_UART3>;
855 dmas = <&dma 9>, <&dma 9>;
856 dma-names = "rx", "tx";
860 uart4: serial@1c29000 {
861 compatible = "snps,dw-apb-uart";
862 reg = <0x01c29000 0x400>;
863 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
866 clocks = <&ccu CLK_APB2_UART4>;
867 resets = <&ccu RST_APB2_UART4>;
868 dmas = <&dma 10>, <&dma 10>;
869 dma-names = "rx", "tx";
873 uart5: serial@1c29400 {
874 compatible = "snps,dw-apb-uart";
875 reg = <0x01c29400 0x400>;
876 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
879 clocks = <&ccu CLK_APB2_UART5>;
880 resets = <&ccu RST_APB2_UART5>;
881 dmas = <&dma 22>, <&dma 22>;
882 dma-names = "rx", "tx";
887 compatible = "allwinner,sun6i-a31-i2c";
888 reg = <0x01c2ac00 0x400>;
889 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
890 clocks = <&ccu CLK_APB2_I2C0>;
891 resets = <&ccu RST_APB2_I2C0>;
892 pinctrl-names = "default";
893 pinctrl-0 = <&i2c0_pins>;
895 #address-cells = <1>;
900 compatible = "allwinner,sun6i-a31-i2c";
901 reg = <0x01c2b000 0x400>;
902 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
903 clocks = <&ccu CLK_APB2_I2C1>;
904 resets = <&ccu RST_APB2_I2C1>;
905 pinctrl-names = "default";
906 pinctrl-0 = <&i2c1_pins>;
908 #address-cells = <1>;
913 compatible = "allwinner,sun6i-a31-i2c";
914 reg = <0x01c2b400 0x400>;
915 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
916 clocks = <&ccu CLK_APB2_I2C2>;
917 resets = <&ccu RST_APB2_I2C2>;
918 pinctrl-names = "default";
919 pinctrl-0 = <&i2c2_pins>;
921 #address-cells = <1>;
926 compatible = "allwinner,sun6i-a31-i2c";
927 reg = <0x01c2b800 0x400>;
928 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
929 clocks = <&ccu CLK_APB2_I2C3>;
930 resets = <&ccu RST_APB2_I2C3>;
932 #address-cells = <1>;
936 gmac: ethernet@1c30000 {
937 compatible = "allwinner,sun7i-a20-gmac";
938 reg = <0x01c30000 0x1054>;
939 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
940 interrupt-names = "macirq";
941 clocks = <&ccu CLK_AHB1_EMAC>, <&gmac_tx_clk>;
942 clock-names = "stmmaceth", "allwinner_gmac_tx";
943 resets = <&ccu RST_AHB1_EMAC>;
944 reset-names = "stmmaceth";
947 snps,force_sf_dma_mode;
951 compatible = "snps,dwmac-mdio";
952 #address-cells = <1>;
957 crypto: crypto-engine@1c15000 {
958 compatible = "allwinner,sun6i-a31-crypto",
959 "allwinner,sun4i-a10-crypto";
960 reg = <0x01c15000 0x1000>;
961 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
962 clocks = <&ccu CLK_AHB1_SS>, <&ccu CLK_SS>;
963 clock-names = "ahb", "mod";
964 resets = <&ccu RST_AHB1_SS>;
968 codec: codec@1c22c00 {
969 #sound-dai-cells = <0>;
970 compatible = "allwinner,sun6i-a31-codec";
971 reg = <0x01c22c00 0x400>;
972 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
973 clocks = <&ccu CLK_APB1_CODEC>, <&ccu CLK_CODEC>;
974 clock-names = "apb", "codec";
975 resets = <&ccu RST_APB1_CODEC>;
976 dmas = <&dma 15>, <&dma 15>;
977 dma-names = "rx", "tx";
982 compatible = "allwinner,sun6i-a31-hstimer",
983 "allwinner,sun7i-a20-hstimer";
984 reg = <0x01c60000 0x1000>;
985 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
986 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
987 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
988 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
989 clocks = <&ccu CLK_AHB1_HSTIMER>;
990 resets = <&ccu RST_AHB1_HSTIMER>;
994 compatible = "allwinner,sun6i-a31-spi";
995 reg = <0x01c68000 0x1000>;
996 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
997 clocks = <&ccu CLK_AHB1_SPI0>, <&ccu CLK_SPI0>;
998 clock-names = "ahb", "mod";
999 dmas = <&dma 23>, <&dma 23>;
1000 dma-names = "rx", "tx";
1001 resets = <&ccu RST_AHB1_SPI0>;
1002 status = "disabled";
1003 #address-cells = <1>;
1008 compatible = "allwinner,sun6i-a31-spi";
1009 reg = <0x01c69000 0x1000>;
1010 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
1011 clocks = <&ccu CLK_AHB1_SPI1>, <&ccu CLK_SPI1>;
1012 clock-names = "ahb", "mod";
1013 dmas = <&dma 24>, <&dma 24>;
1014 dma-names = "rx", "tx";
1015 resets = <&ccu RST_AHB1_SPI1>;
1016 status = "disabled";
1017 #address-cells = <1>;
1022 compatible = "allwinner,sun6i-a31-spi";
1023 reg = <0x01c6a000 0x1000>;
1024 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
1025 clocks = <&ccu CLK_AHB1_SPI2>, <&ccu CLK_SPI2>;
1026 clock-names = "ahb", "mod";
1027 dmas = <&dma 25>, <&dma 25>;
1028 dma-names = "rx", "tx";
1029 resets = <&ccu RST_AHB1_SPI2>;
1030 status = "disabled";
1031 #address-cells = <1>;
1036 compatible = "allwinner,sun6i-a31-spi";
1037 reg = <0x01c6b000 0x1000>;
1038 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
1039 clocks = <&ccu CLK_AHB1_SPI3>, <&ccu CLK_SPI3>;
1040 clock-names = "ahb", "mod";
1041 dmas = <&dma 26>, <&dma 26>;
1042 dma-names = "rx", "tx";
1043 resets = <&ccu RST_AHB1_SPI3>;
1044 status = "disabled";
1045 #address-cells = <1>;
1049 gic: interrupt-controller@1c81000 {
1050 compatible = "arm,gic-400";
1051 reg = <0x01c81000 0x1000>,
1052 <0x01c82000 0x2000>,
1053 <0x01c84000 0x2000>,
1054 <0x01c86000 0x2000>;
1055 interrupt-controller;
1056 #interrupt-cells = <3>;
1057 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1060 fe0: display-frontend@1e00000 {
1061 compatible = "allwinner,sun6i-a31-display-frontend";
1062 reg = <0x01e00000 0x20000>;
1063 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
1064 clocks = <&ccu CLK_AHB1_FE0>, <&ccu CLK_FE0>,
1065 <&ccu CLK_DRAM_FE0>;
1066 clock-names = "ahb", "mod",
1068 resets = <&ccu RST_AHB1_FE0>;
1071 #address-cells = <1>;
1075 #address-cells = <1>;
1079 fe0_out_be0: endpoint@0 {
1081 remote-endpoint = <&be0_in_fe0>;
1084 fe0_out_be1: endpoint@1 {
1086 remote-endpoint = <&be1_in_fe0>;
1092 fe1: display-frontend@1e20000 {
1093 compatible = "allwinner,sun6i-a31-display-frontend";
1094 reg = <0x01e20000 0x20000>;
1095 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
1096 clocks = <&ccu CLK_AHB1_FE1>, <&ccu CLK_FE1>,
1097 <&ccu CLK_DRAM_FE1>;
1098 clock-names = "ahb", "mod",
1100 resets = <&ccu RST_AHB1_FE1>;
1103 #address-cells = <1>;
1107 #address-cells = <1>;
1111 fe1_out_be0: endpoint@0 {
1113 remote-endpoint = <&be0_in_fe1>;
1116 fe1_out_be1: endpoint@1 {
1118 remote-endpoint = <&be1_in_fe1>;
1124 be1: display-backend@1e40000 {
1125 compatible = "allwinner,sun6i-a31-display-backend";
1126 reg = <0x01e40000 0x10000>;
1127 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
1128 clocks = <&ccu CLK_AHB1_BE1>, <&ccu CLK_BE1>,
1129 <&ccu CLK_DRAM_BE1>;
1130 clock-names = "ahb", "mod",
1132 resets = <&ccu RST_AHB1_BE1>;
1134 assigned-clocks = <&ccu CLK_BE1>;
1135 assigned-clock-rates = <300000000>;
1138 #address-cells = <1>;
1142 #address-cells = <1>;
1146 be1_in_fe0: endpoint@0 {
1148 remote-endpoint = <&fe0_out_be1>;
1151 be1_in_fe1: endpoint@1 {
1153 remote-endpoint = <&fe1_out_be1>;
1158 #address-cells = <1>;
1162 be1_out_drc1: endpoint@1 {
1164 remote-endpoint = <&drc1_in_be1>;
1171 compatible = "allwinner,sun6i-a31-drc";
1172 reg = <0x01e50000 0x10000>;
1173 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1174 clocks = <&ccu CLK_AHB1_DRC1>, <&ccu CLK_IEP_DRC1>,
1175 <&ccu CLK_DRAM_DRC1>;
1176 clock-names = "ahb", "mod",
1178 resets = <&ccu RST_AHB1_DRC1>;
1180 assigned-clocks = <&ccu CLK_IEP_DRC1>;
1181 assigned-clock-rates = <300000000>;
1184 #address-cells = <1>;
1188 #address-cells = <1>;
1192 drc1_in_be1: endpoint@1 {
1194 remote-endpoint = <&be1_out_drc1>;
1199 #address-cells = <1>;
1203 drc1_out_tcon0: endpoint@0 {
1205 remote-endpoint = <&tcon0_in_drc1>;
1208 drc1_out_tcon1: endpoint@1 {
1210 remote-endpoint = <&tcon1_in_drc1>;
1216 be0: display-backend@1e60000 {
1217 compatible = "allwinner,sun6i-a31-display-backend";
1218 reg = <0x01e60000 0x10000>;
1219 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
1220 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_BE0>,
1221 <&ccu CLK_DRAM_BE0>;
1222 clock-names = "ahb", "mod",
1224 resets = <&ccu RST_AHB1_BE0>;
1226 assigned-clocks = <&ccu CLK_BE0>;
1227 assigned-clock-rates = <300000000>;
1230 #address-cells = <1>;
1234 #address-cells = <1>;
1238 be0_in_fe0: endpoint@0 {
1240 remote-endpoint = <&fe0_out_be0>;
1243 be0_in_fe1: endpoint@1 {
1245 remote-endpoint = <&fe1_out_be0>;
1252 be0_out_drc0: endpoint {
1253 remote-endpoint = <&drc0_in_be0>;
1260 compatible = "allwinner,sun6i-a31-drc";
1261 reg = <0x01e70000 0x10000>;
1262 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1263 clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>,
1264 <&ccu CLK_DRAM_DRC0>;
1265 clock-names = "ahb", "mod",
1267 resets = <&ccu RST_AHB1_DRC0>;
1269 assigned-clocks = <&ccu CLK_IEP_DRC0>;
1270 assigned-clock-rates = <300000000>;
1273 #address-cells = <1>;
1279 drc0_in_be0: endpoint {
1280 remote-endpoint = <&be0_out_drc0>;
1285 #address-cells = <1>;
1289 drc0_out_tcon0: endpoint@0 {
1291 remote-endpoint = <&tcon0_in_drc0>;
1294 drc0_out_tcon1: endpoint@1 {
1296 remote-endpoint = <&tcon1_in_drc0>;
1304 compatible = "allwinner,sun6i-a31-rtc";
1305 reg = <0x01f00000 0x54>;
1306 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1307 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1309 clock-output-names = "osc32k";
1312 nmi_intc: interrupt-controller@1f00c00 {
1313 compatible = "allwinner,sun6i-a31-r-intc";
1314 interrupt-controller;
1315 #interrupt-cells = <2>;
1316 reg = <0x01f00c00 0x400>;
1317 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1321 compatible = "allwinner,sun6i-a31-prcm";
1322 reg = <0x01f01400 0x200>;
1325 compatible = "allwinner,sun6i-a31-ar100-clk";
1327 clocks = <&rtc 0>, <&osc24M>,
1328 <&ccu CLK_PLL_PERIPH>,
1329 <&ccu CLK_PLL_PERIPH>;
1330 clock-output-names = "ar100";
1334 compatible = "fixed-factor-clock";
1339 clock-output-names = "ahb0";
1343 compatible = "allwinner,sun6i-a31-apb0-clk";
1346 clock-output-names = "apb0";
1349 apb0_gates: apb0_gates_clk {
1350 compatible = "allwinner,sun6i-a31-apb0-gates-clk";
1353 clock-output-names = "apb0_pio", "apb0_ir",
1354 "apb0_timer", "apb0_p2wi",
1355 "apb0_uart", "apb0_1wire",
1361 compatible = "allwinner,sun4i-a10-mod0-clk";
1362 clocks = <&rtc 0>, <&osc24M>;
1363 clock-output-names = "ir";
1366 apb0_rst: apb0_rst {
1367 compatible = "allwinner,sun6i-a31-clock-reset";
1373 compatible = "allwinner,sun6i-a31-cpuconfig";
1374 reg = <0x01f01c00 0x300>;
1378 compatible = "allwinner,sun6i-a31-ir";
1379 clocks = <&apb0_gates 1>, <&ir_clk>;
1380 clock-names = "apb", "ir";
1381 resets = <&apb0_rst 1>;
1382 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1383 reg = <0x01f02000 0x40>;
1384 status = "disabled";
1387 r_pio: pinctrl@1f02c00 {
1388 compatible = "allwinner,sun6i-a31-r-pinctrl";
1389 reg = <0x01f02c00 0x400>;
1390 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
1391 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
1392 clocks = <&apb0_gates 0>, <&osc24M>, <&rtc 0>;
1393 clock-names = "apb", "hosc", "losc";
1394 resets = <&apb0_rst 0>;
1396 interrupt-controller;
1397 #interrupt-cells = <3>;
1400 s_ir_rx_pin: s-ir-rx-pin {
1405 s_p2wi_pins: s-p2wi-pins {
1406 pins = "PL0", "PL1";
1407 function = "s_p2wi";
1412 compatible = "allwinner,sun6i-a31-p2wi";
1413 reg = <0x01f03400 0x400>;
1414 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1415 clocks = <&apb0_gates 3>;
1416 clock-frequency = <100000>;
1417 resets = <&apb0_rst 3>;
1418 pinctrl-names = "default";
1419 pinctrl-0 = <&s_p2wi_pins>;
1420 status = "disabled";
1421 #address-cells = <1>;