blob: ee68196050507a2f578afe4e944bd820735c0f8a [file] [log] [blame]
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
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:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14/include/ "skeleton.dtsi"
15
16/ {
17 interrupt-parent = <&gic>;
18
19 cpus {
20 #address-cells = <1>;
21 #size-cells = <0>;
22
23 cpu@0 {
24 compatible = "arm,cortex-a7";
25 device_type = "cpu";
26 reg = <0>;
27 };
28
29 cpu@1 {
30 compatible = "arm,cortex-a7";
31 device_type = "cpu";
32 reg = <1>;
33 };
34 };
35
36 memory {
37 reg = <0x40000000 0x80000000>;
38 };
39
40 clocks {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 ranges;
44
45 osc24M: osc24M@01c20050 {
46 #clock-cells = <0>;
Maxime Ripardde7dc932013-07-25 21:12:52 +020047 compatible = "allwinner,sun4i-osc-clk";
48 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +020049 clock-frequency = <24000000>;
50 };
51
52 osc32k: osc32k {
53 #clock-cells = <0>;
54 compatible = "fixed-clock";
55 clock-frequency = <32768>;
56 };
Maxime Ripardde7dc932013-07-25 21:12:52 +020057
58 pll1: pll1@01c20000 {
59 #clock-cells = <0>;
60 compatible = "allwinner,sun4i-pll1-clk";
61 reg = <0x01c20000 0x4>;
62 clocks = <&osc24M>;
63 };
64
Emilio Lópezec5589f2013-12-23 00:32:35 -030065 pll4: pll4@01c20018 {
66 #clock-cells = <0>;
67 compatible = "allwinner,sun4i-pll1-clk";
68 reg = <0x01c20018 0x4>;
69 clocks = <&osc24M>;
70 };
71
Emilio Lópezc3e5e662013-12-23 00:32:38 -030072 pll5: pll5@01c20020 {
73 #clock-cells = <1>;
74 compatible = "allwinner,sun4i-pll5-clk";
75 reg = <0x01c20020 0x4>;
76 clocks = <&osc24M>;
77 clock-output-names = "pll5_ddr", "pll5_other";
78 };
79
80 pll6: pll6@01c20028 {
81 #clock-cells = <1>;
82 compatible = "allwinner,sun4i-pll6-clk";
83 reg = <0x01c20028 0x4>;
84 clocks = <&osc24M>;
85 clock-output-names = "pll6_sata", "pll6_other", "pll6";
Maxime Ripardde7dc932013-07-25 21:12:52 +020086 };
87
88 cpu: cpu@01c20054 {
89 #clock-cells = <0>;
90 compatible = "allwinner,sun4i-cpu-clk";
91 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -030092 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Maxime Ripardde7dc932013-07-25 21:12:52 +020093 };
94
95 axi: axi@01c20054 {
96 #clock-cells = <0>;
97 compatible = "allwinner,sun4i-axi-clk";
98 reg = <0x01c20054 0x4>;
99 clocks = <&cpu>;
100 };
101
102 ahb: ahb@01c20054 {
103 #clock-cells = <0>;
104 compatible = "allwinner,sun4i-ahb-clk";
105 reg = <0x01c20054 0x4>;
106 clocks = <&axi>;
107 };
108
109 ahb_gates: ahb_gates@01c20060 {
110 #clock-cells = <1>;
111 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
112 reg = <0x01c20060 0x8>;
113 clocks = <&ahb>;
114 clock-output-names = "ahb_usb0", "ahb_ehci0",
115 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
116 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
117 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
118 "ahb_nand", "ahb_sdram", "ahb_ace",
119 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
120 "ahb_spi2", "ahb_spi3", "ahb_sata",
121 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
122 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
123 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
124 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
125 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
126 "ahb_mali";
127 };
128
129 apb0: apb0@01c20054 {
130 #clock-cells = <0>;
131 compatible = "allwinner,sun4i-apb0-clk";
132 reg = <0x01c20054 0x4>;
133 clocks = <&ahb>;
134 };
135
136 apb0_gates: apb0_gates@01c20068 {
137 #clock-cells = <1>;
138 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
139 reg = <0x01c20068 0x4>;
140 clocks = <&apb0>;
141 clock-output-names = "apb0_codec", "apb0_spdif",
142 "apb0_ac97", "apb0_iis0", "apb0_iis1",
143 "apb0_pio", "apb0_ir0", "apb0_ir1",
144 "apb0_iis2", "apb0_keypad";
145 };
146
147 apb1_mux: apb1_mux@01c20058 {
148 #clock-cells = <0>;
149 compatible = "allwinner,sun4i-apb1-mux-clk";
150 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300151 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200152 };
153
154 apb1: apb1@01c20058 {
155 #clock-cells = <0>;
156 compatible = "allwinner,sun4i-apb1-clk";
157 reg = <0x01c20058 0x4>;
158 clocks = <&apb1_mux>;
159 };
160
161 apb1_gates: apb1_gates@01c2006c {
162 #clock-cells = <1>;
163 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
164 reg = <0x01c2006c 0x4>;
165 clocks = <&apb1>;
166 clock-output-names = "apb1_i2c0", "apb1_i2c1",
167 "apb1_i2c2", "apb1_i2c3", "apb1_can",
168 "apb1_scr", "apb1_ps20", "apb1_ps21",
169 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
170 "apb1_uart2", "apb1_uart3", "apb1_uart4",
171 "apb1_uart5", "apb1_uart6", "apb1_uart7";
172 };
Emilio López1c92b952013-12-23 00:32:43 -0300173
174 nand_clk: clk@01c20080 {
175 #clock-cells = <0>;
176 compatible = "allwinner,sun4i-mod0-clk";
177 reg = <0x01c20080 0x4>;
178 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
179 clock-output-names = "nand";
180 };
181
182 ms_clk: clk@01c20084 {
183 #clock-cells = <0>;
184 compatible = "allwinner,sun4i-mod0-clk";
185 reg = <0x01c20084 0x4>;
186 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
187 clock-output-names = "ms";
188 };
189
190 mmc0_clk: clk@01c20088 {
191 #clock-cells = <0>;
192 compatible = "allwinner,sun4i-mod0-clk";
193 reg = <0x01c20088 0x4>;
194 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
195 clock-output-names = "mmc0";
196 };
197
198 mmc1_clk: clk@01c2008c {
199 #clock-cells = <0>;
200 compatible = "allwinner,sun4i-mod0-clk";
201 reg = <0x01c2008c 0x4>;
202 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
203 clock-output-names = "mmc1";
204 };
205
206 mmc2_clk: clk@01c20090 {
207 #clock-cells = <0>;
208 compatible = "allwinner,sun4i-mod0-clk";
209 reg = <0x01c20090 0x4>;
210 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
211 clock-output-names = "mmc2";
212 };
213
214 mmc3_clk: clk@01c20094 {
215 #clock-cells = <0>;
216 compatible = "allwinner,sun4i-mod0-clk";
217 reg = <0x01c20094 0x4>;
218 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
219 clock-output-names = "mmc3";
220 };
221
222 ts_clk: clk@01c20098 {
223 #clock-cells = <0>;
224 compatible = "allwinner,sun4i-mod0-clk";
225 reg = <0x01c20098 0x4>;
226 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
227 clock-output-names = "ts";
228 };
229
230 ss_clk: clk@01c2009c {
231 #clock-cells = <0>;
232 compatible = "allwinner,sun4i-mod0-clk";
233 reg = <0x01c2009c 0x4>;
234 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
235 clock-output-names = "ss";
236 };
237
238 spi0_clk: clk@01c200a0 {
239 #clock-cells = <0>;
240 compatible = "allwinner,sun4i-mod0-clk";
241 reg = <0x01c200a0 0x4>;
242 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
243 clock-output-names = "spi0";
244 };
245
246 spi1_clk: clk@01c200a4 {
247 #clock-cells = <0>;
248 compatible = "allwinner,sun4i-mod0-clk";
249 reg = <0x01c200a4 0x4>;
250 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
251 clock-output-names = "spi1";
252 };
253
254 spi2_clk: clk@01c200a8 {
255 #clock-cells = <0>;
256 compatible = "allwinner,sun4i-mod0-clk";
257 reg = <0x01c200a8 0x4>;
258 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
259 clock-output-names = "spi2";
260 };
261
262 pata_clk: clk@01c200ac {
263 #clock-cells = <0>;
264 compatible = "allwinner,sun4i-mod0-clk";
265 reg = <0x01c200ac 0x4>;
266 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
267 clock-output-names = "pata";
268 };
269
270 ir0_clk: clk@01c200b0 {
271 #clock-cells = <0>;
272 compatible = "allwinner,sun4i-mod0-clk";
273 reg = <0x01c200b0 0x4>;
274 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
275 clock-output-names = "ir0";
276 };
277
278 ir1_clk: clk@01c200b4 {
279 #clock-cells = <0>;
280 compatible = "allwinner,sun4i-mod0-clk";
281 reg = <0x01c200b4 0x4>;
282 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
283 clock-output-names = "ir1";
284 };
285
286 spi3_clk: clk@01c200d4 {
287 #clock-cells = <0>;
288 compatible = "allwinner,sun4i-mod0-clk";
289 reg = <0x01c200d4 0x4>;
290 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
291 clock-output-names = "spi3";
292 };
Emilio López118c07a2013-12-23 00:32:44 -0300293
294 mbus_clk: clk@01c2015c {
295 #clock-cells = <0>;
296 compatible = "allwinner,sun4i-mod0-clk";
297 reg = <0x01c2015c 0x4>;
298 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
299 clock-output-names = "mbus";
300 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200301 };
302
303 soc@01c00000 {
304 compatible = "simple-bus";
305 #address-cells = <1>;
306 #size-cells = <1>;
307 ranges;
308
Maxime Ripard2e804d02013-09-11 11:10:06 +0200309 emac: ethernet@01c0b000 {
310 compatible = "allwinner,sun4i-emac";
311 reg = <0x01c0b000 0x1000>;
312 interrupts = <0 55 1>;
313 clocks = <&ahb_gates 17>;
314 status = "disabled";
315 };
316
317 mdio@01c0b080 {
318 compatible = "allwinner,sun4i-mdio";
319 reg = <0x01c0b080 0x14>;
320 status = "disabled";
321 #address-cells = <1>;
322 #size-cells = <0>;
323 };
324
Maxime Ripard17eac032013-07-24 23:46:11 +0200325 pio: pinctrl@01c20800 {
326 compatible = "allwinner,sun7i-a20-pinctrl";
327 reg = <0x01c20800 0x400>;
328 interrupts = <0 28 1>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200329 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200330 gpio-controller;
331 interrupt-controller;
332 #address-cells = <1>;
333 #size-cells = <0>;
334 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200335
336 uart0_pins_a: uart0@0 {
337 allwinner,pins = "PB22", "PB23";
338 allwinner,function = "uart0";
339 allwinner,drive = <0>;
340 allwinner,pull = <0>;
341 };
342
343 uart6_pins_a: uart6@0 {
344 allwinner,pins = "PI12", "PI13";
345 allwinner,function = "uart6";
346 allwinner,drive = <0>;
347 allwinner,pull = <0>;
348 };
349
350 uart7_pins_a: uart7@0 {
351 allwinner,pins = "PI20", "PI21";
352 allwinner,function = "uart7";
353 allwinner,drive = <0>;
354 allwinner,pull = <0>;
355 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200356
Maxime Riparde5496a32013-08-31 23:08:49 +0200357 i2c0_pins_a: i2c0@0 {
358 allwinner,pins = "PB0", "PB1";
359 allwinner,function = "i2c0";
360 allwinner,drive = <0>;
361 allwinner,pull = <0>;
362 };
363
364 i2c1_pins_a: i2c1@0 {
365 allwinner,pins = "PB18", "PB19";
366 allwinner,function = "i2c1";
367 allwinner,drive = <0>;
368 allwinner,pull = <0>;
369 };
370
371 i2c2_pins_a: i2c2@0 {
372 allwinner,pins = "PB20", "PB21";
373 allwinner,function = "i2c2";
374 allwinner,drive = <0>;
375 allwinner,pull = <0>;
376 };
377
Maxime Ripard756084c2013-09-11 11:10:07 +0200378 emac_pins_a: emac0@0 {
379 allwinner,pins = "PA0", "PA1", "PA2",
380 "PA3", "PA4", "PA5", "PA6",
381 "PA7", "PA8", "PA9", "PA10",
382 "PA11", "PA12", "PA13", "PA14",
383 "PA15", "PA16";
384 allwinner,function = "emac";
385 allwinner,drive = <0>;
386 allwinner,pull = <0>;
387 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200388 };
389
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200390 timer@01c20c00 {
391 compatible = "allwinner,sun4i-timer";
392 reg = <0x01c20c00 0x90>;
393 interrupts = <0 22 1>,
394 <0 23 1>,
395 <0 24 1>,
396 <0 25 1>,
397 <0 67 1>,
398 <0 68 1>;
399 clocks = <&osc24M>;
400 };
401
402 wdt: watchdog@01c20c90 {
403 compatible = "allwinner,sun4i-wdt";
404 reg = <0x01c20c90 0x10>;
405 };
406
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200407 sid: eeprom@01c23800 {
408 compatible = "allwinner,sun7i-a20-sid";
409 reg = <0x01c23800 0x200>;
410 };
411
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200412 uart0: serial@01c28000 {
413 compatible = "snps,dw-apb-uart";
414 reg = <0x01c28000 0x400>;
415 interrupts = <0 1 1>;
416 reg-shift = <2>;
417 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200418 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200419 status = "disabled";
420 };
421
422 uart1: serial@01c28400 {
423 compatible = "snps,dw-apb-uart";
424 reg = <0x01c28400 0x400>;
425 interrupts = <0 2 1>;
426 reg-shift = <2>;
427 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200428 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200429 status = "disabled";
430 };
431
432 uart2: serial@01c28800 {
433 compatible = "snps,dw-apb-uart";
434 reg = <0x01c28800 0x400>;
435 interrupts = <0 3 1>;
436 reg-shift = <2>;
437 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200438 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200439 status = "disabled";
440 };
441
442 uart3: serial@01c28c00 {
443 compatible = "snps,dw-apb-uart";
444 reg = <0x01c28c00 0x400>;
445 interrupts = <0 4 1>;
446 reg-shift = <2>;
447 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200448 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200449 status = "disabled";
450 };
451
452 uart4: serial@01c29000 {
453 compatible = "snps,dw-apb-uart";
454 reg = <0x01c29000 0x400>;
455 interrupts = <0 17 1>;
456 reg-shift = <2>;
457 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200458 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200459 status = "disabled";
460 };
461
462 uart5: serial@01c29400 {
463 compatible = "snps,dw-apb-uart";
464 reg = <0x01c29400 0x400>;
465 interrupts = <0 18 1>;
466 reg-shift = <2>;
467 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200468 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200469 status = "disabled";
470 };
471
472 uart6: serial@01c29800 {
473 compatible = "snps,dw-apb-uart";
474 reg = <0x01c29800 0x400>;
475 interrupts = <0 19 1>;
476 reg-shift = <2>;
477 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200478 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200479 status = "disabled";
480 };
481
482 uart7: serial@01c29c00 {
483 compatible = "snps,dw-apb-uart";
484 reg = <0x01c29c00 0x400>;
485 interrupts = <0 20 1>;
486 reg-shift = <2>;
487 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200488 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200489 status = "disabled";
490 };
491
Maxime Ripard428abbb2013-08-31 23:07:24 +0200492 i2c0: i2c@01c2ac00 {
493 compatible = "allwinner,sun4i-i2c";
494 reg = <0x01c2ac00 0x400>;
495 interrupts = <0 7 1>;
496 clocks = <&apb1_gates 0>;
497 clock-frequency = <100000>;
498 status = "disabled";
499 };
500
501 i2c1: i2c@01c2b000 {
502 compatible = "allwinner,sun4i-i2c";
503 reg = <0x01c2b000 0x400>;
504 interrupts = <0 8 1>;
505 clocks = <&apb1_gates 1>;
506 clock-frequency = <100000>;
507 status = "disabled";
508 };
509
510 i2c2: i2c@01c2b400 {
511 compatible = "allwinner,sun4i-i2c";
512 reg = <0x01c2b400 0x400>;
513 interrupts = <0 9 1>;
514 clocks = <&apb1_gates 2>;
515 clock-frequency = <100000>;
516 status = "disabled";
517 };
518
519 i2c3: i2c@01c2b800 {
520 compatible = "allwinner,sun4i-i2c";
521 reg = <0x01c2b800 0x400>;
522 interrupts = <0 88 1>;
523 clocks = <&apb1_gates 3>;
524 clock-frequency = <100000>;
525 status = "disabled";
526 };
527
528 i2c4: i2c@01c2bc00 {
529 compatible = "allwinner,sun4i-i2c";
530 reg = <0x01c2bc00 0x400>;
531 interrupts = <0 89 1>;
532 clocks = <&apb1_gates 15>;
533 clock-frequency = <100000>;
534 status = "disabled";
535 };
536
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200537 gic: interrupt-controller@01c81000 {
538 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
539 reg = <0x01c81000 0x1000>,
540 <0x01c82000 0x1000>,
541 <0x01c84000 0x2000>,
542 <0x01c86000 0x2000>;
543 interrupt-controller;
544 #interrupt-cells = <3>;
545 interrupts = <1 9 0xf04>;
546 };
547 };
548};