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>;
302 compatible = "allwinner,sun4i-a10-spi";
303 reg = <0x01c05000 0x1000>;
305 clocks = <&ahb_gates 20>, <&spi0_clk>;
306 clock-names = "ahb", "mod";
308 #address-cells = <1>;
313 compatible = "allwinner,sun4i-a10-spi";
314 reg = <0x01c06000 0x1000>;
316 clocks = <&ahb_gates 21>, <&spi1_clk>;
317 clock-names = "ahb", "mod";
319 #address-cells = <1>;
324 compatible = "allwinner,sun5i-a13-mmc";
325 reg = <0x01c0f000 0x1000>;
326 clocks = <&ahb_gates 8>, <&mmc0_clk>;
327 clock-names = "ahb", "mmc";
333 compatible = "allwinner,sun5i-a13-mmc";
334 reg = <0x01c11000 0x1000>;
335 clocks = <&ahb_gates 10>, <&mmc2_clk>;
336 clock-names = "ahb", "mmc";
341 usbphy: phy@01c13400 {
343 compatible = "allwinner,sun5i-a13-usb-phy";
344 reg = <0x01c13400 0x10 0x01c14800 0x4>;
345 reg-names = "phy_ctrl", "pmu1";
346 clocks = <&usb_clk 8>;
347 clock-names = "usb_phy";
348 resets = <&usb_clk 1>;
349 reset-names = "usb1_reset";
353 ehci0: usb@01c14000 {
354 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
355 reg = <0x01c14000 0x100>;
357 clocks = <&ahb_gates 1>;
363 ohci0: usb@01c14400 {
364 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
365 reg = <0x01c14400 0x100>;
367 clocks = <&usb_clk 6>, <&ahb_gates 2>;
374 compatible = "allwinner,sun4i-a10-spi";
375 reg = <0x01c17000 0x1000>;
377 clocks = <&ahb_gates 22>, <&spi2_clk>;
378 clock-names = "ahb", "mod";
380 #address-cells = <1>;
384 intc: interrupt-controller@01c20400 {
385 compatible = "allwinner,sun4i-a10-ic";
386 reg = <0x01c20400 0x400>;
387 interrupt-controller;
388 #interrupt-cells = <1>;
391 pio: pinctrl@01c20800 {
392 compatible = "allwinner,sun5i-a13-pinctrl";
393 reg = <0x01c20800 0x400>;
395 clocks = <&apb0_gates 5>;
397 interrupt-controller;
398 #address-cells = <1>;
402 uart1_pins_a: uart1@0 {
403 allwinner,pins = "PE10", "PE11";
404 allwinner,function = "uart1";
405 allwinner,drive = <0>;
406 allwinner,pull = <0>;
409 uart1_pins_b: uart1@1 {
410 allwinner,pins = "PG3", "PG4";
411 allwinner,function = "uart1";
412 allwinner,drive = <0>;
413 allwinner,pull = <0>;
416 i2c0_pins_a: i2c0@0 {
417 allwinner,pins = "PB0", "PB1";
418 allwinner,function = "i2c0";
419 allwinner,drive = <0>;
420 allwinner,pull = <0>;
423 i2c1_pins_a: i2c1@0 {
424 allwinner,pins = "PB15", "PB16";
425 allwinner,function = "i2c1";
426 allwinner,drive = <0>;
427 allwinner,pull = <0>;
430 i2c2_pins_a: i2c2@0 {
431 allwinner,pins = "PB17", "PB18";
432 allwinner,function = "i2c2";
433 allwinner,drive = <0>;
434 allwinner,pull = <0>;
437 mmc0_pins_a: mmc0@0 {
438 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
439 allwinner,function = "mmc0";
440 allwinner,drive = <2>;
441 allwinner,pull = <0>;
446 compatible = "allwinner,sun4i-a10-timer";
447 reg = <0x01c20c00 0x90>;
452 wdt: watchdog@01c20c90 {
453 compatible = "allwinner,sun4i-a10-wdt";
454 reg = <0x01c20c90 0x10>;
457 sid: eeprom@01c23800 {
458 compatible = "allwinner,sun4i-a10-sid";
459 reg = <0x01c23800 0x10>;
463 compatible = "allwinner,sun4i-a10-ts";
464 reg = <0x01c25000 0x100>;
468 uart1: serial@01c28400 {
469 compatible = "snps,dw-apb-uart";
470 reg = <0x01c28400 0x400>;
474 clocks = <&apb1_gates 17>;
478 uart3: serial@01c28c00 {
479 compatible = "snps,dw-apb-uart";
480 reg = <0x01c28c00 0x400>;
484 clocks = <&apb1_gates 19>;
489 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
490 reg = <0x01c2ac00 0x400>;
492 clocks = <&apb1_gates 0>;
493 clock-frequency = <100000>;
495 #address-cells = <1>;
500 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
501 reg = <0x01c2b000 0x400>;
503 clocks = <&apb1_gates 1>;
504 clock-frequency = <100000>;
506 #address-cells = <1>;
511 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
512 reg = <0x01c2b400 0x400>;
514 clocks = <&apb1_gates 2>;
515 clock-frequency = <100000>;
517 #address-cells = <1>;
522 compatible = "allwinner,sun5i-a13-hstimer";
523 reg = <0x01c60000 0x1000>;
524 interrupts = <82>, <83>;
525 clocks = <&ahb_gates 28>;