2 * Copyright 2012-2015 Maxime Ripard
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
6 * 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
11 * a) This library 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.
16 * This library 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.
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
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
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.
45 #include "skeleton.dtsi"
47 #include <dt-bindings/dma/sun4i-a10.h>
48 #include <dt-bindings/pinctrl/sun4i-a10.h>
51 interrupt-parent = <&intc>;
59 compatible = "arm,cortex-a8";
71 * This is a dummy clock, to be used as placeholder on
72 * other mux clocks when a specific parent clock is not
73 * yet implemented. It should be dropped when the driver
78 compatible = "fixed-clock";
79 clock-frequency = <0>;
82 osc24M: clk@01c20050 {
84 compatible = "allwinner,sun4i-a10-osc-clk";
85 reg = <0x01c20050 0x4>;
86 clock-frequency = <24000000>;
87 clock-output-names = "osc24M";
92 compatible = "fixed-clock";
93 clock-frequency = <32768>;
94 clock-output-names = "osc32k";
99 compatible = "allwinner,sun4i-a10-pll1-clk";
100 reg = <0x01c20000 0x4>;
102 clock-output-names = "pll1";
107 compatible = "allwinner,sun4i-a10-pll1-clk";
108 reg = <0x01c20018 0x4>;
110 clock-output-names = "pll4";
115 compatible = "allwinner,sun4i-a10-pll5-clk";
116 reg = <0x01c20020 0x4>;
118 clock-output-names = "pll5_ddr", "pll5_other";
123 compatible = "allwinner,sun4i-a10-pll6-clk";
124 reg = <0x01c20028 0x4>;
126 clock-output-names = "pll6_sata", "pll6_other", "pll6";
132 compatible = "allwinner,sun4i-a10-cpu-clk";
133 reg = <0x01c20054 0x4>;
134 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
135 clock-output-names = "cpu";
140 compatible = "allwinner,sun4i-a10-axi-clk";
141 reg = <0x01c20054 0x4>;
143 clock-output-names = "axi";
148 compatible = "allwinner,sun5i-a13-ahb-clk";
149 reg = <0x01c20054 0x4>;
150 clocks = <&axi>, <&cpu>, <&pll6 1>;
151 clock-output-names = "ahb";
153 * Use PLL6 as parent, instead of CPU/AXI
154 * which has rate changes due to cpufreq
156 assigned-clocks = <&ahb>;
157 assigned-clock-parents = <&pll6 1>;
160 apb0: apb0@01c20054 {
162 compatible = "allwinner,sun4i-a10-apb0-clk";
163 reg = <0x01c20054 0x4>;
165 clock-output-names = "apb0";
170 compatible = "allwinner,sun4i-a10-apb1-clk";
171 reg = <0x01c20058 0x4>;
172 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
173 clock-output-names = "apb1";
176 axi_gates: clk@01c2005c {
178 compatible = "allwinner,sun4i-a10-axi-gates-clk";
179 reg = <0x01c2005c 0x4>;
181 clock-output-names = "axi_dram";
184 nand_clk: clk@01c20080 {
186 compatible = "allwinner,sun4i-a10-mod0-clk";
187 reg = <0x01c20080 0x4>;
188 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
189 clock-output-names = "nand";
192 ms_clk: clk@01c20084 {
194 compatible = "allwinner,sun4i-a10-mod0-clk";
195 reg = <0x01c20084 0x4>;
196 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
197 clock-output-names = "ms";
200 mmc0_clk: clk@01c20088 {
202 compatible = "allwinner,sun4i-a10-mmc-clk";
203 reg = <0x01c20088 0x4>;
204 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
205 clock-output-names = "mmc0",
210 mmc1_clk: clk@01c2008c {
212 compatible = "allwinner,sun4i-a10-mmc-clk";
213 reg = <0x01c2008c 0x4>;
214 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
215 clock-output-names = "mmc1",
220 mmc2_clk: clk@01c20090 {
222 compatible = "allwinner,sun4i-a10-mmc-clk";
223 reg = <0x01c20090 0x4>;
224 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
225 clock-output-names = "mmc2",
230 ts_clk: clk@01c20098 {
232 compatible = "allwinner,sun4i-a10-mod0-clk";
233 reg = <0x01c20098 0x4>;
234 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
235 clock-output-names = "ts";
238 ss_clk: clk@01c2009c {
240 compatible = "allwinner,sun4i-a10-mod0-clk";
241 reg = <0x01c2009c 0x4>;
242 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
243 clock-output-names = "ss";
246 spi0_clk: clk@01c200a0 {
248 compatible = "allwinner,sun4i-a10-mod0-clk";
249 reg = <0x01c200a0 0x4>;
250 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
251 clock-output-names = "spi0";
254 spi1_clk: clk@01c200a4 {
256 compatible = "allwinner,sun4i-a10-mod0-clk";
257 reg = <0x01c200a4 0x4>;
258 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
259 clock-output-names = "spi1";
262 spi2_clk: clk@01c200a8 {
264 compatible = "allwinner,sun4i-a10-mod0-clk";
265 reg = <0x01c200a8 0x4>;
266 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
267 clock-output-names = "spi2";
270 ir0_clk: clk@01c200b0 {
272 compatible = "allwinner,sun4i-a10-mod0-clk";
273 reg = <0x01c200b0 0x4>;
274 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
275 clock-output-names = "ir0";
278 usb_clk: clk@01c200cc {
281 compatible = "allwinner,sun5i-a13-usb-clk";
282 reg = <0x01c200cc 0x4>;
284 clock-output-names = "usb_ohci0", "usb_phy";
287 mbus_clk: clk@01c2015c {
289 compatible = "allwinner,sun5i-a13-mbus-clk";
290 reg = <0x01c2015c 0x4>;
291 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
292 clock-output-names = "mbus";
297 * Note we use the address where the mmio registers start, not where
298 * the SRAM blocks start, this cannot be changed because that would be
299 * a devicetree ABI change.
302 compatible = "simple-bus";
303 #address-cells = <1>;
308 compatible = "allwinner,sun4i-a10-sram";
309 reg = <0x00000000 0x4000>;
310 allwinner,sram-name = "A1";
314 compatible = "allwinner,sun4i-a10-sram";
315 reg = <0x00004000 0x4000>;
316 allwinner,sram-name = "A2";
320 compatible = "allwinner,sun4i-a10-sram";
321 reg = <0x00008000 0x4000>;
322 allwinner,sram-name = "A3-A4";
326 compatible = "allwinner,sun4i-a10-sram";
327 reg = <0x00010000 0x1000>;
328 allwinner,sram-name = "D";
331 sram-controller@01c00000 {
332 compatible = "allwinner,sun4i-a10-sram-controller";
333 reg = <0x01c00000 0x30>;
336 dma: dma-controller@01c02000 {
337 compatible = "allwinner,sun4i-a10-dma";
338 reg = <0x01c02000 0x1000>;
340 clocks = <&ahb_gates 6>;
345 compatible = "allwinner,sun4i-a10-spi";
346 reg = <0x01c05000 0x1000>;
348 clocks = <&ahb_gates 20>, <&spi0_clk>;
349 clock-names = "ahb", "mod";
350 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
351 <&dma SUN4I_DMA_DEDICATED 26>;
352 dma-names = "rx", "tx";
354 #address-cells = <1>;
359 compatible = "allwinner,sun4i-a10-spi";
360 reg = <0x01c06000 0x1000>;
362 clocks = <&ahb_gates 21>, <&spi1_clk>;
363 clock-names = "ahb", "mod";
364 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
365 <&dma SUN4I_DMA_DEDICATED 8>;
366 dma-names = "rx", "tx";
368 #address-cells = <1>;
373 compatible = "allwinner,sun5i-a13-mmc";
374 reg = <0x01c0f000 0x1000>;
375 clocks = <&ahb_gates 8>,
385 #address-cells = <1>;
390 compatible = "allwinner,sun5i-a13-mmc";
391 reg = <0x01c10000 0x1000>;
392 clocks = <&ahb_gates 9>,
402 #address-cells = <1>;
407 compatible = "allwinner,sun5i-a13-mmc";
408 reg = <0x01c11000 0x1000>;
409 clocks = <&ahb_gates 10>,
419 #address-cells = <1>;
423 usbphy: phy@01c13400 {
425 compatible = "allwinner,sun5i-a13-usb-phy";
426 reg = <0x01c13400 0x10 0x01c14800 0x4>;
427 reg-names = "phy_ctrl", "pmu1";
428 clocks = <&usb_clk 8>;
429 clock-names = "usb_phy";
430 resets = <&usb_clk 0>, <&usb_clk 1>;
431 reset-names = "usb0_reset", "usb1_reset";
435 ehci0: usb@01c14000 {
436 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
437 reg = <0x01c14000 0x100>;
439 clocks = <&ahb_gates 1>;
445 ohci0: usb@01c14400 {
446 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
447 reg = <0x01c14400 0x100>;
449 clocks = <&usb_clk 6>, <&ahb_gates 2>;
456 compatible = "allwinner,sun4i-a10-spi";
457 reg = <0x01c17000 0x1000>;
459 clocks = <&ahb_gates 22>, <&spi2_clk>;
460 clock-names = "ahb", "mod";
461 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
462 <&dma SUN4I_DMA_DEDICATED 28>;
463 dma-names = "rx", "tx";
465 #address-cells = <1>;
469 intc: interrupt-controller@01c20400 {
470 compatible = "allwinner,sun4i-a10-ic";
471 reg = <0x01c20400 0x400>;
472 interrupt-controller;
473 #interrupt-cells = <1>;
476 pio: pinctrl@01c20800 {
477 reg = <0x01c20800 0x400>;
479 clocks = <&apb0_gates 5>;
481 interrupt-controller;
482 #interrupt-cells = <2>;
486 i2c0_pins_a: i2c0@0 {
487 allwinner,pins = "PB0", "PB1";
488 allwinner,function = "i2c0";
489 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
490 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
493 i2c1_pins_a: i2c1@0 {
494 allwinner,pins = "PB15", "PB16";
495 allwinner,function = "i2c1";
496 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
497 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
500 i2c2_pins_a: i2c2@0 {
501 allwinner,pins = "PB17", "PB18";
502 allwinner,function = "i2c2";
503 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
504 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
507 mmc0_pins_a: mmc0@0 {
508 allwinner,pins = "PF0", "PF1", "PF2", "PF3",
510 allwinner,function = "mmc0";
511 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
512 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
515 mmc2_pins_a: mmc2@0 {
516 allwinner,pins = "PC6", "PC7", "PC8", "PC9",
517 "PC10", "PC11", "PC12", "PC13",
519 allwinner,function = "mmc2";
520 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
521 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
526 compatible = "allwinner,sun4i-a10-timer";
527 reg = <0x01c20c00 0x90>;
532 wdt: watchdog@01c20c90 {
533 compatible = "allwinner,sun4i-a10-wdt";
534 reg = <0x01c20c90 0x10>;
537 lradc: lradc@01c22800 {
538 compatible = "allwinner,sun4i-a10-lradc-keys";
539 reg = <0x01c22800 0x100>;
544 sid: eeprom@01c23800 {
545 compatible = "allwinner,sun4i-a10-sid";
546 reg = <0x01c23800 0x10>;
550 compatible = "allwinner,sun5i-a13-ts";
551 reg = <0x01c25000 0x100>;
553 #thermal-sensor-cells = <0>;
556 uart1: serial@01c28400 {
557 compatible = "snps,dw-apb-uart";
558 reg = <0x01c28400 0x400>;
562 clocks = <&apb1_gates 17>;
566 uart3: serial@01c28c00 {
567 compatible = "snps,dw-apb-uart";
568 reg = <0x01c28c00 0x400>;
572 clocks = <&apb1_gates 19>;
577 compatible = "allwinner,sun4i-a10-i2c";
578 reg = <0x01c2ac00 0x400>;
580 clocks = <&apb1_gates 0>;
582 #address-cells = <1>;
587 compatible = "allwinner,sun4i-a10-i2c";
588 reg = <0x01c2b000 0x400>;
590 clocks = <&apb1_gates 1>;
592 #address-cells = <1>;
597 compatible = "allwinner,sun4i-a10-i2c";
598 reg = <0x01c2b400 0x400>;
600 clocks = <&apb1_gates 2>;
602 #address-cells = <1>;
607 compatible = "allwinner,sun5i-a13-hstimer";
608 reg = <0x01c60000 0x1000>;
609 interrupts = <82>, <83>;
610 clocks = <&ahb_gates 28>;