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 = <0x40000000 0x10000000>;
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 #address-cells = <1>;
191 dma-ranges = <0x00000000 0x40000000 0x20000000>;
192 #interconnect-cells = <1>;
195 dma: dma-controller@1c02000 {
196 compatible = "allwinner,sun4i-a10-dma";
197 reg = <0x01c02000 0x1000>;
199 clocks = <&ccu CLK_AHB_DMA>;
203 nfc: nand-controller@1c03000 {
204 compatible = "allwinner,sun4i-a10-nand";
205 reg = <0x01c03000 0x1000>;
207 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
208 clock-names = "ahb", "mod";
209 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
212 #address-cells = <1>;
217 compatible = "allwinner,sun4i-a10-spi";
218 reg = <0x01c05000 0x1000>;
220 clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
221 clock-names = "ahb", "mod";
222 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
223 <&dma SUN4I_DMA_DEDICATED 26>;
224 dma-names = "rx", "tx";
226 #address-cells = <1>;
231 compatible = "allwinner,sun4i-a10-spi";
232 reg = <0x01c06000 0x1000>;
234 clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
235 clock-names = "ahb", "mod";
236 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
237 <&dma SUN4I_DMA_DEDICATED 8>;
238 dma-names = "rx", "tx";
240 #address-cells = <1>;
244 tve0: tv-encoder@1c0a000 {
245 compatible = "allwinner,sun4i-a10-tv-encoder";
246 reg = <0x01c0a000 0x1000>;
247 clocks = <&ccu CLK_AHB_TVE>;
248 resets = <&ccu RST_TVE>;
253 tve0_in_tcon0: endpoint {
254 remote-endpoint = <&tcon0_out_tve0>;
259 emac: ethernet@1c0b000 {
260 compatible = "allwinner,sun4i-a10-emac";
261 reg = <0x01c0b000 0x1000>;
263 clocks = <&ccu CLK_AHB_EMAC>;
264 allwinner,sram = <&emac_sram 1>;
269 compatible = "allwinner,sun4i-a10-mdio";
270 reg = <0x01c0b080 0x14>;
272 #address-cells = <1>;
276 tcon0: lcd-controller@1c0c000 {
277 compatible = "allwinner,sun5i-a13-tcon";
278 reg = <0x01c0c000 0x1000>;
280 dmas = <&dma SUN4I_DMA_DEDICATED 14>;
281 resets = <&ccu RST_LCD>;
283 clocks = <&ccu CLK_AHB_LCD>,
289 clock-output-names = "tcon-pixel-clock";
294 #address-cells = <1>;
300 tcon0_in_be0: endpoint {
301 remote-endpoint = <&be0_out_tcon0>;
306 #address-cells = <1>;
310 tcon0_out_tve0: endpoint@1 {
312 remote-endpoint = <&tve0_in_tcon0>;
313 allwinner,tcon-channel = <1>;
319 video-codec@1c0e000 {
320 compatible = "allwinner,sun5i-a13-video-engine";
321 reg = <0x01c0e000 0x1000>;
322 clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>,
324 clock-names = "ahb", "mod", "ram";
325 resets = <&ccu RST_VE>;
327 allwinner,sram = <&ve_sram 1>;
331 compatible = "allwinner,sun5i-a13-mmc";
332 reg = <0x01c0f000 0x1000>;
333 clocks = <&ccu CLK_AHB_MMC0>, <&ccu CLK_MMC0>;
334 clock-names = "ahb", "mmc";
336 pinctrl-names = "default";
337 pinctrl-0 = <&mmc0_pins>;
339 #address-cells = <1>;
344 compatible = "allwinner,sun5i-a13-mmc";
345 reg = <0x01c10000 0x1000>;
346 clocks = <&ccu CLK_AHB_MMC1>, <&ccu CLK_MMC1>;
347 clock-names = "ahb", "mmc";
350 #address-cells = <1>;
355 compatible = "allwinner,sun5i-a13-mmc";
356 reg = <0x01c11000 0x1000>;
357 clocks = <&ccu CLK_AHB_MMC2>, <&ccu CLK_MMC2>;
358 clock-names = "ahb", "mmc";
361 #address-cells = <1>;
365 usb_otg: usb@1c13000 {
366 compatible = "allwinner,sun4i-a10-musb";
367 reg = <0x01c13000 0x0400>;
368 clocks = <&ccu CLK_AHB_OTG>;
370 interrupt-names = "mc";
373 extcon = <&usbphy 0>;
374 allwinner,sram = <&otg_sram 1>;
379 usbphy: phy@1c13400 {
381 compatible = "allwinner,sun5i-a13-usb-phy";
382 reg = <0x01c13400 0x10>, <0x01c14800 0x4>;
383 reg-names = "phy_ctrl", "pmu1";
384 clocks = <&ccu CLK_USB_PHY0>;
385 clock-names = "usb_phy";
386 resets = <&ccu RST_USB_PHY0>, <&ccu RST_USB_PHY1>;
387 reset-names = "usb0_reset", "usb1_reset";
392 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
393 reg = <0x01c14000 0x100>;
395 clocks = <&ccu CLK_AHB_EHCI>;
402 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
403 reg = <0x01c14400 0x100>;
405 clocks = <&ccu CLK_USB_OHCI>, <&ccu CLK_AHB_OHCI>;
411 crypto: crypto-engine@1c15000 {
412 compatible = "allwinner,sun5i-a13-crypto",
413 "allwinner,sun4i-a10-crypto";
414 reg = <0x01c15000 0x1000>;
416 clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
417 clock-names = "ahb", "mod";
421 compatible = "allwinner,sun4i-a10-spi";
422 reg = <0x01c17000 0x1000>;
424 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
425 clock-names = "ahb", "mod";
426 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
427 <&dma SUN4I_DMA_DEDICATED 28>;
428 dma-names = "rx", "tx";
430 #address-cells = <1>;
435 reg = <0x01c20000 0x400>;
436 clocks = <&osc24M>, <&osc32k>;
437 clock-names = "hosc", "losc";
442 intc: interrupt-controller@1c20400 {
443 compatible = "allwinner,sun4i-a10-ic";
444 reg = <0x01c20400 0x400>;
445 interrupt-controller;
446 #interrupt-cells = <1>;
449 pio: pinctrl@1c20800 {
450 reg = <0x01c20800 0x400>;
452 clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
453 clock-names = "apb", "hosc", "losc";
455 interrupt-controller;
456 #interrupt-cells = <3>;
459 emac_pd_pins: emac-pd-pins {
460 pins = "PD6", "PD7", "PD10",
461 "PD11", "PD12", "PD13", "PD14",
462 "PD15", "PD18", "PD19", "PD20",
463 "PD21", "PD22", "PD23", "PD24",
464 "PD25", "PD26", "PD27";
468 i2c0_pins: i2c0-pins {
473 i2c1_pins: i2c1-pins {
474 pins = "PB15", "PB16";
478 i2c2_pins: i2c2-pins {
479 pins = "PB17", "PB18";
483 ir0_rx_pin: ir0-rx-pin {
488 lcd_rgb565_pins: lcd-rgb565-pins {
489 pins = "PD3", "PD4", "PD5", "PD6", "PD7",
490 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
491 "PD19", "PD20", "PD21", "PD22", "PD23",
492 "PD24", "PD25", "PD26", "PD27";
496 lcd_rgb666_pins: lcd-rgb666-pins {
497 pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
498 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
499 "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
500 "PD24", "PD25", "PD26", "PD27";
504 mmc0_pins: mmc0-pins {
505 pins = "PF0", "PF1", "PF2", "PF3",
508 drive-strength = <30>;
512 mmc2_4bit_pc_pins: mmc2-4bit-pc-pins {
513 pins = "PC6", "PC7", "PC8", "PC9",
516 drive-strength = <30>;
520 mmc2_8bit_pins: mmc2-8bit-pins {
521 pins = "PC6", "PC7", "PC8", "PC9",
522 "PC10", "PC11", "PC12", "PC13",
525 drive-strength = <30>;
529 nand_pins: nand-pins {
530 pins = "PC0", "PC1", "PC2",
531 "PC5", "PC8", "PC9", "PC10",
532 "PC11", "PC12", "PC13", "PC14",
537 nand_cs0_pin: nand-cs0-pin {
542 nand_rb0_pin: nand-rb0-pin {
552 spi2_pe_pins: spi2-pe-pins {
553 pins = "PE1", "PE2", "PE3";
557 spi2_cs0_pe_pin: spi2-cs0-pe-pin {
562 uart1_pe_pins: uart1-pe-pins {
563 pins = "PE10", "PE11";
567 uart1_pg_pins: uart1-pg-pins {
572 uart2_pd_pins: uart2-pd-pins {
577 uart2_cts_rts_pd_pins: uart2-cts-rts-pd-pins {
582 uart3_pg_pins: uart3-pg-pins {
583 pins = "PG9", "PG10";
587 uart3_cts_rts_pg_pins: uart3-cts-rts-pg-pins {
588 pins = "PG11", "PG12";
594 compatible = "allwinner,sun4i-a10-timer";
595 reg = <0x01c20c00 0x90>;
602 clocks = <&ccu CLK_HOSC>;
605 wdt: watchdog@1c20c90 {
606 compatible = "allwinner,sun4i-a10-wdt";
607 reg = <0x01c20c90 0x10>;
613 compatible = "allwinner,sun4i-a10-ir";
614 clocks = <&ccu CLK_APB0_IR>, <&ccu CLK_IR>;
615 clock-names = "apb", "ir";
617 reg = <0x01c21800 0x40>;
621 lradc: lradc@1c22800 {
622 compatible = "allwinner,sun4i-a10-lradc-keys";
623 reg = <0x01c22800 0x100>;
628 codec: codec@1c22c00 {
629 #sound-dai-cells = <0>;
630 compatible = "allwinner,sun4i-a10-codec";
631 reg = <0x01c22c00 0x40>;
633 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
634 clock-names = "apb", "codec";
635 dmas = <&dma SUN4I_DMA_NORMAL 19>,
636 <&dma SUN4I_DMA_NORMAL 19>;
637 dma-names = "rx", "tx";
641 sid: eeprom@1c23800 {
642 compatible = "allwinner,sun4i-a10-sid";
643 reg = <0x01c23800 0x10>;
647 compatible = "allwinner,sun5i-a13-ts";
648 reg = <0x01c25000 0x100>;
650 #thermal-sensor-cells = <0>;
653 uart0: serial@1c28000 {
654 compatible = "snps,dw-apb-uart";
655 reg = <0x01c28000 0x400>;
659 clocks = <&ccu CLK_APB1_UART0>;
663 uart1: serial@1c28400 {
664 compatible = "snps,dw-apb-uart";
665 reg = <0x01c28400 0x400>;
669 clocks = <&ccu CLK_APB1_UART1>;
673 uart2: serial@1c28800 {
674 compatible = "snps,dw-apb-uart";
675 reg = <0x01c28800 0x400>;
679 clocks = <&ccu CLK_APB1_UART2>;
683 uart3: serial@1c28c00 {
684 compatible = "snps,dw-apb-uart";
685 reg = <0x01c28c00 0x400>;
689 clocks = <&ccu CLK_APB1_UART3>;
694 compatible = "allwinner,sun4i-a10-i2c";
695 reg = <0x01c2ac00 0x400>;
697 clocks = <&ccu CLK_APB1_I2C0>;
698 pinctrl-names = "default";
699 pinctrl-0 = <&i2c0_pins>;
701 #address-cells = <1>;
706 compatible = "allwinner,sun4i-a10-i2c";
707 reg = <0x01c2b000 0x400>;
709 clocks = <&ccu CLK_APB1_I2C1>;
710 pinctrl-names = "default";
711 pinctrl-0 = <&i2c1_pins>;
713 #address-cells = <1>;
718 compatible = "allwinner,sun4i-a10-i2c";
719 reg = <0x01c2b400 0x400>;
721 clocks = <&ccu CLK_APB1_I2C2>;
722 pinctrl-names = "default";
723 pinctrl-0 = <&i2c2_pins>;
725 #address-cells = <1>;
730 compatible = "allwinner,sun5i-a13-hstimer";
731 reg = <0x01c60000 0x1000>;
732 interrupts = <82>, <83>;
733 clocks = <&ccu CLK_AHB_HSTIMER>;
736 fe0: display-frontend@1e00000 {
737 compatible = "allwinner,sun5i-a13-display-frontend";
738 reg = <0x01e00000 0x20000>;
740 clocks = <&ccu CLK_DE_FE>, <&ccu CLK_DE_FE>,
741 <&ccu CLK_DRAM_DE_FE>;
742 clock-names = "ahb", "mod",
744 resets = <&ccu RST_DE_FE>;
745 interconnects = <&mbus 19>;
746 interconnect-names = "dma-mem";
750 #address-cells = <1>;
756 fe0_out_be0: endpoint {
757 remote-endpoint = <&be0_in_fe0>;
763 be0: display-backend@1e60000 {
764 compatible = "allwinner,sun5i-a13-display-backend";
765 reg = <0x01e60000 0x10000>;
767 clocks = <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
768 <&ccu CLK_DRAM_DE_BE>;
769 clock-names = "ahb", "mod",
771 resets = <&ccu RST_DE_BE>;
772 interconnects = <&mbus 18>;
773 interconnect-names = "dma-mem";
777 #address-cells = <1>;
783 be0_in_fe0: endpoint {
784 remote-endpoint = <&fe0_out_be0>;
791 be0_out_tcon0: endpoint {
792 remote-endpoint = <&tcon0_in_be0>;