2 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
43 #include <dt-bindings/clock/sun8i-v3s-ccu.h>
44 #include <dt-bindings/reset/sun8i-v3s-ccu.h>
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
46 #include <dt-bindings/pinctrl/sun4i-a10.h>
51 interrupt-parent = <&gic>;
58 compatible = "arm,cortex-a7";
61 clocks = <&ccu CLK_CPU>;
66 compatible = "arm,armv7-timer";
67 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
68 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
69 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
70 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
80 compatible = "fixed-clock";
81 clock-frequency = <24000000>;
82 clock-output-names = "osc24M";
87 compatible = "fixed-clock";
88 clock-frequency = <32768>;
89 clock-output-names = "osc32k";
94 compatible = "simple-bus";
100 compatible = "allwinner,sun7i-a20-mmc";
101 reg = <0x01c0f000 0x1000>;
102 clocks = <&ccu CLK_BUS_MMC0>,
104 <&ccu CLK_MMC0_OUTPUT>,
105 <&ccu CLK_MMC0_SAMPLE>;
110 resets = <&ccu RST_BUS_MMC0>;
112 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
114 #address-cells = <1>;
119 compatible = "allwinner,sun7i-a20-mmc";
120 reg = <0x01c10000 0x1000>;
121 clocks = <&ccu CLK_BUS_MMC1>,
123 <&ccu CLK_MMC1_OUTPUT>,
124 <&ccu CLK_MMC1_SAMPLE>;
129 resets = <&ccu RST_BUS_MMC1>;
131 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
133 #address-cells = <1>;
138 compatible = "allwinner,sun7i-a20-mmc";
139 reg = <0x01c11000 0x1000>;
140 clocks = <&ccu CLK_BUS_MMC2>,
142 <&ccu CLK_MMC2_OUTPUT>,
143 <&ccu CLK_MMC2_SAMPLE>;
148 resets = <&ccu RST_BUS_MMC2>;
150 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
152 #address-cells = <1>;
156 usb_otg: usb@01c19000 {
157 compatible = "allwinner,sun8i-h3-musb";
158 reg = <0x01c19000 0x0400>;
159 clocks = <&ccu CLK_BUS_OTG>;
160 resets = <&ccu RST_BUS_OTG>;
161 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
162 interrupt-names = "mc";
165 extcon = <&usbphy 0>;
169 usbphy: phy@01c19400 {
170 compatible = "allwinner,sun8i-v3s-usb-phy";
171 reg = <0x01c19400 0x2c>,
173 reg-names = "phy_ctrl",
175 clocks = <&ccu CLK_USB_PHY0>;
176 clock-names = "usb0_phy";
177 resets = <&ccu RST_USB_PHY0>;
178 reset-names = "usb0_reset";
183 ccu: clock@01c20000 {
184 compatible = "allwinner,sun8i-v3s-ccu";
185 reg = <0x01c20000 0x400>;
186 clocks = <&osc24M>, <&osc32k>;
187 clock-names = "hosc", "losc";
193 compatible = "allwinner,sun6i-a31-rtc";
194 reg = <0x01c20400 0x54>;
195 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
196 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
199 pio: pinctrl@01c20800 {
200 compatible = "allwinner,sun8i-v3s-pinctrl";
201 reg = <0x01c20800 0x400>;
202 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
203 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
204 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>;
205 clock-names = "apb", "hosc", "losc";
208 interrupt-controller;
209 #interrupt-cells = <3>;
211 uart0_pins_a: uart0@0 {
217 mmc0_pins_a: mmc0@0 {
218 pins = "PF0", "PF1", "PF2", "PF3",
221 drive-strength = <30>;
227 compatible = "allwinner,sun4i-a10-timer";
228 reg = <0x01c20c00 0xa0>;
229 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
230 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
234 wdt0: watchdog@01c20ca0 {
235 compatible = "allwinner,sun6i-a31-wdt";
236 reg = <0x01c20ca0 0x20>;
237 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
240 uart0: serial@01c28000 {
241 compatible = "snps,dw-apb-uart";
242 reg = <0x01c28000 0x400>;
243 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
246 clocks = <&ccu CLK_BUS_UART0>;
247 resets = <&ccu RST_BUS_UART0>;
251 uart1: serial@01c28400 {
252 compatible = "snps,dw-apb-uart";
253 reg = <0x01c28400 0x400>;
254 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
257 clocks = <&ccu CLK_BUS_UART1>;
258 resets = <&ccu RST_BUS_UART1>;
262 uart2: serial@01c28800 {
263 compatible = "snps,dw-apb-uart";
264 reg = <0x01c28800 0x400>;
265 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
268 clocks = <&ccu CLK_BUS_UART2>;
269 resets = <&ccu RST_BUS_UART2>;
273 gic: interrupt-controller@01c81000 {
274 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
275 reg = <0x01c81000 0x1000>,
279 interrupt-controller;
280 #interrupt-cells = <3>;
281 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;