2 * Copyright 2013 Maxime Ripard
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
45 #include "skeleton.dtsi"
47 #include <dt-bindings/interrupt-controller/arm-gic.h>
48 #include <dt-bindings/thermal/thermal.h>
50 #include <dt-bindings/clock/sun6i-a31-ccu.h>
51 #include <dt-bindings/pinctrl/sun4i-a10.h>
52 #include <dt-bindings/reset/sun6i-a31-ccu.h>
55 interrupt-parent = <&gic>;
66 simplefb_hdmi: framebuffer@0 {
67 compatible = "allwinner,simple-framebuffer",
69 allwinner,pipeline = "de_be0-lcd0-hdmi";
70 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
71 <&ccu CLK_AHB1_HDMI>, <&ccu CLK_DRAM_BE0>,
72 <&ccu CLK_IEP_DRC0>, <&ccu CLK_BE0>,
73 <&ccu CLK_LCD0_CH1>, <&ccu CLK_HDMI>;
77 simplefb_lcd: framebuffer@1 {
78 compatible = "allwinner,simple-framebuffer",
80 allwinner,pipeline = "de_be0-lcd0";
81 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
82 <&ccu CLK_DRAM_BE0>, <&ccu CLK_IEP_DRC0>,
83 <&ccu CLK_BE0>, <&ccu CLK_LCD0_CH0>;
89 compatible = "arm,armv7-timer";
90 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
92 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
93 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
94 clock-frequency = <24000000>;
95 arm,cpu-registers-not-fw-configured;
99 enable-method = "allwinner,sun6i-a31";
100 #address-cells = <1>;
104 compatible = "arm,cortex-a7";
107 clocks = <&ccu CLK_CPU>;
108 clock-latency = <244144>; /* 8 32k periods */
116 #cooling-cells = <2>;
117 cooling-min-level = <0>;
118 cooling-max-level = <3>;
122 compatible = "arm,cortex-a7";
128 compatible = "arm,cortex-a7";
134 compatible = "arm,cortex-a7";
143 polling-delay-passive = <250>;
144 polling-delay = <1000>;
145 thermal-sensors = <&rtp>;
149 trip = <&cpu_alert0>;
150 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
155 cpu_alert0: cpu_alert0 {
157 temperature = <70000>;
164 temperature = <100000>;
173 reg = <0x40000000 0x80000000>;
177 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
178 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
179 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
180 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
181 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
185 #address-cells = <1>;
191 compatible = "fixed-clock";
192 clock-frequency = <24000000>;
197 compatible = "fixed-clock";
198 clock-frequency = <32768>;
199 clock-output-names = "osc32k";
203 * The following two are dummy clocks, placeholders
204 * used in the gmac_tx clock. The gmac driver will
205 * choose one parent depending on the PHY interface
206 * mode, using clk_set_rate auto-reparenting.
208 * The actual TX clock rate is not controlled by the
211 mii_phy_tx_clk: clk@1 {
213 compatible = "fixed-clock";
214 clock-frequency = <25000000>;
215 clock-output-names = "mii_phy_tx";
218 gmac_int_tx_clk: clk@2 {
220 compatible = "fixed-clock";
221 clock-frequency = <125000000>;
222 clock-output-names = "gmac_int_tx";
225 gmac_tx_clk: clk@01c200d0 {
227 compatible = "allwinner,sun7i-a20-gmac-clk";
228 reg = <0x01c200d0 0x4>;
229 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
230 clock-output-names = "gmac_tx";
235 compatible = "allwinner,sun6i-a31-display-engine";
236 allwinner,pipelines = <&fe0>;
241 compatible = "simple-bus";
242 #address-cells = <1>;
246 dma: dma-controller@01c02000 {
247 compatible = "allwinner,sun6i-a31-dma";
248 reg = <0x01c02000 0x1000>;
249 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
250 clocks = <&ccu CLK_AHB1_DMA>;
251 resets = <&ccu RST_AHB1_DMA>;
255 tcon0: lcd-controller@01c0c000 {
256 compatible = "allwinner,sun6i-a31-tcon";
257 reg = <0x01c0c000 0x1000>;
258 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
259 resets = <&ccu RST_AHB1_LCD0>;
261 clocks = <&ccu CLK_AHB1_LCD0>,
267 clock-output-names = "tcon0-pixel-clock";
271 #address-cells = <1>;
275 #address-cells = <1>;
279 tcon0_in_drc0: endpoint@0 {
281 remote-endpoint = <&drc0_out_tcon0>;
286 #address-cells = <1>;
294 compatible = "allwinner,sun7i-a20-mmc";
295 reg = <0x01c0f000 0x1000>;
296 clocks = <&ccu CLK_AHB1_MMC0>,
298 <&ccu CLK_MMC0_OUTPUT>,
299 <&ccu CLK_MMC0_SAMPLE>;
304 resets = <&ccu RST_AHB1_MMC0>;
306 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
308 #address-cells = <1>;
313 compatible = "allwinner,sun7i-a20-mmc";
314 reg = <0x01c10000 0x1000>;
315 clocks = <&ccu CLK_AHB1_MMC1>,
317 <&ccu CLK_MMC1_OUTPUT>,
318 <&ccu CLK_MMC1_SAMPLE>;
323 resets = <&ccu RST_AHB1_MMC1>;
325 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
327 #address-cells = <1>;
332 compatible = "allwinner,sun7i-a20-mmc";
333 reg = <0x01c11000 0x1000>;
334 clocks = <&ccu CLK_AHB1_MMC2>,
336 <&ccu CLK_MMC2_OUTPUT>,
337 <&ccu CLK_MMC2_SAMPLE>;
342 resets = <&ccu RST_AHB1_MMC2>;
344 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
346 #address-cells = <1>;
351 compatible = "allwinner,sun7i-a20-mmc";
352 reg = <0x01c12000 0x1000>;
353 clocks = <&ccu CLK_AHB1_MMC3>,
355 <&ccu CLK_MMC3_OUTPUT>,
356 <&ccu CLK_MMC3_SAMPLE>;
361 resets = <&ccu RST_AHB1_MMC3>;
363 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
365 #address-cells = <1>;
369 usb_otg: usb@01c19000 {
370 compatible = "allwinner,sun6i-a31-musb";
371 reg = <0x01c19000 0x0400>;
372 clocks = <&ccu CLK_AHB1_OTG>;
373 resets = <&ccu RST_AHB1_OTG>;
374 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
375 interrupt-names = "mc";
378 extcon = <&usbphy 0>;
382 usbphy: phy@01c19400 {
383 compatible = "allwinner,sun6i-a31-usb-phy";
384 reg = <0x01c19400 0x10>,
387 reg-names = "phy_ctrl",
390 clocks = <&ccu CLK_USB_PHY0>,
393 clock-names = "usb0_phy",
396 resets = <&ccu RST_USB_PHY0>,
399 reset-names = "usb0_reset",
406 ehci0: usb@01c1a000 {
407 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
408 reg = <0x01c1a000 0x100>;
409 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
410 clocks = <&ccu CLK_AHB1_EHCI0>;
411 resets = <&ccu RST_AHB1_EHCI0>;
417 ohci0: usb@01c1a400 {
418 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
419 reg = <0x01c1a400 0x100>;
420 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
421 clocks = <&ccu CLK_AHB1_OHCI0>, <&ccu CLK_USB_OHCI0>;
422 resets = <&ccu RST_AHB1_OHCI0>;
428 ehci1: usb@01c1b000 {
429 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
430 reg = <0x01c1b000 0x100>;
431 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
432 clocks = <&ccu CLK_AHB1_EHCI1>;
433 resets = <&ccu RST_AHB1_EHCI1>;
439 ohci1: usb@01c1b400 {
440 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
441 reg = <0x01c1b400 0x100>;
442 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
443 clocks = <&ccu CLK_AHB1_OHCI1>, <&ccu CLK_USB_OHCI1>;
444 resets = <&ccu RST_AHB1_OHCI1>;
450 ohci2: usb@01c1c400 {
451 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
452 reg = <0x01c1c400 0x100>;
453 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
454 clocks = <&ccu CLK_AHB1_OHCI2>, <&ccu CLK_USB_OHCI2>;
455 resets = <&ccu RST_AHB1_OHCI2>;
459 ccu: clock@01c20000 {
460 compatible = "allwinner,sun6i-a31-ccu";
461 reg = <0x01c20000 0x400>;
462 clocks = <&osc24M>, <&osc32k>;
463 clock-names = "hosc", "losc";
468 pio: pinctrl@01c20800 {
469 compatible = "allwinner,sun6i-a31-pinctrl";
470 reg = <0x01c20800 0x400>;
471 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
472 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
473 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
474 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
475 clocks = <&ccu CLK_APB1_PIO>, <&osc24M>, <&osc32k>;
476 clock-names = "apb", "hosc", "losc";
478 interrupt-controller;
479 #interrupt-cells = <3>;
482 gmac_pins_gmii_a: gmac_gmii@0 {
483 pins = "PA0", "PA1", "PA2", "PA3",
484 "PA4", "PA5", "PA6", "PA7",
485 "PA8", "PA9", "PA10", "PA11",
486 "PA12", "PA13", "PA14", "PA15",
487 "PA16", "PA17", "PA18", "PA19",
488 "PA20", "PA21", "PA22", "PA23",
489 "PA24", "PA25", "PA26", "PA27";
492 * data lines in GMII mode run at 125MHz and
493 * might need a higher signal drive strength
495 drive-strength = <30>;
498 gmac_pins_mii_a: gmac_mii@0 {
499 pins = "PA0", "PA1", "PA2", "PA3",
500 "PA8", "PA9", "PA11",
501 "PA12", "PA13", "PA14", "PA19",
502 "PA20", "PA21", "PA22", "PA23",
503 "PA24", "PA26", "PA27";
507 gmac_pins_rgmii_a: gmac_rgmii@0 {
508 pins = "PA0", "PA1", "PA2", "PA3",
509 "PA9", "PA10", "PA11",
510 "PA12", "PA13", "PA14", "PA19",
511 "PA20", "PA25", "PA26", "PA27";
514 * data lines in RGMII mode use DDR mode
515 * and need a higher signal drive strength
517 drive-strength = <40>;
520 i2c0_pins_a: i2c0@0 {
521 pins = "PH14", "PH15";
525 i2c1_pins_a: i2c1@0 {
526 pins = "PH16", "PH17";
530 i2c2_pins_a: i2c2@0 {
531 pins = "PH18", "PH19";
535 lcd0_rgb888_pins: lcd0_rgb888 {
536 pins = "PD0", "PD1", "PD2", "PD3",
537 "PD4", "PD5", "PD6", "PD7",
538 "PD8", "PD9", "PD10", "PD11",
539 "PD12", "PD13", "PD14", "PD15",
540 "PD16", "PD17", "PD18", "PD19",
541 "PD20", "PD21", "PD22", "PD23",
542 "PD24", "PD25", "PD26", "PD27";
546 mmc0_pins_a: mmc0@0 {
547 pins = "PF0", "PF1", "PF2",
550 drive-strength = <30>;
554 mmc1_pins_a: mmc1@0 {
555 pins = "PG0", "PG1", "PG2", "PG3",
558 drive-strength = <30>;
562 mmc2_pins_a: mmc2@0 {
563 pins = "PC6", "PC7", "PC8", "PC9",
566 drive-strength = <30>;
570 mmc2_8bit_emmc_pins: mmc2@1 {
571 pins = "PC6", "PC7", "PC8", "PC9",
572 "PC10", "PC11", "PC12",
573 "PC13", "PC14", "PC15",
576 drive-strength = <30>;
580 mmc3_8bit_emmc_pins: mmc3@1 {
581 pins = "PC6", "PC7", "PC8", "PC9",
582 "PC10", "PC11", "PC12",
583 "PC13", "PC14", "PC15",
586 drive-strength = <40>;
590 spdif_pins_a: spdif@0 {
595 uart0_pins_a: uart0@0 {
596 pins = "PH20", "PH21";
602 compatible = "allwinner,sun4i-a10-timer";
603 reg = <0x01c20c00 0xa0>;
604 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
605 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
606 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
607 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
608 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
612 wdt1: watchdog@01c20ca0 {
613 compatible = "allwinner,sun6i-a31-wdt";
614 reg = <0x01c20ca0 0x20>;
617 spdif: spdif@01c21000 {
618 #sound-dai-cells = <0>;
619 compatible = "allwinner,sun6i-a31-spdif";
620 reg = <0x01c21000 0x400>;
621 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
622 clocks = <&ccu CLK_APB1_SPDIF>, <&ccu CLK_SPDIF>;
623 resets = <&ccu RST_APB1_SPDIF>;
624 clock-names = "apb", "spdif";
625 dmas = <&dma 2>, <&dma 2>;
626 dma-names = "rx", "tx";
630 lradc: lradc@01c22800 {
631 compatible = "allwinner,sun4i-a10-lradc-keys";
632 reg = <0x01c22800 0x100>;
633 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
638 compatible = "allwinner,sun6i-a31-ts";
639 reg = <0x01c25000 0x100>;
640 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
641 #thermal-sensor-cells = <0>;
644 uart0: serial@01c28000 {
645 compatible = "snps,dw-apb-uart";
646 reg = <0x01c28000 0x400>;
647 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
650 clocks = <&ccu CLK_APB2_UART0>;
651 resets = <&ccu RST_APB2_UART0>;
652 dmas = <&dma 6>, <&dma 6>;
653 dma-names = "rx", "tx";
657 uart1: serial@01c28400 {
658 compatible = "snps,dw-apb-uart";
659 reg = <0x01c28400 0x400>;
660 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
663 clocks = <&ccu CLK_APB2_UART1>;
664 resets = <&ccu RST_APB2_UART1>;
665 dmas = <&dma 7>, <&dma 7>;
666 dma-names = "rx", "tx";
670 uart2: serial@01c28800 {
671 compatible = "snps,dw-apb-uart";
672 reg = <0x01c28800 0x400>;
673 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
676 clocks = <&ccu CLK_APB2_UART2>;
677 resets = <&ccu RST_APB2_UART2>;
678 dmas = <&dma 8>, <&dma 8>;
679 dma-names = "rx", "tx";
683 uart3: serial@01c28c00 {
684 compatible = "snps,dw-apb-uart";
685 reg = <0x01c28c00 0x400>;
686 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
689 clocks = <&ccu CLK_APB2_UART3>;
690 resets = <&ccu RST_APB2_UART3>;
691 dmas = <&dma 9>, <&dma 9>;
692 dma-names = "rx", "tx";
696 uart4: serial@01c29000 {
697 compatible = "snps,dw-apb-uart";
698 reg = <0x01c29000 0x400>;
699 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
702 clocks = <&ccu CLK_APB2_UART4>;
703 resets = <&ccu RST_APB2_UART4>;
704 dmas = <&dma 10>, <&dma 10>;
705 dma-names = "rx", "tx";
709 uart5: serial@01c29400 {
710 compatible = "snps,dw-apb-uart";
711 reg = <0x01c29400 0x400>;
712 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
715 clocks = <&ccu CLK_APB2_UART5>;
716 resets = <&ccu RST_APB2_UART5>;
717 dmas = <&dma 22>, <&dma 22>;
718 dma-names = "rx", "tx";
723 compatible = "allwinner,sun6i-a31-i2c";
724 reg = <0x01c2ac00 0x400>;
725 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
726 clocks = <&ccu CLK_APB2_I2C0>;
727 resets = <&ccu RST_APB2_I2C0>;
729 #address-cells = <1>;
734 compatible = "allwinner,sun6i-a31-i2c";
735 reg = <0x01c2b000 0x400>;
736 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
737 clocks = <&ccu CLK_APB2_I2C1>;
738 resets = <&ccu RST_APB2_I2C1>;
740 #address-cells = <1>;
745 compatible = "allwinner,sun6i-a31-i2c";
746 reg = <0x01c2b400 0x400>;
747 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
748 clocks = <&ccu CLK_APB2_I2C2>;
749 resets = <&ccu RST_APB2_I2C2>;
751 #address-cells = <1>;
756 compatible = "allwinner,sun6i-a31-i2c";
757 reg = <0x01c2b800 0x400>;
758 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
759 clocks = <&ccu CLK_APB2_I2C3>;
760 resets = <&ccu RST_APB2_I2C3>;
762 #address-cells = <1>;
766 gmac: ethernet@01c30000 {
767 compatible = "allwinner,sun7i-a20-gmac";
768 reg = <0x01c30000 0x1054>;
769 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
770 interrupt-names = "macirq";
771 clocks = <&ccu CLK_AHB1_EMAC>, <&gmac_tx_clk>;
772 clock-names = "stmmaceth", "allwinner_gmac_tx";
773 resets = <&ccu RST_AHB1_EMAC>;
774 reset-names = "stmmaceth";
777 snps,force_sf_dma_mode;
779 #address-cells = <1>;
783 crypto: crypto-engine@01c15000 {
784 compatible = "allwinner,sun4i-a10-crypto";
785 reg = <0x01c15000 0x1000>;
786 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
787 clocks = <&ccu CLK_AHB1_SS>, <&ccu CLK_SS>;
788 clock-names = "ahb", "mod";
789 resets = <&ccu RST_AHB1_SS>;
793 codec: codec@01c22c00 {
794 #sound-dai-cells = <0>;
795 compatible = "allwinner,sun6i-a31-codec";
796 reg = <0x01c22c00 0x400>;
797 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
798 clocks = <&ccu CLK_APB1_CODEC>, <&ccu CLK_CODEC>;
799 clock-names = "apb", "codec";
800 resets = <&ccu RST_APB1_CODEC>;
801 dmas = <&dma 15>, <&dma 15>;
802 dma-names = "rx", "tx";
807 compatible = "allwinner,sun6i-a31-hstimer",
808 "allwinner,sun7i-a20-hstimer";
809 reg = <0x01c60000 0x1000>;
810 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
811 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
812 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
813 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
814 clocks = <&ccu CLK_AHB1_HSTIMER>;
815 resets = <&ccu RST_AHB1_HSTIMER>;
819 compatible = "allwinner,sun6i-a31-spi";
820 reg = <0x01c68000 0x1000>;
821 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
822 clocks = <&ccu CLK_AHB1_SPI0>, <&ccu CLK_SPI0>;
823 clock-names = "ahb", "mod";
824 dmas = <&dma 23>, <&dma 23>;
825 dma-names = "rx", "tx";
826 resets = <&ccu RST_AHB1_SPI0>;
831 compatible = "allwinner,sun6i-a31-spi";
832 reg = <0x01c69000 0x1000>;
833 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
834 clocks = <&ccu CLK_AHB1_SPI1>, <&ccu CLK_SPI1>;
835 clock-names = "ahb", "mod";
836 dmas = <&dma 24>, <&dma 24>;
837 dma-names = "rx", "tx";
838 resets = <&ccu RST_AHB1_SPI1>;
843 compatible = "allwinner,sun6i-a31-spi";
844 reg = <0x01c6a000 0x1000>;
845 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
846 clocks = <&ccu CLK_AHB1_SPI2>, <&ccu CLK_SPI2>;
847 clock-names = "ahb", "mod";
848 dmas = <&dma 25>, <&dma 25>;
849 dma-names = "rx", "tx";
850 resets = <&ccu RST_AHB1_SPI2>;
855 compatible = "allwinner,sun6i-a31-spi";
856 reg = <0x01c6b000 0x1000>;
857 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
858 clocks = <&ccu CLK_AHB1_SPI3>, <&ccu CLK_SPI3>;
859 clock-names = "ahb", "mod";
860 dmas = <&dma 26>, <&dma 26>;
861 dma-names = "rx", "tx";
862 resets = <&ccu RST_AHB1_SPI3>;
866 gic: interrupt-controller@01c81000 {
867 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
868 reg = <0x01c81000 0x1000>,
872 interrupt-controller;
873 #interrupt-cells = <3>;
874 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
877 fe0: display-frontend@01e00000 {
878 compatible = "allwinner,sun6i-a31-display-frontend";
879 reg = <0x01e00000 0x20000>;
880 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
881 clocks = <&ccu CLK_AHB1_FE0>, <&ccu CLK_FE0>,
883 clock-names = "ahb", "mod",
885 resets = <&ccu RST_AHB1_FE0>;
888 #address-cells = <1>;
892 #address-cells = <1>;
896 fe0_out_be0: endpoint@0 {
898 remote-endpoint = <&be0_in_fe0>;
904 be0: display-backend@01e60000 {
905 compatible = "allwinner,sun6i-a31-display-backend";
906 reg = <0x01e60000 0x10000>;
907 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
908 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_BE0>,
910 clock-names = "ahb", "mod",
912 resets = <&ccu RST_AHB1_BE0>;
914 assigned-clocks = <&ccu CLK_BE0>;
915 assigned-clock-rates = <300000000>;
918 #address-cells = <1>;
922 #address-cells = <1>;
926 be0_in_fe0: endpoint@0 {
928 remote-endpoint = <&fe0_out_be0>;
933 #address-cells = <1>;
937 be0_out_drc0: endpoint@0 {
939 remote-endpoint = <&drc0_in_be0>;
946 compatible = "allwinner,sun6i-a31-drc";
947 reg = <0x01e70000 0x10000>;
948 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
949 clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>,
950 <&ccu CLK_DRAM_DRC0>;
951 clock-names = "ahb", "mod",
953 resets = <&ccu RST_AHB1_DRC0>;
955 assigned-clocks = <&ccu CLK_IEP_DRC0>;
956 assigned-clock-rates = <300000000>;
959 #address-cells = <1>;
963 #address-cells = <1>;
967 drc0_in_be0: endpoint@0 {
969 remote-endpoint = <&be0_out_drc0>;
974 #address-cells = <1>;
978 drc0_out_tcon0: endpoint@0 {
980 remote-endpoint = <&tcon0_in_drc0>;
987 compatible = "allwinner,sun6i-a31-rtc";
988 reg = <0x01f00000 0x54>;
989 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
990 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
993 nmi_intc: interrupt-controller@01f00c0c {
994 compatible = "allwinner,sun6i-a31-sc-nmi";
995 interrupt-controller;
996 #interrupt-cells = <2>;
997 reg = <0x01f00c0c 0x38>;
998 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1002 compatible = "allwinner,sun6i-a31-prcm";
1003 reg = <0x01f01400 0x200>;
1006 compatible = "allwinner,sun6i-a31-ar100-clk";
1008 clocks = <&osc32k>, <&osc24M>,
1009 <&ccu CLK_PLL_PERIPH>,
1010 <&ccu CLK_PLL_PERIPH>;
1011 clock-output-names = "ar100";
1015 compatible = "fixed-factor-clock";
1020 clock-output-names = "ahb0";
1024 compatible = "allwinner,sun6i-a31-apb0-clk";
1027 clock-output-names = "apb0";
1030 apb0_gates: apb0_gates_clk {
1031 compatible = "allwinner,sun6i-a31-apb0-gates-clk";
1034 clock-output-names = "apb0_pio", "apb0_ir",
1035 "apb0_timer", "apb0_p2wi",
1036 "apb0_uart", "apb0_1wire",
1042 compatible = "allwinner,sun4i-a10-mod0-clk";
1043 clocks = <&osc32k>, <&osc24M>;
1044 clock-output-names = "ir";
1047 apb0_rst: apb0_rst {
1048 compatible = "allwinner,sun6i-a31-clock-reset";
1054 compatible = "allwinner,sun6i-a31-cpuconfig";
1055 reg = <0x01f01c00 0x300>;
1059 compatible = "allwinner,sun5i-a13-ir";
1060 clocks = <&apb0_gates 1>, <&ir_clk>;
1061 clock-names = "apb", "ir";
1062 resets = <&apb0_rst 1>;
1063 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1064 reg = <0x01f02000 0x40>;
1065 status = "disabled";
1068 r_pio: pinctrl@01f02c00 {
1069 compatible = "allwinner,sun6i-a31-r-pinctrl";
1070 reg = <0x01f02c00 0x400>;
1071 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
1072 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
1073 clocks = <&apb0_gates 0>, <&osc24M>, <&osc32k>;
1074 clock-names = "apb", "hosc", "losc";
1075 resets = <&apb0_rst 0>;
1077 interrupt-controller;
1078 #interrupt-cells = <3>;
1088 pins = "PL0", "PL1";
1089 function = "s_p2wi";
1093 p2wi: i2c@01f03400 {
1094 compatible = "allwinner,sun6i-a31-p2wi";
1095 reg = <0x01f03400 0x400>;
1096 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1097 clocks = <&apb0_gates 3>;
1098 clock-frequency = <100000>;
1099 resets = <&apb0_rst 3>;
1100 pinctrl-names = "default";
1101 pinctrl-0 = <&p2wi_pins>;
1102 status = "disabled";
1103 #address-cells = <1>;