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-de2.h>
47 #include <dt-bindings/clock/sun8i-r-ccu.h>
48 #include <dt-bindings/interrupt-controller/arm-gic.h>
49 #include <dt-bindings/reset/sun50i-a64-ccu.h>
50 #include <dt-bindings/reset/sun8i-de2.h>
51 #include <dt-bindings/reset/sun8i-r-ccu.h>
54 interrupt-parent = <&gic>;
63 simplefb_lcd: framebuffer-lcd {
64 compatible = "allwinner,simple-framebuffer",
66 allwinner,pipeline = "mixer0-lcd0";
67 clocks = <&ccu CLK_TCON0>,
68 <&display_clocks CLK_MIXER0>;
72 simplefb_hdmi: framebuffer-hdmi {
73 compatible = "allwinner,simple-framebuffer",
75 allwinner,pipeline = "mixer1-lcd1-hdmi";
76 clocks = <&display_clocks CLK_MIXER1>,
77 <&ccu CLK_TCON1>, <&ccu CLK_HDMI>;
87 compatible = "arm,cortex-a53";
90 enable-method = "psci";
91 next-level-cache = <&L2>;
95 compatible = "arm,cortex-a53";
98 enable-method = "psci";
99 next-level-cache = <&L2>;
103 compatible = "arm,cortex-a53";
106 enable-method = "psci";
107 next-level-cache = <&L2>;
111 compatible = "arm,cortex-a53";
114 enable-method = "psci";
115 next-level-cache = <&L2>;
119 compatible = "cache";
125 compatible = "allwinner,sun50i-a64-display-engine";
126 allwinner,pipelines = <&mixer0>,
133 compatible = "fixed-clock";
134 clock-frequency = <24000000>;
135 clock-output-names = "osc24M";
140 compatible = "fixed-clock";
141 clock-frequency = <32768>;
142 clock-output-names = "ext-osc32k";
146 compatible = "arm,psci-0.2";
151 compatible = "simple-audio-card";
152 simple-audio-card,name = "sun50i-a64-audio";
153 simple-audio-card,format = "i2s";
154 simple-audio-card,frame-master = <&cpudai>;
155 simple-audio-card,bitclock-master = <&cpudai>;
156 simple-audio-card,mclk-fs = <128>;
157 simple-audio-card,aux-devs = <&codec_analog>;
158 simple-audio-card,routing =
159 "Left DAC", "AIF1 Slot 0 Left",
160 "Right DAC", "AIF1 Slot 0 Right",
161 "AIF1 Slot 0 Left ADC", "Left ADC",
162 "AIF1 Slot 0 Right ADC", "Right ADC";
165 cpudai: simple-audio-card,cpu {
169 link_codec: simple-audio-card,codec {
170 sound-dai = <&codec>;
175 compatible = "simple-audio-card";
176 simple-audio-card,name = "On-board SPDIF";
178 simple-audio-card,cpu {
179 sound-dai = <&spdif>;
182 simple-audio-card,codec {
183 sound-dai = <&spdif_out>;
187 spdif_out: spdif-out {
188 #sound-dai-cells = <0>;
189 compatible = "linux,spdif-dit";
193 compatible = "arm,armv8-timer";
194 allwinner,erratum-unknown1;
195 interrupts = <GIC_PPI 13
196 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
198 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
200 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
202 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
206 compatible = "simple-bus";
207 #address-cells = <1>;
212 compatible = "allwinner,sun50i-a64-de2";
213 reg = <0x1000000 0x400000>;
214 allwinner,sram = <&de2_sram 1>;
215 #address-cells = <1>;
217 ranges = <0 0x1000000 0x400000>;
219 display_clocks: clock@0 {
220 compatible = "allwinner,sun50i-a64-de2-clk";
221 reg = <0x0 0x100000>;
222 clocks = <&ccu CLK_DE>,
226 resets = <&ccu RST_BUS_DE>;
231 mixer0: mixer@100000 {
232 compatible = "allwinner,sun50i-a64-de2-mixer-0";
233 reg = <0x100000 0x100000>;
234 clocks = <&display_clocks CLK_BUS_MIXER0>,
235 <&display_clocks CLK_MIXER0>;
238 resets = <&display_clocks RST_MIXER0>;
241 #address-cells = <1>;
245 #address-cells = <1>;
249 mixer0_out_tcon0: endpoint@0 {
251 remote-endpoint = <&tcon0_in_mixer0>;
254 mixer0_out_tcon1: endpoint@1 {
256 remote-endpoint = <&tcon1_in_mixer0>;
262 mixer1: mixer@200000 {
263 compatible = "allwinner,sun50i-a64-de2-mixer-1";
264 reg = <0x200000 0x100000>;
265 clocks = <&display_clocks CLK_BUS_MIXER1>,
266 <&display_clocks CLK_MIXER1>;
269 resets = <&display_clocks RST_MIXER1>;
272 #address-cells = <1>;
276 #address-cells = <1>;
280 mixer1_out_tcon0: endpoint@0 {
282 remote-endpoint = <&tcon0_in_mixer1>;
285 mixer1_out_tcon1: endpoint@1 {
287 remote-endpoint = <&tcon1_in_mixer1>;
294 syscon: syscon@1c00000 {
295 compatible = "allwinner,sun50i-a64-system-control";
296 reg = <0x01c00000 0x1000>;
297 #address-cells = <1>;
302 compatible = "mmio-sram";
303 reg = <0x00018000 0x28000>;
304 #address-cells = <1>;
306 ranges = <0 0x00018000 0x28000>;
308 de2_sram: sram-section@0 {
309 compatible = "allwinner,sun50i-a64-sram-c";
310 reg = <0x0000 0x28000>;
314 sram_c1: sram@1d00000 {
315 compatible = "mmio-sram";
316 reg = <0x01d00000 0x40000>;
317 #address-cells = <1>;
319 ranges = <0 0x01d00000 0x40000>;
321 ve_sram: sram-section@0 {
322 compatible = "allwinner,sun50i-a64-sram-c1",
323 "allwinner,sun4i-a10-sram-c1";
324 reg = <0x000000 0x40000>;
329 dma: dma-controller@1c02000 {
330 compatible = "allwinner,sun50i-a64-dma";
331 reg = <0x01c02000 0x1000>;
332 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
333 clocks = <&ccu CLK_BUS_DMA>;
336 resets = <&ccu RST_BUS_DMA>;
340 tcon0: lcd-controller@1c0c000 {
341 compatible = "allwinner,sun50i-a64-tcon-lcd",
342 "allwinner,sun8i-a83t-tcon-lcd";
343 reg = <0x01c0c000 0x1000>;
344 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
345 clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>;
346 clock-names = "ahb", "tcon-ch0";
347 clock-output-names = "tcon-pixel-clock";
349 resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>;
350 reset-names = "lcd", "lvds";
353 #address-cells = <1>;
357 #address-cells = <1>;
361 tcon0_in_mixer0: endpoint@0 {
363 remote-endpoint = <&mixer0_out_tcon0>;
366 tcon0_in_mixer1: endpoint@1 {
368 remote-endpoint = <&mixer1_out_tcon0>;
373 #address-cells = <1>;
380 tcon1: lcd-controller@1c0d000 {
381 compatible = "allwinner,sun50i-a64-tcon-tv",
382 "allwinner,sun8i-a83t-tcon-tv";
383 reg = <0x01c0d000 0x1000>;
384 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
385 clocks = <&ccu CLK_BUS_TCON1>, <&ccu CLK_TCON1>;
386 clock-names = "ahb", "tcon-ch1";
387 resets = <&ccu RST_BUS_TCON1>;
391 #address-cells = <1>;
395 #address-cells = <1>;
399 tcon1_in_mixer0: endpoint@0 {
401 remote-endpoint = <&mixer0_out_tcon1>;
404 tcon1_in_mixer1: endpoint@1 {
406 remote-endpoint = <&mixer1_out_tcon1>;
411 #address-cells = <1>;
415 tcon1_out_hdmi: endpoint@1 {
417 remote-endpoint = <&hdmi_in_tcon1>;
423 video-codec@1c0e000 {
424 compatible = "allwinner,sun50i-a64-video-engine";
425 reg = <0x01c0e000 0x1000>;
426 clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>,
428 clock-names = "ahb", "mod", "ram";
429 resets = <&ccu RST_BUS_VE>;
430 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
431 allwinner,sram = <&ve_sram 1>;
435 compatible = "allwinner,sun50i-a64-mmc";
436 reg = <0x01c0f000 0x1000>;
437 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
438 clock-names = "ahb", "mmc";
439 resets = <&ccu RST_BUS_MMC0>;
441 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
442 max-frequency = <150000000>;
444 #address-cells = <1>;
449 compatible = "allwinner,sun50i-a64-mmc";
450 reg = <0x01c10000 0x1000>;
451 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
452 clock-names = "ahb", "mmc";
453 resets = <&ccu RST_BUS_MMC1>;
455 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
456 max-frequency = <150000000>;
458 #address-cells = <1>;
463 compatible = "allwinner,sun50i-a64-emmc";
464 reg = <0x01c11000 0x1000>;
465 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
466 clock-names = "ahb", "mmc";
467 resets = <&ccu RST_BUS_MMC2>;
469 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
470 max-frequency = <200000000>;
472 #address-cells = <1>;
476 sid: eeprom@1c14000 {
477 compatible = "allwinner,sun50i-a64-sid";
478 reg = <0x1c14000 0x400>;
481 usb_otg: usb@1c19000 {
482 compatible = "allwinner,sun8i-a33-musb";
483 reg = <0x01c19000 0x0400>;
484 clocks = <&ccu CLK_BUS_OTG>;
485 resets = <&ccu RST_BUS_OTG>;
486 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
487 interrupt-names = "mc";
490 extcon = <&usbphy 0>;
495 usbphy: phy@1c19400 {
496 compatible = "allwinner,sun50i-a64-usb-phy";
497 reg = <0x01c19400 0x14>,
500 reg-names = "phy_ctrl",
503 clocks = <&ccu CLK_USB_PHY0>,
505 clock-names = "usb0_phy",
507 resets = <&ccu RST_USB_PHY0>,
509 reset-names = "usb0_reset",
516 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
517 reg = <0x01c1a000 0x100>;
518 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
519 clocks = <&ccu CLK_BUS_OHCI0>,
520 <&ccu CLK_BUS_EHCI0>,
521 <&ccu CLK_USB_OHCI0>;
522 resets = <&ccu RST_BUS_OHCI0>,
523 <&ccu RST_BUS_EHCI0>;
528 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
529 reg = <0x01c1a400 0x100>;
530 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
531 clocks = <&ccu CLK_BUS_OHCI0>,
532 <&ccu CLK_USB_OHCI0>;
533 resets = <&ccu RST_BUS_OHCI0>;
538 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
539 reg = <0x01c1b000 0x100>;
540 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
541 clocks = <&ccu CLK_BUS_OHCI1>,
542 <&ccu CLK_BUS_EHCI1>,
543 <&ccu CLK_USB_OHCI1>;
544 resets = <&ccu RST_BUS_OHCI1>,
545 <&ccu RST_BUS_EHCI1>;
551 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
552 reg = <0x01c1b400 0x100>;
553 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
554 clocks = <&ccu CLK_BUS_OHCI1>,
555 <&ccu CLK_USB_OHCI1>;
556 resets = <&ccu RST_BUS_OHCI1>;
562 compatible = "allwinner,sun50i-a64-ccu";
563 reg = <0x01c20000 0x400>;
564 clocks = <&osc24M>, <&rtc 0>;
565 clock-names = "hosc", "losc";
570 pio: pinctrl@1c20800 {
571 compatible = "allwinner,sun50i-a64-pinctrl";
572 reg = <0x01c20800 0x400>;
573 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
574 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
575 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
576 clocks = <&ccu 58>, <&osc24M>, <&rtc 0>;
577 clock-names = "apb", "hosc", "losc";
580 interrupt-controller;
581 #interrupt-cells = <3>;
584 pins = "PE0", "PE2", "PE3", "PE4", "PE5", "PE6",
585 "PE7", "PE8", "PE9", "PE10", "PE11";
590 csi_mclk_pin: csi-mclk-pin {
595 i2c0_pins: i2c0-pins {
600 i2c1_pins: i2c1-pins {
606 lcd_rgb666_pins: lcd-rgb666-pins {
607 pins = "PD0", "PD1", "PD2", "PD3", "PD4",
608 "PD5", "PD6", "PD7", "PD8", "PD9",
609 "PD10", "PD11", "PD12", "PD13",
610 "PD14", "PD15", "PD16", "PD17",
611 "PD18", "PD19", "PD20", "PD21";
615 mmc0_pins: mmc0-pins {
616 pins = "PF0", "PF1", "PF2", "PF3",
619 drive-strength = <30>;
623 mmc1_pins: mmc1-pins {
624 pins = "PG0", "PG1", "PG2", "PG3",
627 drive-strength = <30>;
631 mmc2_pins: mmc2-pins {
632 pins = "PC5", "PC6", "PC8", "PC9",
633 "PC10","PC11", "PC12", "PC13",
634 "PC14", "PC15", "PC16";
636 drive-strength = <30>;
640 mmc2_ds_pin: mmc2-ds-pin {
643 drive-strength = <30>;
652 rmii_pins: rmii-pins {
653 pins = "PD10", "PD11", "PD13", "PD14", "PD17",
654 "PD18", "PD19", "PD20", "PD22", "PD23";
656 drive-strength = <40>;
659 rgmii_pins: rgmii-pins {
660 pins = "PD8", "PD9", "PD10", "PD11", "PD12",
661 "PD13", "PD15", "PD16", "PD17", "PD18",
662 "PD19", "PD20", "PD21", "PD22", "PD23";
664 drive-strength = <40>;
667 spdif_tx_pin: spdif-tx-pin {
672 spi0_pins: spi0-pins {
673 pins = "PC0", "PC1", "PC2", "PC3";
677 spi1_pins: spi1-pins {
678 pins = "PD0", "PD1", "PD2", "PD3";
682 uart0_pb_pins: uart0-pb-pins {
687 uart1_pins: uart1-pins {
692 uart1_rts_cts_pins: uart1-rts-cts-pins {
697 uart2_pins: uart2-pins {
702 uart3_pins: uart3-pins {
707 uart4_pins: uart4-pins {
712 uart4_rts_cts_pins: uart4-rts-cts-pins {
718 spdif: spdif@1c21000 {
719 #sound-dai-cells = <0>;
720 compatible = "allwinner,sun50i-a64-spdif",
721 "allwinner,sun8i-h3-spdif";
722 reg = <0x01c21000 0x400>;
723 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
724 clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
725 resets = <&ccu RST_BUS_SPDIF>;
726 clock-names = "apb", "spdif";
729 pinctrl-names = "default";
730 pinctrl-0 = <&spdif_tx_pin>;
734 lradc: lradc@1c21800 {
735 compatible = "allwinner,sun50i-a64-lradc",
736 "allwinner,sun8i-a83t-r-lradc";
737 reg = <0x01c21800 0x400>;
738 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
743 #sound-dai-cells = <0>;
744 compatible = "allwinner,sun50i-a64-i2s",
745 "allwinner,sun8i-h3-i2s";
746 reg = <0x01c22000 0x400>;
747 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
748 clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
749 clock-names = "apb", "mod";
750 resets = <&ccu RST_BUS_I2S0>;
751 dma-names = "rx", "tx";
752 dmas = <&dma 3>, <&dma 3>;
757 #sound-dai-cells = <0>;
758 compatible = "allwinner,sun50i-a64-i2s",
759 "allwinner,sun8i-h3-i2s";
760 reg = <0x01c22400 0x400>;
761 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
762 clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
763 clock-names = "apb", "mod";
764 resets = <&ccu RST_BUS_I2S1>;
765 dma-names = "rx", "tx";
766 dmas = <&dma 4>, <&dma 4>;
771 #sound-dai-cells = <0>;
772 compatible = "allwinner,sun50i-a64-codec-i2s";
773 reg = <0x01c22c00 0x200>;
774 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
775 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
776 clock-names = "apb", "mod";
777 resets = <&ccu RST_BUS_CODEC>;
778 dmas = <&dma 15>, <&dma 15>;
779 dma-names = "rx", "tx";
783 codec: codec@1c22e00 {
784 #sound-dai-cells = <0>;
785 compatible = "allwinner,sun8i-a33-codec";
786 reg = <0x01c22e00 0x600>;
787 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
788 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
789 clock-names = "bus", "mod";
793 uart0: serial@1c28000 {
794 compatible = "snps,dw-apb-uart";
795 reg = <0x01c28000 0x400>;
796 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
799 clocks = <&ccu CLK_BUS_UART0>;
800 resets = <&ccu RST_BUS_UART0>;
804 uart1: serial@1c28400 {
805 compatible = "snps,dw-apb-uart";
806 reg = <0x01c28400 0x400>;
807 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
810 clocks = <&ccu CLK_BUS_UART1>;
811 resets = <&ccu RST_BUS_UART1>;
815 uart2: serial@1c28800 {
816 compatible = "snps,dw-apb-uart";
817 reg = <0x01c28800 0x400>;
818 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
821 clocks = <&ccu CLK_BUS_UART2>;
822 resets = <&ccu RST_BUS_UART2>;
826 uart3: serial@1c28c00 {
827 compatible = "snps,dw-apb-uart";
828 reg = <0x01c28c00 0x400>;
829 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
832 clocks = <&ccu CLK_BUS_UART3>;
833 resets = <&ccu RST_BUS_UART3>;
837 uart4: serial@1c29000 {
838 compatible = "snps,dw-apb-uart";
839 reg = <0x01c29000 0x400>;
840 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
843 clocks = <&ccu CLK_BUS_UART4>;
844 resets = <&ccu RST_BUS_UART4>;
849 compatible = "allwinner,sun6i-a31-i2c";
850 reg = <0x01c2ac00 0x400>;
851 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
852 clocks = <&ccu CLK_BUS_I2C0>;
853 resets = <&ccu RST_BUS_I2C0>;
854 pinctrl-names = "default";
855 pinctrl-0 = <&i2c0_pins>;
857 #address-cells = <1>;
862 compatible = "allwinner,sun6i-a31-i2c";
863 reg = <0x01c2b000 0x400>;
864 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
865 clocks = <&ccu CLK_BUS_I2C1>;
866 resets = <&ccu RST_BUS_I2C1>;
867 pinctrl-names = "default";
868 pinctrl-0 = <&i2c1_pins>;
870 #address-cells = <1>;
875 compatible = "allwinner,sun6i-a31-i2c";
876 reg = <0x01c2b400 0x400>;
877 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
878 clocks = <&ccu CLK_BUS_I2C2>;
879 resets = <&ccu RST_BUS_I2C2>;
881 #address-cells = <1>;
887 compatible = "allwinner,sun8i-h3-spi";
888 reg = <0x01c68000 0x1000>;
889 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
890 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
891 clock-names = "ahb", "mod";
892 dmas = <&dma 23>, <&dma 23>;
893 dma-names = "rx", "tx";
894 pinctrl-names = "default";
895 pinctrl-0 = <&spi0_pins>;
896 resets = <&ccu RST_BUS_SPI0>;
899 #address-cells = <1>;
904 compatible = "allwinner,sun8i-h3-spi";
905 reg = <0x01c69000 0x1000>;
906 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
907 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
908 clock-names = "ahb", "mod";
909 dmas = <&dma 24>, <&dma 24>;
910 dma-names = "rx", "tx";
911 pinctrl-names = "default";
912 pinctrl-0 = <&spi1_pins>;
913 resets = <&ccu RST_BUS_SPI1>;
916 #address-cells = <1>;
920 emac: ethernet@1c30000 {
921 compatible = "allwinner,sun50i-a64-emac";
923 reg = <0x01c30000 0x10000>;
924 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
925 interrupt-names = "macirq";
926 resets = <&ccu RST_BUS_EMAC>;
927 reset-names = "stmmaceth";
928 clocks = <&ccu CLK_BUS_EMAC>;
929 clock-names = "stmmaceth";
933 compatible = "snps,dwmac-mdio";
934 #address-cells = <1>;
940 compatible = "allwinner,sun50i-a64-mali", "arm,mali-400";
941 reg = <0x01c40000 0x10000>;
942 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
943 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
944 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
945 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
946 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
947 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
948 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
949 interrupt-names = "gp",
956 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
957 clock-names = "bus", "core";
958 resets = <&ccu RST_BUS_GPU>;
961 gic: interrupt-controller@1c81000 {
962 compatible = "arm,gic-400";
963 reg = <0x01c81000 0x1000>,
967 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
968 interrupt-controller;
969 #interrupt-cells = <3>;
973 compatible = "allwinner,sun50i-a64-pwm",
974 "allwinner,sun5i-a13-pwm";
975 reg = <0x01c21400 0x400>;
977 pinctrl-names = "default";
978 pinctrl-0 = <&pwm_pin>;
984 compatible = "allwinner,sun50i-a64-csi";
985 reg = <0x01cb0000 0x1000>;
986 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
987 clocks = <&ccu CLK_BUS_CSI>,
990 clock-names = "bus", "mod", "ram";
991 resets = <&ccu RST_BUS_CSI>;
992 pinctrl-names = "default";
993 pinctrl-0 = <&csi_pins>;
998 compatible = "allwinner,sun50i-a64-dw-hdmi",
999 "allwinner,sun8i-a83t-dw-hdmi";
1000 reg = <0x01ee0000 0x10000>;
1002 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1003 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
1005 clock-names = "iahb", "isfr", "tmds";
1006 resets = <&ccu RST_BUS_HDMI1>;
1007 reset-names = "ctrl";
1009 phy-names = "hdmi-phy";
1010 status = "disabled";
1013 #address-cells = <1>;
1019 hdmi_in_tcon1: endpoint {
1020 remote-endpoint = <&tcon1_out_hdmi>;
1030 hdmi_phy: hdmi-phy@1ef0000 {
1031 compatible = "allwinner,sun50i-a64-hdmi-phy";
1032 reg = <0x01ef0000 0x10000>;
1033 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
1035 clock-names = "bus", "mod", "pll-0";
1036 resets = <&ccu RST_BUS_HDMI0>;
1037 reset-names = "phy";
1042 compatible = "allwinner,sun50i-a64-rtc",
1043 "allwinner,sun8i-h3-rtc";
1044 reg = <0x01f00000 0x400>;
1045 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1046 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1047 clock-output-names = "osc32k", "osc32k-out", "iosc";
1052 r_intc: interrupt-controller@1f00c00 {
1053 compatible = "allwinner,sun50i-a64-r-intc",
1054 "allwinner,sun6i-a31-r-intc";
1055 interrupt-controller;
1056 #interrupt-cells = <2>;
1057 reg = <0x01f00c00 0x400>;
1058 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1061 r_ccu: clock@1f01400 {
1062 compatible = "allwinner,sun50i-a64-r-ccu";
1063 reg = <0x01f01400 0x100>;
1064 clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, <&ccu 11>;
1065 clock-names = "hosc", "losc", "iosc", "pll-periph";
1070 codec_analog: codec-analog@1f015c0 {
1071 compatible = "allwinner,sun50i-a64-codec-analog";
1072 reg = <0x01f015c0 0x4>;
1073 status = "disabled";
1076 r_i2c: i2c@1f02400 {
1077 compatible = "allwinner,sun50i-a64-i2c",
1078 "allwinner,sun6i-a31-i2c";
1079 reg = <0x01f02400 0x400>;
1080 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
1081 clocks = <&r_ccu CLK_APB0_I2C>;
1082 resets = <&r_ccu RST_APB0_I2C>;
1083 status = "disabled";
1084 #address-cells = <1>;
1088 r_pwm: pwm@1f03800 {
1089 compatible = "allwinner,sun50i-a64-pwm",
1090 "allwinner,sun5i-a13-pwm";
1091 reg = <0x01f03800 0x400>;
1093 pinctrl-names = "default";
1094 pinctrl-0 = <&r_pwm_pin>;
1096 status = "disabled";
1099 r_pio: pinctrl@1f02c00 {
1100 compatible = "allwinner,sun50i-a64-r-pinctrl";
1101 reg = <0x01f02c00 0x400>;
1102 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1103 clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
1104 clock-names = "apb", "hosc", "losc";
1107 interrupt-controller;
1108 #interrupt-cells = <3>;
1110 r_i2c_pl89_pins: r-i2c-pl89-pins {
1111 pins = "PL8", "PL9";
1115 r_pwm_pin: r-pwm-pin {
1120 r_rsb_pins: r-rsb-pins {
1121 pins = "PL0", "PL1";
1126 r_rsb: rsb@1f03400 {
1127 compatible = "allwinner,sun8i-a23-rsb";
1128 reg = <0x01f03400 0x400>;
1129 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1130 clocks = <&r_ccu 6>;
1131 clock-frequency = <3000000>;
1132 resets = <&r_ccu 2>;
1133 pinctrl-names = "default";
1134 pinctrl-0 = <&r_rsb_pins>;
1135 status = "disabled";
1136 #address-cells = <1>;
1140 wdt0: watchdog@1c20ca0 {
1141 compatible = "allwinner,sun50i-a64-wdt",
1142 "allwinner,sun6i-a31-wdt";
1143 reg = <0x01c20ca0 0x20>;
1144 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;