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/clock/sun8i-r-ccu.h>
47 #include <dt-bindings/interrupt-controller/arm-gic.h>
48 #include <dt-bindings/reset/sun50i-a64-ccu.h>
51 interrupt-parent = <&gic>;
60 compatible = "arm,cortex-a53", "arm,armv8";
63 enable-method = "psci";
67 compatible = "arm,cortex-a53", "arm,armv8";
70 enable-method = "psci";
74 compatible = "arm,cortex-a53", "arm,armv8";
77 enable-method = "psci";
81 compatible = "arm,cortex-a53", "arm,armv8";
84 enable-method = "psci";
90 compatible = "fixed-clock";
91 clock-frequency = <24000000>;
92 clock-output-names = "osc24M";
97 compatible = "fixed-clock";
98 clock-frequency = <32768>;
99 clock-output-names = "osc32k";
102 iosc: internal-osc-clk {
104 compatible = "fixed-clock";
105 clock-frequency = <16000000>;
106 clock-accuracy = <300000000>;
107 clock-output-names = "iosc";
111 compatible = "arm,psci-0.2";
116 compatible = "arm,armv8-timer";
117 interrupts = <GIC_PPI 13
118 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
120 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
122 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
124 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
128 compatible = "simple-bus";
129 #address-cells = <1>;
133 syscon: syscon@1c00000 {
134 compatible = "allwinner,sun50i-a64-system-controller",
136 reg = <0x01c00000 0x1000>;
139 dma: dma-controller@1c02000 {
140 compatible = "allwinner,sun50i-a64-dma";
141 reg = <0x01c02000 0x1000>;
142 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
143 clocks = <&ccu CLK_BUS_DMA>;
146 resets = <&ccu RST_BUS_DMA>;
151 compatible = "allwinner,sun50i-a64-mmc";
152 reg = <0x01c0f000 0x1000>;
153 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
154 clock-names = "ahb", "mmc";
155 resets = <&ccu RST_BUS_MMC0>;
157 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
158 max-frequency = <150000000>;
160 #address-cells = <1>;
165 compatible = "allwinner,sun50i-a64-mmc";
166 reg = <0x01c10000 0x1000>;
167 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
168 clock-names = "ahb", "mmc";
169 resets = <&ccu RST_BUS_MMC1>;
171 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
172 max-frequency = <150000000>;
174 #address-cells = <1>;
179 compatible = "allwinner,sun50i-a64-emmc";
180 reg = <0x01c11000 0x1000>;
181 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
182 clock-names = "ahb", "mmc";
183 resets = <&ccu RST_BUS_MMC2>;
185 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
186 max-frequency = <200000000>;
188 #address-cells = <1>;
192 usb_otg: usb@1c19000 {
193 compatible = "allwinner,sun8i-a33-musb";
194 reg = <0x01c19000 0x0400>;
195 clocks = <&ccu CLK_BUS_OTG>;
196 resets = <&ccu RST_BUS_OTG>;
197 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
198 interrupt-names = "mc";
201 extcon = <&usbphy 0>;
205 usbphy: phy@1c19400 {
206 compatible = "allwinner,sun50i-a64-usb-phy";
207 reg = <0x01c19400 0x14>,
210 reg-names = "phy_ctrl",
213 clocks = <&ccu CLK_USB_PHY0>,
215 clock-names = "usb0_phy",
217 resets = <&ccu RST_USB_PHY0>,
219 reset-names = "usb0_reset",
226 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
227 reg = <0x01c1a000 0x100>;
228 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
229 clocks = <&ccu CLK_BUS_OHCI0>,
230 <&ccu CLK_BUS_EHCI0>,
231 <&ccu CLK_USB_OHCI0>;
232 resets = <&ccu RST_BUS_OHCI0>,
233 <&ccu RST_BUS_EHCI0>;
238 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
239 reg = <0x01c1a400 0x100>;
240 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
241 clocks = <&ccu CLK_BUS_OHCI0>,
242 <&ccu CLK_USB_OHCI0>;
243 resets = <&ccu RST_BUS_OHCI0>;
248 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
249 reg = <0x01c1b000 0x100>;
250 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
251 clocks = <&ccu CLK_BUS_OHCI1>,
252 <&ccu CLK_BUS_EHCI1>,
253 <&ccu CLK_USB_OHCI1>;
254 resets = <&ccu RST_BUS_OHCI1>,
255 <&ccu RST_BUS_EHCI1>;
262 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
263 reg = <0x01c1b400 0x100>;
264 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
265 clocks = <&ccu CLK_BUS_OHCI1>,
266 <&ccu CLK_USB_OHCI1>;
267 resets = <&ccu RST_BUS_OHCI1>;
274 compatible = "allwinner,sun50i-a64-ccu";
275 reg = <0x01c20000 0x400>;
276 clocks = <&osc24M>, <&osc32k>;
277 clock-names = "hosc", "losc";
282 pio: pinctrl@1c20800 {
283 compatible = "allwinner,sun50i-a64-pinctrl";
284 reg = <0x01c20800 0x400>;
285 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
286 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
287 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
291 interrupt-controller;
292 #interrupt-cells = <3>;
294 i2c1_pins: i2c1_pins {
299 mmc0_pins: mmc0-pins {
300 pins = "PF0", "PF1", "PF2", "PF3",
303 drive-strength = <30>;
307 mmc1_pins: mmc1-pins {
308 pins = "PG0", "PG1", "PG2", "PG3",
311 drive-strength = <30>;
315 mmc2_pins: mmc2-pins {
316 pins = "PC1", "PC5", "PC6", "PC8", "PC9",
317 "PC10","PC11", "PC12", "PC13",
318 "PC14", "PC15", "PC16";
320 drive-strength = <30>;
324 rmii_pins: rmii_pins {
325 pins = "PD10", "PD11", "PD13", "PD14", "PD17",
326 "PD18", "PD19", "PD20", "PD22", "PD23";
328 drive-strength = <40>;
331 rgmii_pins: rgmii_pins {
332 pins = "PD8", "PD9", "PD10", "PD11", "PD12",
333 "PD13", "PD15", "PD16", "PD17", "PD18",
334 "PD19", "PD20", "PD21", "PD22", "PD23";
336 drive-strength = <40>;
340 pins = "PC0", "PC1", "PC2", "PC3";
345 pins = "PD0", "PD1", "PD2", "PD3";
349 uart0_pins_a: uart0 {
354 uart1_pins: uart1_pins {
359 uart1_rts_cts_pins: uart1_rts_cts_pins {
364 uart2_pins: uart2-pins {
369 uart3_pins: uart3-pins {
374 uart4_pins: uart4-pins {
379 uart4_rts_cts_pins: uart4-rts-cts-pins {
385 uart0: serial@1c28000 {
386 compatible = "snps,dw-apb-uart";
387 reg = <0x01c28000 0x400>;
388 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
391 clocks = <&ccu CLK_BUS_UART0>;
392 resets = <&ccu RST_BUS_UART0>;
396 uart1: serial@1c28400 {
397 compatible = "snps,dw-apb-uart";
398 reg = <0x01c28400 0x400>;
399 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
402 clocks = <&ccu CLK_BUS_UART1>;
403 resets = <&ccu RST_BUS_UART1>;
407 uart2: serial@1c28800 {
408 compatible = "snps,dw-apb-uart";
409 reg = <0x01c28800 0x400>;
410 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
413 clocks = <&ccu CLK_BUS_UART2>;
414 resets = <&ccu RST_BUS_UART2>;
418 uart3: serial@1c28c00 {
419 compatible = "snps,dw-apb-uart";
420 reg = <0x01c28c00 0x400>;
421 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
424 clocks = <&ccu CLK_BUS_UART3>;
425 resets = <&ccu RST_BUS_UART3>;
429 uart4: serial@1c29000 {
430 compatible = "snps,dw-apb-uart";
431 reg = <0x01c29000 0x400>;
432 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
435 clocks = <&ccu CLK_BUS_UART4>;
436 resets = <&ccu RST_BUS_UART4>;
441 compatible = "allwinner,sun6i-a31-i2c";
442 reg = <0x01c2ac00 0x400>;
443 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
444 clocks = <&ccu CLK_BUS_I2C0>;
445 resets = <&ccu RST_BUS_I2C0>;
447 #address-cells = <1>;
452 compatible = "allwinner,sun6i-a31-i2c";
453 reg = <0x01c2b000 0x400>;
454 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
455 clocks = <&ccu CLK_BUS_I2C1>;
456 resets = <&ccu RST_BUS_I2C1>;
458 #address-cells = <1>;
463 compatible = "allwinner,sun6i-a31-i2c";
464 reg = <0x01c2b400 0x400>;
465 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
466 clocks = <&ccu CLK_BUS_I2C2>;
467 resets = <&ccu RST_BUS_I2C2>;
469 #address-cells = <1>;
475 compatible = "allwinner,sun8i-h3-spi";
476 reg = <0x01c68000 0x1000>;
477 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
478 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
479 clock-names = "ahb", "mod";
480 dmas = <&dma 23>, <&dma 23>;
481 dma-names = "rx", "tx";
482 pinctrl-names = "default";
483 pinctrl-0 = <&spi0_pins>;
484 resets = <&ccu RST_BUS_SPI0>;
487 #address-cells = <1>;
492 compatible = "allwinner,sun8i-h3-spi";
493 reg = <0x01c69000 0x1000>;
494 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
495 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
496 clock-names = "ahb", "mod";
497 dmas = <&dma 24>, <&dma 24>;
498 dma-names = "rx", "tx";
499 pinctrl-names = "default";
500 pinctrl-0 = <&spi1_pins>;
501 resets = <&ccu RST_BUS_SPI1>;
504 #address-cells = <1>;
508 emac: ethernet@1c30000 {
509 compatible = "allwinner,sun50i-a64-emac";
511 reg = <0x01c30000 0x10000>;
512 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
513 interrupt-names = "macirq";
514 resets = <&ccu RST_BUS_EMAC>;
515 reset-names = "stmmaceth";
516 clocks = <&ccu CLK_BUS_EMAC>;
517 clock-names = "stmmaceth";
519 #address-cells = <1>;
523 compatible = "snps,dwmac-mdio";
524 #address-cells = <1>;
529 gic: interrupt-controller@1c81000 {
530 compatible = "arm,gic-400";
531 reg = <0x01c81000 0x1000>,
535 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
536 interrupt-controller;
537 #interrupt-cells = <3>;
541 compatible = "allwinner,sun6i-a31-rtc";
542 reg = <0x01f00000 0x54>;
543 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
544 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
547 r_intc: interrupt-controller@1f00c00 {
548 compatible = "allwinner,sun50i-a64-r-intc",
549 "allwinner,sun6i-a31-r-intc";
550 interrupt-controller;
551 #interrupt-cells = <2>;
552 reg = <0x01f00c00 0x400>;
553 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
556 r_ccu: clock@1f01400 {
557 compatible = "allwinner,sun50i-a64-r-ccu";
558 reg = <0x01f01400 0x100>;
559 clocks = <&osc24M>, <&osc32k>, <&iosc>,
561 clock-names = "hosc", "losc", "iosc", "pll-periph";
566 r_pio: pinctrl@1f02c00 {
567 compatible = "allwinner,sun50i-a64-r-pinctrl";
568 reg = <0x01f02c00 0x400>;
569 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
570 clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
571 clock-names = "apb", "hosc", "losc";
574 interrupt-controller;
575 #interrupt-cells = <3>;
584 compatible = "allwinner,sun8i-a23-rsb";
585 reg = <0x01f03400 0x400>;
586 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
588 clock-frequency = <3000000>;
590 pinctrl-names = "default";
591 pinctrl-0 = <&r_rsb_pins>;
593 #address-cells = <1>;