blob: 463bacd6a74d7024892587abadf9a2a701f4da16 [file] [log] [blame]
Hans de Goededb325e82015-04-15 19:03:49 +02001/*
2 * Copyright 2012 Stefan Roese
3 * Stefan Roese <sr@denx.de>
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 * a) This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
Hans de Goededb325e82015-04-15 19:03:49 +020020 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44#include "skeleton.dtsi"
45
46#include <dt-bindings/thermal/thermal.h>
47
48#include <dt-bindings/dma/sun4i-a10.h>
49#include <dt-bindings/pinctrl/sun4i-a10.h>
50
51/ {
52 interrupt-parent = <&intc>;
53
54 aliases {
55 ethernet0 = &emac;
56 };
57
58 chosen {
59 #address-cells = <1>;
60 #size-cells = <1>;
61 ranges;
62
63 framebuffer@0 {
Hans de Goede6ef1be32015-06-02 15:53:40 +020064 compatible = "allwinner,simple-framebuffer",
65 "simple-framebuffer";
Hans de Goededb325e82015-04-15 19:03:49 +020066 allwinner,pipeline = "de_be0-lcd0-hdmi";
67 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
68 <&ahb_gates 44>;
69 status = "disabled";
70 };
71
72 framebuffer@1 {
Hans de Goede6ef1be32015-06-02 15:53:40 +020073 compatible = "allwinner,simple-framebuffer",
74 "simple-framebuffer";
Hans de Goededb325e82015-04-15 19:03:49 +020075 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
76 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
77 <&ahb_gates 44>, <&ahb_gates 46>;
78 status = "disabled";
79 };
80
81 framebuffer@2 {
82 compatible = "allwinner,simple-framebuffer",
83 "simple-framebuffer";
84 allwinner,pipeline = "de_fe0-de_be0-lcd0";
85 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
86 <&ahb_gates 46>;
87 status = "disabled";
88 };
89
90 framebuffer@3 {
91 compatible = "allwinner,simple-framebuffer",
92 "simple-framebuffer";
93 allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
94 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
95 <&ahb_gates 44>, <&ahb_gates 46>;
96 status = "disabled";
97 };
98 };
99
100 cpus {
101 #address-cells = <1>;
102 #size-cells = <0>;
103 cpu0: cpu@0 {
104 device_type = "cpu";
105 compatible = "arm,cortex-a8";
106 reg = <0x0>;
107 clocks = <&cpu>;
108 clock-latency = <244144>; /* 8 32k periods */
109 operating-points = <
Hans de Goede6ef1be32015-06-02 15:53:40 +0200110 /* kHz uV */
Hans de Goededb325e82015-04-15 19:03:49 +0200111 1008000 1400000
Hans de Goede6ef1be32015-06-02 15:53:40 +0200112 912000 1350000
113 864000 1300000
114 624000 1250000
Hans de Goededb325e82015-04-15 19:03:49 +0200115 >;
116 #cooling-cells = <2>;
117 cooling-min-level = <0>;
118 cooling-max-level = <3>;
119 };
120 };
121
122 thermal-zones {
123 cpu_thermal {
124 /* milliseconds */
125 polling-delay-passive = <250>;
126 polling-delay = <1000>;
127 thermal-sensors = <&rtp>;
128
129 cooling-maps {
130 map0 {
131 trip = <&cpu_alert0>;
132 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
133 };
134 };
135
136 trips {
137 cpu_alert0: cpu_alert0 {
138 /* milliCelsius */
139 temperature = <850000>;
140 hysteresis = <2000>;
141 type = "passive";
142 };
143
144 cpu_crit: cpu_crit {
145 /* milliCelsius */
146 temperature = <100000>;
147 hysteresis = <2000>;
148 type = "critical";
149 };
150 };
151 };
152 };
153
154 memory {
155 reg = <0x40000000 0x80000000>;
156 };
157
158 clocks {
159 #address-cells = <1>;
160 #size-cells = <1>;
161 ranges;
162
163 /*
164 * This is a dummy clock, to be used as placeholder on
165 * other mux clocks when a specific parent clock is not
166 * yet implemented. It should be dropped when the driver
167 * is complete.
168 */
169 dummy: dummy {
170 #clock-cells = <0>;
171 compatible = "fixed-clock";
172 clock-frequency = <0>;
173 };
174
175 osc24M: clk@01c20050 {
176 #clock-cells = <0>;
177 compatible = "allwinner,sun4i-a10-osc-clk";
178 reg = <0x01c20050 0x4>;
179 clock-frequency = <24000000>;
180 clock-output-names = "osc24M";
181 };
182
183 osc32k: clk@0 {
184 #clock-cells = <0>;
185 compatible = "fixed-clock";
186 clock-frequency = <32768>;
187 clock-output-names = "osc32k";
188 };
189
190 pll1: clk@01c20000 {
191 #clock-cells = <0>;
192 compatible = "allwinner,sun4i-a10-pll1-clk";
193 reg = <0x01c20000 0x4>;
194 clocks = <&osc24M>;
195 clock-output-names = "pll1";
196 };
197
198 pll4: clk@01c20018 {
199 #clock-cells = <0>;
200 compatible = "allwinner,sun4i-a10-pll1-clk";
201 reg = <0x01c20018 0x4>;
202 clocks = <&osc24M>;
203 clock-output-names = "pll4";
204 };
205
206 pll5: clk@01c20020 {
207 #clock-cells = <1>;
208 compatible = "allwinner,sun4i-a10-pll5-clk";
209 reg = <0x01c20020 0x4>;
210 clocks = <&osc24M>;
211 clock-output-names = "pll5_ddr", "pll5_other";
212 };
213
214 pll6: clk@01c20028 {
215 #clock-cells = <1>;
216 compatible = "allwinner,sun4i-a10-pll6-clk";
217 reg = <0x01c20028 0x4>;
218 clocks = <&osc24M>;
219 clock-output-names = "pll6_sata", "pll6_other", "pll6";
220 };
221
222 /* dummy is 200M */
223 cpu: cpu@01c20054 {
224 #clock-cells = <0>;
225 compatible = "allwinner,sun4i-a10-cpu-clk";
226 reg = <0x01c20054 0x4>;
227 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
228 clock-output-names = "cpu";
229 };
230
231 axi: axi@01c20054 {
232 #clock-cells = <0>;
233 compatible = "allwinner,sun4i-a10-axi-clk";
234 reg = <0x01c20054 0x4>;
235 clocks = <&cpu>;
236 clock-output-names = "axi";
237 };
238
239 axi_gates: clk@01c2005c {
240 #clock-cells = <1>;
241 compatible = "allwinner,sun4i-a10-axi-gates-clk";
242 reg = <0x01c2005c 0x4>;
243 clocks = <&axi>;
244 clock-output-names = "axi_dram";
245 };
246
247 ahb: ahb@01c20054 {
248 #clock-cells = <0>;
249 compatible = "allwinner,sun4i-a10-ahb-clk";
250 reg = <0x01c20054 0x4>;
251 clocks = <&axi>;
252 clock-output-names = "ahb";
253 };
254
255 ahb_gates: clk@01c20060 {
256 #clock-cells = <1>;
257 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
258 reg = <0x01c20060 0x8>;
259 clocks = <&ahb>;
260 clock-output-names = "ahb_usb0", "ahb_ehci0",
261 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
262 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
263 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
264 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
265 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
266 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
267 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
268 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
269 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
270 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
271 };
272
273 apb0: apb0@01c20054 {
274 #clock-cells = <0>;
275 compatible = "allwinner,sun4i-a10-apb0-clk";
276 reg = <0x01c20054 0x4>;
277 clocks = <&ahb>;
278 clock-output-names = "apb0";
279 };
280
281 apb0_gates: clk@01c20068 {
282 #clock-cells = <1>;
283 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
284 reg = <0x01c20068 0x4>;
285 clocks = <&apb0>;
286 clock-output-names = "apb0_codec", "apb0_spdif",
287 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
288 "apb0_ir1", "apb0_keypad";
289 };
290
291 apb1: clk@01c20058 {
292 #clock-cells = <0>;
293 compatible = "allwinner,sun4i-a10-apb1-clk";
294 reg = <0x01c20058 0x4>;
295 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
296 clock-output-names = "apb1";
297 };
298
299 apb1_gates: clk@01c2006c {
300 #clock-cells = <1>;
301 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
302 reg = <0x01c2006c 0x4>;
303 clocks = <&apb1>;
304 clock-output-names = "apb1_i2c0", "apb1_i2c1",
305 "apb1_i2c2", "apb1_can", "apb1_scr",
306 "apb1_ps20", "apb1_ps21", "apb1_uart0",
307 "apb1_uart1", "apb1_uart2", "apb1_uart3",
308 "apb1_uart4", "apb1_uart5", "apb1_uart6",
309 "apb1_uart7";
310 };
311
312 nand_clk: clk@01c20080 {
313 #clock-cells = <0>;
314 compatible = "allwinner,sun4i-a10-mod0-clk";
315 reg = <0x01c20080 0x4>;
316 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
317 clock-output-names = "nand";
318 };
319
320 ms_clk: clk@01c20084 {
321 #clock-cells = <0>;
322 compatible = "allwinner,sun4i-a10-mod0-clk";
323 reg = <0x01c20084 0x4>;
324 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
325 clock-output-names = "ms";
326 };
327
328 mmc0_clk: clk@01c20088 {
329 #clock-cells = <1>;
330 compatible = "allwinner,sun4i-a10-mmc-clk";
331 reg = <0x01c20088 0x4>;
332 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
333 clock-output-names = "mmc0",
334 "mmc0_output",
335 "mmc0_sample";
336 };
337
338 mmc1_clk: clk@01c2008c {
339 #clock-cells = <1>;
340 compatible = "allwinner,sun4i-a10-mmc-clk";
341 reg = <0x01c2008c 0x4>;
342 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
343 clock-output-names = "mmc1",
344 "mmc1_output",
345 "mmc1_sample";
346 };
347
348 mmc2_clk: clk@01c20090 {
349 #clock-cells = <1>;
350 compatible = "allwinner,sun4i-a10-mmc-clk";
351 reg = <0x01c20090 0x4>;
352 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
353 clock-output-names = "mmc2",
354 "mmc2_output",
355 "mmc2_sample";
356 };
357
358 mmc3_clk: clk@01c20094 {
359 #clock-cells = <1>;
360 compatible = "allwinner,sun4i-a10-mmc-clk";
361 reg = <0x01c20094 0x4>;
362 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
363 clock-output-names = "mmc3",
364 "mmc3_output",
365 "mmc3_sample";
366 };
367
368 ts_clk: clk@01c20098 {
369 #clock-cells = <0>;
370 compatible = "allwinner,sun4i-a10-mod0-clk";
371 reg = <0x01c20098 0x4>;
372 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
373 clock-output-names = "ts";
374 };
375
376 ss_clk: clk@01c2009c {
377 #clock-cells = <0>;
378 compatible = "allwinner,sun4i-a10-mod0-clk";
379 reg = <0x01c2009c 0x4>;
380 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
381 clock-output-names = "ss";
382 };
383
384 spi0_clk: clk@01c200a0 {
385 #clock-cells = <0>;
386 compatible = "allwinner,sun4i-a10-mod0-clk";
387 reg = <0x01c200a0 0x4>;
388 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
389 clock-output-names = "spi0";
390 };
391
392 spi1_clk: clk@01c200a4 {
393 #clock-cells = <0>;
394 compatible = "allwinner,sun4i-a10-mod0-clk";
395 reg = <0x01c200a4 0x4>;
396 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
397 clock-output-names = "spi1";
398 };
399
400 spi2_clk: clk@01c200a8 {
401 #clock-cells = <0>;
402 compatible = "allwinner,sun4i-a10-mod0-clk";
403 reg = <0x01c200a8 0x4>;
404 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
405 clock-output-names = "spi2";
406 };
407
408 pata_clk: clk@01c200ac {
409 #clock-cells = <0>;
410 compatible = "allwinner,sun4i-a10-mod0-clk";
411 reg = <0x01c200ac 0x4>;
412 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
413 clock-output-names = "pata";
414 };
415
416 ir0_clk: clk@01c200b0 {
417 #clock-cells = <0>;
418 compatible = "allwinner,sun4i-a10-mod0-clk";
419 reg = <0x01c200b0 0x4>;
420 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
421 clock-output-names = "ir0";
422 };
423
424 ir1_clk: clk@01c200b4 {
425 #clock-cells = <0>;
426 compatible = "allwinner,sun4i-a10-mod0-clk";
427 reg = <0x01c200b4 0x4>;
428 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
429 clock-output-names = "ir1";
430 };
431
432 usb_clk: clk@01c200cc {
433 #clock-cells = <1>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200434 #reset-cells = <1>;
Hans de Goededb325e82015-04-15 19:03:49 +0200435 compatible = "allwinner,sun4i-a10-usb-clk";
436 reg = <0x01c200cc 0x4>;
437 clocks = <&pll6 1>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200438 clock-output-names = "usb_ohci0", "usb_ohci1",
439 "usb_phy";
Hans de Goededb325e82015-04-15 19:03:49 +0200440 };
441
442 spi3_clk: clk@01c200d4 {
443 #clock-cells = <0>;
444 compatible = "allwinner,sun4i-a10-mod0-clk";
445 reg = <0x01c200d4 0x4>;
446 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
447 clock-output-names = "spi3";
448 };
449 };
450
Hans de Goededb325e82015-04-15 19:03:49 +0200451 soc@01c00000 {
452 compatible = "simple-bus";
453 #address-cells = <1>;
454 #size-cells = <1>;
455 ranges;
456
Hans de Goede6ef1be32015-06-02 15:53:40 +0200457 sram-controller@01c00000 {
458 compatible = "allwinner,sun4i-a10-sram-controller";
459 reg = <0x01c00000 0x30>;
460 #address-cells = <1>;
461 #size-cells = <1>;
462 ranges;
Hans de Goededb325e82015-04-15 19:03:49 +0200463
Hans de Goede6ef1be32015-06-02 15:53:40 +0200464 sram_a: sram@00000000 {
465 compatible = "mmio-sram";
466 reg = <0x00000000 0xc000>;
467 #address-cells = <1>;
468 #size-cells = <1>;
469 ranges = <0 0x00000000 0xc000>;
Hans de Goededb325e82015-04-15 19:03:49 +0200470
Hans de Goede6ef1be32015-06-02 15:53:40 +0200471 emac_sram: sram-section@8000 {
472 compatible = "allwinner,sun4i-a10-sram-a3-a4";
473 reg = <0x8000 0x4000>;
474 status = "disabled";
475 };
476 };
Hans de Goededb325e82015-04-15 19:03:49 +0200477
Hans de Goede6ef1be32015-06-02 15:53:40 +0200478 sram_d: sram@00010000 {
479 compatible = "mmio-sram";
480 reg = <0x00010000 0x1000>;
481 #address-cells = <1>;
482 #size-cells = <1>;
483 ranges = <0 0x00010000 0x1000>;
Hans de Goededb325e82015-04-15 19:03:49 +0200484
Hans de Goede6ef1be32015-06-02 15:53:40 +0200485 otg_sram: sram-section@0000 {
486 compatible = "allwinner,sun4i-a10-sram-d";
487 reg = <0x0000 0x1000>;
488 status = "disabled";
489 };
490 };
Hans de Goededb325e82015-04-15 19:03:49 +0200491 };
492
493 dma: dma-controller@01c02000 {
494 compatible = "allwinner,sun4i-a10-dma";
495 reg = <0x01c02000 0x1000>;
496 interrupts = <27>;
497 clocks = <&ahb_gates 6>;
498 #dma-cells = <2>;
499 };
500
501 spi0: spi@01c05000 {
502 compatible = "allwinner,sun4i-a10-spi";
503 reg = <0x01c05000 0x1000>;
504 interrupts = <10>;
505 clocks = <&ahb_gates 20>, <&spi0_clk>;
506 clock-names = "ahb", "mod";
507 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
508 <&dma SUN4I_DMA_DEDICATED 26>;
509 dma-names = "rx", "tx";
510 status = "disabled";
511 #address-cells = <1>;
512 #size-cells = <0>;
513 };
514
515 spi1: spi@01c06000 {
516 compatible = "allwinner,sun4i-a10-spi";
517 reg = <0x01c06000 0x1000>;
518 interrupts = <11>;
519 clocks = <&ahb_gates 21>, <&spi1_clk>;
520 clock-names = "ahb", "mod";
521 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
522 <&dma SUN4I_DMA_DEDICATED 8>;
523 dma-names = "rx", "tx";
524 status = "disabled";
525 #address-cells = <1>;
526 #size-cells = <0>;
527 };
528
529 emac: ethernet@01c0b000 {
530 compatible = "allwinner,sun4i-a10-emac";
531 reg = <0x01c0b000 0x1000>;
532 interrupts = <55>;
533 clocks = <&ahb_gates 17>;
Hans de Goede6ef1be32015-06-02 15:53:40 +0200534 allwinner,sram = <&emac_sram 1>;
Hans de Goededb325e82015-04-15 19:03:49 +0200535 status = "disabled";
536 };
537
538 mdio: mdio@01c0b080 {
539 compatible = "allwinner,sun4i-a10-mdio";
540 reg = <0x01c0b080 0x14>;
541 status = "disabled";
542 #address-cells = <1>;
543 #size-cells = <0>;
544 };
545
546 mmc0: mmc@01c0f000 {
547 compatible = "allwinner,sun4i-a10-mmc";
548 reg = <0x01c0f000 0x1000>;
549 clocks = <&ahb_gates 8>,
550 <&mmc0_clk 0>,
551 <&mmc0_clk 1>,
552 <&mmc0_clk 2>;
553 clock-names = "ahb",
554 "mmc",
555 "output",
556 "sample";
557 interrupts = <32>;
558 status = "disabled";
559 #address-cells = <1>;
560 #size-cells = <0>;
561 };
562
563 mmc1: mmc@01c10000 {
564 compatible = "allwinner,sun4i-a10-mmc";
565 reg = <0x01c10000 0x1000>;
566 clocks = <&ahb_gates 9>,
567 <&mmc1_clk 0>,
568 <&mmc1_clk 1>,
569 <&mmc1_clk 2>;
570 clock-names = "ahb",
571 "mmc",
572 "output",
573 "sample";
574 interrupts = <33>;
575 status = "disabled";
576 #address-cells = <1>;
577 #size-cells = <0>;
578 };
579
580 mmc2: mmc@01c11000 {
581 compatible = "allwinner,sun4i-a10-mmc";
582 reg = <0x01c11000 0x1000>;
583 clocks = <&ahb_gates 10>,
584 <&mmc2_clk 0>,
585 <&mmc2_clk 1>,
586 <&mmc2_clk 2>;
587 clock-names = "ahb",
588 "mmc",
589 "output",
590 "sample";
591 interrupts = <34>;
592 status = "disabled";
593 #address-cells = <1>;
594 #size-cells = <0>;
595 };
596
597 mmc3: mmc@01c12000 {
598 compatible = "allwinner,sun4i-a10-mmc";
599 reg = <0x01c12000 0x1000>;
600 clocks = <&ahb_gates 11>,
601 <&mmc3_clk 0>,
602 <&mmc3_clk 1>,
603 <&mmc3_clk 2>;
604 clock-names = "ahb",
605 "mmc",
606 "output",
607 "sample";
608 interrupts = <35>;
609 status = "disabled";
610 #address-cells = <1>;
611 #size-cells = <0>;
612 };
613
Hans de Goede7d831822015-08-05 17:39:14 +0200614 usb_otg: usb@01c13000 {
615 compatible = "allwinner,sun4i-a10-musb";
616 reg = <0x01c13000 0x0400>;
617 clocks = <&ahb_gates 0>;
618 interrupts = <38>;
619 interrupt-names = "mc";
620 phys = <&usbphy 0>;
621 phy-names = "usb";
622 extcon = <&usbphy 0>;
623 allwinner,sram = <&otg_sram 1>;
624 status = "disabled";
625 };
626
Hans de Goededb325e82015-04-15 19:03:49 +0200627 usbphy: phy@01c13400 {
628 #phy-cells = <1>;
629 compatible = "allwinner,sun4i-a10-usb-phy";
630 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
631 reg-names = "phy_ctrl", "pmu1", "pmu2";
632 clocks = <&usb_clk 8>;
633 clock-names = "usb_phy";
634 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
635 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
636 status = "disabled";
637 };
638
639 ehci0: usb@01c14000 {
640 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
641 reg = <0x01c14000 0x100>;
642 interrupts = <39>;
643 clocks = <&ahb_gates 1>;
644 phys = <&usbphy 1>;
645 phy-names = "usb";
646 status = "disabled";
647 };
648
649 ohci0: usb@01c14400 {
650 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
651 reg = <0x01c14400 0x100>;
652 interrupts = <64>;
653 clocks = <&usb_clk 6>, <&ahb_gates 2>;
654 phys = <&usbphy 1>;
655 phy-names = "usb";
656 status = "disabled";
657 };
658
659 spi2: spi@01c17000 {
660 compatible = "allwinner,sun4i-a10-spi";
661 reg = <0x01c17000 0x1000>;
662 interrupts = <12>;
663 clocks = <&ahb_gates 22>, <&spi2_clk>;
664 clock-names = "ahb", "mod";
665 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
666 <&dma SUN4I_DMA_DEDICATED 28>;
667 dma-names = "rx", "tx";
668 status = "disabled";
669 #address-cells = <1>;
670 #size-cells = <0>;
671 };
672
673 ahci: sata@01c18000 {
674 compatible = "allwinner,sun4i-a10-ahci";
675 reg = <0x01c18000 0x1000>;
676 interrupts = <56>;
677 clocks = <&pll6 0>, <&ahb_gates 25>;
678 status = "disabled";
679 };
680
681 ehci1: usb@01c1c000 {
682 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
683 reg = <0x01c1c000 0x100>;
684 interrupts = <40>;
685 clocks = <&ahb_gates 3>;
686 phys = <&usbphy 2>;
687 phy-names = "usb";
688 status = "disabled";
689 };
690
691 ohci1: usb@01c1c400 {
692 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
693 reg = <0x01c1c400 0x100>;
694 interrupts = <65>;
695 clocks = <&usb_clk 7>, <&ahb_gates 4>;
696 phys = <&usbphy 2>;
697 phy-names = "usb";
698 status = "disabled";
699 };
700
701 spi3: spi@01c1f000 {
702 compatible = "allwinner,sun4i-a10-spi";
703 reg = <0x01c1f000 0x1000>;
704 interrupts = <50>;
705 clocks = <&ahb_gates 23>, <&spi3_clk>;
706 clock-names = "ahb", "mod";
707 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
708 <&dma SUN4I_DMA_DEDICATED 30>;
709 dma-names = "rx", "tx";
710 status = "disabled";
711 #address-cells = <1>;
712 #size-cells = <0>;
713 };
714
715 intc: interrupt-controller@01c20400 {
716 compatible = "allwinner,sun4i-a10-ic";
717 reg = <0x01c20400 0x400>;
718 interrupt-controller;
719 #interrupt-cells = <1>;
720 };
721
722 pio: pinctrl@01c20800 {
723 compatible = "allwinner,sun4i-a10-pinctrl";
724 reg = <0x01c20800 0x400>;
725 interrupts = <28>;
726 clocks = <&apb0_gates 5>;
727 gpio-controller;
728 interrupt-controller;
Hans de Goede7d831822015-08-05 17:39:14 +0200729 #interrupt-cells = <3>;
Hans de Goededb325e82015-04-15 19:03:49 +0200730 #gpio-cells = <3>;
731
732 pwm0_pins_a: pwm0@0 {
733 allwinner,pins = "PB2";
734 allwinner,function = "pwm";
735 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
736 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
737 };
738
739 pwm1_pins_a: pwm1@0 {
740 allwinner,pins = "PI3";
741 allwinner,function = "pwm";
742 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
743 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
744 };
745
746 uart0_pins_a: uart0@0 {
747 allwinner,pins = "PB22", "PB23";
748 allwinner,function = "uart0";
749 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
750 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
751 };
752
753 uart0_pins_b: uart0@1 {
754 allwinner,pins = "PF2", "PF4";
755 allwinner,function = "uart0";
756 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
757 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
758 };
759
760 uart1_pins_a: uart1@0 {
761 allwinner,pins = "PA10", "PA11";
762 allwinner,function = "uart1";
763 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
764 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
765 };
766
767 i2c0_pins_a: i2c0@0 {
768 allwinner,pins = "PB0", "PB1";
769 allwinner,function = "i2c0";
770 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
771 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
772 };
773
774 i2c1_pins_a: i2c1@0 {
775 allwinner,pins = "PB18", "PB19";
776 allwinner,function = "i2c1";
777 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
778 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
779 };
780
781 i2c2_pins_a: i2c2@0 {
782 allwinner,pins = "PB20", "PB21";
783 allwinner,function = "i2c2";
784 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
785 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
786 };
787
788 emac_pins_a: emac0@0 {
789 allwinner,pins = "PA0", "PA1", "PA2",
790 "PA3", "PA4", "PA5", "PA6",
791 "PA7", "PA8", "PA9", "PA10",
792 "PA11", "PA12", "PA13", "PA14",
793 "PA15", "PA16";
794 allwinner,function = "emac";
795 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
796 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
797 };
798
799 mmc0_pins_a: mmc0@0 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200800 allwinner,pins = "PF0", "PF1", "PF2",
801 "PF3", "PF4", "PF5";
Hans de Goededb325e82015-04-15 19:03:49 +0200802 allwinner,function = "mmc0";
803 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
804 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
805 };
806
807 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
808 allwinner,pins = "PH1";
809 allwinner,function = "gpio_in";
810 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
811 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
812 };
813
Hans de Goede6ef1be32015-06-02 15:53:40 +0200814 ir0_rx_pins_a: ir0@0 {
815 allwinner,pins = "PB4";
816 allwinner,function = "ir0";
817 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
818 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
819 };
820
821 ir0_tx_pins_a: ir0@1 {
822 allwinner,pins = "PB3";
Hans de Goededb325e82015-04-15 19:03:49 +0200823 allwinner,function = "ir0";
824 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
825 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
826 };
827
Hans de Goede6ef1be32015-06-02 15:53:40 +0200828 ir1_rx_pins_a: ir1@0 {
829 allwinner,pins = "PB23";
Hans de Goededb325e82015-04-15 19:03:49 +0200830 allwinner,function = "ir1";
831 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
832 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
833 };
834
Hans de Goede6ef1be32015-06-02 15:53:40 +0200835 ir1_tx_pins_a: ir1@1 {
836 allwinner,pins = "PB22";
837 allwinner,function = "ir1";
838 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
839 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
840 };
841
Hans de Goededb325e82015-04-15 19:03:49 +0200842 spi0_pins_a: spi0@0 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200843 allwinner,pins = "PI11", "PI12", "PI13";
Hans de Goededb325e82015-04-15 19:03:49 +0200844 allwinner,function = "spi0";
845 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
846 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
847 };
848
Hans de Goede6ef1be32015-06-02 15:53:40 +0200849 spi0_cs0_pins_a: spi0_cs0@0 {
850 allwinner,pins = "PI10";
851 allwinner,function = "spi0";
852 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
853 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
854 };
855
Hans de Goededb325e82015-04-15 19:03:49 +0200856 spi1_pins_a: spi1@0 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200857 allwinner,pins = "PI17", "PI18", "PI19";
Hans de Goededb325e82015-04-15 19:03:49 +0200858 allwinner,function = "spi1";
859 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
860 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
861 };
862
Hans de Goede6ef1be32015-06-02 15:53:40 +0200863 spi1_cs0_pins_a: spi1_cs0@0 {
864 allwinner,pins = "PI16";
865 allwinner,function = "spi1";
866 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
867 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
868 };
869
Hans de Goededb325e82015-04-15 19:03:49 +0200870 spi2_pins_a: spi2@0 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200871 allwinner,pins = "PC20", "PC21", "PC22";
Hans de Goededb325e82015-04-15 19:03:49 +0200872 allwinner,function = "spi2";
873 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
874 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
875 };
876
877 spi2_pins_b: spi2@1 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200878 allwinner,pins = "PB15", "PB16", "PB17";
879 allwinner,function = "spi2";
880 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
881 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
882 };
883
884 spi2_cs0_pins_a: spi2_cs0@0 {
885 allwinner,pins = "PC19";
886 allwinner,function = "spi2";
887 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
888 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
889 };
890
891 spi2_cs0_pins_b: spi2_cs0@1 {
892 allwinner,pins = "PB14";
Hans de Goededb325e82015-04-15 19:03:49 +0200893 allwinner,function = "spi2";
894 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
895 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
896 };
897
898 ps20_pins_a: ps20@0 {
899 allwinner,pins = "PI20", "PI21";
900 allwinner,function = "ps2";
901 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
902 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
903 };
904
905 ps21_pins_a: ps21@0 {
906 allwinner,pins = "PH12", "PH13";
907 allwinner,function = "ps2";
908 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
909 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
910 };
911 };
912
913 timer@01c20c00 {
914 compatible = "allwinner,sun4i-a10-timer";
915 reg = <0x01c20c00 0x90>;
916 interrupts = <22>;
917 clocks = <&osc24M>;
918 };
919
920 wdt: watchdog@01c20c90 {
921 compatible = "allwinner,sun4i-a10-wdt";
922 reg = <0x01c20c90 0x10>;
923 };
924
925 rtc: rtc@01c20d00 {
926 compatible = "allwinner,sun4i-a10-rtc";
927 reg = <0x01c20d00 0x20>;
928 interrupts = <24>;
929 };
930
931 pwm: pwm@01c20e00 {
932 compatible = "allwinner,sun4i-a10-pwm";
933 reg = <0x01c20e00 0xc>;
934 clocks = <&osc24M>;
935 #pwm-cells = <3>;
936 status = "disabled";
937 };
938
939 ir0: ir@01c21800 {
940 compatible = "allwinner,sun4i-a10-ir";
941 clocks = <&apb0_gates 6>, <&ir0_clk>;
942 clock-names = "apb", "ir";
943 interrupts = <5>;
944 reg = <0x01c21800 0x40>;
945 status = "disabled";
946 };
947
948 ir1: ir@01c21c00 {
949 compatible = "allwinner,sun4i-a10-ir";
950 clocks = <&apb0_gates 7>, <&ir1_clk>;
951 clock-names = "apb", "ir";
952 interrupts = <6>;
953 reg = <0x01c21c00 0x40>;
954 status = "disabled";
955 };
956
957 lradc: lradc@01c22800 {
958 compatible = "allwinner,sun4i-a10-lradc-keys";
959 reg = <0x01c22800 0x100>;
960 interrupts = <31>;
961 status = "disabled";
962 };
963
964 sid: eeprom@01c23800 {
965 compatible = "allwinner,sun4i-a10-sid";
966 reg = <0x01c23800 0x10>;
967 };
968
969 rtp: rtp@01c25000 {
970 compatible = "allwinner,sun4i-a10-ts";
971 reg = <0x01c25000 0x100>;
972 interrupts = <29>;
973 #thermal-sensor-cells = <0>;
974 };
975
976 uart0: serial@01c28000 {
977 compatible = "snps,dw-apb-uart";
978 reg = <0x01c28000 0x400>;
979 interrupts = <1>;
980 reg-shift = <2>;
981 reg-io-width = <4>;
982 clocks = <&apb1_gates 16>;
983 status = "disabled";
984 };
985
986 uart1: serial@01c28400 {
987 compatible = "snps,dw-apb-uart";
988 reg = <0x01c28400 0x400>;
989 interrupts = <2>;
990 reg-shift = <2>;
991 reg-io-width = <4>;
992 clocks = <&apb1_gates 17>;
993 status = "disabled";
994 };
995
996 uart2: serial@01c28800 {
997 compatible = "snps,dw-apb-uart";
998 reg = <0x01c28800 0x400>;
999 interrupts = <3>;
1000 reg-shift = <2>;
1001 reg-io-width = <4>;
1002 clocks = <&apb1_gates 18>;
1003 status = "disabled";
1004 };
1005
1006 uart3: serial@01c28c00 {
1007 compatible = "snps,dw-apb-uart";
1008 reg = <0x01c28c00 0x400>;
1009 interrupts = <4>;
1010 reg-shift = <2>;
1011 reg-io-width = <4>;
1012 clocks = <&apb1_gates 19>;
1013 status = "disabled";
1014 };
1015
1016 uart4: serial@01c29000 {
1017 compatible = "snps,dw-apb-uart";
1018 reg = <0x01c29000 0x400>;
1019 interrupts = <17>;
1020 reg-shift = <2>;
1021 reg-io-width = <4>;
1022 clocks = <&apb1_gates 20>;
1023 status = "disabled";
1024 };
1025
1026 uart5: serial@01c29400 {
1027 compatible = "snps,dw-apb-uart";
1028 reg = <0x01c29400 0x400>;
1029 interrupts = <18>;
1030 reg-shift = <2>;
1031 reg-io-width = <4>;
1032 clocks = <&apb1_gates 21>;
1033 status = "disabled";
1034 };
1035
1036 uart6: serial@01c29800 {
1037 compatible = "snps,dw-apb-uart";
1038 reg = <0x01c29800 0x400>;
1039 interrupts = <19>;
1040 reg-shift = <2>;
1041 reg-io-width = <4>;
1042 clocks = <&apb1_gates 22>;
1043 status = "disabled";
1044 };
1045
1046 uart7: serial@01c29c00 {
1047 compatible = "snps,dw-apb-uart";
1048 reg = <0x01c29c00 0x400>;
1049 interrupts = <20>;
1050 reg-shift = <2>;
1051 reg-io-width = <4>;
1052 clocks = <&apb1_gates 23>;
1053 status = "disabled";
1054 };
1055
1056 i2c0: i2c@01c2ac00 {
1057 compatible = "allwinner,sun4i-a10-i2c";
1058 reg = <0x01c2ac00 0x400>;
1059 interrupts = <7>;
1060 clocks = <&apb1_gates 0>;
1061 status = "disabled";
1062 #address-cells = <1>;
1063 #size-cells = <0>;
1064 };
1065
1066 i2c1: i2c@01c2b000 {
1067 compatible = "allwinner,sun4i-a10-i2c";
1068 reg = <0x01c2b000 0x400>;
1069 interrupts = <8>;
1070 clocks = <&apb1_gates 1>;
1071 status = "disabled";
1072 #address-cells = <1>;
1073 #size-cells = <0>;
1074 };
1075
1076 i2c2: i2c@01c2b400 {
1077 compatible = "allwinner,sun4i-a10-i2c";
1078 reg = <0x01c2b400 0x400>;
1079 interrupts = <9>;
1080 clocks = <&apb1_gates 2>;
1081 status = "disabled";
1082 #address-cells = <1>;
1083 #size-cells = <0>;
1084 };
1085
1086 ps20: ps2@01c2a000 {
1087 compatible = "allwinner,sun4i-a10-ps2";
1088 reg = <0x01c2a000 0x400>;
1089 interrupts = <62>;
1090 clocks = <&apb1_gates 6>;
1091 status = "disabled";
1092 };
1093
1094 ps21: ps2@01c2a400 {
1095 compatible = "allwinner,sun4i-a10-ps2";
1096 reg = <0x01c2a400 0x400>;
1097 interrupts = <63>;
1098 clocks = <&apb1_gates 7>;
1099 status = "disabled";
1100 };
1101 };
1102};