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/dma/sun4i-a10.h>
49 #include <dt-bindings/pinctrl/sun4i-a10.h>
52 interrupt-parent = <&intc>;
64 compatible = "allwinner,simple-framebuffer",
66 allwinner,pipeline = "de_be0-lcd0-hdmi";
67 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
73 compatible = "allwinner,simple-framebuffer",
75 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
76 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
77 <&ahb_gates 44>, <&ahb_gates 46>;
82 compatible = "allwinner,simple-framebuffer",
84 allwinner,pipeline = "de_fe0-de_be0-lcd0";
85 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
91 compatible = "allwinner,simple-framebuffer",
93 allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
94 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
95 <&ahb_gates 44>, <&ahb_gates 46>;
101 #address-cells = <1>;
105 compatible = "arm,cortex-a8";
108 clock-latency = <244144>; /* 8 32k periods */
116 #cooling-cells = <2>;
117 cooling-min-level = <0>;
118 cooling-max-level = <3>;
125 polling-delay-passive = <250>;
126 polling-delay = <1000>;
127 thermal-sensors = <&rtp>;
131 trip = <&cpu_alert0>;
132 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
137 cpu_alert0: cpu_alert0 {
139 temperature = <850000>;
146 temperature = <100000>;
155 reg = <0x40000000 0x80000000>;
159 #address-cells = <1>;
164 * This is a dummy clock, to be used as placeholder on
165 * other mux clocks when a specific parent clock is not
166 * yet implemented. It should be dropped when the driver
171 compatible = "fixed-clock";
172 clock-frequency = <0>;
175 osc24M: clk@01c20050 {
177 compatible = "allwinner,sun4i-a10-osc-clk";
178 reg = <0x01c20050 0x4>;
179 clock-frequency = <24000000>;
180 clock-output-names = "osc24M";
185 compatible = "fixed-clock";
186 clock-frequency = <32768>;
187 clock-output-names = "osc32k";
192 compatible = "allwinner,sun4i-a10-pll1-clk";
193 reg = <0x01c20000 0x4>;
195 clock-output-names = "pll1";
200 compatible = "allwinner,sun4i-a10-pll1-clk";
201 reg = <0x01c20018 0x4>;
203 clock-output-names = "pll4";
208 compatible = "allwinner,sun4i-a10-pll5-clk";
209 reg = <0x01c20020 0x4>;
211 clock-output-names = "pll5_ddr", "pll5_other";
216 compatible = "allwinner,sun4i-a10-pll6-clk";
217 reg = <0x01c20028 0x4>;
219 clock-output-names = "pll6_sata", "pll6_other", "pll6";
225 compatible = "allwinner,sun4i-a10-cpu-clk";
226 reg = <0x01c20054 0x4>;
227 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
228 clock-output-names = "cpu";
233 compatible = "allwinner,sun4i-a10-axi-clk";
234 reg = <0x01c20054 0x4>;
236 clock-output-names = "axi";
239 axi_gates: clk@01c2005c {
241 compatible = "allwinner,sun4i-a10-axi-gates-clk";
242 reg = <0x01c2005c 0x4>;
244 clock-output-names = "axi_dram";
249 compatible = "allwinner,sun4i-a10-ahb-clk";
250 reg = <0x01c20054 0x4>;
252 clock-output-names = "ahb";
255 ahb_gates: clk@01c20060 {
257 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
258 reg = <0x01c20060 0x8>;
260 clock-output-names = "ahb_usb0", "ahb_ehci0",
261 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
262 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
263 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
264 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
265 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
266 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
267 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
268 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
269 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
270 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
273 apb0: apb0@01c20054 {
275 compatible = "allwinner,sun4i-a10-apb0-clk";
276 reg = <0x01c20054 0x4>;
278 clock-output-names = "apb0";
281 apb0_gates: clk@01c20068 {
283 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
284 reg = <0x01c20068 0x4>;
286 clock-output-names = "apb0_codec", "apb0_spdif",
287 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
288 "apb0_ir1", "apb0_keypad";
293 compatible = "allwinner,sun4i-a10-apb1-clk";
294 reg = <0x01c20058 0x4>;
295 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
296 clock-output-names = "apb1";
299 apb1_gates: clk@01c2006c {
301 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
302 reg = <0x01c2006c 0x4>;
304 clock-output-names = "apb1_i2c0", "apb1_i2c1",
305 "apb1_i2c2", "apb1_can", "apb1_scr",
306 "apb1_ps20", "apb1_ps21", "apb1_uart0",
307 "apb1_uart1", "apb1_uart2", "apb1_uart3",
308 "apb1_uart4", "apb1_uart5", "apb1_uart6",
312 nand_clk: clk@01c20080 {
314 compatible = "allwinner,sun4i-a10-mod0-clk";
315 reg = <0x01c20080 0x4>;
316 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
317 clock-output-names = "nand";
320 ms_clk: clk@01c20084 {
322 compatible = "allwinner,sun4i-a10-mod0-clk";
323 reg = <0x01c20084 0x4>;
324 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
325 clock-output-names = "ms";
328 mmc0_clk: clk@01c20088 {
330 compatible = "allwinner,sun4i-a10-mmc-clk";
331 reg = <0x01c20088 0x4>;
332 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
333 clock-output-names = "mmc0",
338 mmc1_clk: clk@01c2008c {
340 compatible = "allwinner,sun4i-a10-mmc-clk";
341 reg = <0x01c2008c 0x4>;
342 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
343 clock-output-names = "mmc1",
348 mmc2_clk: clk@01c20090 {
350 compatible = "allwinner,sun4i-a10-mmc-clk";
351 reg = <0x01c20090 0x4>;
352 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
353 clock-output-names = "mmc2",
358 mmc3_clk: clk@01c20094 {
360 compatible = "allwinner,sun4i-a10-mmc-clk";
361 reg = <0x01c20094 0x4>;
362 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
363 clock-output-names = "mmc3",
368 ts_clk: clk@01c20098 {
370 compatible = "allwinner,sun4i-a10-mod0-clk";
371 reg = <0x01c20098 0x4>;
372 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
373 clock-output-names = "ts";
376 ss_clk: clk@01c2009c {
378 compatible = "allwinner,sun4i-a10-mod0-clk";
379 reg = <0x01c2009c 0x4>;
380 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
381 clock-output-names = "ss";
384 spi0_clk: clk@01c200a0 {
386 compatible = "allwinner,sun4i-a10-mod0-clk";
387 reg = <0x01c200a0 0x4>;
388 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
389 clock-output-names = "spi0";
392 spi1_clk: clk@01c200a4 {
394 compatible = "allwinner,sun4i-a10-mod0-clk";
395 reg = <0x01c200a4 0x4>;
396 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
397 clock-output-names = "spi1";
400 spi2_clk: clk@01c200a8 {
402 compatible = "allwinner,sun4i-a10-mod0-clk";
403 reg = <0x01c200a8 0x4>;
404 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
405 clock-output-names = "spi2";
408 pata_clk: clk@01c200ac {
410 compatible = "allwinner,sun4i-a10-mod0-clk";
411 reg = <0x01c200ac 0x4>;
412 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
413 clock-output-names = "pata";
416 ir0_clk: clk@01c200b0 {
418 compatible = "allwinner,sun4i-a10-mod0-clk";
419 reg = <0x01c200b0 0x4>;
420 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
421 clock-output-names = "ir0";
424 ir1_clk: clk@01c200b4 {
426 compatible = "allwinner,sun4i-a10-mod0-clk";
427 reg = <0x01c200b4 0x4>;
428 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
429 clock-output-names = "ir1";
432 usb_clk: clk@01c200cc {
435 compatible = "allwinner,sun4i-a10-usb-clk";
436 reg = <0x01c200cc 0x4>;
438 clock-output-names = "usb_ohci0", "usb_ohci1",
442 spi3_clk: clk@01c200d4 {
444 compatible = "allwinner,sun4i-a10-mod0-clk";
445 reg = <0x01c200d4 0x4>;
446 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
447 clock-output-names = "spi3";
452 compatible = "simple-bus";
453 #address-cells = <1>;
457 sram-controller@01c00000 {
458 compatible = "allwinner,sun4i-a10-sram-controller";
459 reg = <0x01c00000 0x30>;
460 #address-cells = <1>;
464 sram_a: sram@00000000 {
465 compatible = "mmio-sram";
466 reg = <0x00000000 0xc000>;
467 #address-cells = <1>;
469 ranges = <0 0x00000000 0xc000>;
471 emac_sram: sram-section@8000 {
472 compatible = "allwinner,sun4i-a10-sram-a3-a4";
473 reg = <0x8000 0x4000>;
478 sram_d: sram@00010000 {
479 compatible = "mmio-sram";
480 reg = <0x00010000 0x1000>;
481 #address-cells = <1>;
483 ranges = <0 0x00010000 0x1000>;
485 otg_sram: sram-section@0000 {
486 compatible = "allwinner,sun4i-a10-sram-d";
487 reg = <0x0000 0x1000>;
493 dma: dma-controller@01c02000 {
494 compatible = "allwinner,sun4i-a10-dma";
495 reg = <0x01c02000 0x1000>;
497 clocks = <&ahb_gates 6>;
502 compatible = "allwinner,sun4i-a10-spi";
503 reg = <0x01c05000 0x1000>;
505 clocks = <&ahb_gates 20>, <&spi0_clk>;
506 clock-names = "ahb", "mod";
507 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
508 <&dma SUN4I_DMA_DEDICATED 26>;
509 dma-names = "rx", "tx";
511 #address-cells = <1>;
516 compatible = "allwinner,sun4i-a10-spi";
517 reg = <0x01c06000 0x1000>;
519 clocks = <&ahb_gates 21>, <&spi1_clk>;
520 clock-names = "ahb", "mod";
521 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
522 <&dma SUN4I_DMA_DEDICATED 8>;
523 dma-names = "rx", "tx";
525 #address-cells = <1>;
529 emac: ethernet@01c0b000 {
530 compatible = "allwinner,sun4i-a10-emac";
531 reg = <0x01c0b000 0x1000>;
533 clocks = <&ahb_gates 17>;
534 allwinner,sram = <&emac_sram 1>;
538 mdio: mdio@01c0b080 {
539 compatible = "allwinner,sun4i-a10-mdio";
540 reg = <0x01c0b080 0x14>;
542 #address-cells = <1>;
547 compatible = "allwinner,sun4i-a10-mmc";
548 reg = <0x01c0f000 0x1000>;
549 clocks = <&ahb_gates 8>,
559 #address-cells = <1>;
564 compatible = "allwinner,sun4i-a10-mmc";
565 reg = <0x01c10000 0x1000>;
566 clocks = <&ahb_gates 9>,
576 #address-cells = <1>;
581 compatible = "allwinner,sun4i-a10-mmc";
582 reg = <0x01c11000 0x1000>;
583 clocks = <&ahb_gates 10>,
593 #address-cells = <1>;
598 compatible = "allwinner,sun4i-a10-mmc";
599 reg = <0x01c12000 0x1000>;
600 clocks = <&ahb_gates 11>,
610 #address-cells = <1>;
614 usbphy: phy@01c13400 {
616 compatible = "allwinner,sun4i-a10-usb-phy";
617 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
618 reg-names = "phy_ctrl", "pmu1", "pmu2";
619 clocks = <&usb_clk 8>;
620 clock-names = "usb_phy";
621 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
622 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
626 ehci0: usb@01c14000 {
627 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
628 reg = <0x01c14000 0x100>;
630 clocks = <&ahb_gates 1>;
636 ohci0: usb@01c14400 {
637 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
638 reg = <0x01c14400 0x100>;
640 clocks = <&usb_clk 6>, <&ahb_gates 2>;
647 compatible = "allwinner,sun4i-a10-spi";
648 reg = <0x01c17000 0x1000>;
650 clocks = <&ahb_gates 22>, <&spi2_clk>;
651 clock-names = "ahb", "mod";
652 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
653 <&dma SUN4I_DMA_DEDICATED 28>;
654 dma-names = "rx", "tx";
656 #address-cells = <1>;
660 ahci: sata@01c18000 {
661 compatible = "allwinner,sun4i-a10-ahci";
662 reg = <0x01c18000 0x1000>;
664 clocks = <&pll6 0>, <&ahb_gates 25>;
668 ehci1: usb@01c1c000 {
669 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
670 reg = <0x01c1c000 0x100>;
672 clocks = <&ahb_gates 3>;
678 ohci1: usb@01c1c400 {
679 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
680 reg = <0x01c1c400 0x100>;
682 clocks = <&usb_clk 7>, <&ahb_gates 4>;
689 compatible = "allwinner,sun4i-a10-spi";
690 reg = <0x01c1f000 0x1000>;
692 clocks = <&ahb_gates 23>, <&spi3_clk>;
693 clock-names = "ahb", "mod";
694 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
695 <&dma SUN4I_DMA_DEDICATED 30>;
696 dma-names = "rx", "tx";
698 #address-cells = <1>;
702 intc: interrupt-controller@01c20400 {
703 compatible = "allwinner,sun4i-a10-ic";
704 reg = <0x01c20400 0x400>;
705 interrupt-controller;
706 #interrupt-cells = <1>;
709 pio: pinctrl@01c20800 {
710 compatible = "allwinner,sun4i-a10-pinctrl";
711 reg = <0x01c20800 0x400>;
713 clocks = <&apb0_gates 5>;
715 interrupt-controller;
716 #interrupt-cells = <2>;
720 pwm0_pins_a: pwm0@0 {
721 allwinner,pins = "PB2";
722 allwinner,function = "pwm";
723 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
724 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
727 pwm1_pins_a: pwm1@0 {
728 allwinner,pins = "PI3";
729 allwinner,function = "pwm";
730 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
731 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
734 uart0_pins_a: uart0@0 {
735 allwinner,pins = "PB22", "PB23";
736 allwinner,function = "uart0";
737 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
738 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
741 uart0_pins_b: uart0@1 {
742 allwinner,pins = "PF2", "PF4";
743 allwinner,function = "uart0";
744 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
745 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
748 uart1_pins_a: uart1@0 {
749 allwinner,pins = "PA10", "PA11";
750 allwinner,function = "uart1";
751 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
752 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
755 i2c0_pins_a: i2c0@0 {
756 allwinner,pins = "PB0", "PB1";
757 allwinner,function = "i2c0";
758 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
759 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
762 i2c1_pins_a: i2c1@0 {
763 allwinner,pins = "PB18", "PB19";
764 allwinner,function = "i2c1";
765 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
766 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
769 i2c2_pins_a: i2c2@0 {
770 allwinner,pins = "PB20", "PB21";
771 allwinner,function = "i2c2";
772 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
773 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
776 emac_pins_a: emac0@0 {
777 allwinner,pins = "PA0", "PA1", "PA2",
778 "PA3", "PA4", "PA5", "PA6",
779 "PA7", "PA8", "PA9", "PA10",
780 "PA11", "PA12", "PA13", "PA14",
782 allwinner,function = "emac";
783 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
784 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
787 mmc0_pins_a: mmc0@0 {
788 allwinner,pins = "PF0", "PF1", "PF2",
790 allwinner,function = "mmc0";
791 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
792 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
795 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
796 allwinner,pins = "PH1";
797 allwinner,function = "gpio_in";
798 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
799 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
802 ir0_rx_pins_a: ir0@0 {
803 allwinner,pins = "PB4";
804 allwinner,function = "ir0";
805 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
806 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
809 ir0_tx_pins_a: ir0@1 {
810 allwinner,pins = "PB3";
811 allwinner,function = "ir0";
812 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
813 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
816 ir1_rx_pins_a: ir1@0 {
817 allwinner,pins = "PB23";
818 allwinner,function = "ir1";
819 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
820 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
823 ir1_tx_pins_a: ir1@1 {
824 allwinner,pins = "PB22";
825 allwinner,function = "ir1";
826 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
827 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
830 spi0_pins_a: spi0@0 {
831 allwinner,pins = "PI11", "PI12", "PI13";
832 allwinner,function = "spi0";
833 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
834 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
837 spi0_cs0_pins_a: spi0_cs0@0 {
838 allwinner,pins = "PI10";
839 allwinner,function = "spi0";
840 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
841 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
844 spi1_pins_a: spi1@0 {
845 allwinner,pins = "PI17", "PI18", "PI19";
846 allwinner,function = "spi1";
847 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
848 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
851 spi1_cs0_pins_a: spi1_cs0@0 {
852 allwinner,pins = "PI16";
853 allwinner,function = "spi1";
854 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
855 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
858 spi2_pins_a: spi2@0 {
859 allwinner,pins = "PC20", "PC21", "PC22";
860 allwinner,function = "spi2";
861 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
862 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
865 spi2_pins_b: spi2@1 {
866 allwinner,pins = "PB15", "PB16", "PB17";
867 allwinner,function = "spi2";
868 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
869 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
872 spi2_cs0_pins_a: spi2_cs0@0 {
873 allwinner,pins = "PC19";
874 allwinner,function = "spi2";
875 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
876 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
879 spi2_cs0_pins_b: spi2_cs0@1 {
880 allwinner,pins = "PB14";
881 allwinner,function = "spi2";
882 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
883 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
886 ps20_pins_a: ps20@0 {
887 allwinner,pins = "PI20", "PI21";
888 allwinner,function = "ps2";
889 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
890 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
893 ps21_pins_a: ps21@0 {
894 allwinner,pins = "PH12", "PH13";
895 allwinner,function = "ps2";
896 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
897 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
902 compatible = "allwinner,sun4i-a10-timer";
903 reg = <0x01c20c00 0x90>;
908 wdt: watchdog@01c20c90 {
909 compatible = "allwinner,sun4i-a10-wdt";
910 reg = <0x01c20c90 0x10>;
914 compatible = "allwinner,sun4i-a10-rtc";
915 reg = <0x01c20d00 0x20>;
920 compatible = "allwinner,sun4i-a10-pwm";
921 reg = <0x01c20e00 0xc>;
928 compatible = "allwinner,sun4i-a10-ir";
929 clocks = <&apb0_gates 6>, <&ir0_clk>;
930 clock-names = "apb", "ir";
932 reg = <0x01c21800 0x40>;
937 compatible = "allwinner,sun4i-a10-ir";
938 clocks = <&apb0_gates 7>, <&ir1_clk>;
939 clock-names = "apb", "ir";
941 reg = <0x01c21c00 0x40>;
945 lradc: lradc@01c22800 {
946 compatible = "allwinner,sun4i-a10-lradc-keys";
947 reg = <0x01c22800 0x100>;
952 sid: eeprom@01c23800 {
953 compatible = "allwinner,sun4i-a10-sid";
954 reg = <0x01c23800 0x10>;
958 compatible = "allwinner,sun4i-a10-ts";
959 reg = <0x01c25000 0x100>;
961 #thermal-sensor-cells = <0>;
964 uart0: serial@01c28000 {
965 compatible = "snps,dw-apb-uart";
966 reg = <0x01c28000 0x400>;
970 clocks = <&apb1_gates 16>;
974 uart1: serial@01c28400 {
975 compatible = "snps,dw-apb-uart";
976 reg = <0x01c28400 0x400>;
980 clocks = <&apb1_gates 17>;
984 uart2: serial@01c28800 {
985 compatible = "snps,dw-apb-uart";
986 reg = <0x01c28800 0x400>;
990 clocks = <&apb1_gates 18>;
994 uart3: serial@01c28c00 {
995 compatible = "snps,dw-apb-uart";
996 reg = <0x01c28c00 0x400>;
1000 clocks = <&apb1_gates 19>;
1001 status = "disabled";
1004 uart4: serial@01c29000 {
1005 compatible = "snps,dw-apb-uart";
1006 reg = <0x01c29000 0x400>;
1010 clocks = <&apb1_gates 20>;
1011 status = "disabled";
1014 uart5: serial@01c29400 {
1015 compatible = "snps,dw-apb-uart";
1016 reg = <0x01c29400 0x400>;
1020 clocks = <&apb1_gates 21>;
1021 status = "disabled";
1024 uart6: serial@01c29800 {
1025 compatible = "snps,dw-apb-uart";
1026 reg = <0x01c29800 0x400>;
1030 clocks = <&apb1_gates 22>;
1031 status = "disabled";
1034 uart7: serial@01c29c00 {
1035 compatible = "snps,dw-apb-uart";
1036 reg = <0x01c29c00 0x400>;
1040 clocks = <&apb1_gates 23>;
1041 status = "disabled";
1044 i2c0: i2c@01c2ac00 {
1045 compatible = "allwinner,sun4i-a10-i2c";
1046 reg = <0x01c2ac00 0x400>;
1048 clocks = <&apb1_gates 0>;
1049 status = "disabled";
1050 #address-cells = <1>;
1054 i2c1: i2c@01c2b000 {
1055 compatible = "allwinner,sun4i-a10-i2c";
1056 reg = <0x01c2b000 0x400>;
1058 clocks = <&apb1_gates 1>;
1059 status = "disabled";
1060 #address-cells = <1>;
1064 i2c2: i2c@01c2b400 {
1065 compatible = "allwinner,sun4i-a10-i2c";
1066 reg = <0x01c2b400 0x400>;
1068 clocks = <&apb1_gates 2>;
1069 status = "disabled";
1070 #address-cells = <1>;
1074 ps20: ps2@01c2a000 {
1075 compatible = "allwinner,sun4i-a10-ps2";
1076 reg = <0x01c2a000 0x400>;
1078 clocks = <&apb1_gates 6>;
1079 status = "disabled";
1082 ps21: ps2@01c2a400 {
1083 compatible = "allwinner,sun4i-a10-ps2";
1084 reg = <0x01c2a400 0x400>;
1086 clocks = <&apb1_gates 7>;
1087 status = "disabled";