2 * Copyright 2012 Stefan Roese
3 * Stefan Roese <sr@denx.de>
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
10 * a) This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "skeleton.dtsi"
46 #include <dt-bindings/thermal/thermal.h>
48 #include <dt-bindings/clock/sun4i-a10-pll2.h>
49 #include <dt-bindings/dma/sun4i-a10.h>
50 #include <dt-bindings/pinctrl/sun4i-a10.h>
53 interrupt-parent = <&intc>;
65 compatible = "allwinner,simple-framebuffer",
67 allwinner,pipeline = "de_be0-lcd0-hdmi";
68 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
74 compatible = "allwinner,simple-framebuffer",
76 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
77 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
78 <&ahb_gates 44>, <&ahb_gates 46>;
83 compatible = "allwinner,simple-framebuffer",
85 allwinner,pipeline = "de_fe0-de_be0-lcd0";
86 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
92 compatible = "allwinner,simple-framebuffer",
94 allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
95 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
96 <&ahb_gates 44>, <&ahb_gates 46>;
102 #address-cells = <1>;
106 compatible = "arm,cortex-a8";
109 clock-latency = <244144>; /* 8 32k periods */
117 #cooling-cells = <2>;
118 cooling-min-level = <0>;
119 cooling-max-level = <3>;
126 polling-delay-passive = <250>;
127 polling-delay = <1000>;
128 thermal-sensors = <&rtp>;
132 trip = <&cpu_alert0>;
133 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
138 cpu_alert0: cpu_alert0 {
140 temperature = <850000>;
147 temperature = <100000>;
156 reg = <0x40000000 0x80000000>;
160 #address-cells = <1>;
165 * This is a dummy clock, to be used as placeholder on
166 * other mux clocks when a specific parent clock is not
167 * yet implemented. It should be dropped when the driver
172 compatible = "fixed-clock";
173 clock-frequency = <0>;
176 osc24M: clk@01c20050 {
178 compatible = "allwinner,sun4i-a10-osc-clk";
179 reg = <0x01c20050 0x4>;
180 clock-frequency = <24000000>;
181 clock-output-names = "osc24M";
186 compatible = "fixed-clock";
187 clock-frequency = <32768>;
188 clock-output-names = "osc32k";
193 compatible = "allwinner,sun4i-a10-pll1-clk";
194 reg = <0x01c20000 0x4>;
196 clock-output-names = "pll1";
201 compatible = "allwinner,sun4i-a10-pll2-clk";
202 reg = <0x01c20008 0x8>;
204 clock-output-names = "pll2-1x", "pll2-2x",
205 "pll2-4x", "pll2-8x";
210 compatible = "allwinner,sun4i-a10-pll1-clk";
211 reg = <0x01c20018 0x4>;
213 clock-output-names = "pll4";
218 compatible = "allwinner,sun4i-a10-pll5-clk";
219 reg = <0x01c20020 0x4>;
221 clock-output-names = "pll5_ddr", "pll5_other";
226 compatible = "allwinner,sun4i-a10-pll6-clk";
227 reg = <0x01c20028 0x4>;
229 clock-output-names = "pll6_sata", "pll6_other", "pll6";
235 compatible = "allwinner,sun4i-a10-cpu-clk";
236 reg = <0x01c20054 0x4>;
237 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
238 clock-output-names = "cpu";
243 compatible = "allwinner,sun4i-a10-axi-clk";
244 reg = <0x01c20054 0x4>;
246 clock-output-names = "axi";
249 axi_gates: clk@01c2005c {
251 compatible = "allwinner,sun4i-a10-axi-gates-clk";
252 reg = <0x01c2005c 0x4>;
255 clock-output-names = "axi_dram";
260 compatible = "allwinner,sun4i-a10-ahb-clk";
261 reg = <0x01c20054 0x4>;
263 clock-output-names = "ahb";
266 ahb_gates: clk@01c20060 {
268 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
269 reg = <0x01c20060 0x8>;
271 clock-indices = <0>, <1>,
286 clock-output-names = "ahb_usb0", "ahb_ehci0",
287 "ahb_ohci0", "ahb_ehci1",
288 "ahb_ohci1", "ahb_ss", "ahb_dma",
289 "ahb_bist", "ahb_mmc0", "ahb_mmc1",
290 "ahb_mmc2", "ahb_mmc3", "ahb_ms",
291 "ahb_nand", "ahb_sdram", "ahb_ace",
292 "ahb_emac", "ahb_ts", "ahb_spi0",
293 "ahb_spi1", "ahb_spi2", "ahb_spi3",
294 "ahb_pata", "ahb_sata", "ahb_gps",
295 "ahb_ve", "ahb_tvd", "ahb_tve0",
296 "ahb_tve1", "ahb_lcd0", "ahb_lcd1",
297 "ahb_csi0", "ahb_csi1", "ahb_hdmi",
298 "ahb_de_be0", "ahb_de_be1",
299 "ahb_de_fe0", "ahb_de_fe1",
300 "ahb_mp", "ahb_mali400";
303 apb0: apb0@01c20054 {
305 compatible = "allwinner,sun4i-a10-apb0-clk";
306 reg = <0x01c20054 0x4>;
308 clock-output-names = "apb0";
311 apb0_gates: clk@01c20068 {
313 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
314 reg = <0x01c20068 0x4>;
316 clock-indices = <0>, <1>,
320 clock-output-names = "apb0_codec", "apb0_spdif",
321 "apb0_ac97", "apb0_iis",
322 "apb0_pio", "apb0_ir0",
323 "apb0_ir1", "apb0_keypad";
328 compatible = "allwinner,sun4i-a10-apb1-clk";
329 reg = <0x01c20058 0x4>;
330 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
331 clock-output-names = "apb1";
334 apb1_gates: clk@01c2006c {
336 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
337 reg = <0x01c2006c 0x4>;
339 clock-indices = <0>, <1>,
347 clock-output-names = "apb1_i2c0", "apb1_i2c1",
348 "apb1_i2c2", "apb1_can",
349 "apb1_scr", "apb1_ps20",
350 "apb1_ps21", "apb1_uart0",
351 "apb1_uart1", "apb1_uart2",
352 "apb1_uart3", "apb1_uart4",
353 "apb1_uart5", "apb1_uart6",
357 nand_clk: clk@01c20080 {
359 compatible = "allwinner,sun4i-a10-mod0-clk";
360 reg = <0x01c20080 0x4>;
361 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
362 clock-output-names = "nand";
365 ms_clk: clk@01c20084 {
367 compatible = "allwinner,sun4i-a10-mod0-clk";
368 reg = <0x01c20084 0x4>;
369 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
370 clock-output-names = "ms";
373 mmc0_clk: clk@01c20088 {
375 compatible = "allwinner,sun4i-a10-mmc-clk";
376 reg = <0x01c20088 0x4>;
377 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
378 clock-output-names = "mmc0",
383 mmc1_clk: clk@01c2008c {
385 compatible = "allwinner,sun4i-a10-mmc-clk";
386 reg = <0x01c2008c 0x4>;
387 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
388 clock-output-names = "mmc1",
393 mmc2_clk: clk@01c20090 {
395 compatible = "allwinner,sun4i-a10-mmc-clk";
396 reg = <0x01c20090 0x4>;
397 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
398 clock-output-names = "mmc2",
403 mmc3_clk: clk@01c20094 {
405 compatible = "allwinner,sun4i-a10-mmc-clk";
406 reg = <0x01c20094 0x4>;
407 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
408 clock-output-names = "mmc3",
413 ts_clk: clk@01c20098 {
415 compatible = "allwinner,sun4i-a10-mod0-clk";
416 reg = <0x01c20098 0x4>;
417 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
418 clock-output-names = "ts";
421 ss_clk: clk@01c2009c {
423 compatible = "allwinner,sun4i-a10-mod0-clk";
424 reg = <0x01c2009c 0x4>;
425 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
426 clock-output-names = "ss";
429 spi0_clk: clk@01c200a0 {
431 compatible = "allwinner,sun4i-a10-mod0-clk";
432 reg = <0x01c200a0 0x4>;
433 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
434 clock-output-names = "spi0";
437 spi1_clk: clk@01c200a4 {
439 compatible = "allwinner,sun4i-a10-mod0-clk";
440 reg = <0x01c200a4 0x4>;
441 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
442 clock-output-names = "spi1";
445 spi2_clk: clk@01c200a8 {
447 compatible = "allwinner,sun4i-a10-mod0-clk";
448 reg = <0x01c200a8 0x4>;
449 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
450 clock-output-names = "spi2";
453 pata_clk: clk@01c200ac {
455 compatible = "allwinner,sun4i-a10-mod0-clk";
456 reg = <0x01c200ac 0x4>;
457 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
458 clock-output-names = "pata";
461 ir0_clk: clk@01c200b0 {
463 compatible = "allwinner,sun4i-a10-mod0-clk";
464 reg = <0x01c200b0 0x4>;
465 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
466 clock-output-names = "ir0";
469 ir1_clk: clk@01c200b4 {
471 compatible = "allwinner,sun4i-a10-mod0-clk";
472 reg = <0x01c200b4 0x4>;
473 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
474 clock-output-names = "ir1";
477 usb_clk: clk@01c200cc {
480 compatible = "allwinner,sun4i-a10-usb-clk";
481 reg = <0x01c200cc 0x4>;
483 clock-output-names = "usb_ohci0", "usb_ohci1",
487 spi3_clk: clk@01c200d4 {
489 compatible = "allwinner,sun4i-a10-mod0-clk";
490 reg = <0x01c200d4 0x4>;
491 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
492 clock-output-names = "spi3";
495 codec_clk: clk@01c20140 {
497 compatible = "allwinner,sun4i-a10-codec-clk";
498 reg = <0x01c20140 0x4>;
499 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
500 clock-output-names = "codec";
505 compatible = "simple-bus";
506 #address-cells = <1>;
510 sram-controller@01c00000 {
511 compatible = "allwinner,sun4i-a10-sram-controller";
512 reg = <0x01c00000 0x30>;
513 #address-cells = <1>;
517 sram_a: sram@00000000 {
518 compatible = "mmio-sram";
519 reg = <0x00000000 0xc000>;
520 #address-cells = <1>;
522 ranges = <0 0x00000000 0xc000>;
524 emac_sram: sram-section@8000 {
525 compatible = "allwinner,sun4i-a10-sram-a3-a4";
526 reg = <0x8000 0x4000>;
531 sram_d: sram@00010000 {
532 compatible = "mmio-sram";
533 reg = <0x00010000 0x1000>;
534 #address-cells = <1>;
536 ranges = <0 0x00010000 0x1000>;
538 otg_sram: sram-section@0000 {
539 compatible = "allwinner,sun4i-a10-sram-d";
540 reg = <0x0000 0x1000>;
546 dma: dma-controller@01c02000 {
547 compatible = "allwinner,sun4i-a10-dma";
548 reg = <0x01c02000 0x1000>;
550 clocks = <&ahb_gates 6>;
555 compatible = "allwinner,sun4i-a10-spi";
556 reg = <0x01c05000 0x1000>;
558 clocks = <&ahb_gates 20>, <&spi0_clk>;
559 clock-names = "ahb", "mod";
560 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
561 <&dma SUN4I_DMA_DEDICATED 26>;
562 dma-names = "rx", "tx";
564 #address-cells = <1>;
569 compatible = "allwinner,sun4i-a10-spi";
570 reg = <0x01c06000 0x1000>;
572 clocks = <&ahb_gates 21>, <&spi1_clk>;
573 clock-names = "ahb", "mod";
574 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
575 <&dma SUN4I_DMA_DEDICATED 8>;
576 dma-names = "rx", "tx";
578 #address-cells = <1>;
582 emac: ethernet@01c0b000 {
583 compatible = "allwinner,sun4i-a10-emac";
584 reg = <0x01c0b000 0x1000>;
586 clocks = <&ahb_gates 17>;
587 allwinner,sram = <&emac_sram 1>;
591 mdio: mdio@01c0b080 {
592 compatible = "allwinner,sun4i-a10-mdio";
593 reg = <0x01c0b080 0x14>;
595 #address-cells = <1>;
600 compatible = "allwinner,sun4i-a10-mmc";
601 reg = <0x01c0f000 0x1000>;
602 clocks = <&ahb_gates 8>,
612 #address-cells = <1>;
617 compatible = "allwinner,sun4i-a10-mmc";
618 reg = <0x01c10000 0x1000>;
619 clocks = <&ahb_gates 9>,
629 #address-cells = <1>;
634 compatible = "allwinner,sun4i-a10-mmc";
635 reg = <0x01c11000 0x1000>;
636 clocks = <&ahb_gates 10>,
646 #address-cells = <1>;
651 compatible = "allwinner,sun4i-a10-mmc";
652 reg = <0x01c12000 0x1000>;
653 clocks = <&ahb_gates 11>,
663 #address-cells = <1>;
667 usb_otg: usb@01c13000 {
668 compatible = "allwinner,sun4i-a10-musb";
669 reg = <0x01c13000 0x0400>;
670 clocks = <&ahb_gates 0>;
672 interrupt-names = "mc";
675 extcon = <&usbphy 0>;
676 allwinner,sram = <&otg_sram 1>;
680 usbphy: phy@01c13400 {
682 compatible = "allwinner,sun4i-a10-usb-phy";
683 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
684 reg-names = "phy_ctrl", "pmu1", "pmu2";
685 clocks = <&usb_clk 8>;
686 clock-names = "usb_phy";
687 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
688 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
692 ehci0: usb@01c14000 {
693 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
694 reg = <0x01c14000 0x100>;
696 clocks = <&ahb_gates 1>;
702 ohci0: usb@01c14400 {
703 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
704 reg = <0x01c14400 0x100>;
706 clocks = <&usb_clk 6>, <&ahb_gates 2>;
712 crypto: crypto-engine@01c15000 {
713 compatible = "allwinner,sun4i-a10-crypto";
714 reg = <0x01c15000 0x1000>;
716 clocks = <&ahb_gates 5>, <&ss_clk>;
717 clock-names = "ahb", "mod";
721 compatible = "allwinner,sun4i-a10-spi";
722 reg = <0x01c17000 0x1000>;
724 clocks = <&ahb_gates 22>, <&spi2_clk>;
725 clock-names = "ahb", "mod";
726 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
727 <&dma SUN4I_DMA_DEDICATED 28>;
728 dma-names = "rx", "tx";
730 #address-cells = <1>;
734 ahci: sata@01c18000 {
735 compatible = "allwinner,sun4i-a10-ahci";
736 reg = <0x01c18000 0x1000>;
738 clocks = <&pll6 0>, <&ahb_gates 25>;
742 ehci1: usb@01c1c000 {
743 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
744 reg = <0x01c1c000 0x100>;
746 clocks = <&ahb_gates 3>;
752 ohci1: usb@01c1c400 {
753 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
754 reg = <0x01c1c400 0x100>;
756 clocks = <&usb_clk 7>, <&ahb_gates 4>;
763 compatible = "allwinner,sun4i-a10-spi";
764 reg = <0x01c1f000 0x1000>;
766 clocks = <&ahb_gates 23>, <&spi3_clk>;
767 clock-names = "ahb", "mod";
768 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
769 <&dma SUN4I_DMA_DEDICATED 30>;
770 dma-names = "rx", "tx";
772 #address-cells = <1>;
776 intc: interrupt-controller@01c20400 {
777 compatible = "allwinner,sun4i-a10-ic";
778 reg = <0x01c20400 0x400>;
779 interrupt-controller;
780 #interrupt-cells = <1>;
783 pio: pinctrl@01c20800 {
784 compatible = "allwinner,sun4i-a10-pinctrl";
785 reg = <0x01c20800 0x400>;
787 clocks = <&apb0_gates 5>;
789 interrupt-controller;
790 #interrupt-cells = <3>;
793 pwm0_pins_a: pwm0@0 {
794 allwinner,pins = "PB2";
795 allwinner,function = "pwm";
796 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
797 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
800 pwm1_pins_a: pwm1@0 {
801 allwinner,pins = "PI3";
802 allwinner,function = "pwm";
803 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
804 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
807 uart0_pins_a: uart0@0 {
808 allwinner,pins = "PB22", "PB23";
809 allwinner,function = "uart0";
810 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
811 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
814 uart0_pins_b: uart0@1 {
815 allwinner,pins = "PF2", "PF4";
816 allwinner,function = "uart0";
817 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
818 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
821 uart1_pins_a: uart1@0 {
822 allwinner,pins = "PA10", "PA11";
823 allwinner,function = "uart1";
824 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
825 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
828 i2c0_pins_a: i2c0@0 {
829 allwinner,pins = "PB0", "PB1";
830 allwinner,function = "i2c0";
831 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
832 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
835 i2c1_pins_a: i2c1@0 {
836 allwinner,pins = "PB18", "PB19";
837 allwinner,function = "i2c1";
838 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
839 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
842 i2c2_pins_a: i2c2@0 {
843 allwinner,pins = "PB20", "PB21";
844 allwinner,function = "i2c2";
845 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
846 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
849 emac_pins_a: emac0@0 {
850 allwinner,pins = "PA0", "PA1", "PA2",
851 "PA3", "PA4", "PA5", "PA6",
852 "PA7", "PA8", "PA9", "PA10",
853 "PA11", "PA12", "PA13", "PA14",
855 allwinner,function = "emac";
856 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
857 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
860 mmc0_pins_a: mmc0@0 {
861 allwinner,pins = "PF0", "PF1", "PF2",
863 allwinner,function = "mmc0";
864 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
865 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
868 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
869 allwinner,pins = "PH1";
870 allwinner,function = "gpio_in";
871 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
872 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
875 ir0_rx_pins_a: ir0@0 {
876 allwinner,pins = "PB4";
877 allwinner,function = "ir0";
878 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
879 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
882 ir0_tx_pins_a: ir0@1 {
883 allwinner,pins = "PB3";
884 allwinner,function = "ir0";
885 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
886 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
889 ir1_rx_pins_a: ir1@0 {
890 allwinner,pins = "PB23";
891 allwinner,function = "ir1";
892 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
893 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
896 ir1_tx_pins_a: ir1@1 {
897 allwinner,pins = "PB22";
898 allwinner,function = "ir1";
899 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
900 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
903 spi0_pins_a: spi0@0 {
904 allwinner,pins = "PI11", "PI12", "PI13";
905 allwinner,function = "spi0";
906 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
907 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
910 spi0_cs0_pins_a: spi0_cs0@0 {
911 allwinner,pins = "PI10";
912 allwinner,function = "spi0";
913 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
914 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
917 spi1_pins_a: spi1@0 {
918 allwinner,pins = "PI17", "PI18", "PI19";
919 allwinner,function = "spi1";
920 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
921 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
924 spi1_cs0_pins_a: spi1_cs0@0 {
925 allwinner,pins = "PI16";
926 allwinner,function = "spi1";
927 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
928 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
931 spi2_pins_a: spi2@0 {
932 allwinner,pins = "PC20", "PC21", "PC22";
933 allwinner,function = "spi2";
934 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
935 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
938 spi2_pins_b: spi2@1 {
939 allwinner,pins = "PB15", "PB16", "PB17";
940 allwinner,function = "spi2";
941 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
942 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
945 spi2_cs0_pins_a: spi2_cs0@0 {
946 allwinner,pins = "PC19";
947 allwinner,function = "spi2";
948 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
949 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
952 spi2_cs0_pins_b: spi2_cs0@1 {
953 allwinner,pins = "PB14";
954 allwinner,function = "spi2";
955 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
956 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
959 ps20_pins_a: ps20@0 {
960 allwinner,pins = "PI20", "PI21";
961 allwinner,function = "ps2";
962 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
963 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
966 ps21_pins_a: ps21@0 {
967 allwinner,pins = "PH12", "PH13";
968 allwinner,function = "ps2";
969 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
970 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
975 compatible = "allwinner,sun4i-a10-timer";
976 reg = <0x01c20c00 0x90>;
981 wdt: watchdog@01c20c90 {
982 compatible = "allwinner,sun4i-a10-wdt";
983 reg = <0x01c20c90 0x10>;
987 compatible = "allwinner,sun4i-a10-rtc";
988 reg = <0x01c20d00 0x20>;
993 compatible = "allwinner,sun4i-a10-pwm";
994 reg = <0x01c20e00 0xc>;
1001 compatible = "allwinner,sun4i-a10-ir";
1002 clocks = <&apb0_gates 6>, <&ir0_clk>;
1003 clock-names = "apb", "ir";
1005 reg = <0x01c21800 0x40>;
1006 status = "disabled";
1010 compatible = "allwinner,sun4i-a10-ir";
1011 clocks = <&apb0_gates 7>, <&ir1_clk>;
1012 clock-names = "apb", "ir";
1014 reg = <0x01c21c00 0x40>;
1015 status = "disabled";
1018 lradc: lradc@01c22800 {
1019 compatible = "allwinner,sun4i-a10-lradc-keys";
1020 reg = <0x01c22800 0x100>;
1022 status = "disabled";
1025 codec: codec@01c22c00 {
1026 #sound-dai-cells = <0>;
1027 compatible = "allwinner,sun4i-a10-codec";
1028 reg = <0x01c22c00 0x40>;
1030 clocks = <&apb0_gates 0>, <&codec_clk>;
1031 clock-names = "apb", "codec";
1032 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1033 <&dma SUN4I_DMA_NORMAL 19>;
1034 dma-names = "rx", "tx";
1035 status = "disabled";
1038 sid: eeprom@01c23800 {
1039 compatible = "allwinner,sun4i-a10-sid";
1040 reg = <0x01c23800 0x10>;
1044 compatible = "allwinner,sun4i-a10-ts";
1045 reg = <0x01c25000 0x100>;
1047 #thermal-sensor-cells = <0>;
1050 uart0: serial@01c28000 {
1051 compatible = "snps,dw-apb-uart";
1052 reg = <0x01c28000 0x400>;
1056 clocks = <&apb1_gates 16>;
1057 status = "disabled";
1060 uart1: serial@01c28400 {
1061 compatible = "snps,dw-apb-uart";
1062 reg = <0x01c28400 0x400>;
1066 clocks = <&apb1_gates 17>;
1067 status = "disabled";
1070 uart2: serial@01c28800 {
1071 compatible = "snps,dw-apb-uart";
1072 reg = <0x01c28800 0x400>;
1076 clocks = <&apb1_gates 18>;
1077 status = "disabled";
1080 uart3: serial@01c28c00 {
1081 compatible = "snps,dw-apb-uart";
1082 reg = <0x01c28c00 0x400>;
1086 clocks = <&apb1_gates 19>;
1087 status = "disabled";
1090 uart4: serial@01c29000 {
1091 compatible = "snps,dw-apb-uart";
1092 reg = <0x01c29000 0x400>;
1096 clocks = <&apb1_gates 20>;
1097 status = "disabled";
1100 uart5: serial@01c29400 {
1101 compatible = "snps,dw-apb-uart";
1102 reg = <0x01c29400 0x400>;
1106 clocks = <&apb1_gates 21>;
1107 status = "disabled";
1110 uart6: serial@01c29800 {
1111 compatible = "snps,dw-apb-uart";
1112 reg = <0x01c29800 0x400>;
1116 clocks = <&apb1_gates 22>;
1117 status = "disabled";
1120 uart7: serial@01c29c00 {
1121 compatible = "snps,dw-apb-uart";
1122 reg = <0x01c29c00 0x400>;
1126 clocks = <&apb1_gates 23>;
1127 status = "disabled";
1130 i2c0: i2c@01c2ac00 {
1131 compatible = "allwinner,sun4i-a10-i2c";
1132 reg = <0x01c2ac00 0x400>;
1134 clocks = <&apb1_gates 0>;
1135 status = "disabled";
1136 #address-cells = <1>;
1140 i2c1: i2c@01c2b000 {
1141 compatible = "allwinner,sun4i-a10-i2c";
1142 reg = <0x01c2b000 0x400>;
1144 clocks = <&apb1_gates 1>;
1145 status = "disabled";
1146 #address-cells = <1>;
1150 i2c2: i2c@01c2b400 {
1151 compatible = "allwinner,sun4i-a10-i2c";
1152 reg = <0x01c2b400 0x400>;
1154 clocks = <&apb1_gates 2>;
1155 status = "disabled";
1156 #address-cells = <1>;
1160 ps20: ps2@01c2a000 {
1161 compatible = "allwinner,sun4i-a10-ps2";
1162 reg = <0x01c2a000 0x400>;
1164 clocks = <&apb1_gates 6>;
1165 status = "disabled";
1168 ps21: ps2@01c2a400 {
1169 compatible = "allwinner,sun4i-a10-ps2";
1170 reg = <0x01c2a400 0x400>;
1172 clocks = <&apb1_gates 7>;
1173 status = "disabled";