2 * Copyright 2013 Maxime Ripard
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
14 /include/ "skeleton.dtsi"
17 interrupt-parent = <&intc>;
33 compatible = "simple-framebuffer";
34 clocks = <&ahb_gates 36>, <&ahb_gates 43>, <&ahb_gates 44>;
41 compatible = "arm,cortex-a8";
46 reg = <0x40000000 0x20000000>;
55 * This is a dummy clock, to be used as placeholder on
56 * other mux clocks when a specific parent clock is not
57 * yet implemented. It should be dropped when the driver
62 compatible = "fixed-clock";
63 clock-frequency = <0>;
66 osc24M: clk@01c20050 {
68 compatible = "allwinner,sun4i-a10-osc-clk";
69 reg = <0x01c20050 0x4>;
70 clock-frequency = <24000000>;
71 clock-output-names = "osc24M";
76 compatible = "fixed-clock";
77 clock-frequency = <32768>;
78 clock-output-names = "osc32k";
83 compatible = "allwinner,sun4i-a10-pll1-clk";
84 reg = <0x01c20000 0x4>;
86 clock-output-names = "pll1";
91 compatible = "allwinner,sun4i-a10-pll1-clk";
92 reg = <0x01c20018 0x4>;
94 clock-output-names = "pll4";
99 compatible = "allwinner,sun4i-a10-pll5-clk";
100 reg = <0x01c20020 0x4>;
102 clock-output-names = "pll5_ddr", "pll5_other";
107 compatible = "allwinner,sun4i-a10-pll6-clk";
108 reg = <0x01c20028 0x4>;
110 clock-output-names = "pll6_sata", "pll6_other", "pll6";
116 compatible = "allwinner,sun4i-a10-cpu-clk";
117 reg = <0x01c20054 0x4>;
118 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
119 clock-output-names = "cpu";
124 compatible = "allwinner,sun4i-a10-axi-clk";
125 reg = <0x01c20054 0x4>;
127 clock-output-names = "axi";
130 axi_gates: clk@01c2005c {
132 compatible = "allwinner,sun4i-a10-axi-gates-clk";
133 reg = <0x01c2005c 0x4>;
135 clock-output-names = "axi_dram";
140 compatible = "allwinner,sun4i-a10-ahb-clk";
141 reg = <0x01c20054 0x4>;
143 clock-output-names = "ahb";
146 ahb_gates: clk@01c20060 {
148 compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
149 reg = <0x01c20060 0x8>;
151 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
152 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
153 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
154 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
155 "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve",
156 "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi",
157 "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400";
160 apb0: apb0@01c20054 {
162 compatible = "allwinner,sun4i-a10-apb0-clk";
163 reg = <0x01c20054 0x4>;
165 clock-output-names = "apb0";
168 apb0_gates: clk@01c20068 {
170 compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
171 reg = <0x01c20068 0x4>;
173 clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio",
174 "apb0_ir", "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,sun5i-a10s-apb1-gates-clk";
196 reg = <0x01c2006c 0x4>;
198 clock-output-names = "apb1_i2c0", "apb1_i2c1",
199 "apb1_i2c2", "apb1_uart0", "apb1_uart1",
200 "apb1_uart2", "apb1_uart3";
203 nand_clk: clk@01c20080 {
205 compatible = "allwinner,sun4i-a10-mod0-clk";
206 reg = <0x01c20080 0x4>;
207 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
208 clock-output-names = "nand";
211 ms_clk: clk@01c20084 {
213 compatible = "allwinner,sun4i-a10-mod0-clk";
214 reg = <0x01c20084 0x4>;
215 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
216 clock-output-names = "ms";
219 mmc0_clk: clk@01c20088 {
221 compatible = "allwinner,sun4i-a10-mod0-clk";
222 reg = <0x01c20088 0x4>;
223 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
224 clock-output-names = "mmc0";
227 mmc1_clk: clk@01c2008c {
229 compatible = "allwinner,sun4i-a10-mod0-clk";
230 reg = <0x01c2008c 0x4>;
231 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
232 clock-output-names = "mmc1";
235 mmc2_clk: clk@01c20090 {
237 compatible = "allwinner,sun4i-a10-mod0-clk";
238 reg = <0x01c20090 0x4>;
239 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
240 clock-output-names = "mmc2";
243 ts_clk: clk@01c20098 {
245 compatible = "allwinner,sun4i-a10-mod0-clk";
246 reg = <0x01c20098 0x4>;
247 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
248 clock-output-names = "ts";
251 ss_clk: clk@01c2009c {
253 compatible = "allwinner,sun4i-a10-mod0-clk";
254 reg = <0x01c2009c 0x4>;
255 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
256 clock-output-names = "ss";
259 spi0_clk: clk@01c200a0 {
261 compatible = "allwinner,sun4i-a10-mod0-clk";
262 reg = <0x01c200a0 0x4>;
263 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
264 clock-output-names = "spi0";
267 spi1_clk: clk@01c200a4 {
269 compatible = "allwinner,sun4i-a10-mod0-clk";
270 reg = <0x01c200a4 0x4>;
271 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
272 clock-output-names = "spi1";
275 spi2_clk: clk@01c200a8 {
277 compatible = "allwinner,sun4i-a10-mod0-clk";
278 reg = <0x01c200a8 0x4>;
279 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
280 clock-output-names = "spi2";
283 ir0_clk: clk@01c200b0 {
285 compatible = "allwinner,sun4i-a10-mod0-clk";
286 reg = <0x01c200b0 0x4>;
287 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
288 clock-output-names = "ir0";
291 usb_clk: clk@01c200cc {
294 compatible = "allwinner,sun5i-a13-usb-clk";
295 reg = <0x01c200cc 0x4>;
297 clock-output-names = "usb_ohci0", "usb_phy";
300 mbus_clk: clk@01c2015c {
302 compatible = "allwinner,sun5i-a13-mbus-clk";
303 reg = <0x01c2015c 0x4>;
304 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
305 clock-output-names = "mbus";
310 compatible = "simple-bus";
311 #address-cells = <1>;
315 dma: dma-controller@01c02000 {
316 compatible = "allwinner,sun4i-a10-dma";
317 reg = <0x01c02000 0x1000>;
319 clocks = <&ahb_gates 6>;
324 compatible = "allwinner,sun4i-a10-spi";
325 reg = <0x01c05000 0x1000>;
327 clocks = <&ahb_gates 20>, <&spi0_clk>;
328 clock-names = "ahb", "mod";
329 dmas = <&dma 1 27>, <&dma 1 26>;
330 dma-names = "rx", "tx";
332 #address-cells = <1>;
337 compatible = "allwinner,sun4i-a10-spi";
338 reg = <0x01c06000 0x1000>;
340 clocks = <&ahb_gates 21>, <&spi1_clk>;
341 clock-names = "ahb", "mod";
342 dmas = <&dma 1 9>, <&dma 1 8>;
343 dma-names = "rx", "tx";
345 #address-cells = <1>;
349 emac: ethernet@01c0b000 {
350 compatible = "allwinner,sun4i-a10-emac";
351 reg = <0x01c0b000 0x1000>;
353 clocks = <&ahb_gates 17>;
358 compatible = "allwinner,sun4i-a10-mdio";
359 reg = <0x01c0b080 0x14>;
361 #address-cells = <1>;
366 compatible = "allwinner,sun5i-a13-mmc";
367 reg = <0x01c0f000 0x1000>;
368 clocks = <&ahb_gates 8>, <&mmc0_clk>;
369 clock-names = "ahb", "mmc";
375 compatible = "allwinner,sun5i-a13-mmc";
376 reg = <0x01c10000 0x1000>;
377 clocks = <&ahb_gates 9>, <&mmc1_clk>;
378 clock-names = "ahb", "mmc";
384 compatible = "allwinner,sun5i-a13-mmc";
385 reg = <0x01c11000 0x1000>;
386 clocks = <&ahb_gates 10>, <&mmc2_clk>;
387 clock-names = "ahb", "mmc";
392 usbphy: phy@01c13400 {
394 compatible = "allwinner,sun5i-a13-usb-phy";
395 reg = <0x01c13400 0x10 0x01c14800 0x4>;
396 reg-names = "phy_ctrl", "pmu1";
397 clocks = <&usb_clk 8>;
398 clock-names = "usb_phy";
399 resets = <&usb_clk 1>;
400 reset-names = "usb1_reset";
404 ehci0: usb@01c14000 {
405 compatible = "allwinner,sun5i-a10s-ehci", "generic-ehci";
406 reg = <0x01c14000 0x100>;
408 clocks = <&ahb_gates 1>;
414 ohci0: usb@01c14400 {
415 compatible = "allwinner,sun5i-a10s-ohci", "generic-ohci";
416 reg = <0x01c14400 0x100>;
418 clocks = <&usb_clk 6>, <&ahb_gates 2>;
425 compatible = "allwinner,sun4i-a10-spi";
426 reg = <0x01c17000 0x1000>;
428 clocks = <&ahb_gates 22>, <&spi2_clk>;
429 clock-names = "ahb", "mod";
430 dmas = <&dma 1 29>, <&dma 1 28>;
431 dma-names = "rx", "tx";
433 #address-cells = <1>;
437 intc: interrupt-controller@01c20400 {
438 compatible = "allwinner,sun4i-a10-ic";
439 reg = <0x01c20400 0x400>;
440 interrupt-controller;
441 #interrupt-cells = <1>;
444 pio: pinctrl@01c20800 {
445 compatible = "allwinner,sun5i-a10s-pinctrl";
446 reg = <0x01c20800 0x400>;
448 clocks = <&apb0_gates 5>;
450 interrupt-controller;
451 #interrupt-cells = <2>;
455 uart0_pins_a: uart0@0 {
456 allwinner,pins = "PB19", "PB20";
457 allwinner,function = "uart0";
458 allwinner,drive = <0>;
459 allwinner,pull = <0>;
462 uart2_pins_a: uart2@0 {
463 allwinner,pins = "PC18", "PC19";
464 allwinner,function = "uart2";
465 allwinner,drive = <0>;
466 allwinner,pull = <0>;
469 uart3_pins_a: uart3@0 {
470 allwinner,pins = "PG9", "PG10";
471 allwinner,function = "uart3";
472 allwinner,drive = <0>;
473 allwinner,pull = <0>;
476 emac_pins_a: emac0@0 {
477 allwinner,pins = "PA0", "PA1", "PA2",
478 "PA3", "PA4", "PA5", "PA6",
479 "PA7", "PA8", "PA9", "PA10",
480 "PA11", "PA12", "PA13", "PA14",
482 allwinner,function = "emac";
483 allwinner,drive = <0>;
484 allwinner,pull = <0>;
487 i2c0_pins_a: i2c0@0 {
488 allwinner,pins = "PB0", "PB1";
489 allwinner,function = "i2c0";
490 allwinner,drive = <0>;
491 allwinner,pull = <0>;
494 i2c1_pins_a: i2c1@0 {
495 allwinner,pins = "PB15", "PB16";
496 allwinner,function = "i2c1";
497 allwinner,drive = <0>;
498 allwinner,pull = <0>;
501 i2c2_pins_a: i2c2@0 {
502 allwinner,pins = "PB17", "PB18";
503 allwinner,function = "i2c2";
504 allwinner,drive = <0>;
505 allwinner,pull = <0>;
508 mmc0_pins_a: mmc0@0 {
509 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
510 allwinner,function = "mmc0";
511 allwinner,drive = <2>;
512 allwinner,pull = <0>;
515 mmc1_pins_a: mmc1@0 {
516 allwinner,pins = "PG3","PG4","PG5","PG6","PG7","PG8";
517 allwinner,function = "mmc1";
518 allwinner,drive = <2>;
519 allwinner,pull = <0>;
524 compatible = "allwinner,sun4i-a10-timer";
525 reg = <0x01c20c00 0x90>;
530 wdt: watchdog@01c20c90 {
531 compatible = "allwinner,sun4i-a10-wdt";
532 reg = <0x01c20c90 0x10>;
535 sid: eeprom@01c23800 {
536 compatible = "allwinner,sun4i-a10-sid";
537 reg = <0x01c23800 0x10>;
541 compatible = "allwinner,sun4i-a10-ts";
542 reg = <0x01c25000 0x100>;
546 uart0: serial@01c28000 {
547 compatible = "snps,dw-apb-uart";
548 reg = <0x01c28000 0x400>;
552 clocks = <&apb1_gates 16>;
556 uart1: serial@01c28400 {
557 compatible = "snps,dw-apb-uart";
558 reg = <0x01c28400 0x400>;
562 clocks = <&apb1_gates 17>;
566 uart2: serial@01c28800 {
567 compatible = "snps,dw-apb-uart";
568 reg = <0x01c28800 0x400>;
572 clocks = <&apb1_gates 18>;
576 uart3: serial@01c28c00 {
577 compatible = "snps,dw-apb-uart";
578 reg = <0x01c28c00 0x400>;
582 clocks = <&apb1_gates 19>;
587 #address-cells = <1>;
589 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
590 reg = <0x01c2ac00 0x400>;
592 clocks = <&apb1_gates 0>;
597 #address-cells = <1>;
599 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
600 reg = <0x01c2b000 0x400>;
602 clocks = <&apb1_gates 1>;
607 #address-cells = <1>;
609 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
610 reg = <0x01c2b400 0x400>;
612 clocks = <&apb1_gates 2>;
617 compatible = "allwinner,sun5i-a13-hstimer";
618 reg = <0x01c60000 0x1000>;
619 interrupts = <82>, <83>;
620 clocks = <&ahb_gates 28>;