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>;
27 compatible = "arm,cortex-a8";
33 reg = <0x40000000 0x80000000>;
42 * This is a dummy clock, to be used as placeholder on
43 * other mux clocks when a specific parent clock is not
44 * yet implemented. It should be dropped when the driver
49 compatible = "fixed-clock";
50 clock-frequency = <0>;
53 osc24M: osc24M@01c20050 {
55 compatible = "allwinner,sun4i-osc-clk";
56 reg = <0x01c20050 0x4>;
57 clock-frequency = <24000000>;
62 compatible = "fixed-clock";
63 clock-frequency = <32768>;
68 compatible = "allwinner,sun4i-pll1-clk";
69 reg = <0x01c20000 0x4>;
75 compatible = "allwinner,sun4i-pll1-clk";
76 reg = <0x01c20018 0x4>;
82 compatible = "allwinner,sun4i-pll5-clk";
83 reg = <0x01c20020 0x4>;
85 clock-output-names = "pll5_ddr", "pll5_other";
90 compatible = "allwinner,sun4i-pll6-clk";
91 reg = <0x01c20028 0x4>;
93 clock-output-names = "pll6_sata", "pll6_other", "pll6";
99 compatible = "allwinner,sun4i-cpu-clk";
100 reg = <0x01c20054 0x4>;
101 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
106 compatible = "allwinner,sun4i-axi-clk";
107 reg = <0x01c20054 0x4>;
111 axi_gates: axi_gates@01c2005c {
113 compatible = "allwinner,sun4i-axi-gates-clk";
114 reg = <0x01c2005c 0x4>;
116 clock-output-names = "axi_dram";
121 compatible = "allwinner,sun4i-ahb-clk";
122 reg = <0x01c20054 0x4>;
126 ahb_gates: ahb_gates@01c20060 {
128 compatible = "allwinner,sun4i-ahb-gates-clk";
129 reg = <0x01c20060 0x8>;
131 clock-output-names = "ahb_usb0", "ahb_ehci0",
132 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
133 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
134 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
135 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
136 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
137 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
138 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
139 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
140 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
141 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
144 apb0: apb0@01c20054 {
146 compatible = "allwinner,sun4i-apb0-clk";
147 reg = <0x01c20054 0x4>;
151 apb0_gates: apb0_gates@01c20068 {
153 compatible = "allwinner,sun4i-apb0-gates-clk";
154 reg = <0x01c20068 0x4>;
156 clock-output-names = "apb0_codec", "apb0_spdif",
157 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
158 "apb0_ir1", "apb0_keypad";
161 apb1_mux: apb1_mux@01c20058 {
163 compatible = "allwinner,sun4i-apb1-mux-clk";
164 reg = <0x01c20058 0x4>;
165 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
168 apb1: apb1@01c20058 {
170 compatible = "allwinner,sun4i-apb1-clk";
171 reg = <0x01c20058 0x4>;
172 clocks = <&apb1_mux>;
175 apb1_gates: apb1_gates@01c2006c {
177 compatible = "allwinner,sun4i-apb1-gates-clk";
178 reg = <0x01c2006c 0x4>;
180 clock-output-names = "apb1_i2c0", "apb1_i2c1",
181 "apb1_i2c2", "apb1_can", "apb1_scr",
182 "apb1_ps20", "apb1_ps21", "apb1_uart0",
183 "apb1_uart1", "apb1_uart2", "apb1_uart3",
184 "apb1_uart4", "apb1_uart5", "apb1_uart6",
188 nand_clk: clk@01c20080 {
190 compatible = "allwinner,sun4i-mod0-clk";
191 reg = <0x01c20080 0x4>;
192 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
193 clock-output-names = "nand";
196 ms_clk: clk@01c20084 {
198 compatible = "allwinner,sun4i-mod0-clk";
199 reg = <0x01c20084 0x4>;
200 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
201 clock-output-names = "ms";
204 mmc0_clk: clk@01c20088 {
206 compatible = "allwinner,sun4i-mod0-clk";
207 reg = <0x01c20088 0x4>;
208 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
209 clock-output-names = "mmc0";
212 mmc1_clk: clk@01c2008c {
214 compatible = "allwinner,sun4i-mod0-clk";
215 reg = <0x01c2008c 0x4>;
216 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
217 clock-output-names = "mmc1";
220 mmc2_clk: clk@01c20090 {
222 compatible = "allwinner,sun4i-mod0-clk";
223 reg = <0x01c20090 0x4>;
224 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
225 clock-output-names = "mmc2";
228 mmc3_clk: clk@01c20094 {
230 compatible = "allwinner,sun4i-mod0-clk";
231 reg = <0x01c20094 0x4>;
232 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
233 clock-output-names = "mmc3";
236 ts_clk: clk@01c20098 {
238 compatible = "allwinner,sun4i-mod0-clk";
239 reg = <0x01c20098 0x4>;
240 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
241 clock-output-names = "ts";
244 ss_clk: clk@01c2009c {
246 compatible = "allwinner,sun4i-mod0-clk";
247 reg = <0x01c2009c 0x4>;
248 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
249 clock-output-names = "ss";
252 spi0_clk: clk@01c200a0 {
254 compatible = "allwinner,sun4i-mod0-clk";
255 reg = <0x01c200a0 0x4>;
256 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
257 clock-output-names = "spi0";
260 spi1_clk: clk@01c200a4 {
262 compatible = "allwinner,sun4i-mod0-clk";
263 reg = <0x01c200a4 0x4>;
264 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
265 clock-output-names = "spi1";
268 spi2_clk: clk@01c200a8 {
270 compatible = "allwinner,sun4i-mod0-clk";
271 reg = <0x01c200a8 0x4>;
272 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
273 clock-output-names = "spi2";
276 pata_clk: clk@01c200ac {
278 compatible = "allwinner,sun4i-mod0-clk";
279 reg = <0x01c200ac 0x4>;
280 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
281 clock-output-names = "pata";
284 ir0_clk: clk@01c200b0 {
286 compatible = "allwinner,sun4i-mod0-clk";
287 reg = <0x01c200b0 0x4>;
288 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
289 clock-output-names = "ir0";
292 ir1_clk: clk@01c200b4 {
294 compatible = "allwinner,sun4i-mod0-clk";
295 reg = <0x01c200b4 0x4>;
296 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
297 clock-output-names = "ir1";
300 spi3_clk: clk@01c200d4 {
302 compatible = "allwinner,sun4i-mod0-clk";
303 reg = <0x01c200d4 0x4>;
304 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
305 clock-output-names = "spi3";
310 compatible = "simple-bus";
311 #address-cells = <1>;
315 emac: ethernet@01c0b000 {
316 compatible = "allwinner,sun4i-emac";
317 reg = <0x01c0b000 0x1000>;
319 clocks = <&ahb_gates 17>;
324 compatible = "allwinner,sun4i-mdio";
325 reg = <0x01c0b080 0x14>;
327 #address-cells = <1>;
331 intc: interrupt-controller@01c20400 {
332 compatible = "allwinner,sun4i-ic";
333 reg = <0x01c20400 0x400>;
334 interrupt-controller;
335 #interrupt-cells = <1>;
338 pio: pinctrl@01c20800 {
339 compatible = "allwinner,sun4i-a10-pinctrl";
340 reg = <0x01c20800 0x400>;
342 clocks = <&apb0_gates 5>;
344 interrupt-controller;
345 #address-cells = <1>;
349 uart0_pins_a: uart0@0 {
350 allwinner,pins = "PB22", "PB23";
351 allwinner,function = "uart0";
352 allwinner,drive = <0>;
353 allwinner,pull = <0>;
356 uart0_pins_b: uart0@1 {
357 allwinner,pins = "PF2", "PF4";
358 allwinner,function = "uart0";
359 allwinner,drive = <0>;
360 allwinner,pull = <0>;
363 uart1_pins_a: uart1@0 {
364 allwinner,pins = "PA10", "PA11";
365 allwinner,function = "uart1";
366 allwinner,drive = <0>;
367 allwinner,pull = <0>;
370 i2c0_pins_a: i2c0@0 {
371 allwinner,pins = "PB0", "PB1";
372 allwinner,function = "i2c0";
373 allwinner,drive = <0>;
374 allwinner,pull = <0>;
377 i2c1_pins_a: i2c1@0 {
378 allwinner,pins = "PB18", "PB19";
379 allwinner,function = "i2c1";
380 allwinner,drive = <0>;
381 allwinner,pull = <0>;
384 i2c2_pins_a: i2c2@0 {
385 allwinner,pins = "PB20", "PB21";
386 allwinner,function = "i2c2";
387 allwinner,drive = <0>;
388 allwinner,pull = <0>;
391 emac_pins_a: emac0@0 {
392 allwinner,pins = "PA0", "PA1", "PA2",
393 "PA3", "PA4", "PA5", "PA6",
394 "PA7", "PA8", "PA9", "PA10",
395 "PA11", "PA12", "PA13", "PA14",
397 allwinner,function = "emac";
398 allwinner,drive = <0>;
399 allwinner,pull = <0>;
404 compatible = "allwinner,sun4i-timer";
405 reg = <0x01c20c00 0x90>;
410 wdt: watchdog@01c20c90 {
411 compatible = "allwinner,sun4i-wdt";
412 reg = <0x01c20c90 0x10>;
416 compatible = "allwinner,sun4i-rtc";
417 reg = <0x01c20d00 0x20>;
421 sid: eeprom@01c23800 {
422 compatible = "allwinner,sun4i-sid";
423 reg = <0x01c23800 0x10>;
426 uart0: serial@01c28000 {
427 compatible = "snps,dw-apb-uart";
428 reg = <0x01c28000 0x400>;
432 clocks = <&apb1_gates 16>;
436 uart1: serial@01c28400 {
437 compatible = "snps,dw-apb-uart";
438 reg = <0x01c28400 0x400>;
442 clocks = <&apb1_gates 17>;
446 uart2: serial@01c28800 {
447 compatible = "snps,dw-apb-uart";
448 reg = <0x01c28800 0x400>;
452 clocks = <&apb1_gates 18>;
456 uart3: serial@01c28c00 {
457 compatible = "snps,dw-apb-uart";
458 reg = <0x01c28c00 0x400>;
462 clocks = <&apb1_gates 19>;
466 uart4: serial@01c29000 {
467 compatible = "snps,dw-apb-uart";
468 reg = <0x01c29000 0x400>;
472 clocks = <&apb1_gates 20>;
476 uart5: serial@01c29400 {
477 compatible = "snps,dw-apb-uart";
478 reg = <0x01c29400 0x400>;
482 clocks = <&apb1_gates 21>;
486 uart6: serial@01c29800 {
487 compatible = "snps,dw-apb-uart";
488 reg = <0x01c29800 0x400>;
492 clocks = <&apb1_gates 22>;
496 uart7: serial@01c29c00 {
497 compatible = "snps,dw-apb-uart";
498 reg = <0x01c29c00 0x400>;
502 clocks = <&apb1_gates 23>;
507 compatible = "allwinner,sun4i-i2c";
508 reg = <0x01c2ac00 0x400>;
510 clocks = <&apb1_gates 0>;
511 clock-frequency = <100000>;
516 compatible = "allwinner,sun4i-i2c";
517 reg = <0x01c2b000 0x400>;
519 clocks = <&apb1_gates 1>;
520 clock-frequency = <100000>;
525 compatible = "allwinner,sun4i-i2c";
526 reg = <0x01c2b400 0x400>;
528 clocks = <&apb1_gates 2>;
529 clock-frequency = <100000>;