2 * Copyright 2013 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.
21 * You should have received a copy of the GNU General Public
22 * License along with this library; if not, write to the Free
23 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
50 #include "skeleton.dtsi"
52 #include <dt-bindings/dma/sun4i-a10.h>
53 #include <dt-bindings/pinctrl/sun4i-a10.h>
56 interrupt-parent = <&intc>;
68 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
69 allwinner,pipeline = "de_be0-lcd0-hdmi";
70 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
76 compatible = "allwinner,simple-framebuffer",
78 allwinner,pipeline = "de_be0-lcd0";
79 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
86 compatible = "arm,cortex-a8";
91 reg = <0x40000000 0x20000000>;
100 * This is a dummy clock, to be used as placeholder on
101 * other mux clocks when a specific parent clock is not
102 * yet implemented. It should be dropped when the driver
107 compatible = "fixed-clock";
108 clock-frequency = <0>;
111 osc24M: clk@01c20050 {
113 compatible = "allwinner,sun4i-a10-osc-clk";
114 reg = <0x01c20050 0x4>;
115 clock-frequency = <24000000>;
116 clock-output-names = "osc24M";
121 compatible = "fixed-clock";
122 clock-frequency = <32768>;
123 clock-output-names = "osc32k";
128 compatible = "allwinner,sun4i-a10-pll1-clk";
129 reg = <0x01c20000 0x4>;
131 clock-output-names = "pll1";
136 compatible = "allwinner,sun4i-a10-pll1-clk";
137 reg = <0x01c20018 0x4>;
139 clock-output-names = "pll4";
144 compatible = "allwinner,sun4i-a10-pll5-clk";
145 reg = <0x01c20020 0x4>;
147 clock-output-names = "pll5_ddr", "pll5_other";
152 compatible = "allwinner,sun4i-a10-pll6-clk";
153 reg = <0x01c20028 0x4>;
155 clock-output-names = "pll6_sata", "pll6_other", "pll6";
161 compatible = "allwinner,sun4i-a10-cpu-clk";
162 reg = <0x01c20054 0x4>;
163 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
164 clock-output-names = "cpu";
169 compatible = "allwinner,sun4i-a10-axi-clk";
170 reg = <0x01c20054 0x4>;
172 clock-output-names = "axi";
175 axi_gates: clk@01c2005c {
177 compatible = "allwinner,sun4i-a10-axi-gates-clk";
178 reg = <0x01c2005c 0x4>;
180 clock-output-names = "axi_dram";
185 compatible = "allwinner,sun4i-a10-ahb-clk";
186 reg = <0x01c20054 0x4>;
188 clock-output-names = "ahb";
191 ahb_gates: clk@01c20060 {
193 compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
194 reg = <0x01c20060 0x8>;
196 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
197 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
198 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
199 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
200 "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve",
201 "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi",
202 "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400";
205 apb0: apb0@01c20054 {
207 compatible = "allwinner,sun4i-a10-apb0-clk";
208 reg = <0x01c20054 0x4>;
210 clock-output-names = "apb0";
213 apb0_gates: clk@01c20068 {
215 compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
216 reg = <0x01c20068 0x4>;
218 clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio",
219 "apb0_ir", "apb0_keypad";
224 compatible = "allwinner,sun4i-a10-apb1-clk";
225 reg = <0x01c20058 0x4>;
226 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
227 clock-output-names = "apb1";
230 apb1_gates: clk@01c2006c {
232 compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
233 reg = <0x01c2006c 0x4>;
235 clock-output-names = "apb1_i2c0", "apb1_i2c1",
236 "apb1_i2c2", "apb1_uart0", "apb1_uart1",
237 "apb1_uart2", "apb1_uart3";
240 nand_clk: clk@01c20080 {
242 compatible = "allwinner,sun4i-a10-mod0-clk";
243 reg = <0x01c20080 0x4>;
244 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
245 clock-output-names = "nand";
248 ms_clk: clk@01c20084 {
250 compatible = "allwinner,sun4i-a10-mod0-clk";
251 reg = <0x01c20084 0x4>;
252 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
253 clock-output-names = "ms";
256 mmc0_clk: clk@01c20088 {
258 compatible = "allwinner,sun4i-a10-mmc-clk";
259 reg = <0x01c20088 0x4>;
260 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
261 clock-output-names = "mmc0",
266 mmc1_clk: clk@01c2008c {
268 compatible = "allwinner,sun4i-a10-mmc-clk";
269 reg = <0x01c2008c 0x4>;
270 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
271 clock-output-names = "mmc1",
276 mmc2_clk: clk@01c20090 {
278 compatible = "allwinner,sun4i-a10-mmc-clk";
279 reg = <0x01c20090 0x4>;
280 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
281 clock-output-names = "mmc2",
286 ts_clk: clk@01c20098 {
288 compatible = "allwinner,sun4i-a10-mod0-clk";
289 reg = <0x01c20098 0x4>;
290 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
291 clock-output-names = "ts";
294 ss_clk: clk@01c2009c {
296 compatible = "allwinner,sun4i-a10-mod0-clk";
297 reg = <0x01c2009c 0x4>;
298 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
299 clock-output-names = "ss";
302 spi0_clk: clk@01c200a0 {
304 compatible = "allwinner,sun4i-a10-mod0-clk";
305 reg = <0x01c200a0 0x4>;
306 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
307 clock-output-names = "spi0";
310 spi1_clk: clk@01c200a4 {
312 compatible = "allwinner,sun4i-a10-mod0-clk";
313 reg = <0x01c200a4 0x4>;
314 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
315 clock-output-names = "spi1";
318 spi2_clk: clk@01c200a8 {
320 compatible = "allwinner,sun4i-a10-mod0-clk";
321 reg = <0x01c200a8 0x4>;
322 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
323 clock-output-names = "spi2";
326 ir0_clk: clk@01c200b0 {
328 compatible = "allwinner,sun4i-a10-mod0-clk";
329 reg = <0x01c200b0 0x4>;
330 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
331 clock-output-names = "ir0";
334 usb_clk: clk@01c200cc {
337 compatible = "allwinner,sun5i-a13-usb-clk";
338 reg = <0x01c200cc 0x4>;
340 clock-output-names = "usb_ohci0", "usb_phy";
343 mbus_clk: clk@01c2015c {
345 compatible = "allwinner,sun5i-a13-mbus-clk";
346 reg = <0x01c2015c 0x4>;
347 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
348 clock-output-names = "mbus";
353 compatible = "simple-bus";
354 #address-cells = <1>;
358 dma: dma-controller@01c02000 {
359 compatible = "allwinner,sun4i-a10-dma";
360 reg = <0x01c02000 0x1000>;
362 clocks = <&ahb_gates 6>;
367 compatible = "allwinner,sun4i-a10-spi";
368 reg = <0x01c05000 0x1000>;
370 clocks = <&ahb_gates 20>, <&spi0_clk>;
371 clock-names = "ahb", "mod";
372 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
373 <&dma SUN4I_DMA_DEDICATED 26>;
374 dma-names = "rx", "tx";
376 #address-cells = <1>;
381 compatible = "allwinner,sun4i-a10-spi";
382 reg = <0x01c06000 0x1000>;
384 clocks = <&ahb_gates 21>, <&spi1_clk>;
385 clock-names = "ahb", "mod";
386 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
387 <&dma SUN4I_DMA_DEDICATED 8>;
388 dma-names = "rx", "tx";
390 #address-cells = <1>;
394 emac: ethernet@01c0b000 {
395 compatible = "allwinner,sun4i-a10-emac";
396 reg = <0x01c0b000 0x1000>;
398 clocks = <&ahb_gates 17>;
402 mdio: mdio@01c0b080 {
403 compatible = "allwinner,sun4i-a10-mdio";
404 reg = <0x01c0b080 0x14>;
406 #address-cells = <1>;
411 compatible = "allwinner,sun5i-a13-mmc";
412 reg = <0x01c0f000 0x1000>;
413 clocks = <&ahb_gates 8>,
426 compatible = "allwinner,sun5i-a13-mmc";
427 reg = <0x01c10000 0x1000>;
428 clocks = <&ahb_gates 9>,
441 compatible = "allwinner,sun5i-a13-mmc";
442 reg = <0x01c11000 0x1000>;
443 clocks = <&ahb_gates 10>,
455 usbphy: phy@01c13400 {
457 compatible = "allwinner,sun5i-a13-usb-phy";
458 reg = <0x01c13400 0x10 0x01c14800 0x4>;
459 reg-names = "phy_ctrl", "pmu1";
460 clocks = <&usb_clk 8>;
461 clock-names = "usb_phy";
462 resets = <&usb_clk 0>, <&usb_clk 1>;
463 reset-names = "usb0_reset", "usb1_reset";
467 ehci0: usb@01c14000 {
468 compatible = "allwinner,sun5i-a10s-ehci", "generic-ehci";
469 reg = <0x01c14000 0x100>;
471 clocks = <&ahb_gates 1>;
477 ohci0: usb@01c14400 {
478 compatible = "allwinner,sun5i-a10s-ohci", "generic-ohci";
479 reg = <0x01c14400 0x100>;
481 clocks = <&usb_clk 6>, <&ahb_gates 2>;
488 compatible = "allwinner,sun4i-a10-spi";
489 reg = <0x01c17000 0x1000>;
491 clocks = <&ahb_gates 22>, <&spi2_clk>;
492 clock-names = "ahb", "mod";
493 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
494 <&dma SUN4I_DMA_DEDICATED 28>;
495 dma-names = "rx", "tx";
497 #address-cells = <1>;
501 intc: interrupt-controller@01c20400 {
502 compatible = "allwinner,sun4i-a10-ic";
503 reg = <0x01c20400 0x400>;
504 interrupt-controller;
505 #interrupt-cells = <1>;
508 pio: pinctrl@01c20800 {
509 compatible = "allwinner,sun5i-a10s-pinctrl";
510 reg = <0x01c20800 0x400>;
512 clocks = <&apb0_gates 5>;
514 interrupt-controller;
515 #interrupt-cells = <2>;
519 uart0_pins_a: uart0@0 {
520 allwinner,pins = "PB19", "PB20";
521 allwinner,function = "uart0";
522 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
523 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
526 uart2_pins_a: uart2@0 {
527 allwinner,pins = "PC18", "PC19";
528 allwinner,function = "uart2";
529 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
530 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
533 uart3_pins_a: uart3@0 {
534 allwinner,pins = "PG9", "PG10";
535 allwinner,function = "uart3";
536 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
537 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
540 emac_pins_a: emac0@0 {
541 allwinner,pins = "PA0", "PA1", "PA2",
542 "PA3", "PA4", "PA5", "PA6",
543 "PA7", "PA8", "PA9", "PA10",
544 "PA11", "PA12", "PA13", "PA14",
546 allwinner,function = "emac";
547 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
548 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
551 i2c0_pins_a: i2c0@0 {
552 allwinner,pins = "PB0", "PB1";
553 allwinner,function = "i2c0";
554 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
555 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
558 i2c1_pins_a: i2c1@0 {
559 allwinner,pins = "PB15", "PB16";
560 allwinner,function = "i2c1";
561 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
562 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
565 i2c2_pins_a: i2c2@0 {
566 allwinner,pins = "PB17", "PB18";
567 allwinner,function = "i2c2";
568 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
569 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
572 mmc0_pins_a: mmc0@0 {
573 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
574 allwinner,function = "mmc0";
575 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
576 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
579 mmc1_pins_a: mmc1@0 {
580 allwinner,pins = "PG3","PG4","PG5","PG6","PG7","PG8";
581 allwinner,function = "mmc1";
582 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
583 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
588 compatible = "allwinner,sun4i-a10-timer";
589 reg = <0x01c20c00 0x90>;
594 wdt: watchdog@01c20c90 {
595 compatible = "allwinner,sun4i-a10-wdt";
596 reg = <0x01c20c90 0x10>;
599 lradc: lradc@01c22800 {
600 compatible = "allwinner,sun4i-a10-lradc-keys";
601 reg = <0x01c22800 0x100>;
606 sid: eeprom@01c23800 {
607 compatible = "allwinner,sun4i-a10-sid";
608 reg = <0x01c23800 0x10>;
612 compatible = "allwinner,sun4i-a10-ts";
613 reg = <0x01c25000 0x100>;
615 #thermal-sensor-cells = <0>;
618 uart0: serial@01c28000 {
619 compatible = "snps,dw-apb-uart";
620 reg = <0x01c28000 0x400>;
624 clocks = <&apb1_gates 16>;
628 uart1: serial@01c28400 {
629 compatible = "snps,dw-apb-uart";
630 reg = <0x01c28400 0x400>;
634 clocks = <&apb1_gates 17>;
638 uart2: serial@01c28800 {
639 compatible = "snps,dw-apb-uart";
640 reg = <0x01c28800 0x400>;
644 clocks = <&apb1_gates 18>;
648 uart3: serial@01c28c00 {
649 compatible = "snps,dw-apb-uart";
650 reg = <0x01c28c00 0x400>;
654 clocks = <&apb1_gates 19>;
659 #address-cells = <1>;
661 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
662 reg = <0x01c2ac00 0x400>;
664 clocks = <&apb1_gates 0>;
669 #address-cells = <1>;
671 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
672 reg = <0x01c2b000 0x400>;
674 clocks = <&apb1_gates 1>;
679 #address-cells = <1>;
681 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
682 reg = <0x01c2b400 0x400>;
684 clocks = <&apb1_gates 2>;
689 compatible = "allwinner,sun5i-a13-hstimer";
690 reg = <0x01c60000 0x1000>;
691 interrupts = <82>, <83>;
692 clocks = <&ahb_gates 28>;