Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[deliverable/linux.git] / arch / arm / boot / dts / sun5i-a13.dtsi
1 /*
2 * Copyright 2012 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 #include <dt-bindings/thermal/thermal.h>
17
18 #include <dt-bindings/dma/sun4i-a10.h>
19 #include <dt-bindings/pinctrl/sun4i-a10.h>
20
21 / {
22 interrupt-parent = <&intc>;
23
24 chosen {
25 #address-cells = <1>;
26 #size-cells = <1>;
27 ranges;
28
29 framebuffer@0 {
30 compatible = "allwinner,simple-framebuffer",
31 "simple-framebuffer";
32 allwinner,pipeline = "de_be0-lcd0";
33 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
34 status = "disabled";
35 };
36 };
37
38 cpus {
39 #address-cells = <1>;
40 #size-cells = <0>;
41
42 cpu0: cpu@0 {
43 device_type = "cpu";
44 compatible = "arm,cortex-a8";
45 reg = <0x0>;
46 clocks = <&cpu>;
47 clock-latency = <244144>; /* 8 32k periods */
48 operating-points = <
49 /* kHz uV */
50 1104000 1500000
51 1008000 1400000
52 912000 1350000
53 864000 1300000
54 624000 1200000
55 576000 1200000
56 432000 1200000
57 >;
58 #cooling-cells = <2>;
59 cooling-min-level = <0>;
60 cooling-max-level = <6>;
61 };
62 };
63
64 thermal-zones {
65 cpu_thermal {
66 /* milliseconds */
67 polling-delay-passive = <250>;
68 polling-delay = <1000>;
69 thermal-sensors = <&rtp>;
70
71 cooling-maps {
72 map0 {
73 trip = <&cpu_alert0>;
74 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
75 };
76 };
77
78 trips {
79 cpu_alert0: cpu_alert0 {
80 /* milliCelsius */
81 temperature = <850000>;
82 hysteresis = <2000>;
83 type = "passive";
84 };
85
86 cpu_crit: cpu_crit {
87 /* milliCelsius */
88 temperature = <100000>;
89 hysteresis = <2000>;
90 type = "critical";
91 };
92 };
93 };
94 };
95
96 memory {
97 reg = <0x40000000 0x20000000>;
98 };
99
100 clocks {
101 #address-cells = <1>;
102 #size-cells = <1>;
103 ranges;
104
105 /*
106 * This is a dummy clock, to be used as placeholder on
107 * other mux clocks when a specific parent clock is not
108 * yet implemented. It should be dropped when the driver
109 * is complete.
110 */
111 dummy: dummy {
112 #clock-cells = <0>;
113 compatible = "fixed-clock";
114 clock-frequency = <0>;
115 };
116
117 osc24M: clk@01c20050 {
118 #clock-cells = <0>;
119 compatible = "allwinner,sun4i-a10-osc-clk";
120 reg = <0x01c20050 0x4>;
121 clock-frequency = <24000000>;
122 clock-output-names = "osc24M";
123 };
124
125 osc32k: clk@0 {
126 #clock-cells = <0>;
127 compatible = "fixed-clock";
128 clock-frequency = <32768>;
129 clock-output-names = "osc32k";
130 };
131
132 pll1: clk@01c20000 {
133 #clock-cells = <0>;
134 compatible = "allwinner,sun4i-a10-pll1-clk";
135 reg = <0x01c20000 0x4>;
136 clocks = <&osc24M>;
137 clock-output-names = "pll1";
138 };
139
140 pll4: clk@01c20018 {
141 #clock-cells = <0>;
142 compatible = "allwinner,sun4i-a10-pll1-clk";
143 reg = <0x01c20018 0x4>;
144 clocks = <&osc24M>;
145 clock-output-names = "pll4";
146 };
147
148 pll5: clk@01c20020 {
149 #clock-cells = <1>;
150 compatible = "allwinner,sun4i-a10-pll5-clk";
151 reg = <0x01c20020 0x4>;
152 clocks = <&osc24M>;
153 clock-output-names = "pll5_ddr", "pll5_other";
154 };
155
156 pll6: clk@01c20028 {
157 #clock-cells = <1>;
158 compatible = "allwinner,sun4i-a10-pll6-clk";
159 reg = <0x01c20028 0x4>;
160 clocks = <&osc24M>;
161 clock-output-names = "pll6_sata", "pll6_other", "pll6";
162 };
163
164 /* dummy is 200M */
165 cpu: cpu@01c20054 {
166 #clock-cells = <0>;
167 compatible = "allwinner,sun4i-a10-cpu-clk";
168 reg = <0x01c20054 0x4>;
169 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
170 clock-output-names = "cpu";
171 };
172
173 axi: axi@01c20054 {
174 #clock-cells = <0>;
175 compatible = "allwinner,sun4i-a10-axi-clk";
176 reg = <0x01c20054 0x4>;
177 clocks = <&cpu>;
178 clock-output-names = "axi";
179 };
180
181 axi_gates: clk@01c2005c {
182 #clock-cells = <1>;
183 compatible = "allwinner,sun4i-a10-axi-gates-clk";
184 reg = <0x01c2005c 0x4>;
185 clocks = <&axi>;
186 clock-output-names = "axi_dram";
187 };
188
189 ahb: ahb@01c20054 {
190 #clock-cells = <0>;
191 compatible = "allwinner,sun4i-a10-ahb-clk";
192 reg = <0x01c20054 0x4>;
193 clocks = <&axi>;
194 clock-output-names = "ahb";
195 };
196
197 ahb_gates: clk@01c20060 {
198 #clock-cells = <1>;
199 compatible = "allwinner,sun5i-a13-ahb-gates-clk";
200 reg = <0x01c20060 0x8>;
201 clocks = <&ahb>;
202 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
203 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
204 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
205 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_stimer",
206 "ahb_ve", "ahb_lcd", "ahb_csi", "ahb_de_be",
207 "ahb_de_fe", "ahb_iep", "ahb_mali400";
208 };
209
210 apb0: apb0@01c20054 {
211 #clock-cells = <0>;
212 compatible = "allwinner,sun4i-a10-apb0-clk";
213 reg = <0x01c20054 0x4>;
214 clocks = <&ahb>;
215 clock-output-names = "apb0";
216 };
217
218 apb0_gates: clk@01c20068 {
219 #clock-cells = <1>;
220 compatible = "allwinner,sun5i-a13-apb0-gates-clk";
221 reg = <0x01c20068 0x4>;
222 clocks = <&apb0>;
223 clock-output-names = "apb0_codec", "apb0_pio", "apb0_ir";
224 };
225
226 apb1: clk@01c20058 {
227 #clock-cells = <0>;
228 compatible = "allwinner,sun4i-a10-apb1-clk";
229 reg = <0x01c20058 0x4>;
230 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
231 clock-output-names = "apb1";
232 };
233
234 apb1_gates: clk@01c2006c {
235 #clock-cells = <1>;
236 compatible = "allwinner,sun5i-a13-apb1-gates-clk";
237 reg = <0x01c2006c 0x4>;
238 clocks = <&apb1>;
239 clock-output-names = "apb1_i2c0", "apb1_i2c1",
240 "apb1_i2c2", "apb1_uart1", "apb1_uart3";
241 };
242
243 nand_clk: clk@01c20080 {
244 #clock-cells = <0>;
245 compatible = "allwinner,sun4i-a10-mod0-clk";
246 reg = <0x01c20080 0x4>;
247 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
248 clock-output-names = "nand";
249 };
250
251 ms_clk: clk@01c20084 {
252 #clock-cells = <0>;
253 compatible = "allwinner,sun4i-a10-mod0-clk";
254 reg = <0x01c20084 0x4>;
255 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
256 clock-output-names = "ms";
257 };
258
259 mmc0_clk: clk@01c20088 {
260 #clock-cells = <0>;
261 compatible = "allwinner,sun4i-a10-mod0-clk";
262 reg = <0x01c20088 0x4>;
263 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
264 clock-output-names = "mmc0";
265 };
266
267 mmc1_clk: clk@01c2008c {
268 #clock-cells = <0>;
269 compatible = "allwinner,sun4i-a10-mod0-clk";
270 reg = <0x01c2008c 0x4>;
271 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
272 clock-output-names = "mmc1";
273 };
274
275 mmc2_clk: clk@01c20090 {
276 #clock-cells = <0>;
277 compatible = "allwinner,sun4i-a10-mod0-clk";
278 reg = <0x01c20090 0x4>;
279 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
280 clock-output-names = "mmc2";
281 };
282
283 ts_clk: clk@01c20098 {
284 #clock-cells = <0>;
285 compatible = "allwinner,sun4i-a10-mod0-clk";
286 reg = <0x01c20098 0x4>;
287 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
288 clock-output-names = "ts";
289 };
290
291 ss_clk: clk@01c2009c {
292 #clock-cells = <0>;
293 compatible = "allwinner,sun4i-a10-mod0-clk";
294 reg = <0x01c2009c 0x4>;
295 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
296 clock-output-names = "ss";
297 };
298
299 spi0_clk: clk@01c200a0 {
300 #clock-cells = <0>;
301 compatible = "allwinner,sun4i-a10-mod0-clk";
302 reg = <0x01c200a0 0x4>;
303 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
304 clock-output-names = "spi0";
305 };
306
307 spi1_clk: clk@01c200a4 {
308 #clock-cells = <0>;
309 compatible = "allwinner,sun4i-a10-mod0-clk";
310 reg = <0x01c200a4 0x4>;
311 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
312 clock-output-names = "spi1";
313 };
314
315 spi2_clk: clk@01c200a8 {
316 #clock-cells = <0>;
317 compatible = "allwinner,sun4i-a10-mod0-clk";
318 reg = <0x01c200a8 0x4>;
319 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
320 clock-output-names = "spi2";
321 };
322
323 ir0_clk: clk@01c200b0 {
324 #clock-cells = <0>;
325 compatible = "allwinner,sun4i-a10-mod0-clk";
326 reg = <0x01c200b0 0x4>;
327 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
328 clock-output-names = "ir0";
329 };
330
331 usb_clk: clk@01c200cc {
332 #clock-cells = <1>;
333 #reset-cells = <1>;
334 compatible = "allwinner,sun5i-a13-usb-clk";
335 reg = <0x01c200cc 0x4>;
336 clocks = <&pll6 1>;
337 clock-output-names = "usb_ohci0", "usb_phy";
338 };
339
340 mbus_clk: clk@01c2015c {
341 #clock-cells = <0>;
342 compatible = "allwinner,sun5i-a13-mbus-clk";
343 reg = <0x01c2015c 0x4>;
344 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
345 clock-output-names = "mbus";
346 };
347 };
348
349 soc@01c00000 {
350 compatible = "simple-bus";
351 #address-cells = <1>;
352 #size-cells = <1>;
353 ranges;
354
355 dma: dma-controller@01c02000 {
356 compatible = "allwinner,sun4i-a10-dma";
357 reg = <0x01c02000 0x1000>;
358 interrupts = <27>;
359 clocks = <&ahb_gates 6>;
360 #dma-cells = <2>;
361 };
362
363 spi0: spi@01c05000 {
364 compatible = "allwinner,sun4i-a10-spi";
365 reg = <0x01c05000 0x1000>;
366 interrupts = <10>;
367 clocks = <&ahb_gates 20>, <&spi0_clk>;
368 clock-names = "ahb", "mod";
369 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
370 <&dma SUN4I_DMA_DEDICATED 26>;
371 dma-names = "rx", "tx";
372 status = "disabled";
373 #address-cells = <1>;
374 #size-cells = <0>;
375 };
376
377 spi1: spi@01c06000 {
378 compatible = "allwinner,sun4i-a10-spi";
379 reg = <0x01c06000 0x1000>;
380 interrupts = <11>;
381 clocks = <&ahb_gates 21>, <&spi1_clk>;
382 clock-names = "ahb", "mod";
383 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
384 <&dma SUN4I_DMA_DEDICATED 8>;
385 dma-names = "rx", "tx";
386 status = "disabled";
387 #address-cells = <1>;
388 #size-cells = <0>;
389 };
390
391 mmc0: mmc@01c0f000 {
392 compatible = "allwinner,sun5i-a13-mmc";
393 reg = <0x01c0f000 0x1000>;
394 clocks = <&ahb_gates 8>, <&mmc0_clk>;
395 clock-names = "ahb", "mmc";
396 interrupts = <32>;
397 status = "disabled";
398 };
399
400 mmc2: mmc@01c11000 {
401 compatible = "allwinner,sun5i-a13-mmc";
402 reg = <0x01c11000 0x1000>;
403 clocks = <&ahb_gates 10>, <&mmc2_clk>;
404 clock-names = "ahb", "mmc";
405 interrupts = <34>;
406 status = "disabled";
407 };
408
409 usbphy: phy@01c13400 {
410 #phy-cells = <1>;
411 compatible = "allwinner,sun5i-a13-usb-phy";
412 reg = <0x01c13400 0x10 0x01c14800 0x4>;
413 reg-names = "phy_ctrl", "pmu1";
414 clocks = <&usb_clk 8>;
415 clock-names = "usb_phy";
416 resets = <&usb_clk 0>, <&usb_clk 1>;
417 reset-names = "usb0_reset", "usb1_reset";
418 status = "disabled";
419 };
420
421 ehci0: usb@01c14000 {
422 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
423 reg = <0x01c14000 0x100>;
424 interrupts = <39>;
425 clocks = <&ahb_gates 1>;
426 phys = <&usbphy 1>;
427 phy-names = "usb";
428 status = "disabled";
429 };
430
431 ohci0: usb@01c14400 {
432 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
433 reg = <0x01c14400 0x100>;
434 interrupts = <40>;
435 clocks = <&usb_clk 6>, <&ahb_gates 2>;
436 phys = <&usbphy 1>;
437 phy-names = "usb";
438 status = "disabled";
439 };
440
441 spi2: spi@01c17000 {
442 compatible = "allwinner,sun4i-a10-spi";
443 reg = <0x01c17000 0x1000>;
444 interrupts = <12>;
445 clocks = <&ahb_gates 22>, <&spi2_clk>;
446 clock-names = "ahb", "mod";
447 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
448 <&dma SUN4I_DMA_DEDICATED 28>;
449 dma-names = "rx", "tx";
450 status = "disabled";
451 #address-cells = <1>;
452 #size-cells = <0>;
453 };
454
455 intc: interrupt-controller@01c20400 {
456 compatible = "allwinner,sun4i-a10-ic";
457 reg = <0x01c20400 0x400>;
458 interrupt-controller;
459 #interrupt-cells = <1>;
460 };
461
462 pio: pinctrl@01c20800 {
463 compatible = "allwinner,sun5i-a13-pinctrl";
464 reg = <0x01c20800 0x400>;
465 interrupts = <28>;
466 clocks = <&apb0_gates 5>;
467 gpio-controller;
468 interrupt-controller;
469 #interrupt-cells = <2>;
470 #size-cells = <0>;
471 #gpio-cells = <3>;
472
473 uart1_pins_a: uart1@0 {
474 allwinner,pins = "PE10", "PE11";
475 allwinner,function = "uart1";
476 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
477 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
478 };
479
480 uart1_pins_b: uart1@1 {
481 allwinner,pins = "PG3", "PG4";
482 allwinner,function = "uart1";
483 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
484 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
485 };
486
487 i2c0_pins_a: i2c0@0 {
488 allwinner,pins = "PB0", "PB1";
489 allwinner,function = "i2c0";
490 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
491 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
492 };
493
494 i2c1_pins_a: i2c1@0 {
495 allwinner,pins = "PB15", "PB16";
496 allwinner,function = "i2c1";
497 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
498 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
499 };
500
501 i2c2_pins_a: i2c2@0 {
502 allwinner,pins = "PB17", "PB18";
503 allwinner,function = "i2c2";
504 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
505 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
506 };
507
508 mmc0_pins_a: mmc0@0 {
509 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
510 allwinner,function = "mmc0";
511 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
512 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
513 };
514 };
515
516 timer@01c20c00 {
517 compatible = "allwinner,sun4i-a10-timer";
518 reg = <0x01c20c00 0x90>;
519 interrupts = <22>;
520 clocks = <&osc24M>;
521 };
522
523 wdt: watchdog@01c20c90 {
524 compatible = "allwinner,sun4i-a10-wdt";
525 reg = <0x01c20c90 0x10>;
526 };
527
528 lradc: lradc@01c22800 {
529 compatible = "allwinner,sun4i-a10-lradc-keys";
530 reg = <0x01c22800 0x100>;
531 interrupts = <31>;
532 status = "disabled";
533 };
534
535 sid: eeprom@01c23800 {
536 compatible = "allwinner,sun4i-a10-sid";
537 reg = <0x01c23800 0x10>;
538 };
539
540 rtp: rtp@01c25000 {
541 compatible = "allwinner,sun4i-a10-ts";
542 reg = <0x01c25000 0x100>;
543 interrupts = <29>;
544 #thermal-sensor-cells = <0>;
545 };
546
547 uart1: serial@01c28400 {
548 compatible = "snps,dw-apb-uart";
549 reg = <0x01c28400 0x400>;
550 interrupts = <2>;
551 reg-shift = <2>;
552 reg-io-width = <4>;
553 clocks = <&apb1_gates 17>;
554 status = "disabled";
555 };
556
557 uart3: serial@01c28c00 {
558 compatible = "snps,dw-apb-uart";
559 reg = <0x01c28c00 0x400>;
560 interrupts = <4>;
561 reg-shift = <2>;
562 reg-io-width = <4>;
563 clocks = <&apb1_gates 19>;
564 status = "disabled";
565 };
566
567 i2c0: i2c@01c2ac00 {
568 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
569 reg = <0x01c2ac00 0x400>;
570 interrupts = <7>;
571 clocks = <&apb1_gates 0>;
572 status = "disabled";
573 #address-cells = <1>;
574 #size-cells = <0>;
575 };
576
577 i2c1: i2c@01c2b000 {
578 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
579 reg = <0x01c2b000 0x400>;
580 interrupts = <8>;
581 clocks = <&apb1_gates 1>;
582 status = "disabled";
583 #address-cells = <1>;
584 #size-cells = <0>;
585 };
586
587 i2c2: i2c@01c2b400 {
588 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
589 reg = <0x01c2b400 0x400>;
590 interrupts = <9>;
591 clocks = <&apb1_gates 2>;
592 status = "disabled";
593 #address-cells = <1>;
594 #size-cells = <0>;
595 };
596
597 timer@01c60000 {
598 compatible = "allwinner,sun5i-a13-hstimer";
599 reg = <0x01c60000 0x1000>;
600 interrupts = <82>, <83>;
601 clocks = <&ahb_gates 28>;
602 };
603 };
604 };
This page took 0.046733 seconds and 6 git commands to generate.