2 * Copyright 2016 Mylène Josserand
4 * Mylène Josserand <mylene.josserand@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/pinctrl/sun4i-a10.h>
48 #include <dt-bindings/reset/sun5i-ccu.h>
51 interrupt-parent = <&intc>;
61 compatible = "arm,cortex-a8";
63 clocks = <&ccu CLK_CPU>;
72 osc24M: clk@01c20050 {
74 compatible = "fixed-clock";
75 clock-frequency = <24000000>;
76 clock-output-names = "osc24M";
81 compatible = "fixed-clock";
82 clock-frequency = <32768>;
83 clock-output-names = "osc32k";
88 compatible = "allwinner,sun5i-a13-display-engine";
89 allwinner,pipelines = <&fe0>;
93 compatible = "simple-bus";
98 sram-controller@01c00000 {
99 compatible = "allwinner,sun4i-a10-sram-controller";
100 reg = <0x01c00000 0x30>;
101 #address-cells = <1>;
105 sram_a: sram@00000000 {
106 compatible = "mmio-sram";
107 reg = <0x00000000 0xc000>;
108 #address-cells = <1>;
110 ranges = <0 0x00000000 0xc000>;
113 sram_d: sram@00010000 {
114 compatible = "mmio-sram";
115 reg = <0x00010000 0x1000>;
116 #address-cells = <1>;
118 ranges = <0 0x00010000 0x1000>;
120 otg_sram: sram-section@0000 {
121 compatible = "allwinner,sun4i-a10-sram-d";
122 reg = <0x0000 0x1000>;
128 dma: dma-controller@01c02000 {
129 compatible = "allwinner,sun4i-a10-dma";
130 reg = <0x01c02000 0x1000>;
132 clocks = <&ccu CLK_AHB_DMA>;
137 compatible = "allwinner,sun4i-a10-nand";
138 reg = <0x01c03000 0x1000>;
140 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
141 clock-names = "ahb", "mod";
142 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
145 #address-cells = <1>;
150 compatible = "allwinner,sun4i-a10-spi";
151 reg = <0x01c05000 0x1000>;
153 clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
154 clock-names = "ahb", "mod";
155 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
156 <&dma SUN4I_DMA_DEDICATED 26>;
157 dma-names = "rx", "tx";
159 #address-cells = <1>;
164 compatible = "allwinner,sun4i-a10-spi";
165 reg = <0x01c06000 0x1000>;
167 clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
168 clock-names = "ahb", "mod";
169 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
170 <&dma SUN4I_DMA_DEDICATED 8>;
171 dma-names = "rx", "tx";
173 #address-cells = <1>;
177 tve0: tv-encoder@01c0a000 {
178 compatible = "allwinner,sun4i-a10-tv-encoder";
179 reg = <0x01c0a000 0x1000>;
180 clocks = <&ccu CLK_AHB_TVE>;
181 resets = <&ccu RST_TVE>;
185 #address-cells = <1>;
188 tve0_in_tcon0: endpoint@0 {
190 remote-endpoint = <&tcon0_out_tve0>;
195 tcon0: lcd-controller@01c0c000 {
196 compatible = "allwinner,sun5i-a13-tcon";
197 reg = <0x01c0c000 0x1000>;
199 resets = <&ccu RST_LCD>;
201 clocks = <&ccu CLK_AHB_LCD>,
207 clock-output-names = "tcon-pixel-clock";
211 #address-cells = <1>;
215 #address-cells = <1>;
219 tcon0_in_be0: endpoint@0 {
221 remote-endpoint = <&be0_out_tcon0>;
226 #address-cells = <1>;
230 tcon0_out_tve0: endpoint@1 {
232 remote-endpoint = <&tve0_in_tcon0>;
239 compatible = "allwinner,sun5i-a13-mmc";
240 reg = <0x01c0f000 0x1000>;
241 clocks = <&ccu CLK_AHB_MMC0>, <&ccu CLK_MMC0>;
242 clock-names = "ahb", "mmc";
245 #address-cells = <1>;
250 compatible = "allwinner,sun5i-a13-mmc";
251 reg = <0x01c10000 0x1000>;
252 clocks = <&ccu CLK_AHB_MMC1>, <&ccu CLK_MMC1>;
253 clock-names = "ahb", "mmc";
256 #address-cells = <1>;
261 compatible = "allwinner,sun5i-a13-mmc";
262 reg = <0x01c11000 0x1000>;
263 clocks = <&ccu CLK_AHB_MMC2>, <&ccu CLK_MMC2>;
264 clock-names = "ahb", "mmc";
267 #address-cells = <1>;
271 usb_otg: usb@01c13000 {
272 compatible = "allwinner,sun4i-a10-musb";
273 reg = <0x01c13000 0x0400>;
274 clocks = <&ccu CLK_AHB_OTG>;
276 interrupt-names = "mc";
279 extcon = <&usbphy 0>;
280 allwinner,sram = <&otg_sram 1>;
286 usbphy: phy@01c13400 {
288 compatible = "allwinner,sun5i-a13-usb-phy";
289 reg = <0x01c13400 0x10 0x01c14800 0x4>;
290 reg-names = "phy_ctrl", "pmu1";
291 clocks = <&ccu CLK_USB_PHY0>;
292 clock-names = "usb_phy";
293 resets = <&ccu RST_USB_PHY0>, <&ccu RST_USB_PHY1>;
294 reset-names = "usb0_reset", "usb1_reset";
298 ehci0: usb@01c14000 {
299 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
300 reg = <0x01c14000 0x100>;
302 clocks = <&ccu CLK_AHB_EHCI>;
308 ohci0: usb@01c14400 {
309 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
310 reg = <0x01c14400 0x100>;
312 clocks = <&ccu CLK_USB_OHCI>, <&ccu CLK_AHB_OHCI>;
319 compatible = "allwinner,sun4i-a10-spi";
320 reg = <0x01c17000 0x1000>;
322 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
323 clock-names = "ahb", "mod";
324 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
325 <&dma SUN4I_DMA_DEDICATED 28>;
326 dma-names = "rx", "tx";
328 #address-cells = <1>;
332 ccu: clock@01c20000 {
333 compatible = "nextthing,gr8-ccu";
334 reg = <0x01c20000 0x400>;
335 clocks = <&osc24M>, <&osc32k>;
336 clock-names = "hosc", "losc";
341 intc: interrupt-controller@01c20400 {
342 compatible = "allwinner,sun4i-a10-ic";
343 reg = <0x01c20400 0x400>;
344 interrupt-controller;
345 #interrupt-cells = <1>;
348 pio: pinctrl@01c20800 {
349 compatible = "nextthing,gr8-pinctrl";
350 reg = <0x01c20800 0x400>;
352 clocks = <&ccu CLK_APB0_PIO>;
354 interrupt-controller;
355 #interrupt-cells = <3>;
358 i2c0_pins_a: i2c0@0 {
363 i2c1_pins_a: i2c1@0 {
364 pins = "PB15", "PB16";
368 i2c2_pins_a: i2c2@0 {
369 pins = "PB17", "PB18";
373 i2s0_data_pins_a: i2s0-data@0 {
374 pins = "PB6", "PB7", "PB8", "PB9";
378 i2s0_mclk_pins_a: i2s0-mclk@0 {
383 ir0_rx_pins_a: ir0@0 {
388 lcd_rgb666_pins: lcd-rgb666@0 {
389 pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
390 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
391 "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
392 "PD24", "PD25", "PD26", "PD27";
396 mmc0_pins_a: mmc0@0 {
397 pins = "PF0", "PF1", "PF2", "PF3",
400 drive-strength = <30>;
403 nand_pins_a: nand-base0@0 {
404 pins = "PC0", "PC1", "PC2",
405 "PC5", "PC8", "PC9", "PC10",
406 "PC11", "PC12", "PC13", "PC14",
411 nand_cs0_pins_a: nand-cs@0 {
416 nand_rb0_pins_a: nand-rb@0 {
421 pwm0_pins_a: pwm0@0 {
431 spdif_tx_pins_a: spdif@0 {
437 uart1_pins_a: uart1@1 {
442 uart1_cts_rts_pins_a: uart1-cts-rts@0 {
447 uart2_pins_a: uart2@1 {
452 uart2_cts_rts_pins_a: uart2-cts-rts@0 {
457 uart3_pins_a: uart3@1 {
458 pins = "PG9", "PG10";
462 uart3_cts_rts_pins_a: uart3-cts-rts@0 {
463 pins = "PG11", "PG12";
469 compatible = "allwinner,sun5i-a10s-pwm";
470 reg = <0x01c20e00 0xc>;
471 clocks = <&ccu CLK_HOSC>;
477 compatible = "allwinner,sun4i-a10-timer";
478 reg = <0x01c20c00 0x90>;
480 clocks = <&ccu CLK_HOSC>;
483 wdt: watchdog@01c20c90 {
484 compatible = "allwinner,sun4i-a10-wdt";
485 reg = <0x01c20c90 0x10>;
488 spdif: spdif@01c21000 {
489 #sound-dai-cells = <0>;
490 compatible = "allwinner,sun4i-a10-spdif";
491 reg = <0x01c21000 0x400>;
493 clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
494 clock-names = "apb", "spdif";
495 dmas = <&dma SUN4I_DMA_NORMAL 2>,
496 <&dma SUN4I_DMA_NORMAL 2>;
497 dma-names = "rx", "tx";
502 compatible = "allwinner,sun4i-a10-ir";
503 clocks = <&ccu CLK_APB0_IR>, <&ccu CLK_IR>;
504 clock-names = "apb", "ir";
506 reg = <0x01c21800 0x40>;
511 #sound-dai-cells = <0>;
512 compatible = "allwinner,sun4i-a10-i2s";
513 reg = <0x01c22400 0x400>;
515 clocks = <&ccu CLK_APB0_I2S>, <&ccu CLK_I2S>;
516 clock-names = "apb", "mod";
517 dmas = <&dma SUN4I_DMA_NORMAL 3>,
518 <&dma SUN4I_DMA_NORMAL 3>;
519 dma-names = "rx", "tx";
523 lradc: lradc@01c22800 {
524 compatible = "allwinner,sun4i-a10-lradc-keys";
525 reg = <0x01c22800 0x100>;
530 codec: codec@01c22c00 {
531 #sound-dai-cells = <0>;
532 compatible = "allwinner,sun4i-a10-codec";
533 reg = <0x01c22c00 0x40>;
535 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
536 clock-names = "apb", "codec";
537 dmas = <&dma SUN4I_DMA_NORMAL 19>,
538 <&dma SUN4I_DMA_NORMAL 19>;
539 dma-names = "rx", "tx";
544 compatible = "allwinner,sun5i-a13-ts";
545 reg = <0x01c25000 0x100>;
547 #thermal-sensor-cells = <0>;
550 uart1: serial@01c28400 {
551 compatible = "snps,dw-apb-uart";
552 reg = <0x01c28400 0x400>;
556 clocks = <&ccu CLK_APB1_UART1>;
560 uart2: serial@01c28800 {
561 compatible = "snps,dw-apb-uart";
562 reg = <0x01c28800 0x400>;
566 clocks = <&ccu CLK_APB1_UART2>;
570 uart3: serial@01c28c00 {
571 compatible = "snps,dw-apb-uart";
572 reg = <0x01c28c00 0x400>;
576 clocks = <&ccu CLK_APB1_UART3>;
581 compatible = "allwinner,sun4i-a10-i2c";
582 reg = <0x01c2ac00 0x400>;
584 clocks = <&ccu CLK_APB1_I2C0>;
586 #address-cells = <1>;
591 compatible = "allwinner,sun4i-a10-i2c";
592 reg = <0x01c2b000 0x400>;
594 clocks = <&ccu CLK_APB1_I2C1>;
596 #address-cells = <1>;
601 compatible = "allwinner,sun4i-a10-i2c";
602 reg = <0x01c2b400 0x400>;
604 clocks = <&ccu CLK_APB1_I2C2>;
606 #address-cells = <1>;
611 compatible = "allwinner,sun5i-a13-hstimer";
612 reg = <0x01c60000 0x1000>;
613 interrupts = <82>, <83>;
614 clocks = <&ccu CLK_AHB_HSTIMER>;
617 fe0: display-frontend@01e00000 {
618 compatible = "allwinner,sun5i-a13-display-frontend";
619 reg = <0x01e00000 0x20000>;
621 clocks = <&ccu CLK_AHB_DE_FE>, <&ccu CLK_DE_FE>,
622 <&ccu CLK_DRAM_DE_FE>;
623 clock-names = "ahb", "mod",
625 resets = <&ccu RST_DE_FE>;
629 #address-cells = <1>;
633 #address-cells = <1>;
637 fe0_out_be0: endpoint@0 {
639 remote-endpoint = <&be0_in_fe0>;
645 be0: display-backend@01e60000 {
646 compatible = "allwinner,sun5i-a13-display-backend";
647 reg = <0x01e60000 0x10000>;
648 clocks = <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
649 <&ccu CLK_DRAM_DE_BE>;
650 clock-names = "ahb", "mod",
652 resets = <&ccu RST_DE_BE>;
655 assigned-clocks = <&ccu CLK_DE_BE>;
656 assigned-clock-rates = <300000000>;
659 #address-cells = <1>;
663 #address-cells = <1>;
667 be0_in_fe0: endpoint@0 {
669 remote-endpoint = <&fe0_out_be0>;
674 #address-cells = <1>;
678 be0_out_tcon0: endpoint@0 {
680 remote-endpoint = <&tcon0_in_be0>;