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/clock/sun5i-ccu.h>
48 #include <dt-bindings/dma/sun4i-a10.h>
49 #include <dt-bindings/reset/sun5i-ccu.h>
52 interrupt-parent = <&intc>;
60 compatible = "arm,cortex-a8";
62 clocks = <&ccu CLK_CPU>;
72 compatible = "allwinner,simple-framebuffer",
74 allwinner,pipeline = "de_be0-lcd0";
75 clocks = <&ccu CLK_AHB_LCD>, <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
76 <&ccu CLK_TCON_CH0>, <&ccu CLK_DRAM_DE_BE>;
81 compatible = "allwinner,simple-framebuffer",
83 allwinner,pipeline = "de_be0-lcd0-tve0";
84 clocks = <&ccu CLK_AHB_TVE>, <&ccu CLK_AHB_LCD>,
85 <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
86 <&ccu CLK_TCON_CH1>, <&ccu CLK_DRAM_DE_BE>;
98 compatible = "fixed-clock";
99 clock-frequency = <24000000>;
100 clock-output-names = "osc24M";
105 compatible = "fixed-clock";
106 clock-frequency = <32768>;
107 clock-output-names = "osc32k";
112 compatible = "simple-bus";
113 #address-cells = <1>;
117 system-control@1c00000 {
118 compatible = "allwinner,sun5i-a13-system-control";
119 reg = <0x01c00000 0x30>;
120 #address-cells = <1>;
125 compatible = "mmio-sram";
126 reg = <0x00000000 0xc000>;
127 #address-cells = <1>;
129 ranges = <0 0x00000000 0xc000>;
131 emac_sram: sram-section@8000 {
132 compatible = "allwinner,sun5i-a13-sram-a3-a4",
133 "allwinner,sun4i-a10-sram-a3-a4";
134 reg = <0x8000 0x4000>;
140 compatible = "mmio-sram";
141 reg = <0x00010000 0x1000>;
142 #address-cells = <1>;
144 ranges = <0 0x00010000 0x1000>;
146 otg_sram: sram-section@0 {
147 compatible = "allwinner,sun5i-a13-sram-d",
148 "allwinner,sun4i-a10-sram-d";
149 reg = <0x0000 0x1000>;
154 sram_c: sram@1d00000 {
155 compatible = "mmio-sram";
156 reg = <0x01d00000 0xd0000>;
157 #address-cells = <1>;
159 ranges = <0 0x01d00000 0xd0000>;
161 ve_sram: sram-section@0 {
162 compatible = "allwinner,sun5i-a13-sram-c1",
163 "allwinner,sun4i-a10-sram-c1";
164 reg = <0x000000 0x80000>;
169 dma: dma-controller@1c02000 {
170 compatible = "allwinner,sun4i-a10-dma";
171 reg = <0x01c02000 0x1000>;
173 clocks = <&ccu CLK_AHB_DMA>;
178 compatible = "allwinner,sun4i-a10-nand";
179 reg = <0x01c03000 0x1000>;
181 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
182 clock-names = "ahb", "mod";
183 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
186 #address-cells = <1>;
191 compatible = "allwinner,sun4i-a10-spi";
192 reg = <0x01c05000 0x1000>;
194 clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
195 clock-names = "ahb", "mod";
196 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
197 <&dma SUN4I_DMA_DEDICATED 26>;
198 dma-names = "rx", "tx";
200 #address-cells = <1>;
205 compatible = "allwinner,sun4i-a10-spi";
206 reg = <0x01c06000 0x1000>;
208 clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
209 clock-names = "ahb", "mod";
210 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
211 <&dma SUN4I_DMA_DEDICATED 8>;
212 dma-names = "rx", "tx";
214 #address-cells = <1>;
218 tve0: tv-encoder@1c0a000 {
219 compatible = "allwinner,sun4i-a10-tv-encoder";
220 reg = <0x01c0a000 0x1000>;
221 clocks = <&ccu CLK_AHB_TVE>;
222 resets = <&ccu RST_TVE>;
226 #address-cells = <1>;
229 tve0_in_tcon0: endpoint@0 {
231 remote-endpoint = <&tcon0_out_tve0>;
236 emac: ethernet@1c0b000 {
237 compatible = "allwinner,sun4i-a10-emac";
238 reg = <0x01c0b000 0x1000>;
240 clocks = <&ccu CLK_AHB_EMAC>;
241 allwinner,sram = <&emac_sram 1>;
246 compatible = "allwinner,sun4i-a10-mdio";
247 reg = <0x01c0b080 0x14>;
249 #address-cells = <1>;
253 tcon0: lcd-controller@1c0c000 {
254 compatible = "allwinner,sun5i-a13-tcon";
255 reg = <0x01c0c000 0x1000>;
257 resets = <&ccu RST_LCD>;
259 clocks = <&ccu CLK_AHB_LCD>,
265 clock-output-names = "tcon-pixel-clock";
269 #address-cells = <1>;
273 #address-cells = <1>;
277 tcon0_in_be0: endpoint@0 {
279 remote-endpoint = <&be0_out_tcon0>;
284 #address-cells = <1>;
288 tcon0_out_tve0: endpoint@1 {
290 remote-endpoint = <&tve0_in_tcon0>;
291 allwinner,tcon-channel = <1>;
298 compatible = "allwinner,sun5i-a13-mmc";
299 reg = <0x01c0f000 0x1000>;
300 clocks = <&ccu CLK_AHB_MMC0>, <&ccu CLK_MMC0>;
301 clock-names = "ahb", "mmc";
304 #address-cells = <1>;
309 compatible = "allwinner,sun5i-a13-mmc";
310 reg = <0x01c10000 0x1000>;
311 clocks = <&ccu CLK_AHB_MMC1>, <&ccu CLK_MMC1>;
312 clock-names = "ahb", "mmc";
315 #address-cells = <1>;
320 compatible = "allwinner,sun5i-a13-mmc";
321 reg = <0x01c11000 0x1000>;
322 clocks = <&ccu CLK_AHB_MMC2>, <&ccu CLK_MMC2>;
323 clock-names = "ahb", "mmc";
326 #address-cells = <1>;
330 usb_otg: usb@1c13000 {
331 compatible = "allwinner,sun4i-a10-musb";
332 reg = <0x01c13000 0x0400>;
333 clocks = <&ccu CLK_AHB_OTG>;
335 interrupt-names = "mc";
338 extcon = <&usbphy 0>;
339 allwinner,sram = <&otg_sram 1>;
343 usbphy: phy@1c13400 {
345 compatible = "allwinner,sun5i-a13-usb-phy";
346 reg = <0x01c13400 0x10 0x01c14800 0x4>;
347 reg-names = "phy_ctrl", "pmu1";
348 clocks = <&ccu CLK_USB_PHY0>;
349 clock-names = "usb_phy";
350 resets = <&ccu RST_USB_PHY0>, <&ccu RST_USB_PHY1>;
351 reset-names = "usb0_reset", "usb1_reset";
356 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
357 reg = <0x01c14000 0x100>;
359 clocks = <&ccu CLK_AHB_EHCI>;
366 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
367 reg = <0x01c14400 0x100>;
369 clocks = <&ccu CLK_USB_OHCI>, <&ccu CLK_AHB_OHCI>;
375 crypto: crypto-engine@1c15000 {
376 compatible = "allwinner,sun5i-a13-crypto",
377 "allwinner,sun4i-a10-crypto";
378 reg = <0x01c15000 0x1000>;
380 clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
381 clock-names = "ahb", "mod";
385 compatible = "allwinner,sun4i-a10-spi";
386 reg = <0x01c17000 0x1000>;
388 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
389 clock-names = "ahb", "mod";
390 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
391 <&dma SUN4I_DMA_DEDICATED 28>;
392 dma-names = "rx", "tx";
394 #address-cells = <1>;
399 reg = <0x01c20000 0x400>;
400 clocks = <&osc24M>, <&osc32k>;
401 clock-names = "hosc", "losc";
406 intc: interrupt-controller@1c20400 {
407 compatible = "allwinner,sun4i-a10-ic";
408 reg = <0x01c20400 0x400>;
409 interrupt-controller;
410 #interrupt-cells = <1>;
413 pio: pinctrl@1c20800 {
414 reg = <0x01c20800 0x400>;
416 clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
417 clock-names = "apb", "hosc", "losc";
419 interrupt-controller;
420 #interrupt-cells = <3>;
423 emac_pins_a: emac0@0 {
424 pins = "PD6", "PD7", "PD10",
425 "PD11", "PD12", "PD13", "PD14",
426 "PD15", "PD18", "PD19", "PD20",
427 "PD21", "PD22", "PD23", "PD24",
428 "PD25", "PD26", "PD27";
432 i2c0_pins_a: i2c0@0 {
437 i2c1_pins_a: i2c1@0 {
438 pins = "PB15", "PB16";
442 i2c2_pins_a: i2c2@0 {
443 pins = "PB17", "PB18";
447 ir0_rx_pins_a: ir0@0 {
452 lcd_rgb565_pins: lcd_rgb565@0 {
453 pins = "PD3", "PD4", "PD5", "PD6", "PD7",
454 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
455 "PD19", "PD20", "PD21", "PD22", "PD23",
456 "PD24", "PD25", "PD26", "PD27";
460 lcd_rgb666_pins: lcd_rgb666@0 {
461 pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
462 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
463 "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
464 "PD24", "PD25", "PD26", "PD27";
468 mmc0_pins_a: mmc0@0 {
469 pins = "PF0", "PF1", "PF2", "PF3",
472 drive-strength = <30>;
476 mmc2_pins_a: mmc2@0 {
477 pins = "PC6", "PC7", "PC8", "PC9",
478 "PC10", "PC11", "PC12", "PC13",
481 drive-strength = <30>;
485 mmc2_4bit_pins_a: mmc2-4bit@0 {
486 pins = "PC6", "PC7", "PC8", "PC9",
489 drive-strength = <30>;
493 nand_pins_a: nand-base0@0 {
494 pins = "PC0", "PC1", "PC2",
495 "PC5", "PC8", "PC9", "PC10",
496 "PC11", "PC12", "PC13", "PC14",
501 nand_cs0_pins_a: nand-cs@0 {
506 nand_rb0_pins_a: nand-rb@0 {
511 spi2_pins_a: spi2@0 {
512 pins = "PE1", "PE2", "PE3";
516 spi2_cs0_pins_a: spi2-cs0@0 {
521 uart1_pins_a: uart1@0 {
522 pins = "PE10", "PE11";
526 uart1_pins_b: uart1@1 {
531 uart2_pins_a: uart2@0 {
536 uart2_cts_rts_pins_a: uart2-cts-rts@0 {
541 uart3_pins_a: uart3@0 {
542 pins = "PG9", "PG10";
546 uart3_cts_rts_pins_a: uart3-cts-rts@0 {
547 pins = "PG11", "PG12";
558 compatible = "allwinner,sun4i-a10-timer";
559 reg = <0x01c20c00 0x90>;
561 clocks = <&ccu CLK_HOSC>;
564 wdt: watchdog@1c20c90 {
565 compatible = "allwinner,sun4i-a10-wdt";
566 reg = <0x01c20c90 0x10>;
570 compatible = "allwinner,sun4i-a10-ir";
571 clocks = <&ccu CLK_APB0_IR>, <&ccu CLK_IR>;
572 clock-names = "apb", "ir";
574 reg = <0x01c21800 0x40>;
578 lradc: lradc@1c22800 {
579 compatible = "allwinner,sun4i-a10-lradc-keys";
580 reg = <0x01c22800 0x100>;
585 codec: codec@1c22c00 {
586 #sound-dai-cells = <0>;
587 compatible = "allwinner,sun4i-a10-codec";
588 reg = <0x01c22c00 0x40>;
590 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
591 clock-names = "apb", "codec";
592 dmas = <&dma SUN4I_DMA_NORMAL 19>,
593 <&dma SUN4I_DMA_NORMAL 19>;
594 dma-names = "rx", "tx";
598 sid: eeprom@1c23800 {
599 compatible = "allwinner,sun4i-a10-sid";
600 reg = <0x01c23800 0x10>;
604 compatible = "allwinner,sun5i-a13-ts";
605 reg = <0x01c25000 0x100>;
607 #thermal-sensor-cells = <0>;
610 uart0: serial@1c28000 {
611 compatible = "snps,dw-apb-uart";
612 reg = <0x01c28000 0x400>;
616 clocks = <&ccu CLK_APB1_UART0>;
620 uart1: serial@1c28400 {
621 compatible = "snps,dw-apb-uart";
622 reg = <0x01c28400 0x400>;
626 clocks = <&ccu CLK_APB1_UART1>;
630 uart2: serial@1c28800 {
631 compatible = "snps,dw-apb-uart";
632 reg = <0x01c28800 0x400>;
636 clocks = <&ccu CLK_APB1_UART2>;
640 uart3: serial@1c28c00 {
641 compatible = "snps,dw-apb-uart";
642 reg = <0x01c28c00 0x400>;
646 clocks = <&ccu CLK_APB1_UART3>;
651 compatible = "allwinner,sun4i-a10-i2c";
652 reg = <0x01c2ac00 0x400>;
654 clocks = <&ccu CLK_APB1_I2C0>;
656 #address-cells = <1>;
661 compatible = "allwinner,sun4i-a10-i2c";
662 reg = <0x01c2b000 0x400>;
664 clocks = <&ccu CLK_APB1_I2C1>;
666 #address-cells = <1>;
671 compatible = "allwinner,sun4i-a10-i2c";
672 reg = <0x01c2b400 0x400>;
674 clocks = <&ccu CLK_APB1_I2C2>;
676 #address-cells = <1>;
681 compatible = "allwinner,sun5i-a13-hstimer";
682 reg = <0x01c60000 0x1000>;
683 interrupts = <82>, <83>;
684 clocks = <&ccu CLK_AHB_HSTIMER>;
687 fe0: display-frontend@1e00000 {
688 compatible = "allwinner,sun5i-a13-display-frontend";
689 reg = <0x01e00000 0x20000>;
691 clocks = <&ccu CLK_DE_FE>, <&ccu CLK_DE_FE>,
692 <&ccu CLK_DRAM_DE_FE>;
693 clock-names = "ahb", "mod",
695 resets = <&ccu RST_DE_FE>;
699 #address-cells = <1>;
703 #address-cells = <1>;
707 fe0_out_be0: endpoint@0 {
709 remote-endpoint = <&be0_in_fe0>;
715 be0: display-backend@1e60000 {
716 compatible = "allwinner,sun5i-a13-display-backend";
717 reg = <0x01e60000 0x10000>;
719 clocks = <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
720 <&ccu CLK_DRAM_DE_BE>;
721 clock-names = "ahb", "mod",
723 resets = <&ccu RST_DE_BE>;
726 assigned-clocks = <&ccu CLK_DE_BE>;
727 assigned-clock-rates = <300000000>;
730 #address-cells = <1>;
734 #address-cells = <1>;
738 be0_in_fe0: endpoint@0 {
740 remote-endpoint = <&fe0_out_be0>;
745 #address-cells = <1>;
749 be0_out_tcon0: endpoint@0 {
751 remote-endpoint = <&tcon0_in_be0>;