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/sun4i-a10-pll2.h>
51 #include <dt-bindings/dma/sun4i-a10.h>
52 #include <dt-bindings/pinctrl/sun4i-a10.h>
55 interrupt-parent = <&gic>;
67 compatible = "allwinner,simple-framebuffer",
69 allwinner,pipeline = "de_be0-lcd0-hdmi";
70 clocks = <&ahb_gates 36>, <&ahb_gates 43>,
71 <&ahb_gates 44>, <&de_be0_clk>,
72 <&tcon0_ch1_clk>, <&dram_gates 26>;
77 compatible = "allwinner,simple-framebuffer",
79 allwinner,pipeline = "de_be0-lcd0";
80 clocks = <&ahb_gates 36>, <&ahb_gates 44>,
81 <&de_be0_clk>, <&tcon0_ch0_clk>,
87 compatible = "allwinner,simple-framebuffer",
89 allwinner,pipeline = "de_be0-lcd0-tve0";
90 clocks = <&ahb_gates 34>, <&ahb_gates 36>,
92 <&de_be0_clk>, <&tcon0_ch1_clk>,
93 <&dram_gates 5>, <&dram_gates 26>;
103 compatible = "arm,cortex-a7";
107 clock-latency = <244144>; /* 8 32k periods */
118 #cooling-cells = <2>;
119 cooling-min-level = <0>;
120 cooling-max-level = <6>;
124 compatible = "arm,cortex-a7";
133 polling-delay-passive = <250>;
134 polling-delay = <1000>;
135 thermal-sensors = <&rtp>;
139 trip = <&cpu_alert0>;
140 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
145 cpu_alert0: cpu_alert0 {
147 temperature = <75000>;
154 temperature = <100000>;
163 reg = <0x40000000 0x80000000>;
167 compatible = "arm,armv7-timer";
168 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
169 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
170 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
171 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
175 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
176 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
177 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
181 #address-cells = <1>;
185 osc24M: clk@01c20050 {
187 compatible = "allwinner,sun4i-a10-osc-clk";
188 reg = <0x01c20050 0x4>;
189 clock-frequency = <24000000>;
190 clock-output-names = "osc24M";
195 compatible = "fixed-factor-clock";
199 clock-output-names = "osc3M";
204 compatible = "fixed-clock";
205 clock-frequency = <32768>;
206 clock-output-names = "osc32k";
211 compatible = "allwinner,sun4i-a10-pll1-clk";
212 reg = <0x01c20000 0x4>;
214 clock-output-names = "pll1";
219 compatible = "allwinner,sun4i-a10-pll2-clk";
220 reg = <0x01c20008 0x8>;
222 clock-output-names = "pll2-1x", "pll2-2x",
223 "pll2-4x", "pll2-8x";
228 compatible = "allwinner,sun4i-a10-pll3-clk";
229 reg = <0x01c20010 0x4>;
231 clock-output-names = "pll3";
236 compatible = "fixed-factor-clock";
240 clock-output-names = "pll3-2x";
245 compatible = "allwinner,sun7i-a20-pll4-clk";
246 reg = <0x01c20018 0x4>;
248 clock-output-names = "pll4";
253 compatible = "allwinner,sun4i-a10-pll5-clk";
254 reg = <0x01c20020 0x4>;
256 clock-output-names = "pll5_ddr", "pll5_other";
261 compatible = "allwinner,sun4i-a10-pll6-clk";
262 reg = <0x01c20028 0x4>;
264 clock-output-names = "pll6_sata", "pll6_other", "pll6",
270 compatible = "allwinner,sun4i-a10-pll3-clk";
271 reg = <0x01c20030 0x4>;
273 clock-output-names = "pll7";
278 compatible = "fixed-factor-clock";
282 clock-output-names = "pll7-2x";
287 compatible = "allwinner,sun7i-a20-pll4-clk";
288 reg = <0x01c20040 0x4>;
290 clock-output-names = "pll8";
295 compatible = "allwinner,sun4i-a10-cpu-clk";
296 reg = <0x01c20054 0x4>;
297 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
298 clock-output-names = "cpu";
303 compatible = "allwinner,sun4i-a10-axi-clk";
304 reg = <0x01c20054 0x4>;
306 clock-output-names = "axi";
311 compatible = "allwinner,sun5i-a13-ahb-clk";
312 reg = <0x01c20054 0x4>;
313 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
314 clock-output-names = "ahb";
316 * Use PLL6 as parent, instead of CPU/AXI
317 * which has rate changes due to cpufreq
319 assigned-clocks = <&ahb>;
320 assigned-clock-parents = <&pll6 3>;
323 ahb_gates: clk@01c20060 {
325 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
326 reg = <0x01c20060 0x8>;
328 clock-indices = <0>, <1>,
331 <9>, <10>, <11>, <12>,
333 <17>, <18>, <20>, <21>,
335 <28>, <32>, <33>, <34>,
336 <35>, <36>, <37>, <40>,
341 clock-output-names = "ahb_usb0", "ahb_ehci0",
342 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
343 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
344 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
345 "ahb_nand", "ahb_sdram", "ahb_ace",
346 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
347 "ahb_spi2", "ahb_spi3", "ahb_sata",
348 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
349 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
350 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
351 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
352 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
356 apb0: apb0@01c20054 {
358 compatible = "allwinner,sun4i-a10-apb0-clk";
359 reg = <0x01c20054 0x4>;
361 clock-output-names = "apb0";
364 apb0_gates: clk@01c20068 {
366 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
367 reg = <0x01c20068 0x4>;
369 clock-indices = <0>, <1>,
373 clock-output-names = "apb0_codec", "apb0_spdif",
374 "apb0_ac97", "apb0_iis0", "apb0_iis1",
375 "apb0_pio", "apb0_ir0", "apb0_ir1",
376 "apb0_iis2", "apb0_keypad";
381 compatible = "allwinner,sun4i-a10-apb1-clk";
382 reg = <0x01c20058 0x4>;
383 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
384 clock-output-names = "apb1";
387 apb1_gates: clk@01c2006c {
389 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
390 reg = <0x01c2006c 0x4>;
392 clock-indices = <0>, <1>,
398 clock-output-names = "apb1_i2c0", "apb1_i2c1",
399 "apb1_i2c2", "apb1_i2c3", "apb1_can",
400 "apb1_scr", "apb1_ps20", "apb1_ps21",
401 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
402 "apb1_uart2", "apb1_uart3", "apb1_uart4",
403 "apb1_uart5", "apb1_uart6", "apb1_uart7";
406 nand_clk: clk@01c20080 {
408 compatible = "allwinner,sun4i-a10-mod0-clk";
409 reg = <0x01c20080 0x4>;
410 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
411 clock-output-names = "nand";
414 ms_clk: clk@01c20084 {
416 compatible = "allwinner,sun4i-a10-mod0-clk";
417 reg = <0x01c20084 0x4>;
418 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
419 clock-output-names = "ms";
422 mmc0_clk: clk@01c20088 {
424 compatible = "allwinner,sun4i-a10-mmc-clk";
425 reg = <0x01c20088 0x4>;
426 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
427 clock-output-names = "mmc0",
432 mmc1_clk: clk@01c2008c {
434 compatible = "allwinner,sun4i-a10-mmc-clk";
435 reg = <0x01c2008c 0x4>;
436 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
437 clock-output-names = "mmc1",
442 mmc2_clk: clk@01c20090 {
444 compatible = "allwinner,sun4i-a10-mmc-clk";
445 reg = <0x01c20090 0x4>;
446 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
447 clock-output-names = "mmc2",
452 mmc3_clk: clk@01c20094 {
454 compatible = "allwinner,sun4i-a10-mmc-clk";
455 reg = <0x01c20094 0x4>;
456 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
457 clock-output-names = "mmc3",
462 ts_clk: clk@01c20098 {
464 compatible = "allwinner,sun4i-a10-mod0-clk";
465 reg = <0x01c20098 0x4>;
466 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
467 clock-output-names = "ts";
470 ss_clk: clk@01c2009c {
472 compatible = "allwinner,sun4i-a10-mod0-clk";
473 reg = <0x01c2009c 0x4>;
474 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
475 clock-output-names = "ss";
478 spi0_clk: clk@01c200a0 {
480 compatible = "allwinner,sun4i-a10-mod0-clk";
481 reg = <0x01c200a0 0x4>;
482 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
483 clock-output-names = "spi0";
486 spi1_clk: clk@01c200a4 {
488 compatible = "allwinner,sun4i-a10-mod0-clk";
489 reg = <0x01c200a4 0x4>;
490 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
491 clock-output-names = "spi1";
494 spi2_clk: clk@01c200a8 {
496 compatible = "allwinner,sun4i-a10-mod0-clk";
497 reg = <0x01c200a8 0x4>;
498 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
499 clock-output-names = "spi2";
502 pata_clk: clk@01c200ac {
504 compatible = "allwinner,sun4i-a10-mod0-clk";
505 reg = <0x01c200ac 0x4>;
506 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
507 clock-output-names = "pata";
510 ir0_clk: clk@01c200b0 {
512 compatible = "allwinner,sun4i-a10-mod0-clk";
513 reg = <0x01c200b0 0x4>;
514 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
515 clock-output-names = "ir0";
518 ir1_clk: clk@01c200b4 {
520 compatible = "allwinner,sun4i-a10-mod0-clk";
521 reg = <0x01c200b4 0x4>;
522 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
523 clock-output-names = "ir1";
526 spdif_clk: clk@01c200c0 {
528 compatible = "allwinner,sun4i-a10-mod1-clk";
529 reg = <0x01c200c0 0x4>;
530 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
531 <&pll2 SUN4I_A10_PLL2_4X>,
532 <&pll2 SUN4I_A10_PLL2_2X>,
533 <&pll2 SUN4I_A10_PLL2_1X>;
534 clock-output-names = "spdif";
537 keypad_clk: clk@01c200c4 {
539 compatible = "allwinner,sun4i-a10-mod0-clk";
540 reg = <0x01c200c4 0x4>;
542 clock-output-names = "keypad";
545 usb_clk: clk@01c200cc {
548 compatible = "allwinner,sun4i-a10-usb-clk";
549 reg = <0x01c200cc 0x4>;
551 clock-output-names = "usb_ohci0", "usb_ohci1",
555 spi3_clk: clk@01c200d4 {
557 compatible = "allwinner,sun4i-a10-mod0-clk";
558 reg = <0x01c200d4 0x4>;
559 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
560 clock-output-names = "spi3";
563 dram_gates: clk@01c20100 {
565 compatible = "allwinner,sun4i-a10-dram-gates-clk";
566 reg = <0x01c20100 0x4>;
577 clock-output-names = "dram_ve",
578 "dram_csi0", "dram_csi1",
581 "dram_tve0", "dram_tve1",
583 "dram_de_fe1", "dram_de_fe0",
584 "dram_de_be0", "dram_de_be1",
585 "dram_de_mp", "dram_ace";
588 de_be0_clk: clk@01c20104 {
591 compatible = "allwinner,sun4i-a10-display-clk";
592 reg = <0x01c20104 0x4>;
593 clocks = <&pll3>, <&pll7>, <&pll5 1>;
594 clock-output-names = "de-be0";
597 de_be1_clk: clk@01c20108 {
600 compatible = "allwinner,sun4i-a10-display-clk";
601 reg = <0x01c20108 0x4>;
602 clocks = <&pll3>, <&pll7>, <&pll5 1>;
603 clock-output-names = "de-be1";
606 de_fe0_clk: clk@01c2010c {
609 compatible = "allwinner,sun4i-a10-display-clk";
610 reg = <0x01c2010c 0x4>;
611 clocks = <&pll3>, <&pll7>, <&pll5 1>;
612 clock-output-names = "de-fe0";
615 de_fe1_clk: clk@01c20110 {
618 compatible = "allwinner,sun4i-a10-display-clk";
619 reg = <0x01c20110 0x4>;
620 clocks = <&pll3>, <&pll7>, <&pll5 1>;
621 clock-output-names = "de-fe1";
624 tcon0_ch0_clk: clk@01c20118 {
627 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
628 reg = <0x01c20118 0x4>;
629 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
630 clock-output-names = "tcon0-ch0-sclk";
634 tcon1_ch0_clk: clk@01c2011c {
637 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
638 reg = <0x01c2011c 0x4>;
639 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
640 clock-output-names = "tcon1-ch0-sclk";
644 tcon0_ch1_clk: clk@01c2012c {
646 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
647 reg = <0x01c2012c 0x4>;
648 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
649 clock-output-names = "tcon0-ch1-sclk";
653 tcon1_ch1_clk: clk@01c20130 {
655 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
656 reg = <0x01c20130 0x4>;
657 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
658 clock-output-names = "tcon1-ch1-sclk";
662 ve_clk: clk@01c2013c {
665 compatible = "allwinner,sun4i-a10-ve-clk";
666 reg = <0x01c2013c 0x4>;
668 clock-output-names = "ve";
671 codec_clk: clk@01c20140 {
673 compatible = "allwinner,sun4i-a10-codec-clk";
674 reg = <0x01c20140 0x4>;
675 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
676 clock-output-names = "codec";
679 mbus_clk: clk@01c2015c {
681 compatible = "allwinner,sun5i-a13-mbus-clk";
682 reg = <0x01c2015c 0x4>;
683 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
684 clock-output-names = "mbus";
688 * The following two are dummy clocks, placeholders
689 * used in the gmac_tx clock. The gmac driver will
690 * choose one parent depending on the PHY interface
691 * mode, using clk_set_rate auto-reparenting.
693 * The actual TX clock rate is not controlled by the
696 mii_phy_tx_clk: clk@2 {
698 compatible = "fixed-clock";
699 clock-frequency = <25000000>;
700 clock-output-names = "mii_phy_tx";
703 gmac_int_tx_clk: clk@3 {
705 compatible = "fixed-clock";
706 clock-frequency = <125000000>;
707 clock-output-names = "gmac_int_tx";
710 gmac_tx_clk: clk@01c20164 {
712 compatible = "allwinner,sun7i-a20-gmac-clk";
713 reg = <0x01c20164 0x4>;
714 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
715 clock-output-names = "gmac_tx";
719 * Dummy clock used by output clocks
723 compatible = "fixed-factor-clock";
727 clock-output-names = "osc24M_32k";
730 clk_out_a: clk@01c201f0 {
732 compatible = "allwinner,sun7i-a20-out-clk";
733 reg = <0x01c201f0 0x4>;
734 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
735 clock-output-names = "clk_out_a";
738 clk_out_b: clk@01c201f4 {
740 compatible = "allwinner,sun7i-a20-out-clk";
741 reg = <0x01c201f4 0x4>;
742 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
743 clock-output-names = "clk_out_b";
748 compatible = "simple-bus";
749 #address-cells = <1>;
753 sram-controller@01c00000 {
754 compatible = "allwinner,sun4i-a10-sram-controller";
755 reg = <0x01c00000 0x30>;
756 #address-cells = <1>;
760 sram_a: sram@00000000 {
761 compatible = "mmio-sram";
762 reg = <0x00000000 0xc000>;
763 #address-cells = <1>;
765 ranges = <0 0x00000000 0xc000>;
767 emac_sram: sram-section@8000 {
768 compatible = "allwinner,sun4i-a10-sram-a3-a4";
769 reg = <0x8000 0x4000>;
774 sram_d: sram@00010000 {
775 compatible = "mmio-sram";
776 reg = <0x00010000 0x1000>;
777 #address-cells = <1>;
779 ranges = <0 0x00010000 0x1000>;
781 otg_sram: sram-section@0000 {
782 compatible = "allwinner,sun4i-a10-sram-d";
783 reg = <0x0000 0x1000>;
789 nmi_intc: interrupt-controller@01c00030 {
790 compatible = "allwinner,sun7i-a20-sc-nmi";
791 interrupt-controller;
792 #interrupt-cells = <2>;
793 reg = <0x01c00030 0x0c>;
794 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
797 dma: dma-controller@01c02000 {
798 compatible = "allwinner,sun4i-a10-dma";
799 reg = <0x01c02000 0x1000>;
800 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
801 clocks = <&ahb_gates 6>;
806 compatible = "allwinner,sun4i-a10-nand";
807 reg = <0x01c03000 0x1000>;
808 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
809 clocks = <&ahb_gates 13>, <&nand_clk>;
810 clock-names = "ahb", "mod";
811 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
814 #address-cells = <1>;
819 compatible = "allwinner,sun4i-a10-spi";
820 reg = <0x01c05000 0x1000>;
821 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
822 clocks = <&ahb_gates 20>, <&spi0_clk>;
823 clock-names = "ahb", "mod";
824 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
825 <&dma SUN4I_DMA_DEDICATED 26>;
826 dma-names = "rx", "tx";
828 #address-cells = <1>;
833 compatible = "allwinner,sun4i-a10-spi";
834 reg = <0x01c06000 0x1000>;
835 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
836 clocks = <&ahb_gates 21>, <&spi1_clk>;
837 clock-names = "ahb", "mod";
838 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
839 <&dma SUN4I_DMA_DEDICATED 8>;
840 dma-names = "rx", "tx";
842 #address-cells = <1>;
846 emac: ethernet@01c0b000 {
847 compatible = "allwinner,sun4i-a10-emac";
848 reg = <0x01c0b000 0x1000>;
849 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
850 clocks = <&ahb_gates 17>;
851 allwinner,sram = <&emac_sram 1>;
855 mdio: mdio@01c0b080 {
856 compatible = "allwinner,sun4i-a10-mdio";
857 reg = <0x01c0b080 0x14>;
859 #address-cells = <1>;
864 compatible = "allwinner,sun5i-a13-mmc";
865 reg = <0x01c0f000 0x1000>;
866 clocks = <&ahb_gates 8>,
874 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
876 #address-cells = <1>;
881 compatible = "allwinner,sun5i-a13-mmc";
882 reg = <0x01c10000 0x1000>;
883 clocks = <&ahb_gates 9>,
891 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
893 #address-cells = <1>;
898 compatible = "allwinner,sun5i-a13-mmc";
899 reg = <0x01c11000 0x1000>;
900 clocks = <&ahb_gates 10>,
908 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
910 #address-cells = <1>;
915 compatible = "allwinner,sun5i-a13-mmc";
916 reg = <0x01c12000 0x1000>;
917 clocks = <&ahb_gates 11>,
925 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
927 #address-cells = <1>;
931 usb_otg: usb@01c13000 {
932 compatible = "allwinner,sun4i-a10-musb";
933 reg = <0x01c13000 0x0400>;
934 clocks = <&ahb_gates 0>;
935 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
936 interrupt-names = "mc";
939 extcon = <&usbphy 0>;
940 allwinner,sram = <&otg_sram 1>;
944 usbphy: phy@01c13400 {
946 compatible = "allwinner,sun7i-a20-usb-phy";
947 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
948 reg-names = "phy_ctrl", "pmu1", "pmu2";
949 clocks = <&usb_clk 8>;
950 clock-names = "usb_phy";
951 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
952 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
956 ehci0: usb@01c14000 {
957 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
958 reg = <0x01c14000 0x100>;
959 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
960 clocks = <&ahb_gates 1>;
966 ohci0: usb@01c14400 {
967 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
968 reg = <0x01c14400 0x100>;
969 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
970 clocks = <&usb_clk 6>, <&ahb_gates 2>;
976 crypto: crypto-engine@01c15000 {
977 compatible = "allwinner,sun4i-a10-crypto";
978 reg = <0x01c15000 0x1000>;
979 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
980 clocks = <&ahb_gates 5>, <&ss_clk>;
981 clock-names = "ahb", "mod";
985 compatible = "allwinner,sun4i-a10-spi";
986 reg = <0x01c17000 0x1000>;
987 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
988 clocks = <&ahb_gates 22>, <&spi2_clk>;
989 clock-names = "ahb", "mod";
990 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
991 <&dma SUN4I_DMA_DEDICATED 28>;
992 dma-names = "rx", "tx";
994 #address-cells = <1>;
998 ahci: sata@01c18000 {
999 compatible = "allwinner,sun4i-a10-ahci";
1000 reg = <0x01c18000 0x1000>;
1001 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
1002 clocks = <&pll6 0>, <&ahb_gates 25>;
1003 status = "disabled";
1006 ehci1: usb@01c1c000 {
1007 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
1008 reg = <0x01c1c000 0x100>;
1009 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
1010 clocks = <&ahb_gates 3>;
1013 status = "disabled";
1016 ohci1: usb@01c1c400 {
1017 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
1018 reg = <0x01c1c400 0x100>;
1019 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
1020 clocks = <&usb_clk 7>, <&ahb_gates 4>;
1023 status = "disabled";
1026 spi3: spi@01c1f000 {
1027 compatible = "allwinner,sun4i-a10-spi";
1028 reg = <0x01c1f000 0x1000>;
1029 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
1030 clocks = <&ahb_gates 23>, <&spi3_clk>;
1031 clock-names = "ahb", "mod";
1032 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
1033 <&dma SUN4I_DMA_DEDICATED 30>;
1034 dma-names = "rx", "tx";
1035 status = "disabled";
1036 #address-cells = <1>;
1040 pio: pinctrl@01c20800 {
1041 compatible = "allwinner,sun7i-a20-pinctrl";
1042 reg = <0x01c20800 0x400>;
1043 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
1044 clocks = <&apb0_gates 5>;
1046 interrupt-controller;
1047 #interrupt-cells = <3>;
1050 clk_out_a_pins_a: clk_out_a@0 {
1051 allwinner,pins = "PI12";
1052 allwinner,function = "clk_out_a";
1053 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1054 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1057 clk_out_b_pins_a: clk_out_b@0 {
1058 allwinner,pins = "PI13";
1059 allwinner,function = "clk_out_b";
1060 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1061 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1064 emac_pins_a: emac0@0 {
1065 allwinner,pins = "PA0", "PA1", "PA2",
1066 "PA3", "PA4", "PA5", "PA6",
1067 "PA7", "PA8", "PA9", "PA10",
1068 "PA11", "PA12", "PA13", "PA14",
1070 allwinner,function = "emac";
1071 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1072 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1075 gmac_pins_mii_a: gmac_mii@0 {
1076 allwinner,pins = "PA0", "PA1", "PA2",
1077 "PA3", "PA4", "PA5", "PA6",
1078 "PA7", "PA8", "PA9", "PA10",
1079 "PA11", "PA12", "PA13", "PA14",
1081 allwinner,function = "gmac";
1082 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1083 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1086 gmac_pins_rgmii_a: gmac_rgmii@0 {
1087 allwinner,pins = "PA0", "PA1", "PA2",
1088 "PA3", "PA4", "PA5", "PA6",
1089 "PA7", "PA8", "PA10",
1090 "PA11", "PA12", "PA13",
1092 allwinner,function = "gmac";
1094 * data lines in RGMII mode use DDR mode
1095 * and need a higher signal drive strength
1097 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
1098 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1101 i2c0_pins_a: i2c0@0 {
1102 allwinner,pins = "PB0", "PB1";
1103 allwinner,function = "i2c0";
1104 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1105 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1108 i2c1_pins_a: i2c1@0 {
1109 allwinner,pins = "PB18", "PB19";
1110 allwinner,function = "i2c1";
1111 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1112 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1115 i2c2_pins_a: i2c2@0 {
1116 allwinner,pins = "PB20", "PB21";
1117 allwinner,function = "i2c2";
1118 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1119 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1122 i2c3_pins_a: i2c3@0 {
1123 allwinner,pins = "PI0", "PI1";
1124 allwinner,function = "i2c3";
1125 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1126 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1129 ir0_rx_pins_a: ir0@0 {
1130 allwinner,pins = "PB4";
1131 allwinner,function = "ir0";
1132 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1133 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1136 ir0_tx_pins_a: ir0@1 {
1137 allwinner,pins = "PB3";
1138 allwinner,function = "ir0";
1139 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1140 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1143 ir1_rx_pins_a: ir1@0 {
1144 allwinner,pins = "PB23";
1145 allwinner,function = "ir1";
1146 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1147 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1150 ir1_tx_pins_a: ir1@1 {
1151 allwinner,pins = "PB22";
1152 allwinner,function = "ir1";
1153 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1154 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1157 mmc0_pins_a: mmc0@0 {
1158 allwinner,pins = "PF0", "PF1", "PF2",
1159 "PF3", "PF4", "PF5";
1160 allwinner,function = "mmc0";
1161 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1162 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1165 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1166 allwinner,pins = "PH1";
1167 allwinner,function = "gpio_in";
1168 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1169 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1172 mmc2_pins_a: mmc2@0 {
1173 allwinner,pins = "PC6", "PC7", "PC8",
1174 "PC9", "PC10", "PC11";
1175 allwinner,function = "mmc2";
1176 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1177 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1180 mmc3_pins_a: mmc3@0 {
1181 allwinner,pins = "PI4", "PI5", "PI6",
1182 "PI7", "PI8", "PI9";
1183 allwinner,function = "mmc3";
1184 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1185 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1188 ps20_pins_a: ps20@0 {
1189 allwinner,pins = "PI20", "PI21";
1190 allwinner,function = "ps2";
1191 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1192 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1195 ps21_pins_a: ps21@0 {
1196 allwinner,pins = "PH12", "PH13";
1197 allwinner,function = "ps2";
1198 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1199 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1202 pwm0_pins_a: pwm0@0 {
1203 allwinner,pins = "PB2";
1204 allwinner,function = "pwm";
1205 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1206 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1209 pwm1_pins_a: pwm1@0 {
1210 allwinner,pins = "PI3";
1211 allwinner,function = "pwm";
1212 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1213 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1216 spdif_tx_pins_a: spdif@0 {
1217 allwinner,pins = "PB13";
1218 allwinner,function = "spdif";
1219 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1220 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1223 spi0_pins_a: spi0@0 {
1224 allwinner,pins = "PI11", "PI12", "PI13";
1225 allwinner,function = "spi0";
1226 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1227 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1230 spi0_cs0_pins_a: spi0_cs0@0 {
1231 allwinner,pins = "PI10";
1232 allwinner,function = "spi0";
1233 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1234 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1237 spi0_cs1_pins_a: spi0_cs1@0 {
1238 allwinner,pins = "PI14";
1239 allwinner,function = "spi0";
1240 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1241 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1244 spi1_pins_a: spi1@0 {
1245 allwinner,pins = "PI17", "PI18", "PI19";
1246 allwinner,function = "spi1";
1247 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1248 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1251 spi1_cs0_pins_a: spi1_cs0@0 {
1252 allwinner,pins = "PI16";
1253 allwinner,function = "spi1";
1254 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1255 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1258 spi2_pins_a: spi2@0 {
1259 allwinner,pins = "PC20", "PC21", "PC22";
1260 allwinner,function = "spi2";
1261 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1262 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1265 spi2_pins_b: spi2@1 {
1266 allwinner,pins = "PB15", "PB16", "PB17";
1267 allwinner,function = "spi2";
1268 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1269 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1272 spi2_cs0_pins_a: spi2_cs0@0 {
1273 allwinner,pins = "PC19";
1274 allwinner,function = "spi2";
1275 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1276 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1279 spi2_cs0_pins_b: spi2_cs0@1 {
1280 allwinner,pins = "PB14";
1281 allwinner,function = "spi2";
1282 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1283 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1286 uart0_pins_a: uart0@0 {
1287 allwinner,pins = "PB22", "PB23";
1288 allwinner,function = "uart0";
1289 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1290 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1293 uart2_pins_a: uart2@0 {
1294 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
1295 allwinner,function = "uart2";
1296 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1297 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1300 uart3_pins_a: uart3@0 {
1301 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
1302 allwinner,function = "uart3";
1303 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1304 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1307 uart3_pins_b: uart3@1 {
1308 allwinner,pins = "PH0", "PH1";
1309 allwinner,function = "uart3";
1310 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1311 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1314 uart4_pins_a: uart4@0 {
1315 allwinner,pins = "PG10", "PG11";
1316 allwinner,function = "uart4";
1317 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1318 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1321 uart4_pins_b: uart4@1 {
1322 allwinner,pins = "PH4", "PH5";
1323 allwinner,function = "uart4";
1324 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1325 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1328 uart5_pins_a: uart5@0 {
1329 allwinner,pins = "PI10", "PI11";
1330 allwinner,function = "uart5";
1331 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1332 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1335 uart6_pins_a: uart6@0 {
1336 allwinner,pins = "PI12", "PI13";
1337 allwinner,function = "uart6";
1338 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1339 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1342 uart7_pins_a: uart7@0 {
1343 allwinner,pins = "PI20", "PI21";
1344 allwinner,function = "uart7";
1345 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1346 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1351 compatible = "allwinner,sun4i-a10-timer";
1352 reg = <0x01c20c00 0x90>;
1353 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1354 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1355 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1356 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1357 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1358 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
1362 wdt: watchdog@01c20c90 {
1363 compatible = "allwinner,sun4i-a10-wdt";
1364 reg = <0x01c20c90 0x10>;
1368 compatible = "allwinner,sun7i-a20-rtc";
1369 reg = <0x01c20d00 0x20>;
1370 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1374 compatible = "allwinner,sun7i-a20-pwm";
1375 reg = <0x01c20e00 0xc>;
1378 status = "disabled";
1381 spdif: spdif@01c21000 {
1382 #sound-dai-cells = <0>;
1383 compatible = "allwinner,sun4i-a10-spdif";
1384 reg = <0x01c21000 0x400>;
1385 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1386 clocks = <&apb0_gates 1>, <&spdif_clk>;
1387 clock-names = "apb", "spdif";
1388 dmas = <&dma SUN4I_DMA_NORMAL 2>,
1389 <&dma SUN4I_DMA_NORMAL 2>;
1390 dma-names = "rx", "tx";
1391 status = "disabled";
1395 compatible = "allwinner,sun4i-a10-ir";
1396 clocks = <&apb0_gates 6>, <&ir0_clk>;
1397 clock-names = "apb", "ir";
1398 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1399 reg = <0x01c21800 0x40>;
1400 status = "disabled";
1404 compatible = "allwinner,sun4i-a10-ir";
1405 clocks = <&apb0_gates 7>, <&ir1_clk>;
1406 clock-names = "apb", "ir";
1407 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
1408 reg = <0x01c21c00 0x40>;
1409 status = "disabled";
1412 lradc: lradc@01c22800 {
1413 compatible = "allwinner,sun4i-a10-lradc-keys";
1414 reg = <0x01c22800 0x100>;
1415 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
1416 status = "disabled";
1419 codec: codec@01c22c00 {
1420 #sound-dai-cells = <0>;
1421 compatible = "allwinner,sun7i-a20-codec";
1422 reg = <0x01c22c00 0x40>;
1423 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1424 clocks = <&apb0_gates 0>, <&codec_clk>;
1425 clock-names = "apb", "codec";
1426 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1427 <&dma SUN4I_DMA_NORMAL 19>;
1428 dma-names = "rx", "tx";
1429 status = "disabled";
1432 sid: eeprom@01c23800 {
1433 compatible = "allwinner,sun7i-a20-sid";
1434 reg = <0x01c23800 0x200>;
1438 compatible = "allwinner,sun5i-a13-ts";
1439 reg = <0x01c25000 0x100>;
1440 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1441 #thermal-sensor-cells = <0>;
1444 uart0: serial@01c28000 {
1445 compatible = "snps,dw-apb-uart";
1446 reg = <0x01c28000 0x400>;
1447 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1450 clocks = <&apb1_gates 16>;
1451 status = "disabled";
1454 uart1: serial@01c28400 {
1455 compatible = "snps,dw-apb-uart";
1456 reg = <0x01c28400 0x400>;
1457 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1460 clocks = <&apb1_gates 17>;
1461 status = "disabled";
1464 uart2: serial@01c28800 {
1465 compatible = "snps,dw-apb-uart";
1466 reg = <0x01c28800 0x400>;
1467 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1470 clocks = <&apb1_gates 18>;
1471 status = "disabled";
1474 uart3: serial@01c28c00 {
1475 compatible = "snps,dw-apb-uart";
1476 reg = <0x01c28c00 0x400>;
1477 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
1480 clocks = <&apb1_gates 19>;
1481 status = "disabled";
1484 uart4: serial@01c29000 {
1485 compatible = "snps,dw-apb-uart";
1486 reg = <0x01c29000 0x400>;
1487 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1490 clocks = <&apb1_gates 20>;
1491 status = "disabled";
1494 uart5: serial@01c29400 {
1495 compatible = "snps,dw-apb-uart";
1496 reg = <0x01c29400 0x400>;
1497 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1500 clocks = <&apb1_gates 21>;
1501 status = "disabled";
1504 uart6: serial@01c29800 {
1505 compatible = "snps,dw-apb-uart";
1506 reg = <0x01c29800 0x400>;
1507 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1510 clocks = <&apb1_gates 22>;
1511 status = "disabled";
1514 uart7: serial@01c29c00 {
1515 compatible = "snps,dw-apb-uart";
1516 reg = <0x01c29c00 0x400>;
1517 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
1520 clocks = <&apb1_gates 23>;
1521 status = "disabled";
1524 i2c0: i2c@01c2ac00 {
1525 compatible = "allwinner,sun7i-a20-i2c",
1526 "allwinner,sun4i-a10-i2c";
1527 reg = <0x01c2ac00 0x400>;
1528 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1529 clocks = <&apb1_gates 0>;
1530 status = "disabled";
1531 #address-cells = <1>;
1535 i2c1: i2c@01c2b000 {
1536 compatible = "allwinner,sun7i-a20-i2c",
1537 "allwinner,sun4i-a10-i2c";
1538 reg = <0x01c2b000 0x400>;
1539 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1540 clocks = <&apb1_gates 1>;
1541 status = "disabled";
1542 #address-cells = <1>;
1546 i2c2: i2c@01c2b400 {
1547 compatible = "allwinner,sun7i-a20-i2c",
1548 "allwinner,sun4i-a10-i2c";
1549 reg = <0x01c2b400 0x400>;
1550 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1551 clocks = <&apb1_gates 2>;
1552 status = "disabled";
1553 #address-cells = <1>;
1557 i2c3: i2c@01c2b800 {
1558 compatible = "allwinner,sun7i-a20-i2c",
1559 "allwinner,sun4i-a10-i2c";
1560 reg = <0x01c2b800 0x400>;
1561 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1562 clocks = <&apb1_gates 3>;
1563 status = "disabled";
1564 #address-cells = <1>;
1568 i2c4: i2c@01c2c000 {
1569 compatible = "allwinner,sun7i-a20-i2c",
1570 "allwinner,sun4i-a10-i2c";
1571 reg = <0x01c2c000 0x400>;
1572 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1573 clocks = <&apb1_gates 15>;
1574 status = "disabled";
1575 #address-cells = <1>;
1579 gmac: ethernet@01c50000 {
1580 compatible = "allwinner,sun7i-a20-gmac";
1581 reg = <0x01c50000 0x10000>;
1582 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1583 interrupt-names = "macirq";
1584 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1585 clock-names = "stmmaceth", "allwinner_gmac_tx";
1588 snps,force_sf_dma_mode;
1589 status = "disabled";
1590 #address-cells = <1>;
1595 compatible = "allwinner,sun7i-a20-hstimer";
1596 reg = <0x01c60000 0x1000>;
1597 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1598 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1599 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1600 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1601 clocks = <&ahb_gates 28>;
1604 gic: interrupt-controller@01c81000 {
1605 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1606 reg = <0x01c81000 0x1000>,
1607 <0x01c82000 0x1000>,
1608 <0x01c84000 0x2000>,
1609 <0x01c86000 0x2000>;
1610 interrupt-controller;
1611 #interrupt-cells = <3>;
1612 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1615 ps20: ps2@01c2a000 {
1616 compatible = "allwinner,sun4i-a10-ps2";
1617 reg = <0x01c2a000 0x400>;
1618 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1619 clocks = <&apb1_gates 6>;
1620 status = "disabled";
1623 ps21: ps2@01c2a400 {
1624 compatible = "allwinner,sun4i-a10-ps2";
1625 reg = <0x01c2a400 0x400>;
1626 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1627 clocks = <&apb1_gates 7>;
1628 status = "disabled";