blob: bc999539ab035fc8651f5fd286b8852ca67bd469 [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 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200293 };
294
295 soc@01c00000 {
296 compatible = "simple-bus";
297 #address-cells = <1>;
298 #size-cells = <1>;
299 ranges;
300
Maxime Ripard2e804d02013-09-11 11:10:06 +0200301 emac: ethernet@01c0b000 {
302 compatible = "allwinner,sun4i-emac";
303 reg = <0x01c0b000 0x1000>;
304 interrupts = <0 55 1>;
305 clocks = <&ahb_gates 17>;
306 status = "disabled";
307 };
308
309 mdio@01c0b080 {
310 compatible = "allwinner,sun4i-mdio";
311 reg = <0x01c0b080 0x14>;
312 status = "disabled";
313 #address-cells = <1>;
314 #size-cells = <0>;
315 };
316
Maxime Ripard17eac032013-07-24 23:46:11 +0200317 pio: pinctrl@01c20800 {
318 compatible = "allwinner,sun7i-a20-pinctrl";
319 reg = <0x01c20800 0x400>;
320 interrupts = <0 28 1>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200321 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200322 gpio-controller;
323 interrupt-controller;
324 #address-cells = <1>;
325 #size-cells = <0>;
326 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200327
328 uart0_pins_a: uart0@0 {
329 allwinner,pins = "PB22", "PB23";
330 allwinner,function = "uart0";
331 allwinner,drive = <0>;
332 allwinner,pull = <0>;
333 };
334
335 uart6_pins_a: uart6@0 {
336 allwinner,pins = "PI12", "PI13";
337 allwinner,function = "uart6";
338 allwinner,drive = <0>;
339 allwinner,pull = <0>;
340 };
341
342 uart7_pins_a: uart7@0 {
343 allwinner,pins = "PI20", "PI21";
344 allwinner,function = "uart7";
345 allwinner,drive = <0>;
346 allwinner,pull = <0>;
347 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200348
Maxime Riparde5496a32013-08-31 23:08:49 +0200349 i2c0_pins_a: i2c0@0 {
350 allwinner,pins = "PB0", "PB1";
351 allwinner,function = "i2c0";
352 allwinner,drive = <0>;
353 allwinner,pull = <0>;
354 };
355
356 i2c1_pins_a: i2c1@0 {
357 allwinner,pins = "PB18", "PB19";
358 allwinner,function = "i2c1";
359 allwinner,drive = <0>;
360 allwinner,pull = <0>;
361 };
362
363 i2c2_pins_a: i2c2@0 {
364 allwinner,pins = "PB20", "PB21";
365 allwinner,function = "i2c2";
366 allwinner,drive = <0>;
367 allwinner,pull = <0>;
368 };
369
Maxime Ripard756084c2013-09-11 11:10:07 +0200370 emac_pins_a: emac0@0 {
371 allwinner,pins = "PA0", "PA1", "PA2",
372 "PA3", "PA4", "PA5", "PA6",
373 "PA7", "PA8", "PA9", "PA10",
374 "PA11", "PA12", "PA13", "PA14",
375 "PA15", "PA16";
376 allwinner,function = "emac";
377 allwinner,drive = <0>;
378 allwinner,pull = <0>;
379 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200380 };
381
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200382 timer@01c20c00 {
383 compatible = "allwinner,sun4i-timer";
384 reg = <0x01c20c00 0x90>;
385 interrupts = <0 22 1>,
386 <0 23 1>,
387 <0 24 1>,
388 <0 25 1>,
389 <0 67 1>,
390 <0 68 1>;
391 clocks = <&osc24M>;
392 };
393
394 wdt: watchdog@01c20c90 {
395 compatible = "allwinner,sun4i-wdt";
396 reg = <0x01c20c90 0x10>;
397 };
398
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200399 sid: eeprom@01c23800 {
400 compatible = "allwinner,sun7i-a20-sid";
401 reg = <0x01c23800 0x200>;
402 };
403
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200404 uart0: serial@01c28000 {
405 compatible = "snps,dw-apb-uart";
406 reg = <0x01c28000 0x400>;
407 interrupts = <0 1 1>;
408 reg-shift = <2>;
409 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200410 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200411 status = "disabled";
412 };
413
414 uart1: serial@01c28400 {
415 compatible = "snps,dw-apb-uart";
416 reg = <0x01c28400 0x400>;
417 interrupts = <0 2 1>;
418 reg-shift = <2>;
419 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200420 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200421 status = "disabled";
422 };
423
424 uart2: serial@01c28800 {
425 compatible = "snps,dw-apb-uart";
426 reg = <0x01c28800 0x400>;
427 interrupts = <0 3 1>;
428 reg-shift = <2>;
429 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200430 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200431 status = "disabled";
432 };
433
434 uart3: serial@01c28c00 {
435 compatible = "snps,dw-apb-uart";
436 reg = <0x01c28c00 0x400>;
437 interrupts = <0 4 1>;
438 reg-shift = <2>;
439 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200440 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200441 status = "disabled";
442 };
443
444 uart4: serial@01c29000 {
445 compatible = "snps,dw-apb-uart";
446 reg = <0x01c29000 0x400>;
447 interrupts = <0 17 1>;
448 reg-shift = <2>;
449 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200450 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200451 status = "disabled";
452 };
453
454 uart5: serial@01c29400 {
455 compatible = "snps,dw-apb-uart";
456 reg = <0x01c29400 0x400>;
457 interrupts = <0 18 1>;
458 reg-shift = <2>;
459 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200460 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200461 status = "disabled";
462 };
463
464 uart6: serial@01c29800 {
465 compatible = "snps,dw-apb-uart";
466 reg = <0x01c29800 0x400>;
467 interrupts = <0 19 1>;
468 reg-shift = <2>;
469 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200470 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200471 status = "disabled";
472 };
473
474 uart7: serial@01c29c00 {
475 compatible = "snps,dw-apb-uart";
476 reg = <0x01c29c00 0x400>;
477 interrupts = <0 20 1>;
478 reg-shift = <2>;
479 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200480 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200481 status = "disabled";
482 };
483
Maxime Ripard428abbb2013-08-31 23:07:24 +0200484 i2c0: i2c@01c2ac00 {
485 compatible = "allwinner,sun4i-i2c";
486 reg = <0x01c2ac00 0x400>;
487 interrupts = <0 7 1>;
488 clocks = <&apb1_gates 0>;
489 clock-frequency = <100000>;
490 status = "disabled";
491 };
492
493 i2c1: i2c@01c2b000 {
494 compatible = "allwinner,sun4i-i2c";
495 reg = <0x01c2b000 0x400>;
496 interrupts = <0 8 1>;
497 clocks = <&apb1_gates 1>;
498 clock-frequency = <100000>;
499 status = "disabled";
500 };
501
502 i2c2: i2c@01c2b400 {
503 compatible = "allwinner,sun4i-i2c";
504 reg = <0x01c2b400 0x400>;
505 interrupts = <0 9 1>;
506 clocks = <&apb1_gates 2>;
507 clock-frequency = <100000>;
508 status = "disabled";
509 };
510
511 i2c3: i2c@01c2b800 {
512 compatible = "allwinner,sun4i-i2c";
513 reg = <0x01c2b800 0x400>;
514 interrupts = <0 88 1>;
515 clocks = <&apb1_gates 3>;
516 clock-frequency = <100000>;
517 status = "disabled";
518 };
519
520 i2c4: i2c@01c2bc00 {
521 compatible = "allwinner,sun4i-i2c";
522 reg = <0x01c2bc00 0x400>;
523 interrupts = <0 89 1>;
524 clocks = <&apb1_gates 15>;
525 clock-frequency = <100000>;
526 status = "disabled";
527 };
528
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200529 gic: interrupt-controller@01c81000 {
530 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
531 reg = <0x01c81000 0x1000>,
532 <0x01c82000 0x1000>,
533 <0x01c84000 0x2000>,
534 <0x01c86000 0x2000>;
535 interrupt-controller;
536 #interrupt-cells = <3>;
537 interrupts = <1 9 0xf04>;
538 };
539 };
540};