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: osc24M@01c20050 {
63 compatible = "allwinner,sun4i-osc-clk";
64 reg = <0x01c20050 0x4>;
65 clock-frequency = <24000000>;
70 compatible = "fixed-clock";
71 clock-frequency = <32768>;
76 compatible = "allwinner,sun4i-pll1-clk";
77 reg = <0x01c20000 0x4>;
83 compatible = "allwinner,sun4i-pll1-clk";
84 reg = <0x01c20018 0x4>;
90 compatible = "allwinner,sun4i-pll5-clk";
91 reg = <0x01c20020 0x4>;
93 clock-output-names = "pll5_ddr", "pll5_other";
98 compatible = "allwinner,sun4i-pll6-clk";
99 reg = <0x01c20028 0x4>;
101 clock-output-names = "pll6_sata", "pll6_other", "pll6";
107 compatible = "allwinner,sun4i-cpu-clk";
108 reg = <0x01c20054 0x4>;
109 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
114 compatible = "allwinner,sun4i-axi-clk";
115 reg = <0x01c20054 0x4>;
119 axi_gates: axi_gates@01c2005c {
121 compatible = "allwinner,sun4i-axi-gates-clk";
122 reg = <0x01c2005c 0x4>;
124 clock-output-names = "axi_dram";
129 compatible = "allwinner,sun4i-ahb-clk";
130 reg = <0x01c20054 0x4>;
134 ahb_gates: ahb_gates@01c20060 {
136 compatible = "allwinner,sun4i-ahb-gates-clk";
137 reg = <0x01c20060 0x8>;
139 clock-output-names = "ahb_usb0", "ahb_ehci0",
140 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
141 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
142 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
143 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
144 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
145 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
146 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
147 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
148 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
149 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
152 apb0: apb0@01c20054 {
154 compatible = "allwinner,sun4i-apb0-clk";
155 reg = <0x01c20054 0x4>;
159 apb0_gates: apb0_gates@01c20068 {
161 compatible = "allwinner,sun4i-apb0-gates-clk";
162 reg = <0x01c20068 0x4>;
164 clock-output-names = "apb0_codec", "apb0_spdif",
165 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
166 "apb0_ir1", "apb0_keypad";
169 apb1_mux: apb1_mux@01c20058 {
171 compatible = "allwinner,sun4i-apb1-mux-clk";
172 reg = <0x01c20058 0x4>;
173 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
176 apb1: apb1@01c20058 {
178 compatible = "allwinner,sun4i-apb1-clk";
179 reg = <0x01c20058 0x4>;
180 clocks = <&apb1_mux>;
183 apb1_gates: apb1_gates@01c2006c {
185 compatible = "allwinner,sun4i-apb1-gates-clk";
186 reg = <0x01c2006c 0x4>;
188 clock-output-names = "apb1_i2c0", "apb1_i2c1",
189 "apb1_i2c2", "apb1_can", "apb1_scr",
190 "apb1_ps20", "apb1_ps21", "apb1_uart0",
191 "apb1_uart1", "apb1_uart2", "apb1_uart3",
192 "apb1_uart4", "apb1_uart5", "apb1_uart6",
196 nand_clk: clk@01c20080 {
198 compatible = "allwinner,sun4i-mod0-clk";
199 reg = <0x01c20080 0x4>;
200 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
201 clock-output-names = "nand";
204 ms_clk: clk@01c20084 {
206 compatible = "allwinner,sun4i-mod0-clk";
207 reg = <0x01c20084 0x4>;
208 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
209 clock-output-names = "ms";
212 mmc0_clk: clk@01c20088 {
214 compatible = "allwinner,sun4i-mod0-clk";
215 reg = <0x01c20088 0x4>;
216 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
217 clock-output-names = "mmc0";
220 mmc1_clk: clk@01c2008c {
222 compatible = "allwinner,sun4i-mod0-clk";
223 reg = <0x01c2008c 0x4>;
224 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
225 clock-output-names = "mmc1";
228 mmc2_clk: clk@01c20090 {
230 compatible = "allwinner,sun4i-mod0-clk";
231 reg = <0x01c20090 0x4>;
232 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
233 clock-output-names = "mmc2";
236 mmc3_clk: clk@01c20094 {
238 compatible = "allwinner,sun4i-mod0-clk";
239 reg = <0x01c20094 0x4>;
240 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
241 clock-output-names = "mmc3";
244 ts_clk: clk@01c20098 {
246 compatible = "allwinner,sun4i-mod0-clk";
247 reg = <0x01c20098 0x4>;
248 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
249 clock-output-names = "ts";
252 ss_clk: clk@01c2009c {
254 compatible = "allwinner,sun4i-mod0-clk";
255 reg = <0x01c2009c 0x4>;
256 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
257 clock-output-names = "ss";
260 spi0_clk: clk@01c200a0 {
262 compatible = "allwinner,sun4i-mod0-clk";
263 reg = <0x01c200a0 0x4>;
264 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
265 clock-output-names = "spi0";
268 spi1_clk: clk@01c200a4 {
270 compatible = "allwinner,sun4i-mod0-clk";
271 reg = <0x01c200a4 0x4>;
272 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
273 clock-output-names = "spi1";
276 spi2_clk: clk@01c200a8 {
278 compatible = "allwinner,sun4i-mod0-clk";
279 reg = <0x01c200a8 0x4>;
280 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
281 clock-output-names = "spi2";
284 pata_clk: clk@01c200ac {
286 compatible = "allwinner,sun4i-mod0-clk";
287 reg = <0x01c200ac 0x4>;
288 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
289 clock-output-names = "pata";
292 ir0_clk: clk@01c200b0 {
294 compatible = "allwinner,sun4i-mod0-clk";
295 reg = <0x01c200b0 0x4>;
296 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
297 clock-output-names = "ir0";
300 ir1_clk: clk@01c200b4 {
302 compatible = "allwinner,sun4i-mod0-clk";
303 reg = <0x01c200b4 0x4>;
304 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
305 clock-output-names = "ir1";
308 spi3_clk: clk@01c200d4 {
310 compatible = "allwinner,sun4i-mod0-clk";
311 reg = <0x01c200d4 0x4>;
312 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
313 clock-output-names = "spi3";
318 compatible = "simple-bus";
319 #address-cells = <1>;
323 emac: ethernet@01c0b000 {
324 compatible = "allwinner,sun4i-emac";
325 reg = <0x01c0b000 0x1000>;
327 clocks = <&ahb_gates 17>;
332 compatible = "allwinner,sun4i-mdio";
333 reg = <0x01c0b080 0x14>;
335 #address-cells = <1>;
339 intc: interrupt-controller@01c20400 {
340 compatible = "allwinner,sun4i-ic";
341 reg = <0x01c20400 0x400>;
342 interrupt-controller;
343 #interrupt-cells = <1>;
346 pio: pinctrl@01c20800 {
347 compatible = "allwinner,sun4i-a10-pinctrl";
348 reg = <0x01c20800 0x400>;
350 clocks = <&apb0_gates 5>;
352 interrupt-controller;
353 #address-cells = <1>;
357 uart0_pins_a: uart0@0 {
358 allwinner,pins = "PB22", "PB23";
359 allwinner,function = "uart0";
360 allwinner,drive = <0>;
361 allwinner,pull = <0>;
364 uart0_pins_b: uart0@1 {
365 allwinner,pins = "PF2", "PF4";
366 allwinner,function = "uart0";
367 allwinner,drive = <0>;
368 allwinner,pull = <0>;
371 uart1_pins_a: uart1@0 {
372 allwinner,pins = "PA10", "PA11";
373 allwinner,function = "uart1";
374 allwinner,drive = <0>;
375 allwinner,pull = <0>;
378 i2c0_pins_a: i2c0@0 {
379 allwinner,pins = "PB0", "PB1";
380 allwinner,function = "i2c0";
381 allwinner,drive = <0>;
382 allwinner,pull = <0>;
385 i2c1_pins_a: i2c1@0 {
386 allwinner,pins = "PB18", "PB19";
387 allwinner,function = "i2c1";
388 allwinner,drive = <0>;
389 allwinner,pull = <0>;
392 i2c2_pins_a: i2c2@0 {
393 allwinner,pins = "PB20", "PB21";
394 allwinner,function = "i2c2";
395 allwinner,drive = <0>;
396 allwinner,pull = <0>;
399 emac_pins_a: emac0@0 {
400 allwinner,pins = "PA0", "PA1", "PA2",
401 "PA3", "PA4", "PA5", "PA6",
402 "PA7", "PA8", "PA9", "PA10",
403 "PA11", "PA12", "PA13", "PA14",
405 allwinner,function = "emac";
406 allwinner,drive = <0>;
407 allwinner,pull = <0>;
412 compatible = "allwinner,sun4i-timer";
413 reg = <0x01c20c00 0x90>;
418 wdt: watchdog@01c20c90 {
419 compatible = "allwinner,sun4i-wdt";
420 reg = <0x01c20c90 0x10>;
424 compatible = "allwinner,sun4i-rtc";
425 reg = <0x01c20d00 0x20>;
429 sid: eeprom@01c23800 {
430 compatible = "allwinner,sun4i-sid";
431 reg = <0x01c23800 0x10>;
435 compatible = "allwinner,sun4i-ts";
436 reg = <0x01c25000 0x100>;
440 uart0: serial@01c28000 {
441 compatible = "snps,dw-apb-uart";
442 reg = <0x01c28000 0x400>;
446 clocks = <&apb1_gates 16>;
450 uart1: serial@01c28400 {
451 compatible = "snps,dw-apb-uart";
452 reg = <0x01c28400 0x400>;
456 clocks = <&apb1_gates 17>;
460 uart2: serial@01c28800 {
461 compatible = "snps,dw-apb-uart";
462 reg = <0x01c28800 0x400>;
466 clocks = <&apb1_gates 18>;
470 uart3: serial@01c28c00 {
471 compatible = "snps,dw-apb-uart";
472 reg = <0x01c28c00 0x400>;
476 clocks = <&apb1_gates 19>;
480 uart4: serial@01c29000 {
481 compatible = "snps,dw-apb-uart";
482 reg = <0x01c29000 0x400>;
486 clocks = <&apb1_gates 20>;
490 uart5: serial@01c29400 {
491 compatible = "snps,dw-apb-uart";
492 reg = <0x01c29400 0x400>;
496 clocks = <&apb1_gates 21>;
500 uart6: serial@01c29800 {
501 compatible = "snps,dw-apb-uart";
502 reg = <0x01c29800 0x400>;
506 clocks = <&apb1_gates 22>;
510 uart7: serial@01c29c00 {
511 compatible = "snps,dw-apb-uart";
512 reg = <0x01c29c00 0x400>;
516 clocks = <&apb1_gates 23>;
521 compatible = "allwinner,sun4i-i2c";
522 reg = <0x01c2ac00 0x400>;
524 clocks = <&apb1_gates 0>;
525 clock-frequency = <100000>;
530 compatible = "allwinner,sun4i-i2c";
531 reg = <0x01c2b000 0x400>;
533 clocks = <&apb1_gates 1>;
534 clock-frequency = <100000>;
539 compatible = "allwinner,sun4i-i2c";
540 reg = <0x01c2b400 0x400>;
542 clocks = <&apb1_gates 2>;
543 clock-frequency = <100000>;