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 = "simple-audio-card";
117 simple-audio-card,name = "On-board SPDIF";
119 simple-audio-card,cpu {
120 sound-dai = <&spdif>;
123 simple-audio-card,codec {
124 sound-dai = <&spdif_out>;
128 spdif_out: spdif-out {
129 #sound-dai-cells = <0>;
130 compatible = "linux,spdif-dit";
134 compatible = "arm,armv8-timer";
135 interrupts = <GIC_PPI 13
136 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
138 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
140 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
142 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
146 compatible = "simple-bus";
147 #address-cells = <1>;
151 syscon: syscon@1c00000 {
152 compatible = "allwinner,sun50i-a64-system-controller",
154 reg = <0x01c00000 0x1000>;
157 dma: dma-controller@1c02000 {
158 compatible = "allwinner,sun50i-a64-dma";
159 reg = <0x01c02000 0x1000>;
160 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
161 clocks = <&ccu CLK_BUS_DMA>;
164 resets = <&ccu RST_BUS_DMA>;
169 compatible = "allwinner,sun50i-a64-mmc";
170 reg = <0x01c0f000 0x1000>;
171 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
172 clock-names = "ahb", "mmc";
173 resets = <&ccu RST_BUS_MMC0>;
175 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
176 max-frequency = <150000000>;
178 #address-cells = <1>;
183 compatible = "allwinner,sun50i-a64-mmc";
184 reg = <0x01c10000 0x1000>;
185 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
186 clock-names = "ahb", "mmc";
187 resets = <&ccu RST_BUS_MMC1>;
189 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
190 max-frequency = <150000000>;
192 #address-cells = <1>;
197 compatible = "allwinner,sun50i-a64-emmc";
198 reg = <0x01c11000 0x1000>;
199 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
200 clock-names = "ahb", "mmc";
201 resets = <&ccu RST_BUS_MMC2>;
203 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
204 max-frequency = <200000000>;
206 #address-cells = <1>;
210 usb_otg: usb@1c19000 {
211 compatible = "allwinner,sun8i-a33-musb";
212 reg = <0x01c19000 0x0400>;
213 clocks = <&ccu CLK_BUS_OTG>;
214 resets = <&ccu RST_BUS_OTG>;
215 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
216 interrupt-names = "mc";
219 extcon = <&usbphy 0>;
223 usbphy: phy@1c19400 {
224 compatible = "allwinner,sun50i-a64-usb-phy";
225 reg = <0x01c19400 0x14>,
228 reg-names = "phy_ctrl",
231 clocks = <&ccu CLK_USB_PHY0>,
233 clock-names = "usb0_phy",
235 resets = <&ccu RST_USB_PHY0>,
237 reset-names = "usb0_reset",
244 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
245 reg = <0x01c1a000 0x100>;
246 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
247 clocks = <&ccu CLK_BUS_OHCI0>,
248 <&ccu CLK_BUS_EHCI0>,
249 <&ccu CLK_USB_OHCI0>;
250 resets = <&ccu RST_BUS_OHCI0>,
251 <&ccu RST_BUS_EHCI0>;
256 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
257 reg = <0x01c1a400 0x100>;
258 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
259 clocks = <&ccu CLK_BUS_OHCI0>,
260 <&ccu CLK_USB_OHCI0>;
261 resets = <&ccu RST_BUS_OHCI0>;
266 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
267 reg = <0x01c1b000 0x100>;
268 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
269 clocks = <&ccu CLK_BUS_OHCI1>,
270 <&ccu CLK_BUS_EHCI1>,
271 <&ccu CLK_USB_OHCI1>;
272 resets = <&ccu RST_BUS_OHCI1>,
273 <&ccu RST_BUS_EHCI1>;
280 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
281 reg = <0x01c1b400 0x100>;
282 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
283 clocks = <&ccu CLK_BUS_OHCI1>,
284 <&ccu CLK_USB_OHCI1>;
285 resets = <&ccu RST_BUS_OHCI1>;
292 compatible = "allwinner,sun50i-a64-ccu";
293 reg = <0x01c20000 0x400>;
294 clocks = <&osc24M>, <&osc32k>;
295 clock-names = "hosc", "losc";
300 pio: pinctrl@1c20800 {
301 compatible = "allwinner,sun50i-a64-pinctrl";
302 reg = <0x01c20800 0x400>;
303 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
304 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
305 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
309 interrupt-controller;
310 #interrupt-cells = <3>;
312 i2c1_pins: i2c1_pins {
317 mmc0_pins: mmc0-pins {
318 pins = "PF0", "PF1", "PF2", "PF3",
321 drive-strength = <30>;
325 mmc1_pins: mmc1-pins {
326 pins = "PG0", "PG1", "PG2", "PG3",
329 drive-strength = <30>;
333 mmc2_pins: mmc2-pins {
334 pins = "PC1", "PC5", "PC6", "PC8", "PC9",
335 "PC10","PC11", "PC12", "PC13",
336 "PC14", "PC15", "PC16";
338 drive-strength = <30>;
342 rmii_pins: rmii_pins {
343 pins = "PD10", "PD11", "PD13", "PD14", "PD17",
344 "PD18", "PD19", "PD20", "PD22", "PD23";
346 drive-strength = <40>;
349 rgmii_pins: rgmii_pins {
350 pins = "PD8", "PD9", "PD10", "PD11", "PD12",
351 "PD13", "PD15", "PD16", "PD17", "PD18",
352 "PD19", "PD20", "PD21", "PD22", "PD23";
354 drive-strength = <40>;
357 spdif_tx_pin: spdif {
363 pins = "PC0", "PC1", "PC2", "PC3";
368 pins = "PD0", "PD1", "PD2", "PD3";
372 uart0_pins_a: uart0 {
377 uart1_pins: uart1_pins {
382 uart1_rts_cts_pins: uart1_rts_cts_pins {
387 uart2_pins: uart2-pins {
392 uart3_pins: uart3-pins {
397 uart4_pins: uart4-pins {
402 uart4_rts_cts_pins: uart4-rts-cts-pins {
408 spdif: spdif@1c21000 {
409 #sound-dai-cells = <0>;
410 compatible = "allwinner,sun50i-a64-spdif",
411 "allwinner,sun8i-h3-spdif";
412 reg = <0x01c21000 0x400>;
413 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
414 clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
415 resets = <&ccu RST_BUS_SPDIF>;
416 clock-names = "apb", "spdif";
419 pinctrl-names = "default";
420 pinctrl-0 = <&spdif_tx_pin>;
424 uart0: serial@1c28000 {
425 compatible = "snps,dw-apb-uart";
426 reg = <0x01c28000 0x400>;
427 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
430 clocks = <&ccu CLK_BUS_UART0>;
431 resets = <&ccu RST_BUS_UART0>;
435 uart1: serial@1c28400 {
436 compatible = "snps,dw-apb-uart";
437 reg = <0x01c28400 0x400>;
438 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
441 clocks = <&ccu CLK_BUS_UART1>;
442 resets = <&ccu RST_BUS_UART1>;
446 uart2: serial@1c28800 {
447 compatible = "snps,dw-apb-uart";
448 reg = <0x01c28800 0x400>;
449 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
452 clocks = <&ccu CLK_BUS_UART2>;
453 resets = <&ccu RST_BUS_UART2>;
457 uart3: serial@1c28c00 {
458 compatible = "snps,dw-apb-uart";
459 reg = <0x01c28c00 0x400>;
460 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
463 clocks = <&ccu CLK_BUS_UART3>;
464 resets = <&ccu RST_BUS_UART3>;
468 uart4: serial@1c29000 {
469 compatible = "snps,dw-apb-uart";
470 reg = <0x01c29000 0x400>;
471 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
474 clocks = <&ccu CLK_BUS_UART4>;
475 resets = <&ccu RST_BUS_UART4>;
480 compatible = "allwinner,sun6i-a31-i2c";
481 reg = <0x01c2ac00 0x400>;
482 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
483 clocks = <&ccu CLK_BUS_I2C0>;
484 resets = <&ccu RST_BUS_I2C0>;
486 #address-cells = <1>;
491 compatible = "allwinner,sun6i-a31-i2c";
492 reg = <0x01c2b000 0x400>;
493 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
494 clocks = <&ccu CLK_BUS_I2C1>;
495 resets = <&ccu RST_BUS_I2C1>;
497 #address-cells = <1>;
502 compatible = "allwinner,sun6i-a31-i2c";
503 reg = <0x01c2b400 0x400>;
504 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
505 clocks = <&ccu CLK_BUS_I2C2>;
506 resets = <&ccu RST_BUS_I2C2>;
508 #address-cells = <1>;
514 compatible = "allwinner,sun8i-h3-spi";
515 reg = <0x01c68000 0x1000>;
516 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
517 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
518 clock-names = "ahb", "mod";
519 dmas = <&dma 23>, <&dma 23>;
520 dma-names = "rx", "tx";
521 pinctrl-names = "default";
522 pinctrl-0 = <&spi0_pins>;
523 resets = <&ccu RST_BUS_SPI0>;
526 #address-cells = <1>;
531 compatible = "allwinner,sun8i-h3-spi";
532 reg = <0x01c69000 0x1000>;
533 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
534 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
535 clock-names = "ahb", "mod";
536 dmas = <&dma 24>, <&dma 24>;
537 dma-names = "rx", "tx";
538 pinctrl-names = "default";
539 pinctrl-0 = <&spi1_pins>;
540 resets = <&ccu RST_BUS_SPI1>;
543 #address-cells = <1>;
547 emac: ethernet@1c30000 {
548 compatible = "allwinner,sun50i-a64-emac";
550 reg = <0x01c30000 0x10000>;
551 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
552 interrupt-names = "macirq";
553 resets = <&ccu RST_BUS_EMAC>;
554 reset-names = "stmmaceth";
555 clocks = <&ccu CLK_BUS_EMAC>;
556 clock-names = "stmmaceth";
558 #address-cells = <1>;
562 compatible = "snps,dwmac-mdio";
563 #address-cells = <1>;
568 gic: interrupt-controller@1c81000 {
569 compatible = "arm,gic-400";
570 reg = <0x01c81000 0x1000>,
574 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
575 interrupt-controller;
576 #interrupt-cells = <3>;
580 compatible = "allwinner,sun6i-a31-rtc";
581 reg = <0x01f00000 0x54>;
582 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
583 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
586 r_intc: interrupt-controller@1f00c00 {
587 compatible = "allwinner,sun50i-a64-r-intc",
588 "allwinner,sun6i-a31-r-intc";
589 interrupt-controller;
590 #interrupt-cells = <2>;
591 reg = <0x01f00c00 0x400>;
592 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
595 r_ccu: clock@1f01400 {
596 compatible = "allwinner,sun50i-a64-r-ccu";
597 reg = <0x01f01400 0x100>;
598 clocks = <&osc24M>, <&osc32k>, <&iosc>,
600 clock-names = "hosc", "losc", "iosc", "pll-periph";
605 r_pio: pinctrl@1f02c00 {
606 compatible = "allwinner,sun50i-a64-r-pinctrl";
607 reg = <0x01f02c00 0x400>;
608 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
609 clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
610 clock-names = "apb", "hosc", "losc";
613 interrupt-controller;
614 #interrupt-cells = <3>;
623 compatible = "allwinner,sun8i-a23-rsb";
624 reg = <0x01f03400 0x400>;
625 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
627 clock-frequency = <3000000>;
629 pinctrl-names = "default";
630 pinctrl-0 = <&r_rsb_pins>;
632 #address-cells = <1>;