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/dma/sun4i-a10.h>
51 #include <dt-bindings/pinctrl/sun4i-a10.h>
54 interrupt-parent = <&gic>;
66 compatible = "allwinner,simple-framebuffer",
68 allwinner,pipeline = "de_be0-lcd0-hdmi";
69 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
75 compatible = "allwinner,simple-framebuffer",
77 allwinner,pipeline = "de_be0-lcd0";
78 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
83 compatible = "allwinner,simple-framebuffer",
85 allwinner,pipeline = "de_be0-lcd0-tve0";
86 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
97 compatible = "arm,cortex-a7";
101 clock-latency = <244144>; /* 8 32k periods */
112 #cooling-cells = <2>;
113 cooling-min-level = <0>;
114 cooling-max-level = <6>;
118 compatible = "arm,cortex-a7";
127 polling-delay-passive = <250>;
128 polling-delay = <1000>;
129 thermal-sensors = <&rtp>;
133 trip = <&cpu_alert0>;
134 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
139 cpu_alert0: cpu_alert0 {
141 temperature = <75000>;
148 temperature = <100000>;
157 reg = <0x40000000 0x80000000>;
161 compatible = "arm,armv7-timer";
162 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
163 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
164 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
165 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
169 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
170 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
171 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
175 #address-cells = <1>;
179 osc24M: clk@01c20050 {
181 compatible = "allwinner,sun4i-a10-osc-clk";
182 reg = <0x01c20050 0x4>;
183 clock-frequency = <24000000>;
184 clock-output-names = "osc24M";
189 compatible = "fixed-clock";
190 clock-frequency = <32768>;
191 clock-output-names = "osc32k";
196 compatible = "allwinner,sun4i-a10-pll1-clk";
197 reg = <0x01c20000 0x4>;
199 clock-output-names = "pll1";
204 compatible = "allwinner,sun7i-a20-pll4-clk";
205 reg = <0x01c20018 0x4>;
207 clock-output-names = "pll4";
212 compatible = "allwinner,sun4i-a10-pll5-clk";
213 reg = <0x01c20020 0x4>;
215 clock-output-names = "pll5_ddr", "pll5_other";
220 compatible = "allwinner,sun4i-a10-pll6-clk";
221 reg = <0x01c20028 0x4>;
223 clock-output-names = "pll6_sata", "pll6_other", "pll6",
229 compatible = "allwinner,sun7i-a20-pll4-clk";
230 reg = <0x01c20040 0x4>;
232 clock-output-names = "pll8";
237 compatible = "allwinner,sun4i-a10-cpu-clk";
238 reg = <0x01c20054 0x4>;
239 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
240 clock-output-names = "cpu";
245 compatible = "allwinner,sun4i-a10-axi-clk";
246 reg = <0x01c20054 0x4>;
248 clock-output-names = "axi";
253 compatible = "allwinner,sun5i-a13-ahb-clk";
254 reg = <0x01c20054 0x4>;
255 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
256 clock-output-names = "ahb";
258 * Use PLL6 as parent, instead of CPU/AXI
259 * which has rate changes due to cpufreq
261 assigned-clocks = <&ahb>;
262 assigned-clock-parents = <&pll6 3>;
265 ahb_gates: clk@01c20060 {
267 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
268 reg = <0x01c20060 0x8>;
270 clock-indices = <0>, <1>,
273 <9>, <10>, <11>, <12>,
275 <17>, <18>, <20>, <21>,
277 <28>, <32>, <33>, <34>,
278 <35>, <36>, <37>, <40>,
283 clock-output-names = "ahb_usb0", "ahb_ehci0",
284 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
285 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
286 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
287 "ahb_nand", "ahb_sdram", "ahb_ace",
288 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
289 "ahb_spi2", "ahb_spi3", "ahb_sata",
290 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
291 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
292 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
293 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
294 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
298 apb0: apb0@01c20054 {
300 compatible = "allwinner,sun4i-a10-apb0-clk";
301 reg = <0x01c20054 0x4>;
303 clock-output-names = "apb0";
306 apb0_gates: clk@01c20068 {
308 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
309 reg = <0x01c20068 0x4>;
311 clock-indices = <0>, <1>,
315 clock-output-names = "apb0_codec", "apb0_spdif",
316 "apb0_ac97", "apb0_iis0", "apb0_iis1",
317 "apb0_pio", "apb0_ir0", "apb0_ir1",
318 "apb0_iis2", "apb0_keypad";
323 compatible = "allwinner,sun4i-a10-apb1-clk";
324 reg = <0x01c20058 0x4>;
325 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
326 clock-output-names = "apb1";
329 apb1_gates: clk@01c2006c {
331 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
332 reg = <0x01c2006c 0x4>;
334 clock-indices = <0>, <1>,
340 clock-output-names = "apb1_i2c0", "apb1_i2c1",
341 "apb1_i2c2", "apb1_i2c3", "apb1_can",
342 "apb1_scr", "apb1_ps20", "apb1_ps21",
343 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
344 "apb1_uart2", "apb1_uart3", "apb1_uart4",
345 "apb1_uart5", "apb1_uart6", "apb1_uart7";
348 nand_clk: clk@01c20080 {
350 compatible = "allwinner,sun4i-a10-mod0-clk";
351 reg = <0x01c20080 0x4>;
352 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
353 clock-output-names = "nand";
356 ms_clk: clk@01c20084 {
358 compatible = "allwinner,sun4i-a10-mod0-clk";
359 reg = <0x01c20084 0x4>;
360 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
361 clock-output-names = "ms";
364 mmc0_clk: clk@01c20088 {
366 compatible = "allwinner,sun4i-a10-mmc-clk";
367 reg = <0x01c20088 0x4>;
368 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
369 clock-output-names = "mmc0",
374 mmc1_clk: clk@01c2008c {
376 compatible = "allwinner,sun4i-a10-mmc-clk";
377 reg = <0x01c2008c 0x4>;
378 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
379 clock-output-names = "mmc1",
384 mmc2_clk: clk@01c20090 {
386 compatible = "allwinner,sun4i-a10-mmc-clk";
387 reg = <0x01c20090 0x4>;
388 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
389 clock-output-names = "mmc2",
394 mmc3_clk: clk@01c20094 {
396 compatible = "allwinner,sun4i-a10-mmc-clk";
397 reg = <0x01c20094 0x4>;
398 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
399 clock-output-names = "mmc3",
404 ts_clk: clk@01c20098 {
406 compatible = "allwinner,sun4i-a10-mod0-clk";
407 reg = <0x01c20098 0x4>;
408 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
409 clock-output-names = "ts";
412 ss_clk: clk@01c2009c {
414 compatible = "allwinner,sun4i-a10-mod0-clk";
415 reg = <0x01c2009c 0x4>;
416 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
417 clock-output-names = "ss";
420 spi0_clk: clk@01c200a0 {
422 compatible = "allwinner,sun4i-a10-mod0-clk";
423 reg = <0x01c200a0 0x4>;
424 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
425 clock-output-names = "spi0";
428 spi1_clk: clk@01c200a4 {
430 compatible = "allwinner,sun4i-a10-mod0-clk";
431 reg = <0x01c200a4 0x4>;
432 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
433 clock-output-names = "spi1";
436 spi2_clk: clk@01c200a8 {
438 compatible = "allwinner,sun4i-a10-mod0-clk";
439 reg = <0x01c200a8 0x4>;
440 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
441 clock-output-names = "spi2";
444 pata_clk: clk@01c200ac {
446 compatible = "allwinner,sun4i-a10-mod0-clk";
447 reg = <0x01c200ac 0x4>;
448 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
449 clock-output-names = "pata";
452 ir0_clk: clk@01c200b0 {
454 compatible = "allwinner,sun4i-a10-mod0-clk";
455 reg = <0x01c200b0 0x4>;
456 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
457 clock-output-names = "ir0";
460 ir1_clk: clk@01c200b4 {
462 compatible = "allwinner,sun4i-a10-mod0-clk";
463 reg = <0x01c200b4 0x4>;
464 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
465 clock-output-names = "ir1";
468 usb_clk: clk@01c200cc {
471 compatible = "allwinner,sun4i-a10-usb-clk";
472 reg = <0x01c200cc 0x4>;
474 clock-output-names = "usb_ohci0", "usb_ohci1",
478 spi3_clk: clk@01c200d4 {
480 compatible = "allwinner,sun4i-a10-mod0-clk";
481 reg = <0x01c200d4 0x4>;
482 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
483 clock-output-names = "spi3";
486 mbus_clk: clk@01c2015c {
488 compatible = "allwinner,sun5i-a13-mbus-clk";
489 reg = <0x01c2015c 0x4>;
490 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
491 clock-output-names = "mbus";
495 * The following two are dummy clocks, placeholders
496 * used in the gmac_tx clock. The gmac driver will
497 * choose one parent depending on the PHY interface
498 * mode, using clk_set_rate auto-reparenting.
500 * The actual TX clock rate is not controlled by the
503 mii_phy_tx_clk: clk@2 {
505 compatible = "fixed-clock";
506 clock-frequency = <25000000>;
507 clock-output-names = "mii_phy_tx";
510 gmac_int_tx_clk: clk@3 {
512 compatible = "fixed-clock";
513 clock-frequency = <125000000>;
514 clock-output-names = "gmac_int_tx";
517 gmac_tx_clk: clk@01c20164 {
519 compatible = "allwinner,sun7i-a20-gmac-clk";
520 reg = <0x01c20164 0x4>;
521 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
522 clock-output-names = "gmac_tx";
526 * Dummy clock used by output clocks
530 compatible = "fixed-factor-clock";
534 clock-output-names = "osc24M_32k";
537 clk_out_a: clk@01c201f0 {
539 compatible = "allwinner,sun7i-a20-out-clk";
540 reg = <0x01c201f0 0x4>;
541 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
542 clock-output-names = "clk_out_a";
545 clk_out_b: clk@01c201f4 {
547 compatible = "allwinner,sun7i-a20-out-clk";
548 reg = <0x01c201f4 0x4>;
549 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
550 clock-output-names = "clk_out_b";
555 compatible = "simple-bus";
556 #address-cells = <1>;
560 sram-controller@01c00000 {
561 compatible = "allwinner,sun4i-a10-sram-controller";
562 reg = <0x01c00000 0x30>;
563 #address-cells = <1>;
567 sram_a: sram@00000000 {
568 compatible = "mmio-sram";
569 reg = <0x00000000 0xc000>;
570 #address-cells = <1>;
572 ranges = <0 0x00000000 0xc000>;
574 emac_sram: sram-section@8000 {
575 compatible = "allwinner,sun4i-a10-sram-a3-a4";
576 reg = <0x8000 0x4000>;
581 sram_d: sram@00010000 {
582 compatible = "mmio-sram";
583 reg = <0x00010000 0x1000>;
584 #address-cells = <1>;
586 ranges = <0 0x00010000 0x1000>;
588 otg_sram: sram-section@0000 {
589 compatible = "allwinner,sun4i-a10-sram-d";
590 reg = <0x0000 0x1000>;
596 nmi_intc: interrupt-controller@01c00030 {
597 compatible = "allwinner,sun7i-a20-sc-nmi";
598 interrupt-controller;
599 #interrupt-cells = <2>;
600 reg = <0x01c00030 0x0c>;
601 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
604 dma: dma-controller@01c02000 {
605 compatible = "allwinner,sun4i-a10-dma";
606 reg = <0x01c02000 0x1000>;
607 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
608 clocks = <&ahb_gates 6>;
613 compatible = "allwinner,sun4i-a10-spi";
614 reg = <0x01c05000 0x1000>;
615 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
616 clocks = <&ahb_gates 20>, <&spi0_clk>;
617 clock-names = "ahb", "mod";
618 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
619 <&dma SUN4I_DMA_DEDICATED 26>;
620 dma-names = "rx", "tx";
622 #address-cells = <1>;
627 compatible = "allwinner,sun4i-a10-spi";
628 reg = <0x01c06000 0x1000>;
629 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
630 clocks = <&ahb_gates 21>, <&spi1_clk>;
631 clock-names = "ahb", "mod";
632 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
633 <&dma SUN4I_DMA_DEDICATED 8>;
634 dma-names = "rx", "tx";
636 #address-cells = <1>;
640 emac: ethernet@01c0b000 {
641 compatible = "allwinner,sun4i-a10-emac";
642 reg = <0x01c0b000 0x1000>;
643 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
644 clocks = <&ahb_gates 17>;
645 allwinner,sram = <&emac_sram 1>;
649 mdio: mdio@01c0b080 {
650 compatible = "allwinner,sun4i-a10-mdio";
651 reg = <0x01c0b080 0x14>;
653 #address-cells = <1>;
658 compatible = "allwinner,sun5i-a13-mmc";
659 reg = <0x01c0f000 0x1000>;
660 clocks = <&ahb_gates 8>,
668 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
670 #address-cells = <1>;
675 compatible = "allwinner,sun5i-a13-mmc";
676 reg = <0x01c10000 0x1000>;
677 clocks = <&ahb_gates 9>,
685 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
687 #address-cells = <1>;
692 compatible = "allwinner,sun5i-a13-mmc";
693 reg = <0x01c11000 0x1000>;
694 clocks = <&ahb_gates 10>,
702 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
704 #address-cells = <1>;
709 compatible = "allwinner,sun5i-a13-mmc";
710 reg = <0x01c12000 0x1000>;
711 clocks = <&ahb_gates 11>,
719 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
721 #address-cells = <1>;
725 usb_otg: usb@01c13000 {
726 compatible = "allwinner,sun4i-a10-musb";
727 reg = <0x01c13000 0x0400>;
728 clocks = <&ahb_gates 0>;
729 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
730 interrupt-names = "mc";
733 extcon = <&usbphy 0>;
734 allwinner,sram = <&otg_sram 1>;
738 usbphy: phy@01c13400 {
740 compatible = "allwinner,sun7i-a20-usb-phy";
741 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
742 reg-names = "phy_ctrl", "pmu1", "pmu2";
743 clocks = <&usb_clk 8>;
744 clock-names = "usb_phy";
745 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
746 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
750 ehci0: usb@01c14000 {
751 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
752 reg = <0x01c14000 0x100>;
753 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
754 clocks = <&ahb_gates 1>;
760 ohci0: usb@01c14400 {
761 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
762 reg = <0x01c14400 0x100>;
763 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
764 clocks = <&usb_clk 6>, <&ahb_gates 2>;
770 crypto: crypto-engine@01c15000 {
771 compatible = "allwinner,sun4i-a10-crypto";
772 reg = <0x01c15000 0x1000>;
773 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
774 clocks = <&ahb_gates 5>, <&ss_clk>;
775 clock-names = "ahb", "mod";
779 compatible = "allwinner,sun4i-a10-spi";
780 reg = <0x01c17000 0x1000>;
781 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
782 clocks = <&ahb_gates 22>, <&spi2_clk>;
783 clock-names = "ahb", "mod";
784 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
785 <&dma SUN4I_DMA_DEDICATED 28>;
786 dma-names = "rx", "tx";
788 #address-cells = <1>;
792 ahci: sata@01c18000 {
793 compatible = "allwinner,sun4i-a10-ahci";
794 reg = <0x01c18000 0x1000>;
795 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
796 clocks = <&pll6 0>, <&ahb_gates 25>;
800 ehci1: usb@01c1c000 {
801 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
802 reg = <0x01c1c000 0x100>;
803 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
804 clocks = <&ahb_gates 3>;
810 ohci1: usb@01c1c400 {
811 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
812 reg = <0x01c1c400 0x100>;
813 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
814 clocks = <&usb_clk 7>, <&ahb_gates 4>;
821 compatible = "allwinner,sun4i-a10-spi";
822 reg = <0x01c1f000 0x1000>;
823 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
824 clocks = <&ahb_gates 23>, <&spi3_clk>;
825 clock-names = "ahb", "mod";
826 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
827 <&dma SUN4I_DMA_DEDICATED 30>;
828 dma-names = "rx", "tx";
830 #address-cells = <1>;
834 pio: pinctrl@01c20800 {
835 compatible = "allwinner,sun7i-a20-pinctrl";
836 reg = <0x01c20800 0x400>;
837 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
838 clocks = <&apb0_gates 5>;
840 interrupt-controller;
841 #interrupt-cells = <3>;
844 pwm0_pins_a: pwm0@0 {
845 allwinner,pins = "PB2";
846 allwinner,function = "pwm";
847 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
848 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
851 pwm1_pins_a: pwm1@0 {
852 allwinner,pins = "PI3";
853 allwinner,function = "pwm";
854 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
855 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
858 uart0_pins_a: uart0@0 {
859 allwinner,pins = "PB22", "PB23";
860 allwinner,function = "uart0";
861 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
862 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
865 uart2_pins_a: uart2@0 {
866 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
867 allwinner,function = "uart2";
868 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
869 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
872 uart3_pins_a: uart3@0 {
873 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
874 allwinner,function = "uart3";
875 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
876 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
879 uart3_pins_b: uart3@1 {
880 allwinner,pins = "PH0", "PH1";
881 allwinner,function = "uart3";
882 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
883 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
886 uart4_pins_a: uart4@0 {
887 allwinner,pins = "PG10", "PG11";
888 allwinner,function = "uart4";
889 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
890 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
893 uart4_pins_b: uart4@1 {
894 allwinner,pins = "PH4", "PH5";
895 allwinner,function = "uart4";
896 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
897 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
900 uart5_pins_a: uart5@0 {
901 allwinner,pins = "PI10", "PI11";
902 allwinner,function = "uart5";
903 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
904 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
907 uart6_pins_a: uart6@0 {
908 allwinner,pins = "PI12", "PI13";
909 allwinner,function = "uart6";
910 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
911 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
914 uart7_pins_a: uart7@0 {
915 allwinner,pins = "PI20", "PI21";
916 allwinner,function = "uart7";
917 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
918 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
921 i2c0_pins_a: i2c0@0 {
922 allwinner,pins = "PB0", "PB1";
923 allwinner,function = "i2c0";
924 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
925 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
928 i2c1_pins_a: i2c1@0 {
929 allwinner,pins = "PB18", "PB19";
930 allwinner,function = "i2c1";
931 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
932 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
935 i2c2_pins_a: i2c2@0 {
936 allwinner,pins = "PB20", "PB21";
937 allwinner,function = "i2c2";
938 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
939 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
942 i2c3_pins_a: i2c3@0 {
943 allwinner,pins = "PI0", "PI1";
944 allwinner,function = "i2c3";
945 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
946 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
949 emac_pins_a: emac0@0 {
950 allwinner,pins = "PA0", "PA1", "PA2",
951 "PA3", "PA4", "PA5", "PA6",
952 "PA7", "PA8", "PA9", "PA10",
953 "PA11", "PA12", "PA13", "PA14",
955 allwinner,function = "emac";
956 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
957 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
960 clk_out_a_pins_a: clk_out_a@0 {
961 allwinner,pins = "PI12";
962 allwinner,function = "clk_out_a";
963 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
964 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
967 clk_out_b_pins_a: clk_out_b@0 {
968 allwinner,pins = "PI13";
969 allwinner,function = "clk_out_b";
970 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
971 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
974 gmac_pins_mii_a: gmac_mii@0 {
975 allwinner,pins = "PA0", "PA1", "PA2",
976 "PA3", "PA4", "PA5", "PA6",
977 "PA7", "PA8", "PA9", "PA10",
978 "PA11", "PA12", "PA13", "PA14",
980 allwinner,function = "gmac";
981 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
982 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
985 gmac_pins_rgmii_a: gmac_rgmii@0 {
986 allwinner,pins = "PA0", "PA1", "PA2",
987 "PA3", "PA4", "PA5", "PA6",
988 "PA7", "PA8", "PA10",
989 "PA11", "PA12", "PA13",
991 allwinner,function = "gmac";
993 * data lines in RGMII mode use DDR mode
994 * and need a higher signal drive strength
996 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
997 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1000 spi0_pins_a: spi0@0 {
1001 allwinner,pins = "PI11", "PI12", "PI13";
1002 allwinner,function = "spi0";
1003 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1004 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1007 spi0_cs0_pins_a: spi0_cs0@0 {
1008 allwinner,pins = "PI10";
1009 allwinner,function = "spi0";
1010 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1011 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1014 spi0_cs1_pins_a: spi0_cs1@0 {
1015 allwinner,pins = "PI14";
1016 allwinner,function = "spi0";
1017 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1018 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1021 spi1_pins_a: spi1@0 {
1022 allwinner,pins = "PI17", "PI18", "PI19";
1023 allwinner,function = "spi1";
1024 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1025 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1028 spi1_cs0_pins_a: spi1_cs0@0 {
1029 allwinner,pins = "PI16";
1030 allwinner,function = "spi1";
1031 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1032 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1035 spi2_pins_a: spi2@0 {
1036 allwinner,pins = "PC20", "PC21", "PC22";
1037 allwinner,function = "spi2";
1038 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1039 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1042 spi2_pins_b: spi2@1 {
1043 allwinner,pins = "PB15", "PB16", "PB17";
1044 allwinner,function = "spi2";
1045 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1046 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1049 spi2_cs0_pins_a: spi2_cs0@0 {
1050 allwinner,pins = "PC19";
1051 allwinner,function = "spi2";
1052 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1053 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1056 spi2_cs0_pins_b: spi2_cs0@1 {
1057 allwinner,pins = "PB14";
1058 allwinner,function = "spi2";
1059 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1060 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1063 mmc0_pins_a: mmc0@0 {
1064 allwinner,pins = "PF0", "PF1", "PF2",
1065 "PF3", "PF4", "PF5";
1066 allwinner,function = "mmc0";
1067 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1068 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1071 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1072 allwinner,pins = "PH1";
1073 allwinner,function = "gpio_in";
1074 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1075 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1078 mmc2_pins_a: mmc2@0 {
1079 allwinner,pins = "PC6", "PC7", "PC8",
1080 "PC9", "PC10", "PC11";
1081 allwinner,function = "mmc2";
1082 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1083 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1086 mmc3_pins_a: mmc3@0 {
1087 allwinner,pins = "PI4", "PI5", "PI6",
1088 "PI7", "PI8", "PI9";
1089 allwinner,function = "mmc3";
1090 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1091 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1094 ir0_rx_pins_a: ir0@0 {
1095 allwinner,pins = "PB4";
1096 allwinner,function = "ir0";
1097 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1098 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1101 ir0_tx_pins_a: ir0@1 {
1102 allwinner,pins = "PB3";
1103 allwinner,function = "ir0";
1104 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1105 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1108 ir1_rx_pins_a: ir1@0 {
1109 allwinner,pins = "PB23";
1110 allwinner,function = "ir1";
1111 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1112 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1115 ir1_tx_pins_a: ir1@1 {
1116 allwinner,pins = "PB22";
1117 allwinner,function = "ir1";
1118 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1119 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1122 ps20_pins_a: ps20@0 {
1123 allwinner,pins = "PI20", "PI21";
1124 allwinner,function = "ps2";
1125 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1126 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1129 ps21_pins_a: ps21@0 {
1130 allwinner,pins = "PH12", "PH13";
1131 allwinner,function = "ps2";
1132 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1133 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1138 compatible = "allwinner,sun4i-a10-timer";
1139 reg = <0x01c20c00 0x90>;
1140 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1141 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1142 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1143 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1144 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1145 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
1149 wdt: watchdog@01c20c90 {
1150 compatible = "allwinner,sun4i-a10-wdt";
1151 reg = <0x01c20c90 0x10>;
1155 compatible = "allwinner,sun7i-a20-rtc";
1156 reg = <0x01c20d00 0x20>;
1157 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1161 compatible = "allwinner,sun7i-a20-pwm";
1162 reg = <0x01c20e00 0xc>;
1165 status = "disabled";
1169 compatible = "allwinner,sun4i-a10-ir";
1170 clocks = <&apb0_gates 6>, <&ir0_clk>;
1171 clock-names = "apb", "ir";
1172 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1173 reg = <0x01c21800 0x40>;
1174 status = "disabled";
1178 compatible = "allwinner,sun4i-a10-ir";
1179 clocks = <&apb0_gates 7>, <&ir1_clk>;
1180 clock-names = "apb", "ir";
1181 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
1182 reg = <0x01c21c00 0x40>;
1183 status = "disabled";
1186 lradc: lradc@01c22800 {
1187 compatible = "allwinner,sun4i-a10-lradc-keys";
1188 reg = <0x01c22800 0x100>;
1189 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
1190 status = "disabled";
1193 sid: eeprom@01c23800 {
1194 compatible = "allwinner,sun7i-a20-sid";
1195 reg = <0x01c23800 0x200>;
1199 compatible = "allwinner,sun5i-a13-ts";
1200 reg = <0x01c25000 0x100>;
1201 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1202 #thermal-sensor-cells = <0>;
1205 uart0: serial@01c28000 {
1206 compatible = "snps,dw-apb-uart";
1207 reg = <0x01c28000 0x400>;
1208 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1211 clocks = <&apb1_gates 16>;
1212 status = "disabled";
1215 uart1: serial@01c28400 {
1216 compatible = "snps,dw-apb-uart";
1217 reg = <0x01c28400 0x400>;
1218 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1221 clocks = <&apb1_gates 17>;
1222 status = "disabled";
1225 uart2: serial@01c28800 {
1226 compatible = "snps,dw-apb-uart";
1227 reg = <0x01c28800 0x400>;
1228 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1231 clocks = <&apb1_gates 18>;
1232 status = "disabled";
1235 uart3: serial@01c28c00 {
1236 compatible = "snps,dw-apb-uart";
1237 reg = <0x01c28c00 0x400>;
1238 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
1241 clocks = <&apb1_gates 19>;
1242 status = "disabled";
1245 uart4: serial@01c29000 {
1246 compatible = "snps,dw-apb-uart";
1247 reg = <0x01c29000 0x400>;
1248 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1251 clocks = <&apb1_gates 20>;
1252 status = "disabled";
1255 uart5: serial@01c29400 {
1256 compatible = "snps,dw-apb-uart";
1257 reg = <0x01c29400 0x400>;
1258 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1261 clocks = <&apb1_gates 21>;
1262 status = "disabled";
1265 uart6: serial@01c29800 {
1266 compatible = "snps,dw-apb-uart";
1267 reg = <0x01c29800 0x400>;
1268 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1271 clocks = <&apb1_gates 22>;
1272 status = "disabled";
1275 uart7: serial@01c29c00 {
1276 compatible = "snps,dw-apb-uart";
1277 reg = <0x01c29c00 0x400>;
1278 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
1281 clocks = <&apb1_gates 23>;
1282 status = "disabled";
1285 i2c0: i2c@01c2ac00 {
1286 compatible = "allwinner,sun7i-a20-i2c",
1287 "allwinner,sun4i-a10-i2c";
1288 reg = <0x01c2ac00 0x400>;
1289 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1290 clocks = <&apb1_gates 0>;
1291 status = "disabled";
1292 #address-cells = <1>;
1296 i2c1: i2c@01c2b000 {
1297 compatible = "allwinner,sun7i-a20-i2c",
1298 "allwinner,sun4i-a10-i2c";
1299 reg = <0x01c2b000 0x400>;
1300 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1301 clocks = <&apb1_gates 1>;
1302 status = "disabled";
1303 #address-cells = <1>;
1307 i2c2: i2c@01c2b400 {
1308 compatible = "allwinner,sun7i-a20-i2c",
1309 "allwinner,sun4i-a10-i2c";
1310 reg = <0x01c2b400 0x400>;
1311 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1312 clocks = <&apb1_gates 2>;
1313 status = "disabled";
1314 #address-cells = <1>;
1318 i2c3: i2c@01c2b800 {
1319 compatible = "allwinner,sun7i-a20-i2c",
1320 "allwinner,sun4i-a10-i2c";
1321 reg = <0x01c2b800 0x400>;
1322 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1323 clocks = <&apb1_gates 3>;
1324 status = "disabled";
1325 #address-cells = <1>;
1329 i2c4: i2c@01c2c000 {
1330 compatible = "allwinner,sun7i-a20-i2c",
1331 "allwinner,sun4i-a10-i2c";
1332 reg = <0x01c2c000 0x400>;
1333 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1334 clocks = <&apb1_gates 15>;
1335 status = "disabled";
1336 #address-cells = <1>;
1340 gmac: ethernet@01c50000 {
1341 compatible = "allwinner,sun7i-a20-gmac";
1342 reg = <0x01c50000 0x10000>;
1343 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1344 interrupt-names = "macirq";
1345 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1346 clock-names = "stmmaceth", "allwinner_gmac_tx";
1349 snps,force_sf_dma_mode;
1350 status = "disabled";
1351 #address-cells = <1>;
1356 compatible = "allwinner,sun7i-a20-hstimer";
1357 reg = <0x01c60000 0x1000>;
1358 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1359 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1360 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1361 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1362 clocks = <&ahb_gates 28>;
1365 gic: interrupt-controller@01c81000 {
1366 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1367 reg = <0x01c81000 0x1000>,
1368 <0x01c82000 0x1000>,
1369 <0x01c84000 0x2000>,
1370 <0x01c86000 0x2000>;
1371 interrupt-controller;
1372 #interrupt-cells = <3>;
1373 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1376 ps20: ps2@01c2a000 {
1377 compatible = "allwinner,sun4i-a10-ps2";
1378 reg = <0x01c2a000 0x400>;
1379 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1380 clocks = <&apb1_gates 6>;
1381 status = "disabled";
1384 ps21: ps2@01c2a400 {
1385 compatible = "allwinner,sun4i-a10-ps2";
1386 reg = <0x01c2a400 0x400>;
1387 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1388 clocks = <&apb1_gates 7>;
1389 status = "disabled";