2 * Copyright (C) 2016 ARM Ltd.
3 * based on the Allwinner H3 dtsi:
4 * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.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 file 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 file 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/sun50i-a64-ccu.h>
46 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 #include <dt-bindings/reset/sun50i-a64-ccu.h>
50 interrupt-parent = <&gic>;
59 compatible = "arm,cortex-a53", "arm,armv8";
62 enable-method = "psci";
66 compatible = "arm,cortex-a53", "arm,armv8";
69 enable-method = "psci";
73 compatible = "arm,cortex-a53", "arm,armv8";
76 enable-method = "psci";
80 compatible = "arm,cortex-a53", "arm,armv8";
83 enable-method = "psci";
89 compatible = "fixed-clock";
90 clock-frequency = <24000000>;
91 clock-output-names = "osc24M";
96 compatible = "fixed-clock";
97 clock-frequency = <32768>;
98 clock-output-names = "osc32k";
101 iosc: internal-osc-clk {
103 compatible = "fixed-clock";
104 clock-frequency = <16000000>;
105 clock-accuracy = <300000000>;
106 clock-output-names = "iosc";
110 compatible = "arm,psci-0.2";
115 compatible = "arm,armv8-timer";
116 interrupts = <GIC_PPI 13
117 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
119 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
121 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
123 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
127 compatible = "simple-bus";
128 #address-cells = <1>;
132 syscon: syscon@1c00000 {
133 compatible = "allwinner,sun50i-a64-system-controller",
135 reg = <0x01c00000 0x1000>;
139 compatible = "allwinner,sun50i-a64-mmc";
140 reg = <0x01c0f000 0x1000>;
141 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
142 clock-names = "ahb", "mmc";
143 resets = <&ccu RST_BUS_MMC0>;
145 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
146 max-frequency = <150000000>;
148 #address-cells = <1>;
153 compatible = "allwinner,sun50i-a64-mmc";
154 reg = <0x01c10000 0x1000>;
155 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
156 clock-names = "ahb", "mmc";
157 resets = <&ccu RST_BUS_MMC1>;
159 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
160 max-frequency = <150000000>;
162 #address-cells = <1>;
167 compatible = "allwinner,sun50i-a64-emmc";
168 reg = <0x01c11000 0x1000>;
169 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
170 clock-names = "ahb", "mmc";
171 resets = <&ccu RST_BUS_MMC2>;
173 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
174 max-frequency = <200000000>;
176 #address-cells = <1>;
180 usb_otg: usb@01c19000 {
181 compatible = "allwinner,sun8i-a33-musb";
182 reg = <0x01c19000 0x0400>;
183 clocks = <&ccu CLK_BUS_OTG>;
184 resets = <&ccu RST_BUS_OTG>;
185 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
186 interrupt-names = "mc";
189 extcon = <&usbphy 0>;
193 usbphy: phy@01c19400 {
194 compatible = "allwinner,sun50i-a64-usb-phy";
195 reg = <0x01c19400 0x14>,
198 reg-names = "phy_ctrl",
201 clocks = <&ccu CLK_USB_PHY0>,
203 clock-names = "usb0_phy",
205 resets = <&ccu RST_USB_PHY0>,
207 reset-names = "usb0_reset",
213 ehci1: usb@01c1b000 {
214 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
215 reg = <0x01c1b000 0x100>;
216 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
217 clocks = <&ccu CLK_BUS_OHCI1>,
218 <&ccu CLK_BUS_EHCI1>,
219 <&ccu CLK_USB_OHCI1>;
220 resets = <&ccu RST_BUS_OHCI1>,
221 <&ccu RST_BUS_EHCI1>;
227 ohci1: usb@01c1b400 {
228 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
229 reg = <0x01c1b400 0x100>;
230 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
231 clocks = <&ccu CLK_BUS_OHCI1>,
232 <&ccu CLK_USB_OHCI1>;
233 resets = <&ccu RST_BUS_OHCI1>;
239 ccu: clock@01c20000 {
240 compatible = "allwinner,sun50i-a64-ccu";
241 reg = <0x01c20000 0x400>;
242 clocks = <&osc24M>, <&osc32k>;
243 clock-names = "hosc", "losc";
248 pio: pinctrl@1c20800 {
249 compatible = "allwinner,sun50i-a64-pinctrl";
250 reg = <0x01c20800 0x400>;
251 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
252 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
253 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
257 interrupt-controller;
258 #interrupt-cells = <3>;
260 i2c1_pins: i2c1_pins {
265 mmc0_pins: mmc0-pins {
266 pins = "PF0", "PF1", "PF2", "PF3",
269 drive-strength = <30>;
273 mmc1_pins: mmc1-pins {
274 pins = "PG0", "PG1", "PG2", "PG3",
277 drive-strength = <30>;
281 mmc2_pins: mmc2-pins {
282 pins = "PC1", "PC5", "PC6", "PC8", "PC9",
283 "PC10","PC11", "PC12", "PC13",
284 "PC14", "PC15", "PC16";
286 drive-strength = <30>;
290 rmii_pins: rmii_pins {
291 pins = "PD10", "PD11", "PD13", "PD14", "PD17",
292 "PD18", "PD19", "PD20", "PD22", "PD23";
294 drive-strength = <40>;
297 rgmii_pins: rgmii_pins {
298 pins = "PD8", "PD9", "PD10", "PD11", "PD12",
299 "PD13", "PD15", "PD16", "PD17", "PD18",
300 "PD19", "PD20", "PD21", "PD22", "PD23";
302 drive-strength = <40>;
305 uart0_pins_a: uart0@0 {
310 uart1_pins: uart1_pins {
315 uart1_rts_cts_pins: uart1_rts_cts_pins {
321 uart0: serial@1c28000 {
322 compatible = "snps,dw-apb-uart";
323 reg = <0x01c28000 0x400>;
324 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
332 uart1: serial@1c28400 {
333 compatible = "snps,dw-apb-uart";
334 reg = <0x01c28400 0x400>;
335 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
343 uart2: serial@1c28800 {
344 compatible = "snps,dw-apb-uart";
345 reg = <0x01c28800 0x400>;
346 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
354 uart3: serial@1c28c00 {
355 compatible = "snps,dw-apb-uart";
356 reg = <0x01c28c00 0x400>;
357 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
365 uart4: serial@1c29000 {
366 compatible = "snps,dw-apb-uart";
367 reg = <0x01c29000 0x400>;
368 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
377 compatible = "allwinner,sun6i-a31-i2c";
378 reg = <0x01c2ac00 0x400>;
379 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
383 #address-cells = <1>;
388 compatible = "allwinner,sun6i-a31-i2c";
389 reg = <0x01c2b000 0x400>;
390 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
394 #address-cells = <1>;
399 compatible = "allwinner,sun6i-a31-i2c";
400 reg = <0x01c2b400 0x400>;
401 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
405 #address-cells = <1>;
409 emac: ethernet@1c30000 {
410 compatible = "allwinner,sun50i-a64-emac";
412 reg = <0x01c30000 0x100>;
413 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
414 interrupt-names = "macirq";
415 resets = <&ccu RST_BUS_EMAC>;
416 reset-names = "stmmaceth";
417 clocks = <&ccu CLK_BUS_EMAC>;
418 clock-names = "stmmaceth";
420 #address-cells = <1>;
424 #address-cells = <1>;
429 gic: interrupt-controller@1c81000 {
430 compatible = "arm,gic-400";
431 reg = <0x01c81000 0x1000>,
435 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
436 interrupt-controller;
437 #interrupt-cells = <3>;
441 compatible = "allwinner,sun6i-a31-rtc";
442 reg = <0x01f00000 0x54>;
443 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
444 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
447 r_ccu: clock@1f01400 {
448 compatible = "allwinner,sun50i-a64-r-ccu";
449 reg = <0x01f01400 0x100>;
450 clocks = <&osc24M>, <&osc32k>, <&iosc>;
451 clock-names = "hosc", "losc", "iosc";
456 r_pio: pinctrl@01f02c00 {
457 compatible = "allwinner,sun50i-a64-r-pinctrl";
458 reg = <0x01f02c00 0x400>;
459 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
460 clocks = <&r_ccu 3>, <&osc24M>, <&osc32k>;
461 clock-names = "apb", "hosc", "losc";
464 interrupt-controller;
465 #interrupt-cells = <3>;