2 * Copyright 2012 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>;
29 compatible = "arm,cortex-a8";
35 reg = <0x40000000 0x20000000>;
44 * This is a dummy clock, to be used as placeholder on
45 * other mux clocks when a specific parent clock is not
46 * yet implemented. It should be dropped when the driver
51 compatible = "fixed-clock";
52 clock-frequency = <0>;
55 osc24M: clk@01c20050 {
57 compatible = "allwinner,sun4i-a10-osc-clk";
58 reg = <0x01c20050 0x4>;
59 clock-frequency = <24000000>;
60 clock-output-names = "osc24M";
65 compatible = "fixed-clock";
66 clock-frequency = <32768>;
67 clock-output-names = "osc32k";
72 compatible = "allwinner,sun4i-a10-pll1-clk";
73 reg = <0x01c20000 0x4>;
75 clock-output-names = "pll1";
80 compatible = "allwinner,sun4i-a10-pll1-clk";
81 reg = <0x01c20018 0x4>;
83 clock-output-names = "pll4";
88 compatible = "allwinner,sun4i-a10-pll5-clk";
89 reg = <0x01c20020 0x4>;
91 clock-output-names = "pll5_ddr", "pll5_other";
96 compatible = "allwinner,sun4i-a10-pll6-clk";
97 reg = <0x01c20028 0x4>;
99 clock-output-names = "pll6_sata", "pll6_other", "pll6";
105 compatible = "allwinner,sun4i-a10-cpu-clk";
106 reg = <0x01c20054 0x4>;
107 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
108 clock-output-names = "cpu";
113 compatible = "allwinner,sun4i-a10-axi-clk";
114 reg = <0x01c20054 0x4>;
116 clock-output-names = "axi";
119 axi_gates: clk@01c2005c {
121 compatible = "allwinner,sun4i-a10-axi-gates-clk";
122 reg = <0x01c2005c 0x4>;
124 clock-output-names = "axi_dram";
129 compatible = "allwinner,sun4i-a10-ahb-clk";
130 reg = <0x01c20054 0x4>;
132 clock-output-names = "ahb";
135 ahb_gates: clk@01c20060 {
137 compatible = "allwinner,sun5i-a13-ahb-gates-clk";
138 reg = <0x01c20060 0x8>;
140 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
141 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
142 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
143 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_stimer",
144 "ahb_ve", "ahb_lcd", "ahb_csi", "ahb_de_be",
145 "ahb_de_fe", "ahb_iep", "ahb_mali400";
148 apb0: apb0@01c20054 {
150 compatible = "allwinner,sun4i-a10-apb0-clk";
151 reg = <0x01c20054 0x4>;
153 clock-output-names = "apb0";
156 apb0_gates: clk@01c20068 {
158 compatible = "allwinner,sun5i-a13-apb0-gates-clk";
159 reg = <0x01c20068 0x4>;
161 clock-output-names = "apb0_codec", "apb0_pio", "apb0_ir";
164 apb1_mux: apb1_mux@01c20058 {
166 compatible = "allwinner,sun4i-a10-apb1-mux-clk";
167 reg = <0x01c20058 0x4>;
168 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
169 clock-output-names = "apb1_mux";
172 apb1: apb1@01c20058 {
174 compatible = "allwinner,sun4i-a10-apb1-clk";
175 reg = <0x01c20058 0x4>;
176 clocks = <&apb1_mux>;
177 clock-output-names = "apb1";
180 apb1_gates: clk@01c2006c {
182 compatible = "allwinner,sun5i-a13-apb1-gates-clk";
183 reg = <0x01c2006c 0x4>;
185 clock-output-names = "apb1_i2c0", "apb1_i2c1",
186 "apb1_i2c2", "apb1_uart1", "apb1_uart3";
189 nand_clk: clk@01c20080 {
191 compatible = "allwinner,sun4i-a10-mod0-clk";
192 reg = <0x01c20080 0x4>;
193 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
194 clock-output-names = "nand";
197 ms_clk: clk@01c20084 {
199 compatible = "allwinner,sun4i-a10-mod0-clk";
200 reg = <0x01c20084 0x4>;
201 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
202 clock-output-names = "ms";
205 mmc0_clk: clk@01c20088 {
207 compatible = "allwinner,sun4i-a10-mod0-clk";
208 reg = <0x01c20088 0x4>;
209 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
210 clock-output-names = "mmc0";
213 mmc1_clk: clk@01c2008c {
215 compatible = "allwinner,sun4i-a10-mod0-clk";
216 reg = <0x01c2008c 0x4>;
217 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
218 clock-output-names = "mmc1";
221 mmc2_clk: clk@01c20090 {
223 compatible = "allwinner,sun4i-a10-mod0-clk";
224 reg = <0x01c20090 0x4>;
225 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
226 clock-output-names = "mmc2";
229 ts_clk: clk@01c20098 {
231 compatible = "allwinner,sun4i-a10-mod0-clk";
232 reg = <0x01c20098 0x4>;
233 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
234 clock-output-names = "ts";
237 ss_clk: clk@01c2009c {
239 compatible = "allwinner,sun4i-a10-mod0-clk";
240 reg = <0x01c2009c 0x4>;
241 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
242 clock-output-names = "ss";
245 spi0_clk: clk@01c200a0 {
247 compatible = "allwinner,sun4i-a10-mod0-clk";
248 reg = <0x01c200a0 0x4>;
249 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
250 clock-output-names = "spi0";
253 spi1_clk: clk@01c200a4 {
255 compatible = "allwinner,sun4i-a10-mod0-clk";
256 reg = <0x01c200a4 0x4>;
257 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
258 clock-output-names = "spi1";
261 spi2_clk: clk@01c200a8 {
263 compatible = "allwinner,sun4i-a10-mod0-clk";
264 reg = <0x01c200a8 0x4>;
265 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
266 clock-output-names = "spi2";
269 ir0_clk: clk@01c200b0 {
271 compatible = "allwinner,sun4i-a10-mod0-clk";
272 reg = <0x01c200b0 0x4>;
273 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
274 clock-output-names = "ir0";
277 usb_clk: clk@01c200cc {
280 compatible = "allwinner,sun5i-a13-usb-clk";
281 reg = <0x01c200cc 0x4>;
283 clock-output-names = "usb_ohci0", "usb_phy";
286 mbus_clk: clk@01c2015c {
288 compatible = "allwinner,sun4i-a10-mod0-clk";
289 reg = <0x01c2015c 0x4>;
290 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
291 clock-output-names = "mbus";
296 compatible = "simple-bus";
297 #address-cells = <1>;
301 dma: dma-controller@01c02000 {
302 compatible = "allwinner,sun4i-a10-dma";
303 reg = <0x01c02000 0x1000>;
305 clocks = <&ahb_gates 6>;
310 compatible = "allwinner,sun4i-a10-spi";
311 reg = <0x01c05000 0x1000>;
313 clocks = <&ahb_gates 20>, <&spi0_clk>;
314 clock-names = "ahb", "mod";
315 dmas = <&dma 1 27>, <&dma 1 26>;
316 dma-names = "rx", "tx";
318 #address-cells = <1>;
323 compatible = "allwinner,sun4i-a10-spi";
324 reg = <0x01c06000 0x1000>;
326 clocks = <&ahb_gates 21>, <&spi1_clk>;
327 clock-names = "ahb", "mod";
328 dmas = <&dma 1 9>, <&dma 1 8>;
329 dma-names = "rx", "tx";
331 #address-cells = <1>;
336 compatible = "allwinner,sun5i-a13-mmc";
337 reg = <0x01c0f000 0x1000>;
338 clocks = <&ahb_gates 8>, <&mmc0_clk>;
339 clock-names = "ahb", "mmc";
345 compatible = "allwinner,sun5i-a13-mmc";
346 reg = <0x01c11000 0x1000>;
347 clocks = <&ahb_gates 10>, <&mmc2_clk>;
348 clock-names = "ahb", "mmc";
353 usbphy: phy@01c13400 {
355 compatible = "allwinner,sun5i-a13-usb-phy";
356 reg = <0x01c13400 0x10 0x01c14800 0x4>;
357 reg-names = "phy_ctrl", "pmu1";
358 clocks = <&usb_clk 8>;
359 clock-names = "usb_phy";
360 resets = <&usb_clk 1>;
361 reset-names = "usb1_reset";
365 ehci0: usb@01c14000 {
366 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
367 reg = <0x01c14000 0x100>;
369 clocks = <&ahb_gates 1>;
375 ohci0: usb@01c14400 {
376 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
377 reg = <0x01c14400 0x100>;
379 clocks = <&usb_clk 6>, <&ahb_gates 2>;
386 compatible = "allwinner,sun4i-a10-spi";
387 reg = <0x01c17000 0x1000>;
389 clocks = <&ahb_gates 22>, <&spi2_clk>;
390 clock-names = "ahb", "mod";
391 dmas = <&dma 1 29>, <&dma 1 28>;
392 dma-names = "rx", "tx";
394 #address-cells = <1>;
398 intc: interrupt-controller@01c20400 {
399 compatible = "allwinner,sun4i-a10-ic";
400 reg = <0x01c20400 0x400>;
401 interrupt-controller;
402 #interrupt-cells = <1>;
405 pio: pinctrl@01c20800 {
406 compatible = "allwinner,sun5i-a13-pinctrl";
407 reg = <0x01c20800 0x400>;
409 clocks = <&apb0_gates 5>;
411 interrupt-controller;
412 #interrupt-cells = <2>;
416 uart1_pins_a: uart1@0 {
417 allwinner,pins = "PE10", "PE11";
418 allwinner,function = "uart1";
419 allwinner,drive = <0>;
420 allwinner,pull = <0>;
423 uart1_pins_b: uart1@1 {
424 allwinner,pins = "PG3", "PG4";
425 allwinner,function = "uart1";
426 allwinner,drive = <0>;
427 allwinner,pull = <0>;
430 i2c0_pins_a: i2c0@0 {
431 allwinner,pins = "PB0", "PB1";
432 allwinner,function = "i2c0";
433 allwinner,drive = <0>;
434 allwinner,pull = <0>;
437 i2c1_pins_a: i2c1@0 {
438 allwinner,pins = "PB15", "PB16";
439 allwinner,function = "i2c1";
440 allwinner,drive = <0>;
441 allwinner,pull = <0>;
444 i2c2_pins_a: i2c2@0 {
445 allwinner,pins = "PB17", "PB18";
446 allwinner,function = "i2c2";
447 allwinner,drive = <0>;
448 allwinner,pull = <0>;
451 mmc0_pins_a: mmc0@0 {
452 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
453 allwinner,function = "mmc0";
454 allwinner,drive = <2>;
455 allwinner,pull = <0>;
460 compatible = "allwinner,sun4i-a10-timer";
461 reg = <0x01c20c00 0x90>;
466 wdt: watchdog@01c20c90 {
467 compatible = "allwinner,sun4i-a10-wdt";
468 reg = <0x01c20c90 0x10>;
471 sid: eeprom@01c23800 {
472 compatible = "allwinner,sun4i-a10-sid";
473 reg = <0x01c23800 0x10>;
477 compatible = "allwinner,sun4i-a10-ts";
478 reg = <0x01c25000 0x100>;
482 uart1: serial@01c28400 {
483 compatible = "snps,dw-apb-uart";
484 reg = <0x01c28400 0x400>;
488 clocks = <&apb1_gates 17>;
492 uart3: serial@01c28c00 {
493 compatible = "snps,dw-apb-uart";
494 reg = <0x01c28c00 0x400>;
498 clocks = <&apb1_gates 19>;
503 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
504 reg = <0x01c2ac00 0x400>;
506 clocks = <&apb1_gates 0>;
508 #address-cells = <1>;
513 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
514 reg = <0x01c2b000 0x400>;
516 clocks = <&apb1_gates 1>;
518 #address-cells = <1>;
523 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
524 reg = <0x01c2b400 0x400>;
526 clocks = <&apb1_gates 2>;
528 #address-cells = <1>;
533 compatible = "allwinner,sun5i-a13-hstimer";
534 reg = <0x01c60000 0x1000>;
535 interrupts = <82>, <83>;
536 clocks = <&ahb_gates 28>;