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>;
133 system-control@1c00000 {
134 compatible = "allwinner,sun5i-a13-system-control";
135 reg = <0x01c00000 0x30>;
136 #address-cells = <1>;
141 compatible = "mmio-sram";
142 reg = <0x00000000 0xc000>;
143 #address-cells = <1>;
145 ranges = <0 0x00000000 0xc000>;
147 emac_sram: sram-section@8000 {
148 compatible = "allwinner,sun5i-a13-sram-a3-a4",
149 "allwinner,sun4i-a10-sram-a3-a4";
150 reg = <0x8000 0x4000>;
156 compatible = "mmio-sram";
157 reg = <0x00010000 0x1000>;
158 #address-cells = <1>;
160 ranges = <0 0x00010000 0x1000>;
162 otg_sram: sram-section@0 {
163 compatible = "allwinner,sun5i-a13-sram-d",
164 "allwinner,sun4i-a10-sram-d";
165 reg = <0x0000 0x1000>;
170 sram_c: sram@1d00000 {
171 compatible = "mmio-sram";
172 reg = <0x01d00000 0xd0000>;
173 #address-cells = <1>;
175 ranges = <0 0x01d00000 0xd0000>;
177 ve_sram: sram-section@0 {
178 compatible = "allwinner,sun5i-a13-sram-c1",
179 "allwinner,sun4i-a10-sram-c1";
180 reg = <0x000000 0x80000>;
185 mbus: dram-controller@1c01000 {
186 compatible = "allwinner,sun5i-a13-mbus";
187 reg = <0x01c01000 0x1000>;
188 clocks = <&ccu CLK_MBUS>;
189 dma-ranges = <0x00000000 0x40000000 0x20000000>;
190 #interconnect-cells = <1>;
193 dma: dma-controller@1c02000 {
194 compatible = "allwinner,sun4i-a10-dma";
195 reg = <0x01c02000 0x1000>;
197 clocks = <&ccu CLK_AHB_DMA>;
201 nfc: nand-controller@1c03000 {
202 compatible = "allwinner,sun4i-a10-nand";
203 reg = <0x01c03000 0x1000>;
205 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
206 clock-names = "ahb", "mod";
207 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
210 #address-cells = <1>;
215 compatible = "allwinner,sun4i-a10-spi";
216 reg = <0x01c05000 0x1000>;
218 clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
219 clock-names = "ahb", "mod";
220 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
221 <&dma SUN4I_DMA_DEDICATED 26>;
222 dma-names = "rx", "tx";
224 #address-cells = <1>;
229 compatible = "allwinner,sun4i-a10-spi";
230 reg = <0x01c06000 0x1000>;
232 clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
233 clock-names = "ahb", "mod";
234 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
235 <&dma SUN4I_DMA_DEDICATED 8>;
236 dma-names = "rx", "tx";
238 #address-cells = <1>;
242 tve0: tv-encoder@1c0a000 {
243 compatible = "allwinner,sun4i-a10-tv-encoder";
244 reg = <0x01c0a000 0x1000>;
245 clocks = <&ccu CLK_AHB_TVE>;
246 resets = <&ccu RST_TVE>;
251 tve0_in_tcon0: endpoint {
252 remote-endpoint = <&tcon0_out_tve0>;
257 emac: ethernet@1c0b000 {
258 compatible = "allwinner,sun4i-a10-emac";
259 reg = <0x01c0b000 0x1000>;
261 clocks = <&ccu CLK_AHB_EMAC>;
262 allwinner,sram = <&emac_sram 1>;
267 compatible = "allwinner,sun4i-a10-mdio";
268 reg = <0x01c0b080 0x14>;
270 #address-cells = <1>;
274 tcon0: lcd-controller@1c0c000 {
275 compatible = "allwinner,sun5i-a13-tcon";
276 reg = <0x01c0c000 0x1000>;
278 dmas = <&dma SUN4I_DMA_DEDICATED 14>;
279 resets = <&ccu RST_LCD>;
281 clocks = <&ccu CLK_AHB_LCD>,
287 clock-output-names = "tcon-pixel-clock";
292 #address-cells = <1>;
298 tcon0_in_be0: endpoint {
299 remote-endpoint = <&be0_out_tcon0>;
304 #address-cells = <1>;
308 tcon0_out_tve0: endpoint@1 {
310 remote-endpoint = <&tve0_in_tcon0>;
311 allwinner,tcon-channel = <1>;
317 video-codec@1c0e000 {
318 compatible = "allwinner,sun5i-a13-video-engine";
319 reg = <0x01c0e000 0x1000>;
320 clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>,
322 clock-names = "ahb", "mod", "ram";
323 resets = <&ccu RST_VE>;
325 allwinner,sram = <&ve_sram 1>;
329 compatible = "allwinner,sun5i-a13-mmc";
330 reg = <0x01c0f000 0x1000>;
331 clocks = <&ccu CLK_AHB_MMC0>, <&ccu CLK_MMC0>;
332 clock-names = "ahb", "mmc";
334 pinctrl-names = "default";
335 pinctrl-0 = <&mmc0_pins>;
337 #address-cells = <1>;
342 compatible = "allwinner,sun5i-a13-mmc";
343 reg = <0x01c10000 0x1000>;
344 clocks = <&ccu CLK_AHB_MMC1>, <&ccu CLK_MMC1>;
345 clock-names = "ahb", "mmc";
348 #address-cells = <1>;
353 compatible = "allwinner,sun5i-a13-mmc";
354 reg = <0x01c11000 0x1000>;
355 clocks = <&ccu CLK_AHB_MMC2>, <&ccu CLK_MMC2>;
356 clock-names = "ahb", "mmc";
359 #address-cells = <1>;
363 usb_otg: usb@1c13000 {
364 compatible = "allwinner,sun4i-a10-musb";
365 reg = <0x01c13000 0x0400>;
366 clocks = <&ccu CLK_AHB_OTG>;
368 interrupt-names = "mc";
371 extcon = <&usbphy 0>;
372 allwinner,sram = <&otg_sram 1>;
377 usbphy: phy@1c13400 {
379 compatible = "allwinner,sun5i-a13-usb-phy";
380 reg = <0x01c13400 0x10>, <0x01c14800 0x4>;
381 reg-names = "phy_ctrl", "pmu1";
382 clocks = <&ccu CLK_USB_PHY0>;
383 clock-names = "usb_phy";
384 resets = <&ccu RST_USB_PHY0>, <&ccu RST_USB_PHY1>;
385 reset-names = "usb0_reset", "usb1_reset";
390 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
391 reg = <0x01c14000 0x100>;
393 clocks = <&ccu CLK_AHB_EHCI>;
400 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
401 reg = <0x01c14400 0x100>;
403 clocks = <&ccu CLK_USB_OHCI>, <&ccu CLK_AHB_OHCI>;
409 crypto: crypto-engine@1c15000 {
410 compatible = "allwinner,sun5i-a13-crypto",
411 "allwinner,sun4i-a10-crypto";
412 reg = <0x01c15000 0x1000>;
414 clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
415 clock-names = "ahb", "mod";
419 compatible = "allwinner,sun4i-a10-spi";
420 reg = <0x01c17000 0x1000>;
422 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
423 clock-names = "ahb", "mod";
424 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
425 <&dma SUN4I_DMA_DEDICATED 28>;
426 dma-names = "rx", "tx";
428 #address-cells = <1>;
433 reg = <0x01c20000 0x400>;
434 clocks = <&osc24M>, <&osc32k>;
435 clock-names = "hosc", "losc";
440 intc: interrupt-controller@1c20400 {
441 compatible = "allwinner,sun4i-a10-ic";
442 reg = <0x01c20400 0x400>;
443 interrupt-controller;
444 #interrupt-cells = <1>;
447 pio: pinctrl@1c20800 {
448 reg = <0x01c20800 0x400>;
450 clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
451 clock-names = "apb", "hosc", "losc";
453 interrupt-controller;
454 #interrupt-cells = <3>;
457 emac_pd_pins: emac-pd-pins {
458 pins = "PD6", "PD7", "PD10",
459 "PD11", "PD12", "PD13", "PD14",
460 "PD15", "PD18", "PD19", "PD20",
461 "PD21", "PD22", "PD23", "PD24",
462 "PD25", "PD26", "PD27";
466 i2c0_pins: i2c0-pins {
471 i2c1_pins: i2c1-pins {
472 pins = "PB15", "PB16";
476 i2c2_pins: i2c2-pins {
477 pins = "PB17", "PB18";
481 ir0_rx_pin: ir0-rx-pin {
486 lcd_rgb565_pins: lcd-rgb565-pins {
487 pins = "PD3", "PD4", "PD5", "PD6", "PD7",
488 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
489 "PD19", "PD20", "PD21", "PD22", "PD23",
490 "PD24", "PD25", "PD26", "PD27";
494 lcd_rgb666_pins: lcd-rgb666-pins {
495 pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
496 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
497 "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
498 "PD24", "PD25", "PD26", "PD27";
502 mmc0_pins: mmc0-pins {
503 pins = "PF0", "PF1", "PF2", "PF3",
506 drive-strength = <30>;
510 mmc2_4bit_pc_pins: mmc2-4bit-pc-pins {
511 pins = "PC6", "PC7", "PC8", "PC9",
514 drive-strength = <30>;
518 mmc2_8bit_pins: mmc2-8bit-pins {
519 pins = "PC6", "PC7", "PC8", "PC9",
520 "PC10", "PC11", "PC12", "PC13",
523 drive-strength = <30>;
527 nand_pins: nand-pins {
528 pins = "PC0", "PC1", "PC2",
529 "PC5", "PC8", "PC9", "PC10",
530 "PC11", "PC12", "PC13", "PC14",
535 nand_cs0_pin: nand-cs0-pin {
540 nand_rb0_pin: nand-rb0-pin {
550 spi2_pe_pins: spi2-pe-pins {
551 pins = "PE1", "PE2", "PE3";
555 spi2_cs0_pe_pin: spi2-cs0-pe-pin {
560 uart1_pe_pins: uart1-pe-pins {
561 pins = "PE10", "PE11";
565 uart1_pg_pins: uart1-pg-pins {
570 uart2_pd_pins: uart2-pd-pins {
575 uart2_cts_rts_pd_pins: uart2-cts-rts-pd-pins {
580 uart3_pg_pins: uart3-pg-pins {
581 pins = "PG9", "PG10";
585 uart3_cts_rts_pg_pins: uart3-cts-rts-pg-pins {
586 pins = "PG11", "PG12";
592 compatible = "allwinner,sun4i-a10-timer";
593 reg = <0x01c20c00 0x90>;
600 clocks = <&ccu CLK_HOSC>;
603 wdt: watchdog@1c20c90 {
604 compatible = "allwinner,sun4i-a10-wdt";
605 reg = <0x01c20c90 0x10>;
611 compatible = "allwinner,sun4i-a10-ir";
612 clocks = <&ccu CLK_APB0_IR>, <&ccu CLK_IR>;
613 clock-names = "apb", "ir";
615 reg = <0x01c21800 0x40>;
619 lradc: lradc@1c22800 {
620 compatible = "allwinner,sun4i-a10-lradc-keys";
621 reg = <0x01c22800 0x100>;
626 codec: codec@1c22c00 {
627 #sound-dai-cells = <0>;
628 compatible = "allwinner,sun4i-a10-codec";
629 reg = <0x01c22c00 0x40>;
631 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
632 clock-names = "apb", "codec";
633 dmas = <&dma SUN4I_DMA_NORMAL 19>,
634 <&dma SUN4I_DMA_NORMAL 19>;
635 dma-names = "rx", "tx";
639 sid: eeprom@1c23800 {
640 compatible = "allwinner,sun4i-a10-sid";
641 reg = <0x01c23800 0x10>;
645 compatible = "allwinner,sun5i-a13-ts";
646 reg = <0x01c25000 0x100>;
648 #thermal-sensor-cells = <0>;
651 uart0: serial@1c28000 {
652 compatible = "snps,dw-apb-uart";
653 reg = <0x01c28000 0x400>;
657 clocks = <&ccu CLK_APB1_UART0>;
661 uart1: serial@1c28400 {
662 compatible = "snps,dw-apb-uart";
663 reg = <0x01c28400 0x400>;
667 clocks = <&ccu CLK_APB1_UART1>;
671 uart2: serial@1c28800 {
672 compatible = "snps,dw-apb-uart";
673 reg = <0x01c28800 0x400>;
677 clocks = <&ccu CLK_APB1_UART2>;
681 uart3: serial@1c28c00 {
682 compatible = "snps,dw-apb-uart";
683 reg = <0x01c28c00 0x400>;
687 clocks = <&ccu CLK_APB1_UART3>;
692 compatible = "allwinner,sun4i-a10-i2c";
693 reg = <0x01c2ac00 0x400>;
695 clocks = <&ccu CLK_APB1_I2C0>;
696 pinctrl-names = "default";
697 pinctrl-0 = <&i2c0_pins>;
699 #address-cells = <1>;
704 compatible = "allwinner,sun4i-a10-i2c";
705 reg = <0x01c2b000 0x400>;
707 clocks = <&ccu CLK_APB1_I2C1>;
708 pinctrl-names = "default";
709 pinctrl-0 = <&i2c1_pins>;
711 #address-cells = <1>;
716 compatible = "allwinner,sun4i-a10-i2c";
717 reg = <0x01c2b400 0x400>;
719 clocks = <&ccu CLK_APB1_I2C2>;
720 pinctrl-names = "default";
721 pinctrl-0 = <&i2c2_pins>;
723 #address-cells = <1>;
728 compatible = "allwinner,sun5i-a13-hstimer";
729 reg = <0x01c60000 0x1000>;
730 interrupts = <82>, <83>;
731 clocks = <&ccu CLK_AHB_HSTIMER>;
734 fe0: display-frontend@1e00000 {
735 compatible = "allwinner,sun5i-a13-display-frontend";
736 reg = <0x01e00000 0x20000>;
738 clocks = <&ccu CLK_DE_FE>, <&ccu CLK_DE_FE>,
739 <&ccu CLK_DRAM_DE_FE>;
740 clock-names = "ahb", "mod",
742 resets = <&ccu RST_DE_FE>;
743 interconnects = <&mbus 19>;
744 interconnect-names = "dma-mem";
748 #address-cells = <1>;
754 fe0_out_be0: endpoint {
755 remote-endpoint = <&be0_in_fe0>;
761 be0: display-backend@1e60000 {
762 compatible = "allwinner,sun5i-a13-display-backend";
763 reg = <0x01e60000 0x10000>;
765 clocks = <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
766 <&ccu CLK_DRAM_DE_BE>;
767 clock-names = "ahb", "mod",
769 resets = <&ccu RST_DE_BE>;
770 interconnects = <&mbus 18>;
771 interconnect-names = "dma-mem";
774 assigned-clocks = <&ccu CLK_DE_BE>;
775 assigned-clock-rates = <300000000>;
778 #address-cells = <1>;
784 be0_in_fe0: endpoint {
785 remote-endpoint = <&fe0_out_be0>;
792 be0_out_tcon0: endpoint {
793 remote-endpoint = <&tcon0_in_be0>;