blob: 71ab6b85f240a2478a698df9a5590096b4c5bbc5 [file] [log] [blame]
Simon Glass643ad892014-10-30 20:25:45 -06001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
Hans de Goede53ab4af2015-04-15 19:03:49 +02006 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
Simon Glass643ad892014-10-30 20:25:45 -060010 *
Hans de Goede53ab4af2015-04-15 19:03:49 +020011 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
Hans de Goede53ab4af2015-04-15 19:03:49 +020021 * Or, alternatively,
22 *
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
30 * conditions:
31 *
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
Simon Glass643ad892014-10-30 20:25:45 -060043 */
44
Hans de Goede53ab4af2015-04-15 19:03:49 +020045#include "skeleton.dtsi"
46
47#include <dt-bindings/interrupt-controller/arm-gic.h>
48#include <dt-bindings/thermal/thermal.h>
49
50#include <dt-bindings/dma/sun4i-a10.h>
51#include <dt-bindings/pinctrl/sun4i-a10.h>
Simon Glass643ad892014-10-30 20:25:45 -060052
53/ {
54 interrupt-parent = <&gic>;
55
56 aliases {
57 ethernet0 = &gmac;
Hans de Goede53ab4af2015-04-15 19:03:49 +020058 };
59
60 chosen {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 ranges;
64
65 framebuffer@0 {
Hans de Goede8b1ba942015-06-02 15:53:40 +020066 compatible = "allwinner,simple-framebuffer",
67 "simple-framebuffer";
Hans de Goede53ab4af2015-04-15 19:03:49 +020068 allwinner,pipeline = "de_be0-lcd0-hdmi";
69 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
70 <&ahb_gates 44>;
71 status = "disabled";
72 };
73
74 framebuffer@1 {
75 compatible = "allwinner,simple-framebuffer",
76 "simple-framebuffer";
77 allwinner,pipeline = "de_be0-lcd0";
78 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
79 status = "disabled";
80 };
81
82 framebuffer@2 {
83 compatible = "allwinner,simple-framebuffer",
84 "simple-framebuffer";
85 allwinner,pipeline = "de_be0-lcd0-tve0";
86 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
87 <&ahb_gates 44>;
88 status = "disabled";
89 };
Simon Glass643ad892014-10-30 20:25:45 -060090 };
91
92 cpus {
93 #address-cells = <1>;
94 #size-cells = <0>;
95
Hans de Goede53ab4af2015-04-15 19:03:49 +020096 cpu0: cpu@0 {
Simon Glass643ad892014-10-30 20:25:45 -060097 compatible = "arm,cortex-a7";
98 device_type = "cpu";
99 reg = <0>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200100 clocks = <&cpu>;
101 clock-latency = <244144>; /* 8 32k periods */
102 operating-points = <
Hans de Goede8b1ba942015-06-02 15:53:40 +0200103 /* kHz uV */
104 960000 1400000
105 912000 1400000
106 864000 1300000
107 720000 1200000
108 528000 1100000
109 312000 1000000
110 144000 900000
Hans de Goede53ab4af2015-04-15 19:03:49 +0200111 >;
112 #cooling-cells = <2>;
113 cooling-min-level = <0>;
114 cooling-max-level = <6>;
Simon Glass643ad892014-10-30 20:25:45 -0600115 };
116
117 cpu@1 {
118 compatible = "arm,cortex-a7";
119 device_type = "cpu";
120 reg = <1>;
121 };
122 };
123
Hans de Goede53ab4af2015-04-15 19:03:49 +0200124 thermal-zones {
125 cpu_thermal {
126 /* milliseconds */
127 polling-delay-passive = <250>;
128 polling-delay = <1000>;
129 thermal-sensors = <&rtp>;
130
131 cooling-maps {
132 map0 {
133 trip = <&cpu_alert0>;
134 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
135 };
136 };
137
138 trips {
139 cpu_alert0: cpu_alert0 {
140 /* milliCelsius */
141 temperature = <75000>;
142 hysteresis = <2000>;
143 type = "passive";
144 };
145
146 cpu_crit: cpu_crit {
147 /* milliCelsius */
148 temperature = <100000>;
149 hysteresis = <2000>;
150 type = "critical";
151 };
152 };
153 };
154 };
155
Simon Glass643ad892014-10-30 20:25:45 -0600156 memory {
157 reg = <0x40000000 0x80000000>;
158 };
159
160 timer {
161 compatible = "arm,armv7-timer";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200162 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
163 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
164 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
165 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Simon Glass643ad892014-10-30 20:25:45 -0600166 };
167
168 pmu {
169 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200170 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
171 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600172 };
173
174 clocks {
175 #address-cells = <1>;
176 #size-cells = <1>;
177 ranges;
178
179 osc24M: clk@01c20050 {
180 #clock-cells = <0>;
181 compatible = "allwinner,sun4i-a10-osc-clk";
182 reg = <0x01c20050 0x4>;
183 clock-frequency = <24000000>;
184 clock-output-names = "osc24M";
185 };
186
187 osc32k: clk@0 {
188 #clock-cells = <0>;
189 compatible = "fixed-clock";
190 clock-frequency = <32768>;
191 clock-output-names = "osc32k";
192 };
193
194 pll1: clk@01c20000 {
195 #clock-cells = <0>;
196 compatible = "allwinner,sun4i-a10-pll1-clk";
197 reg = <0x01c20000 0x4>;
198 clocks = <&osc24M>;
199 clock-output-names = "pll1";
200 };
201
202 pll4: clk@01c20018 {
203 #clock-cells = <0>;
204 compatible = "allwinner,sun7i-a20-pll4-clk";
205 reg = <0x01c20018 0x4>;
206 clocks = <&osc24M>;
207 clock-output-names = "pll4";
208 };
209
210 pll5: clk@01c20020 {
211 #clock-cells = <1>;
212 compatible = "allwinner,sun4i-a10-pll5-clk";
213 reg = <0x01c20020 0x4>;
214 clocks = <&osc24M>;
215 clock-output-names = "pll5_ddr", "pll5_other";
216 };
217
218 pll6: clk@01c20028 {
219 #clock-cells = <1>;
220 compatible = "allwinner,sun4i-a10-pll6-clk";
221 reg = <0x01c20028 0x4>;
222 clocks = <&osc24M>;
Hans de Goede8b1ba942015-06-02 15:53:40 +0200223 clock-output-names = "pll6_sata", "pll6_other", "pll6",
224 "pll6_div_4";
Simon Glass643ad892014-10-30 20:25:45 -0600225 };
226
227 pll8: clk@01c20040 {
228 #clock-cells = <0>;
229 compatible = "allwinner,sun7i-a20-pll4-clk";
230 reg = <0x01c20040 0x4>;
231 clocks = <&osc24M>;
232 clock-output-names = "pll8";
233 };
234
235 cpu: cpu@01c20054 {
236 #clock-cells = <0>;
237 compatible = "allwinner,sun4i-a10-cpu-clk";
238 reg = <0x01c20054 0x4>;
239 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
240 clock-output-names = "cpu";
241 };
242
243 axi: axi@01c20054 {
244 #clock-cells = <0>;
245 compatible = "allwinner,sun4i-a10-axi-clk";
246 reg = <0x01c20054 0x4>;
247 clocks = <&cpu>;
248 clock-output-names = "axi";
249 };
250
251 ahb: ahb@01c20054 {
252 #clock-cells = <0>;
Hans de Goede8b1ba942015-06-02 15:53:40 +0200253 compatible = "allwinner,sun5i-a13-ahb-clk";
Simon Glass643ad892014-10-30 20:25:45 -0600254 reg = <0x01c20054 0x4>;
Hans de Goede8b1ba942015-06-02 15:53:40 +0200255 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
Simon Glass643ad892014-10-30 20:25:45 -0600256 clock-output-names = "ahb";
Hans de Goede8b1ba942015-06-02 15:53:40 +0200257 /*
258 * Use PLL6 as parent, instead of CPU/AXI
259 * which has rate changes due to cpufreq
260 */
261 assigned-clocks = <&ahb>;
262 assigned-clock-parents = <&pll6 3>;
Simon Glass643ad892014-10-30 20:25:45 -0600263 };
264
265 ahb_gates: clk@01c20060 {
266 #clock-cells = <1>;
267 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
268 reg = <0x01c20060 0x8>;
269 clocks = <&ahb>;
270 clock-output-names = "ahb_usb0", "ahb_ehci0",
271 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
272 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
273 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
274 "ahb_nand", "ahb_sdram", "ahb_ace",
275 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
276 "ahb_spi2", "ahb_spi3", "ahb_sata",
277 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
278 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
279 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
280 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
281 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
282 "ahb_mali";
283 };
284
285 apb0: apb0@01c20054 {
286 #clock-cells = <0>;
287 compatible = "allwinner,sun4i-a10-apb0-clk";
288 reg = <0x01c20054 0x4>;
289 clocks = <&ahb>;
290 clock-output-names = "apb0";
291 };
292
293 apb0_gates: clk@01c20068 {
294 #clock-cells = <1>;
295 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
296 reg = <0x01c20068 0x4>;
297 clocks = <&apb0>;
298 clock-output-names = "apb0_codec", "apb0_spdif",
299 "apb0_ac97", "apb0_iis0", "apb0_iis1",
300 "apb0_pio", "apb0_ir0", "apb0_ir1",
301 "apb0_iis2", "apb0_keypad";
302 };
303
Hans de Goede53ab4af2015-04-15 19:03:49 +0200304 apb1: clk@01c20058 {
Simon Glass643ad892014-10-30 20:25:45 -0600305 #clock-cells = <0>;
306 compatible = "allwinner,sun4i-a10-apb1-clk";
307 reg = <0x01c20058 0x4>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200308 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Simon Glass643ad892014-10-30 20:25:45 -0600309 clock-output-names = "apb1";
310 };
311
312 apb1_gates: clk@01c2006c {
313 #clock-cells = <1>;
314 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
315 reg = <0x01c2006c 0x4>;
316 clocks = <&apb1>;
317 clock-output-names = "apb1_i2c0", "apb1_i2c1",
318 "apb1_i2c2", "apb1_i2c3", "apb1_can",
319 "apb1_scr", "apb1_ps20", "apb1_ps21",
320 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
321 "apb1_uart2", "apb1_uart3", "apb1_uart4",
322 "apb1_uart5", "apb1_uart6", "apb1_uart7";
323 };
324
325 nand_clk: clk@01c20080 {
326 #clock-cells = <0>;
327 compatible = "allwinner,sun4i-a10-mod0-clk";
328 reg = <0x01c20080 0x4>;
329 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
330 clock-output-names = "nand";
331 };
332
333 ms_clk: clk@01c20084 {
334 #clock-cells = <0>;
335 compatible = "allwinner,sun4i-a10-mod0-clk";
336 reg = <0x01c20084 0x4>;
337 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
338 clock-output-names = "ms";
339 };
340
341 mmc0_clk: clk@01c20088 {
Hans de Goede53ab4af2015-04-15 19:03:49 +0200342 #clock-cells = <1>;
343 compatible = "allwinner,sun4i-a10-mmc-clk";
Simon Glass643ad892014-10-30 20:25:45 -0600344 reg = <0x01c20088 0x4>;
345 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200346 clock-output-names = "mmc0",
347 "mmc0_output",
348 "mmc0_sample";
Simon Glass643ad892014-10-30 20:25:45 -0600349 };
350
351 mmc1_clk: clk@01c2008c {
Hans de Goede53ab4af2015-04-15 19:03:49 +0200352 #clock-cells = <1>;
353 compatible = "allwinner,sun4i-a10-mmc-clk";
Simon Glass643ad892014-10-30 20:25:45 -0600354 reg = <0x01c2008c 0x4>;
355 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200356 clock-output-names = "mmc1",
357 "mmc1_output",
358 "mmc1_sample";
Simon Glass643ad892014-10-30 20:25:45 -0600359 };
360
361 mmc2_clk: clk@01c20090 {
Hans de Goede53ab4af2015-04-15 19:03:49 +0200362 #clock-cells = <1>;
363 compatible = "allwinner,sun4i-a10-mmc-clk";
Simon Glass643ad892014-10-30 20:25:45 -0600364 reg = <0x01c20090 0x4>;
365 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200366 clock-output-names = "mmc2",
367 "mmc2_output",
368 "mmc2_sample";
Simon Glass643ad892014-10-30 20:25:45 -0600369 };
370
371 mmc3_clk: clk@01c20094 {
Hans de Goede53ab4af2015-04-15 19:03:49 +0200372 #clock-cells = <1>;
373 compatible = "allwinner,sun4i-a10-mmc-clk";
Simon Glass643ad892014-10-30 20:25:45 -0600374 reg = <0x01c20094 0x4>;
375 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200376 clock-output-names = "mmc3",
377 "mmc3_output",
378 "mmc3_sample";
Simon Glass643ad892014-10-30 20:25:45 -0600379 };
380
381 ts_clk: clk@01c20098 {
382 #clock-cells = <0>;
383 compatible = "allwinner,sun4i-a10-mod0-clk";
384 reg = <0x01c20098 0x4>;
385 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
386 clock-output-names = "ts";
387 };
388
389 ss_clk: clk@01c2009c {
390 #clock-cells = <0>;
391 compatible = "allwinner,sun4i-a10-mod0-clk";
392 reg = <0x01c2009c 0x4>;
393 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
394 clock-output-names = "ss";
395 };
396
397 spi0_clk: clk@01c200a0 {
398 #clock-cells = <0>;
399 compatible = "allwinner,sun4i-a10-mod0-clk";
400 reg = <0x01c200a0 0x4>;
401 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
402 clock-output-names = "spi0";
403 };
404
405 spi1_clk: clk@01c200a4 {
406 #clock-cells = <0>;
407 compatible = "allwinner,sun4i-a10-mod0-clk";
408 reg = <0x01c200a4 0x4>;
409 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
410 clock-output-names = "spi1";
411 };
412
413 spi2_clk: clk@01c200a8 {
414 #clock-cells = <0>;
415 compatible = "allwinner,sun4i-a10-mod0-clk";
416 reg = <0x01c200a8 0x4>;
417 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
418 clock-output-names = "spi2";
419 };
420
421 pata_clk: clk@01c200ac {
422 #clock-cells = <0>;
423 compatible = "allwinner,sun4i-a10-mod0-clk";
424 reg = <0x01c200ac 0x4>;
425 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
426 clock-output-names = "pata";
427 };
428
429 ir0_clk: clk@01c200b0 {
430 #clock-cells = <0>;
431 compatible = "allwinner,sun4i-a10-mod0-clk";
432 reg = <0x01c200b0 0x4>;
433 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
434 clock-output-names = "ir0";
435 };
436
437 ir1_clk: clk@01c200b4 {
438 #clock-cells = <0>;
439 compatible = "allwinner,sun4i-a10-mod0-clk";
440 reg = <0x01c200b4 0x4>;
441 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
442 clock-output-names = "ir1";
443 };
444
445 usb_clk: clk@01c200cc {
446 #clock-cells = <1>;
Hans de Goede8b1ba942015-06-02 15:53:40 +0200447 #reset-cells = <1>;
Simon Glass643ad892014-10-30 20:25:45 -0600448 compatible = "allwinner,sun4i-a10-usb-clk";
449 reg = <0x01c200cc 0x4>;
450 clocks = <&pll6 1>;
Hans de Goede8b1ba942015-06-02 15:53:40 +0200451 clock-output-names = "usb_ohci0", "usb_ohci1",
452 "usb_phy";
Simon Glass643ad892014-10-30 20:25:45 -0600453 };
454
455 spi3_clk: clk@01c200d4 {
456 #clock-cells = <0>;
457 compatible = "allwinner,sun4i-a10-mod0-clk";
458 reg = <0x01c200d4 0x4>;
459 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
460 clock-output-names = "spi3";
461 };
462
463 mbus_clk: clk@01c2015c {
464 #clock-cells = <0>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200465 compatible = "allwinner,sun5i-a13-mbus-clk";
Simon Glass643ad892014-10-30 20:25:45 -0600466 reg = <0x01c2015c 0x4>;
467 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
468 clock-output-names = "mbus";
469 };
470
471 /*
Hans de Goede8b1ba942015-06-02 15:53:40 +0200472 * The following two are dummy clocks, placeholders
473 * used in the gmac_tx clock. The gmac driver will
474 * choose one parent depending on the PHY interface
475 * mode, using clk_set_rate auto-reparenting.
476 *
477 * The actual TX clock rate is not controlled by the
478 * gmac_tx clock.
Simon Glass643ad892014-10-30 20:25:45 -0600479 */
480 mii_phy_tx_clk: clk@2 {
481 #clock-cells = <0>;
482 compatible = "fixed-clock";
483 clock-frequency = <25000000>;
484 clock-output-names = "mii_phy_tx";
485 };
486
487 gmac_int_tx_clk: clk@3 {
488 #clock-cells = <0>;
489 compatible = "fixed-clock";
490 clock-frequency = <125000000>;
491 clock-output-names = "gmac_int_tx";
492 };
493
494 gmac_tx_clk: clk@01c20164 {
495 #clock-cells = <0>;
496 compatible = "allwinner,sun7i-a20-gmac-clk";
497 reg = <0x01c20164 0x4>;
498 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
499 clock-output-names = "gmac_tx";
500 };
501
502 /*
503 * Dummy clock used by output clocks
504 */
505 osc24M_32k: clk@1 {
506 #clock-cells = <0>;
507 compatible = "fixed-factor-clock";
508 clock-div = <750>;
509 clock-mult = <1>;
510 clocks = <&osc24M>;
511 clock-output-names = "osc24M_32k";
512 };
513
514 clk_out_a: clk@01c201f0 {
515 #clock-cells = <0>;
516 compatible = "allwinner,sun7i-a20-out-clk";
517 reg = <0x01c201f0 0x4>;
518 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
519 clock-output-names = "clk_out_a";
520 };
521
522 clk_out_b: clk@01c201f4 {
523 #clock-cells = <0>;
524 compatible = "allwinner,sun7i-a20-out-clk";
525 reg = <0x01c201f4 0x4>;
526 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
527 clock-output-names = "clk_out_b";
528 };
529 };
530
531 soc@01c00000 {
532 compatible = "simple-bus";
533 #address-cells = <1>;
534 #size-cells = <1>;
535 ranges;
536
Hans de Goede53ab4af2015-04-15 19:03:49 +0200537 sram-controller@01c00000 {
538 compatible = "allwinner,sun4i-a10-sram-controller";
539 reg = <0x01c00000 0x30>;
Hans de Goede8b1ba942015-06-02 15:53:40 +0200540 #address-cells = <1>;
541 #size-cells = <1>;
542 ranges;
543
544 sram_a: sram@00000000 {
545 compatible = "mmio-sram";
546 reg = <0x00000000 0xc000>;
547 #address-cells = <1>;
548 #size-cells = <1>;
549 ranges = <0 0x00000000 0xc000>;
550
551 emac_sram: sram-section@8000 {
552 compatible = "allwinner,sun4i-a10-sram-a3-a4";
553 reg = <0x8000 0x4000>;
554 status = "disabled";
555 };
556 };
557
558 sram_d: sram@00010000 {
559 compatible = "mmio-sram";
560 reg = <0x00010000 0x1000>;
561 #address-cells = <1>;
562 #size-cells = <1>;
563 ranges = <0 0x00010000 0x1000>;
564
565 otg_sram: sram-section@0000 {
566 compatible = "allwinner,sun4i-a10-sram-d";
567 reg = <0x0000 0x1000>;
568 status = "disabled";
569 };
570 };
Hans de Goede53ab4af2015-04-15 19:03:49 +0200571 };
572
Simon Glass643ad892014-10-30 20:25:45 -0600573 nmi_intc: interrupt-controller@01c00030 {
574 compatible = "allwinner,sun7i-a20-sc-nmi";
575 interrupt-controller;
576 #interrupt-cells = <2>;
577 reg = <0x01c00030 0x0c>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200578 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
579 };
580
581 dma: dma-controller@01c02000 {
582 compatible = "allwinner,sun4i-a10-dma";
583 reg = <0x01c02000 0x1000>;
584 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
585 clocks = <&ahb_gates 6>;
586 #dma-cells = <2>;
Simon Glass643ad892014-10-30 20:25:45 -0600587 };
588
589 spi0: spi@01c05000 {
590 compatible = "allwinner,sun4i-a10-spi";
591 reg = <0x01c05000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200592 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600593 clocks = <&ahb_gates 20>, <&spi0_clk>;
594 clock-names = "ahb", "mod";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200595 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
596 <&dma SUN4I_DMA_DEDICATED 26>;
597 dma-names = "rx", "tx";
Simon Glass643ad892014-10-30 20:25:45 -0600598 status = "disabled";
599 #address-cells = <1>;
600 #size-cells = <0>;
601 };
602
603 spi1: spi@01c06000 {
604 compatible = "allwinner,sun4i-a10-spi";
605 reg = <0x01c06000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200606 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600607 clocks = <&ahb_gates 21>, <&spi1_clk>;
608 clock-names = "ahb", "mod";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200609 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
610 <&dma SUN4I_DMA_DEDICATED 8>;
611 dma-names = "rx", "tx";
Simon Glass643ad892014-10-30 20:25:45 -0600612 status = "disabled";
613 #address-cells = <1>;
614 #size-cells = <0>;
615 };
616
617 emac: ethernet@01c0b000 {
618 compatible = "allwinner,sun4i-a10-emac";
619 reg = <0x01c0b000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200620 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600621 clocks = <&ahb_gates 17>;
Hans de Goede8b1ba942015-06-02 15:53:40 +0200622 allwinner,sram = <&emac_sram 1>;
Simon Glass643ad892014-10-30 20:25:45 -0600623 status = "disabled";
624 };
625
Hans de Goede53ab4af2015-04-15 19:03:49 +0200626 mdio: mdio@01c0b080 {
Simon Glass643ad892014-10-30 20:25:45 -0600627 compatible = "allwinner,sun4i-a10-mdio";
628 reg = <0x01c0b080 0x14>;
629 status = "disabled";
630 #address-cells = <1>;
631 #size-cells = <0>;
632 };
633
634 mmc0: mmc@01c0f000 {
635 compatible = "allwinner,sun5i-a13-mmc";
636 reg = <0x01c0f000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200637 clocks = <&ahb_gates 8>,
638 <&mmc0_clk 0>,
639 <&mmc0_clk 1>,
640 <&mmc0_clk 2>;
641 clock-names = "ahb",
642 "mmc",
643 "output",
644 "sample";
645 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600646 status = "disabled";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200647 #address-cells = <1>;
648 #size-cells = <0>;
Simon Glass643ad892014-10-30 20:25:45 -0600649 };
650
651 mmc1: mmc@01c10000 {
652 compatible = "allwinner,sun5i-a13-mmc";
653 reg = <0x01c10000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200654 clocks = <&ahb_gates 9>,
655 <&mmc1_clk 0>,
656 <&mmc1_clk 1>,
657 <&mmc1_clk 2>;
658 clock-names = "ahb",
659 "mmc",
660 "output",
661 "sample";
662 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600663 status = "disabled";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200664 #address-cells = <1>;
665 #size-cells = <0>;
Simon Glass643ad892014-10-30 20:25:45 -0600666 };
667
668 mmc2: mmc@01c11000 {
669 compatible = "allwinner,sun5i-a13-mmc";
670 reg = <0x01c11000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200671 clocks = <&ahb_gates 10>,
672 <&mmc2_clk 0>,
673 <&mmc2_clk 1>,
674 <&mmc2_clk 2>;
675 clock-names = "ahb",
676 "mmc",
677 "output",
678 "sample";
679 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600680 status = "disabled";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200681 #address-cells = <1>;
682 #size-cells = <0>;
Simon Glass643ad892014-10-30 20:25:45 -0600683 };
684
685 mmc3: mmc@01c12000 {
686 compatible = "allwinner,sun5i-a13-mmc";
687 reg = <0x01c12000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200688 clocks = <&ahb_gates 11>,
689 <&mmc3_clk 0>,
690 <&mmc3_clk 1>,
691 <&mmc3_clk 2>;
692 clock-names = "ahb",
693 "mmc",
694 "output",
695 "sample";
696 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600697 status = "disabled";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200698 #address-cells = <1>;
699 #size-cells = <0>;
Simon Glass643ad892014-10-30 20:25:45 -0600700 };
701
Hans de Goededa52a4a2015-08-05 17:39:14 +0200702 usb_otg: usb@01c13000 {
703 compatible = "allwinner,sun4i-a10-musb";
704 reg = <0x01c13000 0x0400>;
705 clocks = <&ahb_gates 0>;
706 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
707 interrupt-names = "mc";
708 phys = <&usbphy 0>;
709 phy-names = "usb";
710 extcon = <&usbphy 0>;
711 allwinner,sram = <&otg_sram 1>;
712 status = "disabled";
713 };
714
Simon Glass643ad892014-10-30 20:25:45 -0600715 usbphy: phy@01c13400 {
716 #phy-cells = <1>;
717 compatible = "allwinner,sun7i-a20-usb-phy";
718 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
719 reg-names = "phy_ctrl", "pmu1", "pmu2";
720 clocks = <&usb_clk 8>;
721 clock-names = "usb_phy";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200722 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
723 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Simon Glass643ad892014-10-30 20:25:45 -0600724 status = "disabled";
725 };
726
727 ehci0: usb@01c14000 {
728 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
729 reg = <0x01c14000 0x100>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200730 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600731 clocks = <&ahb_gates 1>;
732 phys = <&usbphy 1>;
733 phy-names = "usb";
734 status = "disabled";
735 };
736
737 ohci0: usb@01c14400 {
738 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
739 reg = <0x01c14400 0x100>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200740 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600741 clocks = <&usb_clk 6>, <&ahb_gates 2>;
742 phys = <&usbphy 1>;
743 phy-names = "usb";
744 status = "disabled";
745 };
746
747 spi2: spi@01c17000 {
748 compatible = "allwinner,sun4i-a10-spi";
749 reg = <0x01c17000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200750 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600751 clocks = <&ahb_gates 22>, <&spi2_clk>;
752 clock-names = "ahb", "mod";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200753 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
754 <&dma SUN4I_DMA_DEDICATED 28>;
755 dma-names = "rx", "tx";
Simon Glass643ad892014-10-30 20:25:45 -0600756 status = "disabled";
757 #address-cells = <1>;
758 #size-cells = <0>;
759 };
760
761 ahci: sata@01c18000 {
762 compatible = "allwinner,sun4i-a10-ahci";
763 reg = <0x01c18000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200764 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600765 clocks = <&pll6 0>, <&ahb_gates 25>;
766 status = "disabled";
767 };
768
769 ehci1: usb@01c1c000 {
770 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
771 reg = <0x01c1c000 0x100>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200772 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600773 clocks = <&ahb_gates 3>;
774 phys = <&usbphy 2>;
775 phy-names = "usb";
776 status = "disabled";
777 };
778
779 ohci1: usb@01c1c400 {
780 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
781 reg = <0x01c1c400 0x100>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200782 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600783 clocks = <&usb_clk 7>, <&ahb_gates 4>;
784 phys = <&usbphy 2>;
785 phy-names = "usb";
786 status = "disabled";
787 };
788
789 spi3: spi@01c1f000 {
790 compatible = "allwinner,sun4i-a10-spi";
791 reg = <0x01c1f000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200792 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600793 clocks = <&ahb_gates 23>, <&spi3_clk>;
794 clock-names = "ahb", "mod";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200795 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
796 <&dma SUN4I_DMA_DEDICATED 30>;
797 dma-names = "rx", "tx";
Simon Glass643ad892014-10-30 20:25:45 -0600798 status = "disabled";
799 #address-cells = <1>;
800 #size-cells = <0>;
801 };
802
803 pio: pinctrl@01c20800 {
804 compatible = "allwinner,sun7i-a20-pinctrl";
805 reg = <0x01c20800 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +0200806 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -0600807 clocks = <&apb0_gates 5>;
808 gpio-controller;
809 interrupt-controller;
Hans de Goededa52a4a2015-08-05 17:39:14 +0200810 #interrupt-cells = <3>;
Simon Glass643ad892014-10-30 20:25:45 -0600811 #gpio-cells = <3>;
812
813 pwm0_pins_a: pwm0@0 {
814 allwinner,pins = "PB2";
815 allwinner,function = "pwm";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200816 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
817 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600818 };
819
820 pwm1_pins_a: pwm1@0 {
821 allwinner,pins = "PI3";
822 allwinner,function = "pwm";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200823 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
824 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600825 };
826
827 uart0_pins_a: uart0@0 {
828 allwinner,pins = "PB22", "PB23";
829 allwinner,function = "uart0";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200830 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
831 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600832 };
833
834 uart2_pins_a: uart2@0 {
835 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
836 allwinner,function = "uart2";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200837 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
838 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
839 };
840
841 uart3_pins_a: uart3@0 {
842 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
843 allwinner,function = "uart3";
844 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
845 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
846 };
847
848 uart3_pins_b: uart3@1 {
849 allwinner,pins = "PH0", "PH1";
850 allwinner,function = "uart3";
851 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
852 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
853 };
854
855 uart4_pins_a: uart4@0 {
856 allwinner,pins = "PG10", "PG11";
857 allwinner,function = "uart4";
858 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
859 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
860 };
861
Hans de Goede8b1ba942015-06-02 15:53:40 +0200862 uart4_pins_b: uart4@1 {
863 allwinner,pins = "PH4", "PH5";
864 allwinner,function = "uart4";
865 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
866 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
867 };
868
Hans de Goede53ab4af2015-04-15 19:03:49 +0200869 uart5_pins_a: uart5@0 {
870 allwinner,pins = "PI10", "PI11";
871 allwinner,function = "uart5";
872 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
873 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600874 };
875
876 uart6_pins_a: uart6@0 {
877 allwinner,pins = "PI12", "PI13";
878 allwinner,function = "uart6";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200879 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
880 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600881 };
882
883 uart7_pins_a: uart7@0 {
884 allwinner,pins = "PI20", "PI21";
885 allwinner,function = "uart7";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200886 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
887 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600888 };
889
890 i2c0_pins_a: i2c0@0 {
891 allwinner,pins = "PB0", "PB1";
892 allwinner,function = "i2c0";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200893 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
894 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600895 };
896
897 i2c1_pins_a: i2c1@0 {
898 allwinner,pins = "PB18", "PB19";
899 allwinner,function = "i2c1";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200900 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
901 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600902 };
903
904 i2c2_pins_a: i2c2@0 {
905 allwinner,pins = "PB20", "PB21";
906 allwinner,function = "i2c2";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200907 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
908 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
909 };
910
911 i2c3_pins_a: i2c3@0 {
912 allwinner,pins = "PI0", "PI1";
913 allwinner,function = "i2c3";
914 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
915 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600916 };
917
918 emac_pins_a: emac0@0 {
919 allwinner,pins = "PA0", "PA1", "PA2",
920 "PA3", "PA4", "PA5", "PA6",
921 "PA7", "PA8", "PA9", "PA10",
922 "PA11", "PA12", "PA13", "PA14",
923 "PA15", "PA16";
924 allwinner,function = "emac";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200925 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
926 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600927 };
928
929 clk_out_a_pins_a: clk_out_a@0 {
930 allwinner,pins = "PI12";
931 allwinner,function = "clk_out_a";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200932 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
933 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600934 };
935
936 clk_out_b_pins_a: clk_out_b@0 {
937 allwinner,pins = "PI13";
938 allwinner,function = "clk_out_b";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200939 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
940 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600941 };
942
943 gmac_pins_mii_a: gmac_mii@0 {
944 allwinner,pins = "PA0", "PA1", "PA2",
945 "PA3", "PA4", "PA5", "PA6",
946 "PA7", "PA8", "PA9", "PA10",
947 "PA11", "PA12", "PA13", "PA14",
948 "PA15", "PA16";
949 allwinner,function = "gmac";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200950 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
951 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600952 };
953
954 gmac_pins_rgmii_a: gmac_rgmii@0 {
955 allwinner,pins = "PA0", "PA1", "PA2",
956 "PA3", "PA4", "PA5", "PA6",
957 "PA7", "PA8", "PA10",
958 "PA11", "PA12", "PA13",
959 "PA15", "PA16";
960 allwinner,function = "gmac";
961 /*
962 * data lines in RGMII mode use DDR mode
963 * and need a higher signal drive strength
964 */
Hans de Goede53ab4af2015-04-15 19:03:49 +0200965 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
966 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
967 };
968
969 spi0_pins_a: spi0@0 {
Hans de Goede8b1ba942015-06-02 15:53:40 +0200970 allwinner,pins = "PI11", "PI12", "PI13";
971 allwinner,function = "spi0";
972 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
973 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
974 };
975
976 spi0_cs0_pins_a: spi0_cs0@0 {
977 allwinner,pins = "PI10";
978 allwinner,function = "spi0";
979 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
980 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
981 };
982
983 spi0_cs1_pins_a: spi0_cs1@0 {
984 allwinner,pins = "PI14";
Hans de Goede53ab4af2015-04-15 19:03:49 +0200985 allwinner,function = "spi0";
986 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
987 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -0600988 };
989
990 spi1_pins_a: spi1@0 {
Hans de Goede8b1ba942015-06-02 15:53:40 +0200991 allwinner,pins = "PI17", "PI18", "PI19";
992 allwinner,function = "spi1";
993 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
994 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
995 };
996
997 spi1_cs0_pins_a: spi1_cs0@0 {
998 allwinner,pins = "PI16";
Simon Glass643ad892014-10-30 20:25:45 -0600999 allwinner,function = "spi1";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001000 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1001 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -06001002 };
1003
1004 spi2_pins_a: spi2@0 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001005 allwinner,pins = "PC20", "PC21", "PC22";
Simon Glass643ad892014-10-30 20:25:45 -06001006 allwinner,function = "spi2";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001007 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1008 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1009 };
1010
1011 spi2_pins_b: spi2@1 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001012 allwinner,pins = "PB15", "PB16", "PB17";
1013 allwinner,function = "spi2";
1014 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1015 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1016 };
1017
1018 spi2_cs0_pins_a: spi2_cs0@0 {
1019 allwinner,pins = "PC19";
1020 allwinner,function = "spi2";
1021 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1022 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1023 };
1024
1025 spi2_cs0_pins_b: spi2_cs0@1 {
1026 allwinner,pins = "PB14";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001027 allwinner,function = "spi2";
1028 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1029 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -06001030 };
1031
1032 mmc0_pins_a: mmc0@0 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001033 allwinner,pins = "PF0", "PF1", "PF2",
1034 "PF3", "PF4", "PF5";
Simon Glass643ad892014-10-30 20:25:45 -06001035 allwinner,function = "mmc0";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001036 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1037 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -06001038 };
1039
1040 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1041 allwinner,pins = "PH1";
1042 allwinner,function = "gpio_in";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001043 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1044 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1045 };
1046
1047 mmc2_pins_a: mmc2@0 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001048 allwinner,pins = "PC6", "PC7", "PC8",
1049 "PC9", "PC10", "PC11";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001050 allwinner,function = "mmc2";
1051 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1052 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Simon Glass643ad892014-10-30 20:25:45 -06001053 };
1054
1055 mmc3_pins_a: mmc3@0 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001056 allwinner,pins = "PI4", "PI5", "PI6",
1057 "PI7", "PI8", "PI9";
Simon Glass643ad892014-10-30 20:25:45 -06001058 allwinner,function = "mmc3";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001059 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1060 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -06001061 };
1062
Hans de Goede8b1ba942015-06-02 15:53:40 +02001063 ir0_rx_pins_a: ir0@0 {
1064 allwinner,pins = "PB4";
Simon Glass643ad892014-10-30 20:25:45 -06001065 allwinner,function = "ir0";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001066 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1067 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -06001068 };
1069
Hans de Goede8b1ba942015-06-02 15:53:40 +02001070 ir0_tx_pins_a: ir0@1 {
1071 allwinner,pins = "PB3";
1072 allwinner,function = "ir0";
1073 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1074 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1075 };
1076
1077 ir1_rx_pins_a: ir1@0 {
1078 allwinner,pins = "PB23";
1079 allwinner,function = "ir1";
1080 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1081 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1082 };
1083
1084 ir1_tx_pins_a: ir1@1 {
1085 allwinner,pins = "PB22";
Simon Glass643ad892014-10-30 20:25:45 -06001086 allwinner,function = "ir1";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001087 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1088 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1089 };
1090
1091 ps20_pins_a: ps20@0 {
1092 allwinner,pins = "PI20", "PI21";
1093 allwinner,function = "ps2";
1094 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1095 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1096 };
1097
1098 ps21_pins_a: ps21@0 {
1099 allwinner,pins = "PH12", "PH13";
1100 allwinner,function = "ps2";
1101 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1102 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Simon Glass643ad892014-10-30 20:25:45 -06001103 };
1104 };
1105
1106 timer@01c20c00 {
1107 compatible = "allwinner,sun4i-a10-timer";
1108 reg = <0x01c20c00 0x90>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001109 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1110 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1111 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1112 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1113 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1114 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001115 clocks = <&osc24M>;
1116 };
1117
1118 wdt: watchdog@01c20c90 {
1119 compatible = "allwinner,sun4i-a10-wdt";
1120 reg = <0x01c20c90 0x10>;
1121 };
1122
1123 rtc: rtc@01c20d00 {
1124 compatible = "allwinner,sun7i-a20-rtc";
1125 reg = <0x01c20d00 0x20>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001126 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001127 };
1128
1129 pwm: pwm@01c20e00 {
1130 compatible = "allwinner,sun7i-a20-pwm";
1131 reg = <0x01c20e00 0xc>;
1132 clocks = <&osc24M>;
1133 #pwm-cells = <3>;
1134 status = "disabled";
1135 };
1136
1137 ir0: ir@01c21800 {
1138 compatible = "allwinner,sun4i-a10-ir";
1139 clocks = <&apb0_gates 6>, <&ir0_clk>;
1140 clock-names = "apb", "ir";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001141 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001142 reg = <0x01c21800 0x40>;
1143 status = "disabled";
1144 };
1145
1146 ir1: ir@01c21c00 {
1147 compatible = "allwinner,sun4i-a10-ir";
1148 clocks = <&apb0_gates 7>, <&ir1_clk>;
1149 clock-names = "apb", "ir";
Hans de Goede53ab4af2015-04-15 19:03:49 +02001150 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001151 reg = <0x01c21c00 0x40>;
1152 status = "disabled";
1153 };
1154
Hans de Goede53ab4af2015-04-15 19:03:49 +02001155 lradc: lradc@01c22800 {
1156 compatible = "allwinner,sun4i-a10-lradc-keys";
1157 reg = <0x01c22800 0x100>;
1158 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
1159 status = "disabled";
1160 };
1161
Simon Glass643ad892014-10-30 20:25:45 -06001162 sid: eeprom@01c23800 {
1163 compatible = "allwinner,sun7i-a20-sid";
1164 reg = <0x01c23800 0x200>;
1165 };
1166
1167 rtp: rtp@01c25000 {
Hans de Goede53ab4af2015-04-15 19:03:49 +02001168 compatible = "allwinner,sun5i-a13-ts";
Simon Glass643ad892014-10-30 20:25:45 -06001169 reg = <0x01c25000 0x100>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001170 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1171 #thermal-sensor-cells = <0>;
Simon Glass643ad892014-10-30 20:25:45 -06001172 };
1173
1174 uart0: serial@01c28000 {
1175 compatible = "snps,dw-apb-uart";
1176 reg = <0x01c28000 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001177 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001178 reg-shift = <2>;
1179 reg-io-width = <4>;
1180 clocks = <&apb1_gates 16>;
1181 status = "disabled";
1182 };
1183
1184 uart1: serial@01c28400 {
1185 compatible = "snps,dw-apb-uart";
1186 reg = <0x01c28400 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001187 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001188 reg-shift = <2>;
1189 reg-io-width = <4>;
1190 clocks = <&apb1_gates 17>;
1191 status = "disabled";
1192 };
1193
1194 uart2: serial@01c28800 {
1195 compatible = "snps,dw-apb-uart";
1196 reg = <0x01c28800 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001197 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001198 reg-shift = <2>;
1199 reg-io-width = <4>;
1200 clocks = <&apb1_gates 18>;
1201 status = "disabled";
1202 };
1203
1204 uart3: serial@01c28c00 {
1205 compatible = "snps,dw-apb-uart";
1206 reg = <0x01c28c00 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001207 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001208 reg-shift = <2>;
1209 reg-io-width = <4>;
1210 clocks = <&apb1_gates 19>;
1211 status = "disabled";
1212 };
1213
1214 uart4: serial@01c29000 {
1215 compatible = "snps,dw-apb-uart";
1216 reg = <0x01c29000 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001217 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001218 reg-shift = <2>;
1219 reg-io-width = <4>;
1220 clocks = <&apb1_gates 20>;
1221 status = "disabled";
1222 };
1223
1224 uart5: serial@01c29400 {
1225 compatible = "snps,dw-apb-uart";
1226 reg = <0x01c29400 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001227 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001228 reg-shift = <2>;
1229 reg-io-width = <4>;
1230 clocks = <&apb1_gates 21>;
1231 status = "disabled";
1232 };
1233
1234 uart6: serial@01c29800 {
1235 compatible = "snps,dw-apb-uart";
1236 reg = <0x01c29800 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001237 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001238 reg-shift = <2>;
1239 reg-io-width = <4>;
1240 clocks = <&apb1_gates 22>;
1241 status = "disabled";
1242 };
1243
1244 uart7: serial@01c29c00 {
1245 compatible = "snps,dw-apb-uart";
1246 reg = <0x01c29c00 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001247 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001248 reg-shift = <2>;
1249 reg-io-width = <4>;
1250 clocks = <&apb1_gates 23>;
1251 status = "disabled";
1252 };
1253
1254 i2c0: i2c@01c2ac00 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001255 compatible = "allwinner,sun7i-a20-i2c",
1256 "allwinner,sun4i-a10-i2c";
Simon Glass643ad892014-10-30 20:25:45 -06001257 reg = <0x01c2ac00 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001258 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001259 clocks = <&apb1_gates 0>;
Simon Glass643ad892014-10-30 20:25:45 -06001260 status = "disabled";
1261 #address-cells = <1>;
1262 #size-cells = <0>;
1263 };
1264
1265 i2c1: i2c@01c2b000 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001266 compatible = "allwinner,sun7i-a20-i2c",
1267 "allwinner,sun4i-a10-i2c";
Simon Glass643ad892014-10-30 20:25:45 -06001268 reg = <0x01c2b000 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001269 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001270 clocks = <&apb1_gates 1>;
Simon Glass643ad892014-10-30 20:25:45 -06001271 status = "disabled";
1272 #address-cells = <1>;
1273 #size-cells = <0>;
1274 };
1275
1276 i2c2: i2c@01c2b400 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001277 compatible = "allwinner,sun7i-a20-i2c",
1278 "allwinner,sun4i-a10-i2c";
Simon Glass643ad892014-10-30 20:25:45 -06001279 reg = <0x01c2b400 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001280 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001281 clocks = <&apb1_gates 2>;
Simon Glass643ad892014-10-30 20:25:45 -06001282 status = "disabled";
1283 #address-cells = <1>;
1284 #size-cells = <0>;
1285 };
1286
1287 i2c3: i2c@01c2b800 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001288 compatible = "allwinner,sun7i-a20-i2c",
1289 "allwinner,sun4i-a10-i2c";
Simon Glass643ad892014-10-30 20:25:45 -06001290 reg = <0x01c2b800 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001291 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001292 clocks = <&apb1_gates 3>;
Simon Glass643ad892014-10-30 20:25:45 -06001293 status = "disabled";
1294 #address-cells = <1>;
1295 #size-cells = <0>;
1296 };
1297
1298 i2c4: i2c@01c2c000 {
Hans de Goede8b1ba942015-06-02 15:53:40 +02001299 compatible = "allwinner,sun7i-a20-i2c",
1300 "allwinner,sun4i-a10-i2c";
Simon Glass643ad892014-10-30 20:25:45 -06001301 reg = <0x01c2c000 0x400>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001302 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001303 clocks = <&apb1_gates 15>;
Simon Glass643ad892014-10-30 20:25:45 -06001304 status = "disabled";
1305 #address-cells = <1>;
1306 #size-cells = <0>;
1307 };
1308
1309 gmac: ethernet@01c50000 {
1310 compatible = "allwinner,sun7i-a20-gmac";
1311 reg = <0x01c50000 0x10000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001312 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001313 interrupt-names = "macirq";
1314 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1315 clock-names = "stmmaceth", "allwinner_gmac_tx";
1316 snps,pbl = <2>;
1317 snps,fixed-burst;
1318 snps,force_sf_dma_mode;
1319 status = "disabled";
1320 #address-cells = <1>;
1321 #size-cells = <0>;
1322 };
1323
1324 hstimer@01c60000 {
1325 compatible = "allwinner,sun7i-a20-hstimer";
1326 reg = <0x01c60000 0x1000>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001327 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1328 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1329 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1330 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass643ad892014-10-30 20:25:45 -06001331 clocks = <&ahb_gates 28>;
1332 };
1333
1334 gic: interrupt-controller@01c81000 {
1335 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1336 reg = <0x01c81000 0x1000>,
1337 <0x01c82000 0x1000>,
1338 <0x01c84000 0x2000>,
1339 <0x01c86000 0x2000>;
1340 interrupt-controller;
1341 #interrupt-cells = <3>;
Hans de Goede53ab4af2015-04-15 19:03:49 +02001342 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1343 };
1344
1345 ps20: ps2@01c2a000 {
1346 compatible = "allwinner,sun4i-a10-ps2";
1347 reg = <0x01c2a000 0x400>;
1348 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1349 clocks = <&apb1_gates 6>;
1350 status = "disabled";
1351 };
1352
1353 ps21: ps2@01c2a400 {
1354 compatible = "allwinner,sun4i-a10-ps2";
1355 reg = <0x01c2a400 0x400>;
1356 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1357 clocks = <&apb1_gates 7>;
1358 status = "disabled";
Simon Glass643ad892014-10-30 20:25:45 -06001359 };
1360 };
1361};