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-output-names = "ahb_usb0", "ahb_ehci0",
271 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
272 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
273 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
274 "ahb_nand", "ahb_sdram", "ahb_ace",
275 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
276 "ahb_spi2", "ahb_spi3", "ahb_sata",
277 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
278 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
279 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
280 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
281 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
285 apb0: apb0@01c20054 {
287 compatible = "allwinner,sun4i-a10-apb0-clk";
288 reg = <0x01c20054 0x4>;
290 clock-output-names = "apb0";
293 apb0_gates: clk@01c20068 {
295 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
296 reg = <0x01c20068 0x4>;
298 clock-output-names = "apb0_codec", "apb0_spdif",
299 "apb0_ac97", "apb0_iis0", "apb0_iis1",
300 "apb0_pio", "apb0_ir0", "apb0_ir1",
301 "apb0_iis2", "apb0_keypad";
306 compatible = "allwinner,sun4i-a10-apb1-clk";
307 reg = <0x01c20058 0x4>;
308 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
309 clock-output-names = "apb1";
312 apb1_gates: clk@01c2006c {
314 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
315 reg = <0x01c2006c 0x4>;
317 clock-output-names = "apb1_i2c0", "apb1_i2c1",
318 "apb1_i2c2", "apb1_i2c3", "apb1_can",
319 "apb1_scr", "apb1_ps20", "apb1_ps21",
320 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
321 "apb1_uart2", "apb1_uart3", "apb1_uart4",
322 "apb1_uart5", "apb1_uart6", "apb1_uart7";
325 nand_clk: clk@01c20080 {
327 compatible = "allwinner,sun4i-a10-mod0-clk";
328 reg = <0x01c20080 0x4>;
329 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
330 clock-output-names = "nand";
333 ms_clk: clk@01c20084 {
335 compatible = "allwinner,sun4i-a10-mod0-clk";
336 reg = <0x01c20084 0x4>;
337 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
338 clock-output-names = "ms";
341 mmc0_clk: clk@01c20088 {
343 compatible = "allwinner,sun4i-a10-mmc-clk";
344 reg = <0x01c20088 0x4>;
345 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
346 clock-output-names = "mmc0",
351 mmc1_clk: clk@01c2008c {
353 compatible = "allwinner,sun4i-a10-mmc-clk";
354 reg = <0x01c2008c 0x4>;
355 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
356 clock-output-names = "mmc1",
361 mmc2_clk: clk@01c20090 {
363 compatible = "allwinner,sun4i-a10-mmc-clk";
364 reg = <0x01c20090 0x4>;
365 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
366 clock-output-names = "mmc2",
371 mmc3_clk: clk@01c20094 {
373 compatible = "allwinner,sun4i-a10-mmc-clk";
374 reg = <0x01c20094 0x4>;
375 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
376 clock-output-names = "mmc3",
381 ts_clk: clk@01c20098 {
383 compatible = "allwinner,sun4i-a10-mod0-clk";
384 reg = <0x01c20098 0x4>;
385 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
386 clock-output-names = "ts";
389 ss_clk: clk@01c2009c {
391 compatible = "allwinner,sun4i-a10-mod0-clk";
392 reg = <0x01c2009c 0x4>;
393 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
394 clock-output-names = "ss";
397 spi0_clk: clk@01c200a0 {
399 compatible = "allwinner,sun4i-a10-mod0-clk";
400 reg = <0x01c200a0 0x4>;
401 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
402 clock-output-names = "spi0";
405 spi1_clk: clk@01c200a4 {
407 compatible = "allwinner,sun4i-a10-mod0-clk";
408 reg = <0x01c200a4 0x4>;
409 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
410 clock-output-names = "spi1";
413 spi2_clk: clk@01c200a8 {
415 compatible = "allwinner,sun4i-a10-mod0-clk";
416 reg = <0x01c200a8 0x4>;
417 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
418 clock-output-names = "spi2";
421 pata_clk: clk@01c200ac {
423 compatible = "allwinner,sun4i-a10-mod0-clk";
424 reg = <0x01c200ac 0x4>;
425 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
426 clock-output-names = "pata";
429 ir0_clk: clk@01c200b0 {
431 compatible = "allwinner,sun4i-a10-mod0-clk";
432 reg = <0x01c200b0 0x4>;
433 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
434 clock-output-names = "ir0";
437 ir1_clk: clk@01c200b4 {
439 compatible = "allwinner,sun4i-a10-mod0-clk";
440 reg = <0x01c200b4 0x4>;
441 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
442 clock-output-names = "ir1";
445 usb_clk: clk@01c200cc {
448 compatible = "allwinner,sun4i-a10-usb-clk";
449 reg = <0x01c200cc 0x4>;
451 clock-output-names = "usb_ohci0", "usb_ohci1",
455 spi3_clk: clk@01c200d4 {
457 compatible = "allwinner,sun4i-a10-mod0-clk";
458 reg = <0x01c200d4 0x4>;
459 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
460 clock-output-names = "spi3";
463 mbus_clk: clk@01c2015c {
465 compatible = "allwinner,sun5i-a13-mbus-clk";
466 reg = <0x01c2015c 0x4>;
467 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
468 clock-output-names = "mbus";
472 * The following two are dummy clocks, placeholders
473 * used in the gmac_tx clock. The gmac driver will
474 * choose one parent depending on the PHY interface
475 * mode, using clk_set_rate auto-reparenting.
477 * The actual TX clock rate is not controlled by the
480 mii_phy_tx_clk: clk@2 {
482 compatible = "fixed-clock";
483 clock-frequency = <25000000>;
484 clock-output-names = "mii_phy_tx";
487 gmac_int_tx_clk: clk@3 {
489 compatible = "fixed-clock";
490 clock-frequency = <125000000>;
491 clock-output-names = "gmac_int_tx";
494 gmac_tx_clk: clk@01c20164 {
496 compatible = "allwinner,sun7i-a20-gmac-clk";
497 reg = <0x01c20164 0x4>;
498 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
499 clock-output-names = "gmac_tx";
503 * Dummy clock used by output clocks
507 compatible = "fixed-factor-clock";
511 clock-output-names = "osc24M_32k";
514 clk_out_a: clk@01c201f0 {
516 compatible = "allwinner,sun7i-a20-out-clk";
517 reg = <0x01c201f0 0x4>;
518 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
519 clock-output-names = "clk_out_a";
522 clk_out_b: clk@01c201f4 {
524 compatible = "allwinner,sun7i-a20-out-clk";
525 reg = <0x01c201f4 0x4>;
526 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
527 clock-output-names = "clk_out_b";
532 compatible = "simple-bus";
533 #address-cells = <1>;
537 sram-controller@01c00000 {
538 compatible = "allwinner,sun4i-a10-sram-controller";
539 reg = <0x01c00000 0x30>;
540 #address-cells = <1>;
544 sram_a: sram@00000000 {
545 compatible = "mmio-sram";
546 reg = <0x00000000 0xc000>;
547 #address-cells = <1>;
549 ranges = <0 0x00000000 0xc000>;
551 emac_sram: sram-section@8000 {
552 compatible = "allwinner,sun4i-a10-sram-a3-a4";
553 reg = <0x8000 0x4000>;
558 sram_d: sram@00010000 {
559 compatible = "mmio-sram";
560 reg = <0x00010000 0x1000>;
561 #address-cells = <1>;
563 ranges = <0 0x00010000 0x1000>;
565 otg_sram: sram-section@0000 {
566 compatible = "allwinner,sun4i-a10-sram-d";
567 reg = <0x0000 0x1000>;
573 nmi_intc: interrupt-controller@01c00030 {
574 compatible = "allwinner,sun7i-a20-sc-nmi";
575 interrupt-controller;
576 #interrupt-cells = <2>;
577 reg = <0x01c00030 0x0c>;
578 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
581 dma: dma-controller@01c02000 {
582 compatible = "allwinner,sun4i-a10-dma";
583 reg = <0x01c02000 0x1000>;
584 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
585 clocks = <&ahb_gates 6>;
590 compatible = "allwinner,sun4i-a10-spi";
591 reg = <0x01c05000 0x1000>;
592 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
593 clocks = <&ahb_gates 20>, <&spi0_clk>;
594 clock-names = "ahb", "mod";
595 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
596 <&dma SUN4I_DMA_DEDICATED 26>;
597 dma-names = "rx", "tx";
599 #address-cells = <1>;
604 compatible = "allwinner,sun4i-a10-spi";
605 reg = <0x01c06000 0x1000>;
606 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
607 clocks = <&ahb_gates 21>, <&spi1_clk>;
608 clock-names = "ahb", "mod";
609 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
610 <&dma SUN4I_DMA_DEDICATED 8>;
611 dma-names = "rx", "tx";
613 #address-cells = <1>;
617 emac: ethernet@01c0b000 {
618 compatible = "allwinner,sun4i-a10-emac";
619 reg = <0x01c0b000 0x1000>;
620 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
621 clocks = <&ahb_gates 17>;
622 allwinner,sram = <&emac_sram 1>;
626 mdio: mdio@01c0b080 {
627 compatible = "allwinner,sun4i-a10-mdio";
628 reg = <0x01c0b080 0x14>;
630 #address-cells = <1>;
635 compatible = "allwinner,sun5i-a13-mmc";
636 reg = <0x01c0f000 0x1000>;
637 clocks = <&ahb_gates 8>,
645 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
647 #address-cells = <1>;
652 compatible = "allwinner,sun5i-a13-mmc";
653 reg = <0x01c10000 0x1000>;
654 clocks = <&ahb_gates 9>,
662 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
664 #address-cells = <1>;
669 compatible = "allwinner,sun5i-a13-mmc";
670 reg = <0x01c11000 0x1000>;
671 clocks = <&ahb_gates 10>,
679 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
681 #address-cells = <1>;
686 compatible = "allwinner,sun5i-a13-mmc";
687 reg = <0x01c12000 0x1000>;
688 clocks = <&ahb_gates 11>,
696 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
698 #address-cells = <1>;
702 usbphy: phy@01c13400 {
704 compatible = "allwinner,sun7i-a20-usb-phy";
705 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
706 reg-names = "phy_ctrl", "pmu1", "pmu2";
707 clocks = <&usb_clk 8>;
708 clock-names = "usb_phy";
709 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
710 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
714 ehci0: usb@01c14000 {
715 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
716 reg = <0x01c14000 0x100>;
717 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
718 clocks = <&ahb_gates 1>;
724 ohci0: usb@01c14400 {
725 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
726 reg = <0x01c14400 0x100>;
727 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
728 clocks = <&usb_clk 6>, <&ahb_gates 2>;
735 compatible = "allwinner,sun4i-a10-spi";
736 reg = <0x01c17000 0x1000>;
737 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
738 clocks = <&ahb_gates 22>, <&spi2_clk>;
739 clock-names = "ahb", "mod";
740 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
741 <&dma SUN4I_DMA_DEDICATED 28>;
742 dma-names = "rx", "tx";
744 #address-cells = <1>;
748 ahci: sata@01c18000 {
749 compatible = "allwinner,sun4i-a10-ahci";
750 reg = <0x01c18000 0x1000>;
751 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
752 clocks = <&pll6 0>, <&ahb_gates 25>;
756 ehci1: usb@01c1c000 {
757 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
758 reg = <0x01c1c000 0x100>;
759 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
760 clocks = <&ahb_gates 3>;
766 ohci1: usb@01c1c400 {
767 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
768 reg = <0x01c1c400 0x100>;
769 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
770 clocks = <&usb_clk 7>, <&ahb_gates 4>;
777 compatible = "allwinner,sun4i-a10-spi";
778 reg = <0x01c1f000 0x1000>;
779 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
780 clocks = <&ahb_gates 23>, <&spi3_clk>;
781 clock-names = "ahb", "mod";
782 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
783 <&dma SUN4I_DMA_DEDICATED 30>;
784 dma-names = "rx", "tx";
786 #address-cells = <1>;
790 pio: pinctrl@01c20800 {
791 compatible = "allwinner,sun7i-a20-pinctrl";
792 reg = <0x01c20800 0x400>;
793 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
794 clocks = <&apb0_gates 5>;
796 interrupt-controller;
797 #interrupt-cells = <2>;
801 pwm0_pins_a: pwm0@0 {
802 allwinner,pins = "PB2";
803 allwinner,function = "pwm";
804 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
805 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
808 pwm1_pins_a: pwm1@0 {
809 allwinner,pins = "PI3";
810 allwinner,function = "pwm";
811 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
812 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
815 uart0_pins_a: uart0@0 {
816 allwinner,pins = "PB22", "PB23";
817 allwinner,function = "uart0";
818 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
819 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
822 uart2_pins_a: uart2@0 {
823 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
824 allwinner,function = "uart2";
825 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
826 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
829 uart3_pins_a: uart3@0 {
830 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
831 allwinner,function = "uart3";
832 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
833 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
836 uart3_pins_b: uart3@1 {
837 allwinner,pins = "PH0", "PH1";
838 allwinner,function = "uart3";
839 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
840 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
843 uart4_pins_a: uart4@0 {
844 allwinner,pins = "PG10", "PG11";
845 allwinner,function = "uart4";
846 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
847 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
850 uart4_pins_b: uart4@1 {
851 allwinner,pins = "PH4", "PH5";
852 allwinner,function = "uart4";
853 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
854 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
857 uart5_pins_a: uart5@0 {
858 allwinner,pins = "PI10", "PI11";
859 allwinner,function = "uart5";
860 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
861 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
864 uart6_pins_a: uart6@0 {
865 allwinner,pins = "PI12", "PI13";
866 allwinner,function = "uart6";
867 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
868 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
871 uart7_pins_a: uart7@0 {
872 allwinner,pins = "PI20", "PI21";
873 allwinner,function = "uart7";
874 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
875 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
878 i2c0_pins_a: i2c0@0 {
879 allwinner,pins = "PB0", "PB1";
880 allwinner,function = "i2c0";
881 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
882 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
885 i2c1_pins_a: i2c1@0 {
886 allwinner,pins = "PB18", "PB19";
887 allwinner,function = "i2c1";
888 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
889 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
892 i2c2_pins_a: i2c2@0 {
893 allwinner,pins = "PB20", "PB21";
894 allwinner,function = "i2c2";
895 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
896 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
899 i2c3_pins_a: i2c3@0 {
900 allwinner,pins = "PI0", "PI1";
901 allwinner,function = "i2c3";
902 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
903 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
906 emac_pins_a: emac0@0 {
907 allwinner,pins = "PA0", "PA1", "PA2",
908 "PA3", "PA4", "PA5", "PA6",
909 "PA7", "PA8", "PA9", "PA10",
910 "PA11", "PA12", "PA13", "PA14",
912 allwinner,function = "emac";
913 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
914 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
917 clk_out_a_pins_a: clk_out_a@0 {
918 allwinner,pins = "PI12";
919 allwinner,function = "clk_out_a";
920 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
921 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
924 clk_out_b_pins_a: clk_out_b@0 {
925 allwinner,pins = "PI13";
926 allwinner,function = "clk_out_b";
927 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
928 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
931 gmac_pins_mii_a: gmac_mii@0 {
932 allwinner,pins = "PA0", "PA1", "PA2",
933 "PA3", "PA4", "PA5", "PA6",
934 "PA7", "PA8", "PA9", "PA10",
935 "PA11", "PA12", "PA13", "PA14",
937 allwinner,function = "gmac";
938 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
939 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
942 gmac_pins_rgmii_a: gmac_rgmii@0 {
943 allwinner,pins = "PA0", "PA1", "PA2",
944 "PA3", "PA4", "PA5", "PA6",
945 "PA7", "PA8", "PA10",
946 "PA11", "PA12", "PA13",
948 allwinner,function = "gmac";
950 * data lines in RGMII mode use DDR mode
951 * and need a higher signal drive strength
953 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
954 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
957 spi0_pins_a: spi0@0 {
958 allwinner,pins = "PI11", "PI12", "PI13";
959 allwinner,function = "spi0";
960 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
961 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
964 spi0_cs0_pins_a: spi0_cs0@0 {
965 allwinner,pins = "PI10";
966 allwinner,function = "spi0";
967 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
968 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
971 spi0_cs1_pins_a: spi0_cs1@0 {
972 allwinner,pins = "PI14";
973 allwinner,function = "spi0";
974 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
975 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
978 spi1_pins_a: spi1@0 {
979 allwinner,pins = "PI17", "PI18", "PI19";
980 allwinner,function = "spi1";
981 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
982 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
985 spi1_cs0_pins_a: spi1_cs0@0 {
986 allwinner,pins = "PI16";
987 allwinner,function = "spi1";
988 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
989 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
992 spi2_pins_a: spi2@0 {
993 allwinner,pins = "PC20", "PC21", "PC22";
994 allwinner,function = "spi2";
995 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
996 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
999 spi2_pins_b: spi2@1 {
1000 allwinner,pins = "PB15", "PB16", "PB17";
1001 allwinner,function = "spi2";
1002 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1003 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1006 spi2_cs0_pins_a: spi2_cs0@0 {
1007 allwinner,pins = "PC19";
1008 allwinner,function = "spi2";
1009 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1010 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1013 spi2_cs0_pins_b: spi2_cs0@1 {
1014 allwinner,pins = "PB14";
1015 allwinner,function = "spi2";
1016 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1017 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1020 mmc0_pins_a: mmc0@0 {
1021 allwinner,pins = "PF0", "PF1", "PF2",
1022 "PF3", "PF4", "PF5";
1023 allwinner,function = "mmc0";
1024 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1025 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1028 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1029 allwinner,pins = "PH1";
1030 allwinner,function = "gpio_in";
1031 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1032 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1035 mmc2_pins_a: mmc2@0 {
1036 allwinner,pins = "PC6", "PC7", "PC8",
1037 "PC9", "PC10", "PC11";
1038 allwinner,function = "mmc2";
1039 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1040 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1043 mmc3_pins_a: mmc3@0 {
1044 allwinner,pins = "PI4", "PI5", "PI6",
1045 "PI7", "PI8", "PI9";
1046 allwinner,function = "mmc3";
1047 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1048 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1051 ir0_rx_pins_a: ir0@0 {
1052 allwinner,pins = "PB4";
1053 allwinner,function = "ir0";
1054 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1055 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1058 ir0_tx_pins_a: ir0@1 {
1059 allwinner,pins = "PB3";
1060 allwinner,function = "ir0";
1061 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1062 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1065 ir1_rx_pins_a: ir1@0 {
1066 allwinner,pins = "PB23";
1067 allwinner,function = "ir1";
1068 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1069 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1072 ir1_tx_pins_a: ir1@1 {
1073 allwinner,pins = "PB22";
1074 allwinner,function = "ir1";
1075 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1076 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1079 ps20_pins_a: ps20@0 {
1080 allwinner,pins = "PI20", "PI21";
1081 allwinner,function = "ps2";
1082 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1083 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1086 ps21_pins_a: ps21@0 {
1087 allwinner,pins = "PH12", "PH13";
1088 allwinner,function = "ps2";
1089 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1090 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1095 compatible = "allwinner,sun4i-a10-timer";
1096 reg = <0x01c20c00 0x90>;
1097 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1098 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1099 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1100 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1101 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1102 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
1106 wdt: watchdog@01c20c90 {
1107 compatible = "allwinner,sun4i-a10-wdt";
1108 reg = <0x01c20c90 0x10>;
1112 compatible = "allwinner,sun7i-a20-rtc";
1113 reg = <0x01c20d00 0x20>;
1114 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1118 compatible = "allwinner,sun7i-a20-pwm";
1119 reg = <0x01c20e00 0xc>;
1122 status = "disabled";
1126 compatible = "allwinner,sun4i-a10-ir";
1127 clocks = <&apb0_gates 6>, <&ir0_clk>;
1128 clock-names = "apb", "ir";
1129 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1130 reg = <0x01c21800 0x40>;
1131 status = "disabled";
1135 compatible = "allwinner,sun4i-a10-ir";
1136 clocks = <&apb0_gates 7>, <&ir1_clk>;
1137 clock-names = "apb", "ir";
1138 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
1139 reg = <0x01c21c00 0x40>;
1140 status = "disabled";
1143 lradc: lradc@01c22800 {
1144 compatible = "allwinner,sun4i-a10-lradc-keys";
1145 reg = <0x01c22800 0x100>;
1146 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
1147 status = "disabled";
1150 sid: eeprom@01c23800 {
1151 compatible = "allwinner,sun7i-a20-sid";
1152 reg = <0x01c23800 0x200>;
1156 compatible = "allwinner,sun5i-a13-ts";
1157 reg = <0x01c25000 0x100>;
1158 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1159 #thermal-sensor-cells = <0>;
1162 uart0: serial@01c28000 {
1163 compatible = "snps,dw-apb-uart";
1164 reg = <0x01c28000 0x400>;
1165 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1168 clocks = <&apb1_gates 16>;
1169 status = "disabled";
1172 uart1: serial@01c28400 {
1173 compatible = "snps,dw-apb-uart";
1174 reg = <0x01c28400 0x400>;
1175 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1178 clocks = <&apb1_gates 17>;
1179 status = "disabled";
1182 uart2: serial@01c28800 {
1183 compatible = "snps,dw-apb-uart";
1184 reg = <0x01c28800 0x400>;
1185 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1188 clocks = <&apb1_gates 18>;
1189 status = "disabled";
1192 uart3: serial@01c28c00 {
1193 compatible = "snps,dw-apb-uart";
1194 reg = <0x01c28c00 0x400>;
1195 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
1198 clocks = <&apb1_gates 19>;
1199 status = "disabled";
1202 uart4: serial@01c29000 {
1203 compatible = "snps,dw-apb-uart";
1204 reg = <0x01c29000 0x400>;
1205 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1208 clocks = <&apb1_gates 20>;
1209 status = "disabled";
1212 uart5: serial@01c29400 {
1213 compatible = "snps,dw-apb-uart";
1214 reg = <0x01c29400 0x400>;
1215 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1218 clocks = <&apb1_gates 21>;
1219 status = "disabled";
1222 uart6: serial@01c29800 {
1223 compatible = "snps,dw-apb-uart";
1224 reg = <0x01c29800 0x400>;
1225 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1228 clocks = <&apb1_gates 22>;
1229 status = "disabled";
1232 uart7: serial@01c29c00 {
1233 compatible = "snps,dw-apb-uart";
1234 reg = <0x01c29c00 0x400>;
1235 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
1238 clocks = <&apb1_gates 23>;
1239 status = "disabled";
1242 i2c0: i2c@01c2ac00 {
1243 compatible = "allwinner,sun7i-a20-i2c",
1244 "allwinner,sun4i-a10-i2c";
1245 reg = <0x01c2ac00 0x400>;
1246 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1247 clocks = <&apb1_gates 0>;
1248 status = "disabled";
1249 #address-cells = <1>;
1253 i2c1: i2c@01c2b000 {
1254 compatible = "allwinner,sun7i-a20-i2c",
1255 "allwinner,sun4i-a10-i2c";
1256 reg = <0x01c2b000 0x400>;
1257 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1258 clocks = <&apb1_gates 1>;
1259 status = "disabled";
1260 #address-cells = <1>;
1264 i2c2: i2c@01c2b400 {
1265 compatible = "allwinner,sun7i-a20-i2c",
1266 "allwinner,sun4i-a10-i2c";
1267 reg = <0x01c2b400 0x400>;
1268 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1269 clocks = <&apb1_gates 2>;
1270 status = "disabled";
1271 #address-cells = <1>;
1275 i2c3: i2c@01c2b800 {
1276 compatible = "allwinner,sun7i-a20-i2c",
1277 "allwinner,sun4i-a10-i2c";
1278 reg = <0x01c2b800 0x400>;
1279 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1280 clocks = <&apb1_gates 3>;
1281 status = "disabled";
1282 #address-cells = <1>;
1286 i2c4: i2c@01c2c000 {
1287 compatible = "allwinner,sun7i-a20-i2c",
1288 "allwinner,sun4i-a10-i2c";
1289 reg = <0x01c2c000 0x400>;
1290 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1291 clocks = <&apb1_gates 15>;
1292 status = "disabled";
1293 #address-cells = <1>;
1297 gmac: ethernet@01c50000 {
1298 compatible = "allwinner,sun7i-a20-gmac";
1299 reg = <0x01c50000 0x10000>;
1300 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1301 interrupt-names = "macirq";
1302 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1303 clock-names = "stmmaceth", "allwinner_gmac_tx";
1306 snps,force_sf_dma_mode;
1307 status = "disabled";
1308 #address-cells = <1>;
1313 compatible = "allwinner,sun7i-a20-hstimer";
1314 reg = <0x01c60000 0x1000>;
1315 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1316 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1317 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1318 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1319 clocks = <&ahb_gates 28>;
1322 gic: interrupt-controller@01c81000 {
1323 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1324 reg = <0x01c81000 0x1000>,
1325 <0x01c82000 0x1000>,
1326 <0x01c84000 0x2000>,
1327 <0x01c86000 0x2000>;
1328 interrupt-controller;
1329 #interrupt-cells = <3>;
1330 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1333 ps20: ps2@01c2a000 {
1334 compatible = "allwinner,sun4i-a10-ps2";
1335 reg = <0x01c2a000 0x400>;
1336 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1337 clocks = <&apb1_gates 6>;
1338 status = "disabled";
1341 ps21: ps2@01c2a400 {
1342 compatible = "allwinner,sun4i-a10-ps2";
1343 reg = <0x01c2a400 0x400>;
1344 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1345 clocks = <&apb1_gates 7>;
1346 status = "disabled";