2 * Copyright 2012 Stefan Roese
3 * Stefan Roese <sr@denx.de>
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
13 /include/ "skeleton.dtsi"
16 interrupt-parent = <&intc>;
35 compatible = "arm,cortex-a8";
41 reg = <0x40000000 0x80000000>;
50 * This is a dummy clock, to be used as placeholder on
51 * other mux clocks when a specific parent clock is not
52 * yet implemented. It should be dropped when the driver
57 compatible = "fixed-clock";
58 clock-frequency = <0>;
61 osc24M: clk@01c20050 {
63 compatible = "allwinner,sun4i-a10-osc-clk";
64 reg = <0x01c20050 0x4>;
65 clock-frequency = <24000000>;
66 clock-output-names = "osc24M";
71 compatible = "fixed-clock";
72 clock-frequency = <32768>;
73 clock-output-names = "osc32k";
78 compatible = "allwinner,sun4i-a10-pll1-clk";
79 reg = <0x01c20000 0x4>;
81 clock-output-names = "pll1";
86 compatible = "allwinner,sun4i-a10-pll1-clk";
87 reg = <0x01c20018 0x4>;
89 clock-output-names = "pll4";
94 compatible = "allwinner,sun4i-a10-pll5-clk";
95 reg = <0x01c20020 0x4>;
97 clock-output-names = "pll5_ddr", "pll5_other";
102 compatible = "allwinner,sun4i-a10-pll6-clk";
103 reg = <0x01c20028 0x4>;
105 clock-output-names = "pll6_sata", "pll6_other", "pll6";
111 compatible = "allwinner,sun4i-a10-cpu-clk";
112 reg = <0x01c20054 0x4>;
113 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
114 clock-output-names = "cpu";
119 compatible = "allwinner,sun4i-a10-axi-clk";
120 reg = <0x01c20054 0x4>;
122 clock-output-names = "axi";
125 axi_gates: clk@01c2005c {
127 compatible = "allwinner,sun4i-a10-axi-gates-clk";
128 reg = <0x01c2005c 0x4>;
130 clock-output-names = "axi_dram";
135 compatible = "allwinner,sun4i-a10-ahb-clk";
136 reg = <0x01c20054 0x4>;
138 clock-output-names = "ahb";
141 ahb_gates: clk@01c20060 {
143 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
144 reg = <0x01c20060 0x8>;
146 clock-output-names = "ahb_usb0", "ahb_ehci0",
147 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
148 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
149 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
150 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
151 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
152 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
153 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
154 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
155 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
156 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
159 apb0: apb0@01c20054 {
161 compatible = "allwinner,sun4i-a10-apb0-clk";
162 reg = <0x01c20054 0x4>;
164 clock-output-names = "apb0";
167 apb0_gates: clk@01c20068 {
169 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
170 reg = <0x01c20068 0x4>;
172 clock-output-names = "apb0_codec", "apb0_spdif",
173 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
174 "apb0_ir1", "apb0_keypad";
177 apb1_mux: apb1_mux@01c20058 {
179 compatible = "allwinner,sun4i-a10-apb1-mux-clk";
180 reg = <0x01c20058 0x4>;
181 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
182 clock-output-names = "apb1_mux";
185 apb1: apb1@01c20058 {
187 compatible = "allwinner,sun4i-a10-apb1-clk";
188 reg = <0x01c20058 0x4>;
189 clocks = <&apb1_mux>;
190 clock-output-names = "apb1";
193 apb1_gates: clk@01c2006c {
195 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
196 reg = <0x01c2006c 0x4>;
198 clock-output-names = "apb1_i2c0", "apb1_i2c1",
199 "apb1_i2c2", "apb1_can", "apb1_scr",
200 "apb1_ps20", "apb1_ps21", "apb1_uart0",
201 "apb1_uart1", "apb1_uart2", "apb1_uart3",
202 "apb1_uart4", "apb1_uart5", "apb1_uart6",
206 nand_clk: clk@01c20080 {
208 compatible = "allwinner,sun4i-a10-mod0-clk";
209 reg = <0x01c20080 0x4>;
210 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
211 clock-output-names = "nand";
214 ms_clk: clk@01c20084 {
216 compatible = "allwinner,sun4i-a10-mod0-clk";
217 reg = <0x01c20084 0x4>;
218 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
219 clock-output-names = "ms";
222 mmc0_clk: clk@01c20088 {
224 compatible = "allwinner,sun4i-a10-mod0-clk";
225 reg = <0x01c20088 0x4>;
226 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
227 clock-output-names = "mmc0";
230 mmc1_clk: clk@01c2008c {
232 compatible = "allwinner,sun4i-a10-mod0-clk";
233 reg = <0x01c2008c 0x4>;
234 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
235 clock-output-names = "mmc1";
238 mmc2_clk: clk@01c20090 {
240 compatible = "allwinner,sun4i-a10-mod0-clk";
241 reg = <0x01c20090 0x4>;
242 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
243 clock-output-names = "mmc2";
246 mmc3_clk: clk@01c20094 {
248 compatible = "allwinner,sun4i-a10-mod0-clk";
249 reg = <0x01c20094 0x4>;
250 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
251 clock-output-names = "mmc3";
254 ts_clk: clk@01c20098 {
256 compatible = "allwinner,sun4i-a10-mod0-clk";
257 reg = <0x01c20098 0x4>;
258 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
259 clock-output-names = "ts";
262 ss_clk: clk@01c2009c {
264 compatible = "allwinner,sun4i-a10-mod0-clk";
265 reg = <0x01c2009c 0x4>;
266 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
267 clock-output-names = "ss";
270 spi0_clk: clk@01c200a0 {
272 compatible = "allwinner,sun4i-a10-mod0-clk";
273 reg = <0x01c200a0 0x4>;
274 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
275 clock-output-names = "spi0";
278 spi1_clk: clk@01c200a4 {
280 compatible = "allwinner,sun4i-a10-mod0-clk";
281 reg = <0x01c200a4 0x4>;
282 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
283 clock-output-names = "spi1";
286 spi2_clk: clk@01c200a8 {
288 compatible = "allwinner,sun4i-a10-mod0-clk";
289 reg = <0x01c200a8 0x4>;
290 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
291 clock-output-names = "spi2";
294 pata_clk: clk@01c200ac {
296 compatible = "allwinner,sun4i-a10-mod0-clk";
297 reg = <0x01c200ac 0x4>;
298 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
299 clock-output-names = "pata";
302 ir0_clk: clk@01c200b0 {
304 compatible = "allwinner,sun4i-a10-mod0-clk";
305 reg = <0x01c200b0 0x4>;
306 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
307 clock-output-names = "ir0";
310 ir1_clk: clk@01c200b4 {
312 compatible = "allwinner,sun4i-a10-mod0-clk";
313 reg = <0x01c200b4 0x4>;
314 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
315 clock-output-names = "ir1";
318 usb_clk: clk@01c200cc {
321 compatible = "allwinner,sun4i-a10-usb-clk";
322 reg = <0x01c200cc 0x4>;
324 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
327 spi3_clk: clk@01c200d4 {
329 compatible = "allwinner,sun4i-a10-mod0-clk";
330 reg = <0x01c200d4 0x4>;
331 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
332 clock-output-names = "spi3";
337 compatible = "simple-bus";
338 #address-cells = <1>;
343 compatible = "allwinner,sun4i-a10-spi";
344 reg = <0x01c05000 0x1000>;
346 clocks = <&ahb_gates 20>, <&spi0_clk>;
347 clock-names = "ahb", "mod";
349 #address-cells = <1>;
354 compatible = "allwinner,sun4i-a10-spi";
355 reg = <0x01c06000 0x1000>;
357 clocks = <&ahb_gates 21>, <&spi1_clk>;
358 clock-names = "ahb", "mod";
360 #address-cells = <1>;
364 emac: ethernet@01c0b000 {
365 compatible = "allwinner,sun4i-a10-emac";
366 reg = <0x01c0b000 0x1000>;
368 clocks = <&ahb_gates 17>;
373 compatible = "allwinner,sun4i-a10-mdio";
374 reg = <0x01c0b080 0x14>;
376 #address-cells = <1>;
381 compatible = "allwinner,sun4i-a10-mmc";
382 reg = <0x01c0f000 0x1000>;
383 clocks = <&ahb_gates 8>, <&mmc0_clk>;
384 clock-names = "ahb", "mmc";
390 compatible = "allwinner,sun4i-a10-mmc";
391 reg = <0x01c10000 0x1000>;
392 clocks = <&ahb_gates 9>, <&mmc1_clk>;
393 clock-names = "ahb", "mmc";
399 compatible = "allwinner,sun4i-a10-mmc";
400 reg = <0x01c11000 0x1000>;
401 clocks = <&ahb_gates 10>, <&mmc2_clk>;
402 clock-names = "ahb", "mmc";
408 compatible = "allwinner,sun4i-a10-mmc";
409 reg = <0x01c12000 0x1000>;
410 clocks = <&ahb_gates 11>, <&mmc3_clk>;
411 clock-names = "ahb", "mmc";
416 usbphy: phy@01c13400 {
418 compatible = "allwinner,sun4i-a10-usb-phy";
419 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
420 reg-names = "phy_ctrl", "pmu1", "pmu2";
421 clocks = <&usb_clk 8>;
422 clock-names = "usb_phy";
423 resets = <&usb_clk 1>, <&usb_clk 2>;
424 reset-names = "usb1_reset", "usb2_reset";
428 ehci0: usb@01c14000 {
429 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
430 reg = <0x01c14000 0x100>;
432 clocks = <&ahb_gates 1>;
438 ohci0: usb@01c14400 {
439 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
440 reg = <0x01c14400 0x100>;
442 clocks = <&usb_clk 6>, <&ahb_gates 2>;
449 compatible = "allwinner,sun4i-a10-spi";
450 reg = <0x01c17000 0x1000>;
452 clocks = <&ahb_gates 22>, <&spi2_clk>;
453 clock-names = "ahb", "mod";
455 #address-cells = <1>;
459 ahci: sata@01c18000 {
460 compatible = "allwinner,sun4i-a10-ahci";
461 reg = <0x01c18000 0x1000>;
463 clocks = <&pll6 0>, <&ahb_gates 25>;
467 ehci1: usb@01c1c000 {
468 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
469 reg = <0x01c1c000 0x100>;
471 clocks = <&ahb_gates 3>;
477 ohci1: usb@01c1c400 {
478 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
479 reg = <0x01c1c400 0x100>;
481 clocks = <&usb_clk 7>, <&ahb_gates 4>;
488 compatible = "allwinner,sun4i-a10-spi";
489 reg = <0x01c1f000 0x1000>;
491 clocks = <&ahb_gates 23>, <&spi3_clk>;
492 clock-names = "ahb", "mod";
494 #address-cells = <1>;
498 intc: interrupt-controller@01c20400 {
499 compatible = "allwinner,sun4i-a10-ic";
500 reg = <0x01c20400 0x400>;
501 interrupt-controller;
502 #interrupt-cells = <1>;
505 pio: pinctrl@01c20800 {
506 compatible = "allwinner,sun4i-a10-pinctrl";
507 reg = <0x01c20800 0x400>;
509 clocks = <&apb0_gates 5>;
511 interrupt-controller;
512 #address-cells = <1>;
516 pwm0_pins_a: pwm0@0 {
517 allwinner,pins = "PB2";
518 allwinner,function = "pwm";
519 allwinner,drive = <0>;
520 allwinner,pull = <0>;
523 pwm1_pins_a: pwm1@0 {
524 allwinner,pins = "PI3";
525 allwinner,function = "pwm";
526 allwinner,drive = <0>;
527 allwinner,pull = <0>;
530 uart0_pins_a: uart0@0 {
531 allwinner,pins = "PB22", "PB23";
532 allwinner,function = "uart0";
533 allwinner,drive = <0>;
534 allwinner,pull = <0>;
537 uart0_pins_b: uart0@1 {
538 allwinner,pins = "PF2", "PF4";
539 allwinner,function = "uart0";
540 allwinner,drive = <0>;
541 allwinner,pull = <0>;
544 uart1_pins_a: uart1@0 {
545 allwinner,pins = "PA10", "PA11";
546 allwinner,function = "uart1";
547 allwinner,drive = <0>;
548 allwinner,pull = <0>;
551 i2c0_pins_a: i2c0@0 {
552 allwinner,pins = "PB0", "PB1";
553 allwinner,function = "i2c0";
554 allwinner,drive = <0>;
555 allwinner,pull = <0>;
558 i2c1_pins_a: i2c1@0 {
559 allwinner,pins = "PB18", "PB19";
560 allwinner,function = "i2c1";
561 allwinner,drive = <0>;
562 allwinner,pull = <0>;
565 i2c2_pins_a: i2c2@0 {
566 allwinner,pins = "PB20", "PB21";
567 allwinner,function = "i2c2";
568 allwinner,drive = <0>;
569 allwinner,pull = <0>;
572 emac_pins_a: emac0@0 {
573 allwinner,pins = "PA0", "PA1", "PA2",
574 "PA3", "PA4", "PA5", "PA6",
575 "PA7", "PA8", "PA9", "PA10",
576 "PA11", "PA12", "PA13", "PA14",
578 allwinner,function = "emac";
579 allwinner,drive = <0>;
580 allwinner,pull = <0>;
583 mmc0_pins_a: mmc0@0 {
584 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
585 allwinner,function = "mmc0";
586 allwinner,drive = <2>;
587 allwinner,pull = <0>;
590 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
591 allwinner,pins = "PH1";
592 allwinner,function = "gpio_in";
593 allwinner,drive = <0>;
594 allwinner,pull = <1>;
599 compatible = "allwinner,sun4i-a10-timer";
600 reg = <0x01c20c00 0x90>;
605 wdt: watchdog@01c20c90 {
606 compatible = "allwinner,sun4i-a10-wdt";
607 reg = <0x01c20c90 0x10>;
611 compatible = "allwinner,sun4i-a10-rtc";
612 reg = <0x01c20d00 0x20>;
617 compatible = "allwinner,sun4i-a10-pwm";
618 reg = <0x01c20e00 0xc>;
624 sid: eeprom@01c23800 {
625 compatible = "allwinner,sun4i-a10-sid";
626 reg = <0x01c23800 0x10>;
630 compatible = "allwinner,sun4i-a10-ts";
631 reg = <0x01c25000 0x100>;
635 uart0: serial@01c28000 {
636 compatible = "snps,dw-apb-uart";
637 reg = <0x01c28000 0x400>;
641 clocks = <&apb1_gates 16>;
645 uart1: serial@01c28400 {
646 compatible = "snps,dw-apb-uart";
647 reg = <0x01c28400 0x400>;
651 clocks = <&apb1_gates 17>;
655 uart2: serial@01c28800 {
656 compatible = "snps,dw-apb-uart";
657 reg = <0x01c28800 0x400>;
661 clocks = <&apb1_gates 18>;
665 uart3: serial@01c28c00 {
666 compatible = "snps,dw-apb-uart";
667 reg = <0x01c28c00 0x400>;
671 clocks = <&apb1_gates 19>;
675 uart4: serial@01c29000 {
676 compatible = "snps,dw-apb-uart";
677 reg = <0x01c29000 0x400>;
681 clocks = <&apb1_gates 20>;
685 uart5: serial@01c29400 {
686 compatible = "snps,dw-apb-uart";
687 reg = <0x01c29400 0x400>;
691 clocks = <&apb1_gates 21>;
695 uart6: serial@01c29800 {
696 compatible = "snps,dw-apb-uart";
697 reg = <0x01c29800 0x400>;
701 clocks = <&apb1_gates 22>;
705 uart7: serial@01c29c00 {
706 compatible = "snps,dw-apb-uart";
707 reg = <0x01c29c00 0x400>;
711 clocks = <&apb1_gates 23>;
716 compatible = "allwinner,sun4i-a10-i2c";
717 reg = <0x01c2ac00 0x400>;
719 clocks = <&apb1_gates 0>;
720 clock-frequency = <100000>;
722 #address-cells = <1>;
727 compatible = "allwinner,sun4i-a10-i2c";
728 reg = <0x01c2b000 0x400>;
730 clocks = <&apb1_gates 1>;
731 clock-frequency = <100000>;
733 #address-cells = <1>;
738 compatible = "allwinner,sun4i-a10-i2c";
739 reg = <0x01c2b400 0x400>;
741 clocks = <&apb1_gates 2>;
742 clock-frequency = <100000>;
744 #address-cells = <1>;