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>;
289 resets = <&ccu RST_AHB1_LCD0>,
290 <&ccu RST_AHB1_LVDS>;
293 clocks = <&ccu CLK_AHB1_LCD0>,
301 clock-output-names = "tcon0-pixel-clock";
305 #address-cells = <1>;
309 #address-cells = <1>;
313 tcon0_in_drc0: endpoint@0 {
315 remote-endpoint = <&drc0_out_tcon0>;
318 tcon0_in_drc1: endpoint@1 {
320 remote-endpoint = <&drc1_out_tcon0>;
325 #address-cells = <1>;
329 tcon0_out_hdmi: endpoint@1 {
331 remote-endpoint = <&hdmi_in_tcon0>;
332 allwinner,tcon-channel = <1>;
338 tcon1: lcd-controller@1c0d000 {
339 compatible = "allwinner,sun6i-a31-tcon";
340 reg = <0x01c0d000 0x1000>;
341 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
343 resets = <&ccu RST_AHB1_LCD1>,
344 <&ccu RST_AHB1_LVDS>;
345 reset-names = "lcd", "lvds";
346 clocks = <&ccu CLK_AHB1_LCD1>,
354 clock-output-names = "tcon1-pixel-clock";
358 #address-cells = <1>;
362 #address-cells = <1>;
366 tcon1_in_drc0: endpoint@0 {
368 remote-endpoint = <&drc0_out_tcon1>;
371 tcon1_in_drc1: endpoint@1 {
373 remote-endpoint = <&drc1_out_tcon1>;
378 #address-cells = <1>;
382 tcon1_out_hdmi: endpoint@1 {
384 remote-endpoint = <&hdmi_in_tcon1>;
385 allwinner,tcon-channel = <1>;
392 compatible = "allwinner,sun7i-a20-mmc";
393 reg = <0x01c0f000 0x1000>;
394 clocks = <&ccu CLK_AHB1_MMC0>,
396 <&ccu CLK_MMC0_OUTPUT>,
397 <&ccu CLK_MMC0_SAMPLE>;
402 resets = <&ccu RST_AHB1_MMC0>;
404 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
405 pinctrl-names = "default";
406 pinctrl-0 = <&mmc0_pins>;
408 #address-cells = <1>;
413 compatible = "allwinner,sun7i-a20-mmc";
414 reg = <0x01c10000 0x1000>;
415 clocks = <&ccu CLK_AHB1_MMC1>,
417 <&ccu CLK_MMC1_OUTPUT>,
418 <&ccu CLK_MMC1_SAMPLE>;
423 resets = <&ccu RST_AHB1_MMC1>;
425 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
426 pinctrl-names = "default";
427 pinctrl-0 = <&mmc1_pins>;
429 #address-cells = <1>;
434 compatible = "allwinner,sun7i-a20-mmc";
435 reg = <0x01c11000 0x1000>;
436 clocks = <&ccu CLK_AHB1_MMC2>,
438 <&ccu CLK_MMC2_OUTPUT>,
439 <&ccu CLK_MMC2_SAMPLE>;
444 resets = <&ccu RST_AHB1_MMC2>;
446 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
448 #address-cells = <1>;
453 compatible = "allwinner,sun7i-a20-mmc";
454 reg = <0x01c12000 0x1000>;
455 clocks = <&ccu CLK_AHB1_MMC3>,
457 <&ccu CLK_MMC3_OUTPUT>,
458 <&ccu CLK_MMC3_SAMPLE>;
463 resets = <&ccu RST_AHB1_MMC3>;
465 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
467 #address-cells = <1>;
472 compatible = "allwinner,sun6i-a31-hdmi";
473 reg = <0x01c16000 0x1000>;
474 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
475 clocks = <&ccu CLK_AHB1_HDMI>, <&ccu CLK_HDMI>,
477 <&ccu CLK_PLL_VIDEO0_2X>,
478 <&ccu CLK_PLL_VIDEO1_2X>;
479 clock-names = "ahb", "mod", "ddc", "pll-0", "pll-1";
480 resets = <&ccu RST_AHB1_HDMI>;
481 dma-names = "ddc-tx", "ddc-rx", "audio-tx";
482 dmas = <&dma 13>, <&dma 13>, <&dma 14>;
486 #address-cells = <1>;
490 #address-cells = <1>;
494 hdmi_in_tcon0: endpoint@0 {
496 remote-endpoint = <&tcon0_out_hdmi>;
499 hdmi_in_tcon1: endpoint@1 {
501 remote-endpoint = <&tcon1_out_hdmi>;
511 usb_otg: usb@1c19000 {
512 compatible = "allwinner,sun6i-a31-musb";
513 reg = <0x01c19000 0x0400>;
514 clocks = <&ccu CLK_AHB1_OTG>;
515 resets = <&ccu RST_AHB1_OTG>;
516 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
517 interrupt-names = "mc";
520 extcon = <&usbphy 0>;
525 usbphy: phy@1c19400 {
526 compatible = "allwinner,sun6i-a31-usb-phy";
527 reg = <0x01c19400 0x10>,
530 reg-names = "phy_ctrl",
533 clocks = <&ccu CLK_USB_PHY0>,
536 clock-names = "usb0_phy",
539 resets = <&ccu RST_USB_PHY0>,
542 reset-names = "usb0_reset",
550 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
551 reg = <0x01c1a000 0x100>;
552 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
553 clocks = <&ccu CLK_AHB1_EHCI0>;
554 resets = <&ccu RST_AHB1_EHCI0>;
561 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
562 reg = <0x01c1a400 0x100>;
563 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
564 clocks = <&ccu CLK_AHB1_OHCI0>, <&ccu CLK_USB_OHCI0>;
565 resets = <&ccu RST_AHB1_OHCI0>;
572 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
573 reg = <0x01c1b000 0x100>;
574 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
575 clocks = <&ccu CLK_AHB1_EHCI1>;
576 resets = <&ccu RST_AHB1_EHCI1>;
583 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
584 reg = <0x01c1b400 0x100>;
585 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
586 clocks = <&ccu CLK_AHB1_OHCI1>, <&ccu CLK_USB_OHCI1>;
587 resets = <&ccu RST_AHB1_OHCI1>;
594 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
595 reg = <0x01c1c400 0x100>;
596 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
597 clocks = <&ccu CLK_AHB1_OHCI2>, <&ccu CLK_USB_OHCI2>;
598 resets = <&ccu RST_AHB1_OHCI2>;
603 compatible = "allwinner,sun6i-a31-ccu";
604 reg = <0x01c20000 0x400>;
605 clocks = <&osc24M>, <&rtc 0>;
606 clock-names = "hosc", "losc";
611 pio: pinctrl@1c20800 {
612 compatible = "allwinner,sun6i-a31-pinctrl";
613 reg = <0x01c20800 0x400>;
614 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
615 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
616 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
617 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
618 clocks = <&ccu CLK_APB1_PIO>, <&osc24M>, <&rtc 0>;
619 clock-names = "apb", "hosc", "losc";
621 interrupt-controller;
622 #interrupt-cells = <3>;
625 gmac_gmii_pins: gmac-gmii-pins {
626 pins = "PA0", "PA1", "PA2", "PA3",
627 "PA4", "PA5", "PA6", "PA7",
628 "PA8", "PA9", "PA10", "PA11",
629 "PA12", "PA13", "PA14", "PA15",
630 "PA16", "PA17", "PA18", "PA19",
631 "PA20", "PA21", "PA22", "PA23",
632 "PA24", "PA25", "PA26", "PA27";
635 * data lines in GMII mode run at 125MHz and
636 * might need a higher signal drive strength
638 drive-strength = <30>;
641 gmac_mii_pins: gmac-mii-pins {
642 pins = "PA0", "PA1", "PA2", "PA3",
643 "PA8", "PA9", "PA11",
644 "PA12", "PA13", "PA14", "PA19",
645 "PA20", "PA21", "PA22", "PA23",
646 "PA24", "PA26", "PA27";
650 gmac_rgmii_pins: gmac-rgmii-pins {
651 pins = "PA0", "PA1", "PA2", "PA3",
652 "PA9", "PA10", "PA11",
653 "PA12", "PA13", "PA14", "PA19",
654 "PA20", "PA25", "PA26", "PA27";
657 * data lines in RGMII mode use DDR mode
658 * and need a higher signal drive strength
660 drive-strength = <40>;
663 i2c0_pins: i2c0-pins {
664 pins = "PH14", "PH15";
668 i2c1_pins: i2c1-pins {
669 pins = "PH16", "PH17";
673 i2c2_pins: i2c2-pins {
674 pins = "PH18", "PH19";
678 lcd0_rgb888_pins: lcd0-rgb888-pins {
679 pins = "PD0", "PD1", "PD2", "PD3",
680 "PD4", "PD5", "PD6", "PD7",
681 "PD8", "PD9", "PD10", "PD11",
682 "PD12", "PD13", "PD14", "PD15",
683 "PD16", "PD17", "PD18", "PD19",
684 "PD20", "PD21", "PD22", "PD23",
685 "PD24", "PD25", "PD26", "PD27";
689 mmc0_pins: mmc0-pins {
690 pins = "PF0", "PF1", "PF2",
693 drive-strength = <30>;
697 mmc1_pins: mmc1-pins {
698 pins = "PG0", "PG1", "PG2", "PG3",
701 drive-strength = <30>;
705 mmc2_4bit_pins: mmc2-4bit-pins {
706 pins = "PC6", "PC7", "PC8", "PC9",
709 drive-strength = <30>;
713 mmc2_8bit_emmc_pins: mmc2-8bit-emmc-pins {
714 pins = "PC6", "PC7", "PC8", "PC9",
715 "PC10", "PC11", "PC12",
716 "PC13", "PC14", "PC15",
719 drive-strength = <30>;
723 mmc3_8bit_emmc_pins: mmc3-8bit-emmc-pins {
724 pins = "PC6", "PC7", "PC8", "PC9",
725 "PC10", "PC11", "PC12",
726 "PC13", "PC14", "PC15",
729 drive-strength = <40>;
733 spdif_tx_pin: spdif-tx-pin {
738 uart0_ph_pins: uart0-ph-pins {
739 pins = "PH20", "PH21";
745 compatible = "allwinner,sun4i-a10-timer";
746 reg = <0x01c20c00 0xa0>;
747 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
748 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
749 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
750 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
751 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
752 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
756 wdt1: watchdog@1c20ca0 {
757 compatible = "allwinner,sun6i-a31-wdt";
758 reg = <0x01c20ca0 0x20>;
759 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
763 spdif: spdif@1c21000 {
764 #sound-dai-cells = <0>;
765 compatible = "allwinner,sun6i-a31-spdif";
766 reg = <0x01c21000 0x400>;
767 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
768 clocks = <&ccu CLK_APB1_SPDIF>, <&ccu CLK_SPDIF>;
769 resets = <&ccu RST_APB1_SPDIF>;
770 clock-names = "apb", "spdif";
771 dmas = <&dma 2>, <&dma 2>;
772 dma-names = "rx", "tx";
777 #sound-dai-cells = <0>;
778 compatible = "allwinner,sun6i-a31-i2s";
779 reg = <0x01c22000 0x400>;
780 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
781 clocks = <&ccu CLK_APB1_DAUDIO0>, <&ccu CLK_DAUDIO0>;
782 resets = <&ccu RST_APB1_DAUDIO0>;
783 clock-names = "apb", "mod";
784 dmas = <&dma 3>, <&dma 3>;
785 dma-names = "rx", "tx";
790 #sound-dai-cells = <0>;
791 compatible = "allwinner,sun6i-a31-i2s";
792 reg = <0x01c22400 0x400>;
793 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
794 clocks = <&ccu CLK_APB1_DAUDIO1>, <&ccu CLK_DAUDIO1>;
795 resets = <&ccu RST_APB1_DAUDIO1>;
796 clock-names = "apb", "mod";
797 dmas = <&dma 4>, <&dma 4>;
798 dma-names = "rx", "tx";
802 lradc: lradc@1c22800 {
803 compatible = "allwinner,sun4i-a10-lradc-keys";
804 reg = <0x01c22800 0x100>;
805 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
810 compatible = "allwinner,sun6i-a31-ts";
811 reg = <0x01c25000 0x100>;
812 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
813 #thermal-sensor-cells = <0>;
816 uart0: serial@1c28000 {
817 compatible = "snps,dw-apb-uart";
818 reg = <0x01c28000 0x400>;
819 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
822 clocks = <&ccu CLK_APB2_UART0>;
823 resets = <&ccu RST_APB2_UART0>;
824 dmas = <&dma 6>, <&dma 6>;
825 dma-names = "rx", "tx";
829 uart1: serial@1c28400 {
830 compatible = "snps,dw-apb-uart";
831 reg = <0x01c28400 0x400>;
832 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
835 clocks = <&ccu CLK_APB2_UART1>;
836 resets = <&ccu RST_APB2_UART1>;
837 dmas = <&dma 7>, <&dma 7>;
838 dma-names = "rx", "tx";
842 uart2: serial@1c28800 {
843 compatible = "snps,dw-apb-uart";
844 reg = <0x01c28800 0x400>;
845 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
848 clocks = <&ccu CLK_APB2_UART2>;
849 resets = <&ccu RST_APB2_UART2>;
850 dmas = <&dma 8>, <&dma 8>;
851 dma-names = "rx", "tx";
855 uart3: serial@1c28c00 {
856 compatible = "snps,dw-apb-uart";
857 reg = <0x01c28c00 0x400>;
858 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
861 clocks = <&ccu CLK_APB2_UART3>;
862 resets = <&ccu RST_APB2_UART3>;
863 dmas = <&dma 9>, <&dma 9>;
864 dma-names = "rx", "tx";
868 uart4: serial@1c29000 {
869 compatible = "snps,dw-apb-uart";
870 reg = <0x01c29000 0x400>;
871 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
874 clocks = <&ccu CLK_APB2_UART4>;
875 resets = <&ccu RST_APB2_UART4>;
876 dmas = <&dma 10>, <&dma 10>;
877 dma-names = "rx", "tx";
881 uart5: serial@1c29400 {
882 compatible = "snps,dw-apb-uart";
883 reg = <0x01c29400 0x400>;
884 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
887 clocks = <&ccu CLK_APB2_UART5>;
888 resets = <&ccu RST_APB2_UART5>;
889 dmas = <&dma 22>, <&dma 22>;
890 dma-names = "rx", "tx";
895 compatible = "allwinner,sun6i-a31-i2c";
896 reg = <0x01c2ac00 0x400>;
897 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
898 clocks = <&ccu CLK_APB2_I2C0>;
899 resets = <&ccu RST_APB2_I2C0>;
900 pinctrl-names = "default";
901 pinctrl-0 = <&i2c0_pins>;
903 #address-cells = <1>;
908 compatible = "allwinner,sun6i-a31-i2c";
909 reg = <0x01c2b000 0x400>;
910 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
911 clocks = <&ccu CLK_APB2_I2C1>;
912 resets = <&ccu RST_APB2_I2C1>;
913 pinctrl-names = "default";
914 pinctrl-0 = <&i2c1_pins>;
916 #address-cells = <1>;
921 compatible = "allwinner,sun6i-a31-i2c";
922 reg = <0x01c2b400 0x400>;
923 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
924 clocks = <&ccu CLK_APB2_I2C2>;
925 resets = <&ccu RST_APB2_I2C2>;
926 pinctrl-names = "default";
927 pinctrl-0 = <&i2c2_pins>;
929 #address-cells = <1>;
934 compatible = "allwinner,sun6i-a31-i2c";
935 reg = <0x01c2b800 0x400>;
936 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
937 clocks = <&ccu CLK_APB2_I2C3>;
938 resets = <&ccu RST_APB2_I2C3>;
940 #address-cells = <1>;
944 gmac: ethernet@1c30000 {
945 compatible = "allwinner,sun7i-a20-gmac";
946 reg = <0x01c30000 0x1054>;
947 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
948 interrupt-names = "macirq";
949 clocks = <&ccu CLK_AHB1_EMAC>, <&gmac_tx_clk>;
950 clock-names = "stmmaceth", "allwinner_gmac_tx";
951 resets = <&ccu RST_AHB1_EMAC>;
952 reset-names = "stmmaceth";
955 snps,force_sf_dma_mode;
959 compatible = "snps,dwmac-mdio";
960 #address-cells = <1>;
965 crypto: crypto-engine@1c15000 {
966 compatible = "allwinner,sun6i-a31-crypto",
967 "allwinner,sun4i-a10-crypto";
968 reg = <0x01c15000 0x1000>;
969 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
970 clocks = <&ccu CLK_AHB1_SS>, <&ccu CLK_SS>;
971 clock-names = "ahb", "mod";
972 resets = <&ccu RST_AHB1_SS>;
976 codec: codec@1c22c00 {
977 #sound-dai-cells = <0>;
978 compatible = "allwinner,sun6i-a31-codec";
979 reg = <0x01c22c00 0x400>;
980 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
981 clocks = <&ccu CLK_APB1_CODEC>, <&ccu CLK_CODEC>;
982 clock-names = "apb", "codec";
983 resets = <&ccu RST_APB1_CODEC>;
984 dmas = <&dma 15>, <&dma 15>;
985 dma-names = "rx", "tx";
990 compatible = "allwinner,sun6i-a31-hstimer",
991 "allwinner,sun7i-a20-hstimer";
992 reg = <0x01c60000 0x1000>;
993 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
994 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
995 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
996 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
997 clocks = <&ccu CLK_AHB1_HSTIMER>;
998 resets = <&ccu RST_AHB1_HSTIMER>;
1002 compatible = "allwinner,sun6i-a31-spi";
1003 reg = <0x01c68000 0x1000>;
1004 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
1005 clocks = <&ccu CLK_AHB1_SPI0>, <&ccu CLK_SPI0>;
1006 clock-names = "ahb", "mod";
1007 dmas = <&dma 23>, <&dma 23>;
1008 dma-names = "rx", "tx";
1009 resets = <&ccu RST_AHB1_SPI0>;
1010 status = "disabled";
1011 #address-cells = <1>;
1016 compatible = "allwinner,sun6i-a31-spi";
1017 reg = <0x01c69000 0x1000>;
1018 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
1019 clocks = <&ccu CLK_AHB1_SPI1>, <&ccu CLK_SPI1>;
1020 clock-names = "ahb", "mod";
1021 dmas = <&dma 24>, <&dma 24>;
1022 dma-names = "rx", "tx";
1023 resets = <&ccu RST_AHB1_SPI1>;
1024 status = "disabled";
1025 #address-cells = <1>;
1030 compatible = "allwinner,sun6i-a31-spi";
1031 reg = <0x01c6a000 0x1000>;
1032 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
1033 clocks = <&ccu CLK_AHB1_SPI2>, <&ccu CLK_SPI2>;
1034 clock-names = "ahb", "mod";
1035 dmas = <&dma 25>, <&dma 25>;
1036 dma-names = "rx", "tx";
1037 resets = <&ccu RST_AHB1_SPI2>;
1038 status = "disabled";
1039 #address-cells = <1>;
1044 compatible = "allwinner,sun6i-a31-spi";
1045 reg = <0x01c6b000 0x1000>;
1046 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
1047 clocks = <&ccu CLK_AHB1_SPI3>, <&ccu CLK_SPI3>;
1048 clock-names = "ahb", "mod";
1049 dmas = <&dma 26>, <&dma 26>;
1050 dma-names = "rx", "tx";
1051 resets = <&ccu RST_AHB1_SPI3>;
1052 status = "disabled";
1053 #address-cells = <1>;
1057 gic: interrupt-controller@1c81000 {
1058 compatible = "arm,gic-400";
1059 reg = <0x01c81000 0x1000>,
1060 <0x01c82000 0x2000>,
1061 <0x01c84000 0x2000>,
1062 <0x01c86000 0x2000>;
1063 interrupt-controller;
1064 #interrupt-cells = <3>;
1065 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1068 fe0: display-frontend@1e00000 {
1069 compatible = "allwinner,sun6i-a31-display-frontend";
1070 reg = <0x01e00000 0x20000>;
1071 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
1072 clocks = <&ccu CLK_AHB1_FE0>, <&ccu CLK_FE0>,
1073 <&ccu CLK_DRAM_FE0>;
1074 clock-names = "ahb", "mod",
1076 resets = <&ccu RST_AHB1_FE0>;
1079 #address-cells = <1>;
1083 #address-cells = <1>;
1087 fe0_out_be0: endpoint@0 {
1089 remote-endpoint = <&be0_in_fe0>;
1092 fe0_out_be1: endpoint@1 {
1094 remote-endpoint = <&be1_in_fe0>;
1100 fe1: display-frontend@1e20000 {
1101 compatible = "allwinner,sun6i-a31-display-frontend";
1102 reg = <0x01e20000 0x20000>;
1103 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
1104 clocks = <&ccu CLK_AHB1_FE1>, <&ccu CLK_FE1>,
1105 <&ccu CLK_DRAM_FE1>;
1106 clock-names = "ahb", "mod",
1108 resets = <&ccu RST_AHB1_FE1>;
1111 #address-cells = <1>;
1115 #address-cells = <1>;
1119 fe1_out_be0: endpoint@0 {
1121 remote-endpoint = <&be0_in_fe1>;
1124 fe1_out_be1: endpoint@1 {
1126 remote-endpoint = <&be1_in_fe1>;
1132 be1: display-backend@1e40000 {
1133 compatible = "allwinner,sun6i-a31-display-backend";
1134 reg = <0x01e40000 0x10000>;
1135 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
1136 clocks = <&ccu CLK_AHB1_BE1>, <&ccu CLK_BE1>,
1137 <&ccu CLK_DRAM_BE1>;
1138 clock-names = "ahb", "mod",
1140 resets = <&ccu RST_AHB1_BE1>;
1143 #address-cells = <1>;
1147 #address-cells = <1>;
1151 be1_in_fe0: endpoint@0 {
1153 remote-endpoint = <&fe0_out_be1>;
1156 be1_in_fe1: endpoint@1 {
1158 remote-endpoint = <&fe1_out_be1>;
1163 #address-cells = <1>;
1167 be1_out_drc1: endpoint@1 {
1169 remote-endpoint = <&drc1_in_be1>;
1176 compatible = "allwinner,sun6i-a31-drc";
1177 reg = <0x01e50000 0x10000>;
1178 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1179 clocks = <&ccu CLK_AHB1_DRC1>, <&ccu CLK_IEP_DRC1>,
1180 <&ccu CLK_DRAM_DRC1>;
1181 clock-names = "ahb", "mod",
1183 resets = <&ccu RST_AHB1_DRC1>;
1186 #address-cells = <1>;
1190 #address-cells = <1>;
1194 drc1_in_be1: endpoint@1 {
1196 remote-endpoint = <&be1_out_drc1>;
1201 #address-cells = <1>;
1205 drc1_out_tcon0: endpoint@0 {
1207 remote-endpoint = <&tcon0_in_drc1>;
1210 drc1_out_tcon1: endpoint@1 {
1212 remote-endpoint = <&tcon1_in_drc1>;
1218 be0: display-backend@1e60000 {
1219 compatible = "allwinner,sun6i-a31-display-backend";
1220 reg = <0x01e60000 0x10000>;
1221 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
1222 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_BE0>,
1223 <&ccu CLK_DRAM_BE0>;
1224 clock-names = "ahb", "mod",
1226 resets = <&ccu RST_AHB1_BE0>;
1229 #address-cells = <1>;
1233 #address-cells = <1>;
1237 be0_in_fe0: endpoint@0 {
1239 remote-endpoint = <&fe0_out_be0>;
1242 be0_in_fe1: endpoint@1 {
1244 remote-endpoint = <&fe1_out_be0>;
1251 be0_out_drc0: endpoint {
1252 remote-endpoint = <&drc0_in_be0>;
1259 compatible = "allwinner,sun6i-a31-drc";
1260 reg = <0x01e70000 0x10000>;
1261 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1262 clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>,
1263 <&ccu CLK_DRAM_DRC0>;
1264 clock-names = "ahb", "mod",
1266 resets = <&ccu RST_AHB1_DRC0>;
1269 #address-cells = <1>;
1275 drc0_in_be0: endpoint {
1276 remote-endpoint = <&be0_out_drc0>;
1281 #address-cells = <1>;
1285 drc0_out_tcon0: endpoint@0 {
1287 remote-endpoint = <&tcon0_in_drc0>;
1290 drc0_out_tcon1: endpoint@1 {
1292 remote-endpoint = <&tcon1_in_drc0>;
1300 compatible = "allwinner,sun6i-a31-rtc";
1301 reg = <0x01f00000 0x54>;
1302 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1303 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1305 clock-output-names = "osc32k";
1308 nmi_intc: interrupt-controller@1f00c00 {
1309 compatible = "allwinner,sun6i-a31-r-intc";
1310 interrupt-controller;
1311 #interrupt-cells = <2>;
1312 reg = <0x01f00c00 0x400>;
1313 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1317 compatible = "allwinner,sun6i-a31-prcm";
1318 reg = <0x01f01400 0x200>;
1321 compatible = "allwinner,sun6i-a31-ar100-clk";
1323 clocks = <&rtc 0>, <&osc24M>,
1324 <&ccu CLK_PLL_PERIPH>,
1325 <&ccu CLK_PLL_PERIPH>;
1326 clock-output-names = "ar100";
1330 compatible = "fixed-factor-clock";
1335 clock-output-names = "ahb0";
1339 compatible = "allwinner,sun6i-a31-apb0-clk";
1342 clock-output-names = "apb0";
1345 apb0_gates: apb0_gates_clk {
1346 compatible = "allwinner,sun6i-a31-apb0-gates-clk";
1349 clock-output-names = "apb0_pio", "apb0_ir",
1350 "apb0_timer", "apb0_p2wi",
1351 "apb0_uart", "apb0_1wire",
1357 compatible = "allwinner,sun4i-a10-mod0-clk";
1358 clocks = <&rtc 0>, <&osc24M>;
1359 clock-output-names = "ir";
1362 apb0_rst: apb0_rst {
1363 compatible = "allwinner,sun6i-a31-clock-reset";
1369 compatible = "allwinner,sun6i-a31-cpuconfig";
1370 reg = <0x01f01c00 0x300>;
1374 compatible = "allwinner,sun6i-a31-ir";
1375 clocks = <&apb0_gates 1>, <&ir_clk>;
1376 clock-names = "apb", "ir";
1377 resets = <&apb0_rst 1>;
1378 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1379 reg = <0x01f02000 0x40>;
1380 status = "disabled";
1383 r_pio: pinctrl@1f02c00 {
1384 compatible = "allwinner,sun6i-a31-r-pinctrl";
1385 reg = <0x01f02c00 0x400>;
1386 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
1387 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
1388 clocks = <&apb0_gates 0>, <&osc24M>, <&rtc 0>;
1389 clock-names = "apb", "hosc", "losc";
1390 resets = <&apb0_rst 0>;
1392 interrupt-controller;
1393 #interrupt-cells = <3>;
1396 s_ir_rx_pin: s-ir-rx-pin {
1401 s_p2wi_pins: s-p2wi-pins {
1402 pins = "PL0", "PL1";
1403 function = "s_p2wi";
1408 compatible = "allwinner,sun6i-a31-p2wi";
1409 reg = <0x01f03400 0x400>;
1410 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1411 clocks = <&apb0_gates 3>;
1412 clock-frequency = <100000>;
1413 resets = <&apb0_rst 3>;
1414 pinctrl-names = "default";
1415 pinctrl-0 = <&s_p2wi_pins>;
1416 status = "disabled";
1417 #address-cells = <1>;