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 <dt-bindings/clock/sun5i-ccu.h>
46 #include <dt-bindings/dma/sun4i-a10.h>
47 #include <dt-bindings/reset/sun5i-ccu.h>
50 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>;
80 framebuffer-lcd0-tve0 {
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 #address-cells = <1>;
116 /* Address must be kept in the lower 256 MiBs of DRAM for VE. */
118 compatible = "shared-dma-pool";
120 alloc-ranges = <0x4a000000 0x6000000>;
127 compatible = "simple-bus";
128 #address-cells = <1>;
132 system-control@1c00000 {
133 compatible = "allwinner,sun5i-a13-system-control";
134 reg = <0x01c00000 0x30>;
135 #address-cells = <1>;
140 compatible = "mmio-sram";
141 reg = <0x00000000 0xc000>;
142 #address-cells = <1>;
144 ranges = <0 0x00000000 0xc000>;
146 emac_sram: sram-section@8000 {
147 compatible = "allwinner,sun5i-a13-sram-a3-a4",
148 "allwinner,sun4i-a10-sram-a3-a4";
149 reg = <0x8000 0x4000>;
155 compatible = "mmio-sram";
156 reg = <0x00010000 0x1000>;
157 #address-cells = <1>;
159 ranges = <0 0x00010000 0x1000>;
161 otg_sram: sram-section@0 {
162 compatible = "allwinner,sun5i-a13-sram-d",
163 "allwinner,sun4i-a10-sram-d";
164 reg = <0x0000 0x1000>;
169 sram_c: sram@1d00000 {
170 compatible = "mmio-sram";
171 reg = <0x01d00000 0xd0000>;
172 #address-cells = <1>;
174 ranges = <0 0x01d00000 0xd0000>;
176 ve_sram: sram-section@0 {
177 compatible = "allwinner,sun5i-a13-sram-c1",
178 "allwinner,sun4i-a10-sram-c1";
179 reg = <0x000000 0x80000>;
184 dma: dma-controller@1c02000 {
185 compatible = "allwinner,sun4i-a10-dma";
186 reg = <0x01c02000 0x1000>;
188 clocks = <&ccu CLK_AHB_DMA>;
193 compatible = "allwinner,sun4i-a10-nand";
194 reg = <0x01c03000 0x1000>;
196 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
197 clock-names = "ahb", "mod";
198 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
201 #address-cells = <1>;
206 compatible = "allwinner,sun4i-a10-spi";
207 reg = <0x01c05000 0x1000>;
209 clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
210 clock-names = "ahb", "mod";
211 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
212 <&dma SUN4I_DMA_DEDICATED 26>;
213 dma-names = "rx", "tx";
215 #address-cells = <1>;
220 compatible = "allwinner,sun4i-a10-spi";
221 reg = <0x01c06000 0x1000>;
223 clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
224 clock-names = "ahb", "mod";
225 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
226 <&dma SUN4I_DMA_DEDICATED 8>;
227 dma-names = "rx", "tx";
229 #address-cells = <1>;
233 tve0: tv-encoder@1c0a000 {
234 compatible = "allwinner,sun4i-a10-tv-encoder";
235 reg = <0x01c0a000 0x1000>;
236 clocks = <&ccu CLK_AHB_TVE>;
237 resets = <&ccu RST_TVE>;
241 #address-cells = <1>;
244 tve0_in_tcon0: endpoint@0 {
246 remote-endpoint = <&tcon0_out_tve0>;
251 emac: ethernet@1c0b000 {
252 compatible = "allwinner,sun4i-a10-emac";
253 reg = <0x01c0b000 0x1000>;
255 clocks = <&ccu CLK_AHB_EMAC>;
256 allwinner,sram = <&emac_sram 1>;
261 compatible = "allwinner,sun4i-a10-mdio";
262 reg = <0x01c0b080 0x14>;
264 #address-cells = <1>;
268 tcon0: lcd-controller@1c0c000 {
269 compatible = "allwinner,sun5i-a13-tcon";
270 reg = <0x01c0c000 0x1000>;
272 resets = <&ccu RST_LCD>;
274 clocks = <&ccu CLK_AHB_LCD>,
280 clock-output-names = "tcon-pixel-clock";
284 #address-cells = <1>;
288 #address-cells = <1>;
292 tcon0_in_be0: endpoint@0 {
294 remote-endpoint = <&be0_out_tcon0>;
299 #address-cells = <1>;
303 tcon0_out_tve0: endpoint@1 {
305 remote-endpoint = <&tve0_in_tcon0>;
306 allwinner,tcon-channel = <1>;
312 video-codec@1c0e000 {
313 compatible = "allwinner,sun5i-a13-video-engine";
314 reg = <0x01c0e000 0x1000>;
315 clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>,
317 clock-names = "ahb", "mod", "ram";
318 resets = <&ccu RST_VE>;
320 allwinner,sram = <&ve_sram 1>;
324 compatible = "allwinner,sun5i-a13-mmc";
325 reg = <0x01c0f000 0x1000>;
326 clocks = <&ccu CLK_AHB_MMC0>, <&ccu CLK_MMC0>;
327 clock-names = "ahb", "mmc";
329 pinctrl-names = "default";
330 pinctrl-0 = <&mmc0_pins>;
332 #address-cells = <1>;
337 compatible = "allwinner,sun5i-a13-mmc";
338 reg = <0x01c10000 0x1000>;
339 clocks = <&ccu CLK_AHB_MMC1>, <&ccu CLK_MMC1>;
340 clock-names = "ahb", "mmc";
343 #address-cells = <1>;
348 compatible = "allwinner,sun5i-a13-mmc";
349 reg = <0x01c11000 0x1000>;
350 clocks = <&ccu CLK_AHB_MMC2>, <&ccu CLK_MMC2>;
351 clock-names = "ahb", "mmc";
354 #address-cells = <1>;
358 usb_otg: usb@1c13000 {
359 compatible = "allwinner,sun4i-a10-musb";
360 reg = <0x01c13000 0x0400>;
361 clocks = <&ccu CLK_AHB_OTG>;
363 interrupt-names = "mc";
366 extcon = <&usbphy 0>;
367 allwinner,sram = <&otg_sram 1>;
371 usbphy: phy@1c13400 {
373 compatible = "allwinner,sun5i-a13-usb-phy";
374 reg = <0x01c13400 0x10 0x01c14800 0x4>;
375 reg-names = "phy_ctrl", "pmu1";
376 clocks = <&ccu CLK_USB_PHY0>;
377 clock-names = "usb_phy";
378 resets = <&ccu RST_USB_PHY0>, <&ccu RST_USB_PHY1>;
379 reset-names = "usb0_reset", "usb1_reset";
384 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
385 reg = <0x01c14000 0x100>;
387 clocks = <&ccu CLK_AHB_EHCI>;
394 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
395 reg = <0x01c14400 0x100>;
397 clocks = <&ccu CLK_USB_OHCI>, <&ccu CLK_AHB_OHCI>;
403 crypto: crypto-engine@1c15000 {
404 compatible = "allwinner,sun5i-a13-crypto",
405 "allwinner,sun4i-a10-crypto";
406 reg = <0x01c15000 0x1000>;
408 clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
409 clock-names = "ahb", "mod";
413 compatible = "allwinner,sun4i-a10-spi";
414 reg = <0x01c17000 0x1000>;
416 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
417 clock-names = "ahb", "mod";
418 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
419 <&dma SUN4I_DMA_DEDICATED 28>;
420 dma-names = "rx", "tx";
422 #address-cells = <1>;
427 reg = <0x01c20000 0x400>;
428 clocks = <&osc24M>, <&osc32k>;
429 clock-names = "hosc", "losc";
434 intc: interrupt-controller@1c20400 {
435 compatible = "allwinner,sun4i-a10-ic";
436 reg = <0x01c20400 0x400>;
437 interrupt-controller;
438 #interrupt-cells = <1>;
441 pio: pinctrl@1c20800 {
442 reg = <0x01c20800 0x400>;
444 clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
445 clock-names = "apb", "hosc", "losc";
447 interrupt-controller;
448 #interrupt-cells = <3>;
451 emac_pd_pins: emac-pd-pins {
452 pins = "PD6", "PD7", "PD10",
453 "PD11", "PD12", "PD13", "PD14",
454 "PD15", "PD18", "PD19", "PD20",
455 "PD21", "PD22", "PD23", "PD24",
456 "PD25", "PD26", "PD27";
460 i2c0_pins: i2c0-pins {
465 i2c1_pins: i2c1-pins {
466 pins = "PB15", "PB16";
470 i2c2_pins: i2c2-pins {
471 pins = "PB17", "PB18";
475 ir0_rx_pin: ir0-rx-pin {
480 lcd_rgb565_pins: lcd-rgb565-pins {
481 pins = "PD3", "PD4", "PD5", "PD6", "PD7",
482 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
483 "PD19", "PD20", "PD21", "PD22", "PD23",
484 "PD24", "PD25", "PD26", "PD27";
488 lcd_rgb666_pins: lcd-rgb666-pins {
489 pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
490 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
491 "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
492 "PD24", "PD25", "PD26", "PD27";
496 mmc0_pins: mmc0-pins {
497 pins = "PF0", "PF1", "PF2", "PF3",
500 drive-strength = <30>;
504 mmc2_8bit_pins: mmc2-8bit-pins {
505 pins = "PC6", "PC7", "PC8", "PC9",
506 "PC10", "PC11", "PC12", "PC13",
509 drive-strength = <30>;
513 mmc2_4bit_pc_pins: mmc2-4bit-pc-pins {
514 pins = "PC6", "PC7", "PC8", "PC9",
517 drive-strength = <30>;
521 nand_pins: nand-pins {
522 pins = "PC0", "PC1", "PC2",
523 "PC5", "PC8", "PC9", "PC10",
524 "PC11", "PC12", "PC13", "PC14",
529 nand_cs0_pin: nand-cs0-pin {
534 nand_rb0_pin: nand-rb0-pin {
539 spi2_pe_pins: spi2-pe-pins {
540 pins = "PE1", "PE2", "PE3";
544 spi2_cs0_pe_pin: spi2-cs0-pe-pin {
549 uart1_pe_pins: uart1-pe-pins {
550 pins = "PE10", "PE11";
554 uart1_pg_pins: uart1-pg-pins {
559 uart2_pd_pins: uart2-pd-pins {
564 uart2_cts_rts_pd_pins: uart2-cts-rts-pd-pins {
569 uart3_pg_pins: uart3-pg-pins {
570 pins = "PG9", "PG10";
574 uart3_cts_rts_pg_pins: uart3-cts-rts-pg-pins {
575 pins = "PG11", "PG12";
586 compatible = "allwinner,sun4i-a10-timer";
587 reg = <0x01c20c00 0x90>;
589 clocks = <&ccu CLK_HOSC>;
592 wdt: watchdog@1c20c90 {
593 compatible = "allwinner,sun4i-a10-wdt";
594 reg = <0x01c20c90 0x10>;
598 compatible = "allwinner,sun4i-a10-ir";
599 clocks = <&ccu CLK_APB0_IR>, <&ccu CLK_IR>;
600 clock-names = "apb", "ir";
602 reg = <0x01c21800 0x40>;
606 lradc: lradc@1c22800 {
607 compatible = "allwinner,sun4i-a10-lradc-keys";
608 reg = <0x01c22800 0x100>;
613 codec: codec@1c22c00 {
614 #sound-dai-cells = <0>;
615 compatible = "allwinner,sun4i-a10-codec";
616 reg = <0x01c22c00 0x40>;
618 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
619 clock-names = "apb", "codec";
620 dmas = <&dma SUN4I_DMA_NORMAL 19>,
621 <&dma SUN4I_DMA_NORMAL 19>;
622 dma-names = "rx", "tx";
626 sid: eeprom@1c23800 {
627 compatible = "allwinner,sun4i-a10-sid";
628 reg = <0x01c23800 0x10>;
632 compatible = "allwinner,sun5i-a13-ts";
633 reg = <0x01c25000 0x100>;
635 #thermal-sensor-cells = <0>;
638 uart0: serial@1c28000 {
639 compatible = "snps,dw-apb-uart";
640 reg = <0x01c28000 0x400>;
644 clocks = <&ccu CLK_APB1_UART0>;
648 uart1: serial@1c28400 {
649 compatible = "snps,dw-apb-uart";
650 reg = <0x01c28400 0x400>;
654 clocks = <&ccu CLK_APB1_UART1>;
658 uart2: serial@1c28800 {
659 compatible = "snps,dw-apb-uart";
660 reg = <0x01c28800 0x400>;
664 clocks = <&ccu CLK_APB1_UART2>;
668 uart3: serial@1c28c00 {
669 compatible = "snps,dw-apb-uart";
670 reg = <0x01c28c00 0x400>;
674 clocks = <&ccu CLK_APB1_UART3>;
679 compatible = "allwinner,sun4i-a10-i2c";
680 reg = <0x01c2ac00 0x400>;
682 clocks = <&ccu CLK_APB1_I2C0>;
683 pinctrl-names = "default";
684 pinctrl-0 = <&i2c0_pins>;
686 #address-cells = <1>;
691 compatible = "allwinner,sun4i-a10-i2c";
692 reg = <0x01c2b000 0x400>;
694 clocks = <&ccu CLK_APB1_I2C1>;
695 pinctrl-names = "default";
696 pinctrl-0 = <&i2c1_pins>;
698 #address-cells = <1>;
703 compatible = "allwinner,sun4i-a10-i2c";
704 reg = <0x01c2b400 0x400>;
706 clocks = <&ccu CLK_APB1_I2C2>;
707 pinctrl-names = "default";
708 pinctrl-0 = <&i2c2_pins>;
710 #address-cells = <1>;
715 compatible = "allwinner,sun5i-a13-hstimer";
716 reg = <0x01c60000 0x1000>;
717 interrupts = <82>, <83>;
718 clocks = <&ccu CLK_AHB_HSTIMER>;
721 fe0: display-frontend@1e00000 {
722 compatible = "allwinner,sun5i-a13-display-frontend";
723 reg = <0x01e00000 0x20000>;
725 clocks = <&ccu CLK_DE_FE>, <&ccu CLK_DE_FE>,
726 <&ccu CLK_DRAM_DE_FE>;
727 clock-names = "ahb", "mod",
729 resets = <&ccu RST_DE_FE>;
733 #address-cells = <1>;
737 #address-cells = <1>;
741 fe0_out_be0: endpoint@0 {
743 remote-endpoint = <&be0_in_fe0>;
749 be0: display-backend@1e60000 {
750 compatible = "allwinner,sun5i-a13-display-backend";
751 reg = <0x01e60000 0x10000>;
753 clocks = <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
754 <&ccu CLK_DRAM_DE_BE>;
755 clock-names = "ahb", "mod",
757 resets = <&ccu RST_DE_BE>;
760 assigned-clocks = <&ccu CLK_DE_BE>;
761 assigned-clock-rates = <300000000>;
764 #address-cells = <1>;
768 #address-cells = <1>;
772 be0_in_fe0: endpoint@0 {
774 remote-endpoint = <&fe0_out_be0>;
779 #address-cells = <1>;
783 be0_out_tcon0: endpoint@0 {
785 remote-endpoint = <&tcon0_in_be0>;