1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2016 ARM Ltd.
3 // based on the Allwinner H3 dtsi:
4 // Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com>
6 #include <dt-bindings/clock/sun50i-a64-ccu.h>
7 #include <dt-bindings/clock/sun8i-de2.h>
8 #include <dt-bindings/clock/sun8i-r-ccu.h>
9 #include <dt-bindings/interrupt-controller/arm-gic.h>
10 #include <dt-bindings/reset/sun50i-a64-ccu.h>
11 #include <dt-bindings/reset/sun8i-de2.h>
12 #include <dt-bindings/reset/sun8i-r-ccu.h>
13 #include <dt-bindings/thermal/thermal.h>
16 interrupt-parent = <&gic>;
25 simplefb_lcd: framebuffer-lcd {
26 compatible = "allwinner,simple-framebuffer",
28 allwinner,pipeline = "mixer0-lcd0";
29 clocks = <&ccu CLK_TCON0>,
30 <&display_clocks CLK_MIXER0>;
34 simplefb_hdmi: framebuffer-hdmi {
35 compatible = "allwinner,simple-framebuffer",
37 allwinner,pipeline = "mixer1-lcd1-hdmi";
38 clocks = <&display_clocks CLK_MIXER1>,
39 <&ccu CLK_TCON1>, <&ccu CLK_HDMI>;
49 compatible = "arm,cortex-a53";
52 enable-method = "psci";
53 next-level-cache = <&L2>;
60 compatible = "arm,cortex-a53";
63 enable-method = "psci";
64 next-level-cache = <&L2>;
71 compatible = "arm,cortex-a53";
74 enable-method = "psci";
75 next-level-cache = <&L2>;
82 compatible = "arm,cortex-a53";
85 enable-method = "psci";
86 next-level-cache = <&L2>;
99 compatible = "allwinner,sun50i-a64-display-engine";
100 allwinner,pipelines = <&mixer0>,
107 compatible = "fixed-clock";
108 clock-frequency = <24000000>;
109 clock-output-names = "osc24M";
114 compatible = "fixed-clock";
115 clock-frequency = <32768>;
116 clock-output-names = "ext-osc32k";
120 compatible = "arm,cortex-a53-pmu";
121 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
122 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
123 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
124 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
125 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
129 compatible = "arm,psci-0.2";
134 compatible = "simple-audio-card";
135 simple-audio-card,name = "sun50i-a64-audio";
136 simple-audio-card,format = "i2s";
137 simple-audio-card,frame-master = <&cpudai>;
138 simple-audio-card,bitclock-master = <&cpudai>;
139 simple-audio-card,mclk-fs = <128>;
140 simple-audio-card,aux-devs = <&codec_analog>;
141 simple-audio-card,routing =
142 "Left DAC", "AIF1 Slot 0 Left",
143 "Right DAC", "AIF1 Slot 0 Right",
144 "AIF1 Slot 0 Left ADC", "Left ADC",
145 "AIF1 Slot 0 Right ADC", "Right ADC";
148 cpudai: simple-audio-card,cpu {
152 link_codec: simple-audio-card,codec {
153 sound-dai = <&codec>;
158 compatible = "simple-audio-card";
159 simple-audio-card,name = "On-board SPDIF";
161 simple-audio-card,cpu {
162 sound-dai = <&spdif>;
165 simple-audio-card,codec {
166 sound-dai = <&spdif_out>;
170 spdif_out: spdif-out {
171 #sound-dai-cells = <0>;
172 compatible = "linux,spdif-dit";
176 compatible = "arm,armv8-timer";
177 allwinner,erratum-unknown1;
178 interrupts = <GIC_PPI 13
179 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
181 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
183 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
185 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
189 cpu_thermal: cpu0-thermal {
191 polling-delay-passive = <0>;
193 thermal-sensors = <&ths 0>;
197 trip = <&cpu_alert0>;
198 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
199 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
200 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
201 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
204 trip = <&cpu_alert1>;
205 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
206 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
207 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
208 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
213 cpu_alert0: cpu_alert0 {
215 temperature = <75000>;
220 cpu_alert1: cpu_alert1 {
222 temperature = <90000>;
229 temperature = <110000>;
236 gpu0_thermal: gpu0-thermal {
238 polling-delay-passive = <0>;
240 thermal-sensors = <&ths 1>;
243 gpu1_thermal: gpu1-thermal {
245 polling-delay-passive = <0>;
247 thermal-sensors = <&ths 2>;
252 compatible = "simple-bus";
253 #address-cells = <1>;
258 compatible = "allwinner,sun50i-a64-de2";
259 reg = <0x1000000 0x400000>;
260 allwinner,sram = <&de2_sram 1>;
261 #address-cells = <1>;
263 ranges = <0 0x1000000 0x400000>;
265 display_clocks: clock@0 {
266 compatible = "allwinner,sun50i-a64-de2-clk";
268 clocks = <&ccu CLK_BUS_DE>,
272 resets = <&ccu RST_BUS_DE>;
277 rotate: rotate@20000 {
278 compatible = "allwinner,sun50i-a64-de2-rotate",
279 "allwinner,sun8i-a83t-de2-rotate";
280 reg = <0x20000 0x10000>;
281 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
282 clocks = <&display_clocks CLK_BUS_ROT>,
283 <&display_clocks CLK_ROT>;
286 resets = <&display_clocks RST_ROT>;
289 mixer0: mixer@100000 {
290 compatible = "allwinner,sun50i-a64-de2-mixer-0";
291 reg = <0x100000 0x100000>;
292 clocks = <&display_clocks CLK_BUS_MIXER0>,
293 <&display_clocks CLK_MIXER0>;
296 resets = <&display_clocks RST_MIXER0>;
299 #address-cells = <1>;
303 #address-cells = <1>;
307 mixer0_out_tcon0: endpoint@0 {
309 remote-endpoint = <&tcon0_in_mixer0>;
312 mixer0_out_tcon1: endpoint@1 {
314 remote-endpoint = <&tcon1_in_mixer0>;
320 mixer1: mixer@200000 {
321 compatible = "allwinner,sun50i-a64-de2-mixer-1";
322 reg = <0x200000 0x100000>;
323 clocks = <&display_clocks CLK_BUS_MIXER1>,
324 <&display_clocks CLK_MIXER1>;
327 resets = <&display_clocks RST_MIXER1>;
330 #address-cells = <1>;
334 #address-cells = <1>;
338 mixer1_out_tcon0: endpoint@0 {
340 remote-endpoint = <&tcon0_in_mixer1>;
343 mixer1_out_tcon1: endpoint@1 {
345 remote-endpoint = <&tcon1_in_mixer1>;
352 syscon: syscon@1c00000 {
353 compatible = "allwinner,sun50i-a64-system-control";
354 reg = <0x01c00000 0x1000>;
355 #address-cells = <1>;
360 compatible = "mmio-sram";
361 reg = <0x00018000 0x28000>;
362 #address-cells = <1>;
364 ranges = <0 0x00018000 0x28000>;
366 de2_sram: sram-section@0 {
367 compatible = "allwinner,sun50i-a64-sram-c";
368 reg = <0x0000 0x28000>;
372 sram_c1: sram@1d00000 {
373 compatible = "mmio-sram";
374 reg = <0x01d00000 0x40000>;
375 #address-cells = <1>;
377 ranges = <0 0x01d00000 0x40000>;
379 ve_sram: sram-section@0 {
380 compatible = "allwinner,sun50i-a64-sram-c1",
381 "allwinner,sun4i-a10-sram-c1";
382 reg = <0x000000 0x40000>;
387 dma: dma-controller@1c02000 {
388 compatible = "allwinner,sun50i-a64-dma";
389 reg = <0x01c02000 0x1000>;
390 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
391 clocks = <&ccu CLK_BUS_DMA>;
394 resets = <&ccu RST_BUS_DMA>;
398 tcon0: lcd-controller@1c0c000 {
399 compatible = "allwinner,sun50i-a64-tcon-lcd",
400 "allwinner,sun8i-a83t-tcon-lcd";
401 reg = <0x01c0c000 0x1000>;
402 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
403 clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>;
404 clock-names = "ahb", "tcon-ch0";
405 clock-output-names = "tcon-pixel-clock";
407 resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>;
408 reset-names = "lcd", "lvds";
411 #address-cells = <1>;
415 #address-cells = <1>;
419 tcon0_in_mixer0: endpoint@0 {
421 remote-endpoint = <&mixer0_out_tcon0>;
424 tcon0_in_mixer1: endpoint@1 {
426 remote-endpoint = <&mixer1_out_tcon0>;
431 #address-cells = <1>;
435 tcon0_out_dsi: endpoint@1 {
437 remote-endpoint = <&dsi_in_tcon0>;
438 allwinner,tcon-channel = <1>;
444 tcon1: lcd-controller@1c0d000 {
445 compatible = "allwinner,sun50i-a64-tcon-tv",
446 "allwinner,sun8i-a83t-tcon-tv";
447 reg = <0x01c0d000 0x1000>;
448 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
449 clocks = <&ccu CLK_BUS_TCON1>, <&ccu CLK_TCON1>;
450 clock-names = "ahb", "tcon-ch1";
451 resets = <&ccu RST_BUS_TCON1>;
455 #address-cells = <1>;
459 #address-cells = <1>;
463 tcon1_in_mixer0: endpoint@0 {
465 remote-endpoint = <&mixer0_out_tcon1>;
468 tcon1_in_mixer1: endpoint@1 {
470 remote-endpoint = <&mixer1_out_tcon1>;
475 #address-cells = <1>;
479 tcon1_out_hdmi: endpoint@1 {
481 remote-endpoint = <&hdmi_in_tcon1>;
487 video-codec@1c0e000 {
488 compatible = "allwinner,sun50i-a64-video-engine";
489 reg = <0x01c0e000 0x1000>;
490 clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>,
492 clock-names = "ahb", "mod", "ram";
493 resets = <&ccu RST_BUS_VE>;
494 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
495 allwinner,sram = <&ve_sram 1>;
499 compatible = "allwinner,sun50i-a64-mmc";
500 reg = <0x01c0f000 0x1000>;
501 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
502 clock-names = "ahb", "mmc";
503 resets = <&ccu RST_BUS_MMC0>;
505 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
506 max-frequency = <150000000>;
508 #address-cells = <1>;
513 compatible = "allwinner,sun50i-a64-mmc";
514 reg = <0x01c10000 0x1000>;
515 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
516 clock-names = "ahb", "mmc";
517 resets = <&ccu RST_BUS_MMC1>;
519 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
520 max-frequency = <150000000>;
522 #address-cells = <1>;
527 compatible = "allwinner,sun50i-a64-emmc";
528 reg = <0x01c11000 0x1000>;
529 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
530 clock-names = "ahb", "mmc";
531 resets = <&ccu RST_BUS_MMC2>;
533 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
534 max-frequency = <200000000>;
536 #address-cells = <1>;
540 sid: eeprom@1c14000 {
541 compatible = "allwinner,sun50i-a64-sid";
542 reg = <0x1c14000 0x400>;
543 #address-cells = <1>;
546 ths_calibration: thermal-sensor-calibration@34 {
551 crypto: crypto@1c15000 {
552 compatible = "allwinner,sun50i-a64-crypto";
553 reg = <0x01c15000 0x1000>;
554 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
555 clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
556 clock-names = "bus", "mod";
557 resets = <&ccu RST_BUS_CE>;
560 usb_otg: usb@1c19000 {
561 compatible = "allwinner,sun8i-a33-musb";
562 reg = <0x01c19000 0x0400>;
563 clocks = <&ccu CLK_BUS_OTG>;
564 resets = <&ccu RST_BUS_OTG>;
565 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
566 interrupt-names = "mc";
569 extcon = <&usbphy 0>;
574 usbphy: phy@1c19400 {
575 compatible = "allwinner,sun50i-a64-usb-phy";
576 reg = <0x01c19400 0x14>,
579 reg-names = "phy_ctrl",
582 clocks = <&ccu CLK_USB_PHY0>,
584 clock-names = "usb0_phy",
586 resets = <&ccu RST_USB_PHY0>,
588 reset-names = "usb0_reset",
595 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
596 reg = <0x01c1a000 0x100>;
597 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
598 clocks = <&ccu CLK_BUS_OHCI0>,
599 <&ccu CLK_BUS_EHCI0>,
600 <&ccu CLK_USB_OHCI0>;
601 resets = <&ccu RST_BUS_OHCI0>,
602 <&ccu RST_BUS_EHCI0>;
607 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
608 reg = <0x01c1a400 0x100>;
609 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
610 clocks = <&ccu CLK_BUS_OHCI0>,
611 <&ccu CLK_USB_OHCI0>;
612 resets = <&ccu RST_BUS_OHCI0>;
617 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
618 reg = <0x01c1b000 0x100>;
619 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
620 clocks = <&ccu CLK_BUS_OHCI1>,
621 <&ccu CLK_BUS_EHCI1>,
622 <&ccu CLK_USB_OHCI1>;
623 resets = <&ccu RST_BUS_OHCI1>,
624 <&ccu RST_BUS_EHCI1>;
631 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
632 reg = <0x01c1b400 0x100>;
633 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
634 clocks = <&ccu CLK_BUS_OHCI1>,
635 <&ccu CLK_USB_OHCI1>;
636 resets = <&ccu RST_BUS_OHCI1>;
643 compatible = "allwinner,sun50i-a64-ccu";
644 reg = <0x01c20000 0x400>;
645 clocks = <&osc24M>, <&rtc 0>;
646 clock-names = "hosc", "losc";
651 pio: pinctrl@1c20800 {
652 compatible = "allwinner,sun50i-a64-pinctrl";
653 reg = <0x01c20800 0x400>;
654 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
655 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
656 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
657 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>;
658 clock-names = "apb", "hosc", "losc";
661 interrupt-controller;
662 #interrupt-cells = <3>;
665 pins = "PE0", "PE2", "PE3", "PE4", "PE5", "PE6",
666 "PE7", "PE8", "PE9", "PE10", "PE11";
671 csi_mclk_pin: csi-mclk-pin {
676 i2c0_pins: i2c0-pins {
681 i2c1_pins: i2c1-pins {
686 i2c2_pins: i2c2-pins {
687 pins = "PE14", "PE15";
692 lcd_rgb666_pins: lcd-rgb666-pins {
693 pins = "PD0", "PD1", "PD2", "PD3", "PD4",
694 "PD5", "PD6", "PD7", "PD8", "PD9",
695 "PD10", "PD11", "PD12", "PD13",
696 "PD14", "PD15", "PD16", "PD17",
697 "PD18", "PD19", "PD20", "PD21";
701 mmc0_pins: mmc0-pins {
702 pins = "PF0", "PF1", "PF2", "PF3",
705 drive-strength = <30>;
709 mmc1_pins: mmc1-pins {
710 pins = "PG0", "PG1", "PG2", "PG3",
713 drive-strength = <30>;
717 mmc2_pins: mmc2-pins {
718 pins = "PC5", "PC6", "PC8", "PC9",
719 "PC10","PC11", "PC12", "PC13",
720 "PC14", "PC15", "PC16";
722 drive-strength = <30>;
726 mmc2_ds_pin: mmc2-ds-pin {
729 drive-strength = <30>;
738 rmii_pins: rmii-pins {
739 pins = "PD10", "PD11", "PD13", "PD14", "PD17",
740 "PD18", "PD19", "PD20", "PD22", "PD23";
742 drive-strength = <40>;
745 rgmii_pins: rgmii-pins {
746 pins = "PD8", "PD9", "PD10", "PD11", "PD12",
747 "PD13", "PD15", "PD16", "PD17", "PD18",
748 "PD19", "PD20", "PD21", "PD22", "PD23";
750 drive-strength = <40>;
753 spdif_tx_pin: spdif-tx-pin {
758 spi0_pins: spi0-pins {
759 pins = "PC0", "PC1", "PC2", "PC3";
763 spi1_pins: spi1-pins {
764 pins = "PD0", "PD1", "PD2", "PD3";
768 uart0_pb_pins: uart0-pb-pins {
773 uart1_pins: uart1-pins {
778 uart1_rts_cts_pins: uart1-rts-cts-pins {
783 uart2_pins: uart2-pins {
788 uart3_pins: uart3-pins {
793 uart4_pins: uart4-pins {
798 uart4_rts_cts_pins: uart4-rts-cts-pins {
804 spdif: spdif@1c21000 {
805 #sound-dai-cells = <0>;
806 compatible = "allwinner,sun50i-a64-spdif",
807 "allwinner,sun8i-h3-spdif";
808 reg = <0x01c21000 0x400>;
809 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
810 clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
811 resets = <&ccu RST_BUS_SPDIF>;
812 clock-names = "apb", "spdif";
815 pinctrl-names = "default";
816 pinctrl-0 = <&spdif_tx_pin>;
820 lradc: lradc@1c21800 {
821 compatible = "allwinner,sun50i-a64-lradc",
822 "allwinner,sun8i-a83t-r-lradc";
823 reg = <0x01c21800 0x400>;
824 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
829 #sound-dai-cells = <0>;
830 compatible = "allwinner,sun50i-a64-i2s",
831 "allwinner,sun8i-h3-i2s";
832 reg = <0x01c22000 0x400>;
833 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
834 clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
835 clock-names = "apb", "mod";
836 resets = <&ccu RST_BUS_I2S0>;
837 dma-names = "rx", "tx";
838 dmas = <&dma 3>, <&dma 3>;
843 #sound-dai-cells = <0>;
844 compatible = "allwinner,sun50i-a64-i2s",
845 "allwinner,sun8i-h3-i2s";
846 reg = <0x01c22400 0x400>;
847 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
848 clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
849 clock-names = "apb", "mod";
850 resets = <&ccu RST_BUS_I2S1>;
851 dma-names = "rx", "tx";
852 dmas = <&dma 4>, <&dma 4>;
857 #sound-dai-cells = <0>;
858 compatible = "allwinner,sun50i-a64-codec-i2s";
859 reg = <0x01c22c00 0x200>;
860 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
861 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
862 clock-names = "apb", "mod";
863 resets = <&ccu RST_BUS_CODEC>;
864 dmas = <&dma 15>, <&dma 15>;
865 dma-names = "rx", "tx";
869 codec: codec@1c22e00 {
870 #sound-dai-cells = <0>;
871 compatible = "allwinner,sun8i-a33-codec";
872 reg = <0x01c22e00 0x600>;
873 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
874 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
875 clock-names = "bus", "mod";
879 ths: thermal-sensor@1c25000 {
880 compatible = "allwinner,sun50i-a64-ths";
881 reg = <0x01c25000 0x100>;
882 clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
883 clock-names = "bus", "mod";
884 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
885 resets = <&ccu RST_BUS_THS>;
886 nvmem-cells = <&ths_calibration>;
887 nvmem-cell-names = "calibration";
888 #thermal-sensor-cells = <1>;
891 uart0: serial@1c28000 {
892 compatible = "snps,dw-apb-uart";
893 reg = <0x01c28000 0x400>;
894 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
897 clocks = <&ccu CLK_BUS_UART0>;
898 resets = <&ccu RST_BUS_UART0>;
902 uart1: serial@1c28400 {
903 compatible = "snps,dw-apb-uart";
904 reg = <0x01c28400 0x400>;
905 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
908 clocks = <&ccu CLK_BUS_UART1>;
909 resets = <&ccu RST_BUS_UART1>;
913 uart2: serial@1c28800 {
914 compatible = "snps,dw-apb-uart";
915 reg = <0x01c28800 0x400>;
916 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
919 clocks = <&ccu CLK_BUS_UART2>;
920 resets = <&ccu RST_BUS_UART2>;
924 uart3: serial@1c28c00 {
925 compatible = "snps,dw-apb-uart";
926 reg = <0x01c28c00 0x400>;
927 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
930 clocks = <&ccu CLK_BUS_UART3>;
931 resets = <&ccu RST_BUS_UART3>;
935 uart4: serial@1c29000 {
936 compatible = "snps,dw-apb-uart";
937 reg = <0x01c29000 0x400>;
938 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
941 clocks = <&ccu CLK_BUS_UART4>;
942 resets = <&ccu RST_BUS_UART4>;
947 compatible = "allwinner,sun6i-a31-i2c";
948 reg = <0x01c2ac00 0x400>;
949 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
950 clocks = <&ccu CLK_BUS_I2C0>;
951 resets = <&ccu RST_BUS_I2C0>;
952 pinctrl-names = "default";
953 pinctrl-0 = <&i2c0_pins>;
955 #address-cells = <1>;
960 compatible = "allwinner,sun6i-a31-i2c";
961 reg = <0x01c2b000 0x400>;
962 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
963 clocks = <&ccu CLK_BUS_I2C1>;
964 resets = <&ccu RST_BUS_I2C1>;
965 pinctrl-names = "default";
966 pinctrl-0 = <&i2c1_pins>;
968 #address-cells = <1>;
973 compatible = "allwinner,sun6i-a31-i2c";
974 reg = <0x01c2b400 0x400>;
975 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
976 clocks = <&ccu CLK_BUS_I2C2>;
977 resets = <&ccu RST_BUS_I2C2>;
978 pinctrl-names = "default";
979 pinctrl-0 = <&i2c2_pins>;
981 #address-cells = <1>;
986 compatible = "allwinner,sun8i-h3-spi";
987 reg = <0x01c68000 0x1000>;
988 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
989 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
990 clock-names = "ahb", "mod";
991 dmas = <&dma 23>, <&dma 23>;
992 dma-names = "rx", "tx";
993 pinctrl-names = "default";
994 pinctrl-0 = <&spi0_pins>;
995 resets = <&ccu RST_BUS_SPI0>;
998 #address-cells = <1>;
1003 compatible = "allwinner,sun8i-h3-spi";
1004 reg = <0x01c69000 0x1000>;
1005 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
1006 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
1007 clock-names = "ahb", "mod";
1008 dmas = <&dma 24>, <&dma 24>;
1009 dma-names = "rx", "tx";
1010 pinctrl-names = "default";
1011 pinctrl-0 = <&spi1_pins>;
1012 resets = <&ccu RST_BUS_SPI1>;
1013 status = "disabled";
1015 #address-cells = <1>;
1019 emac: ethernet@1c30000 {
1020 compatible = "allwinner,sun50i-a64-emac";
1022 reg = <0x01c30000 0x10000>;
1023 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1024 interrupt-names = "macirq";
1025 resets = <&ccu RST_BUS_EMAC>;
1026 reset-names = "stmmaceth";
1027 clocks = <&ccu CLK_BUS_EMAC>;
1028 clock-names = "stmmaceth";
1029 status = "disabled";
1032 compatible = "snps,dwmac-mdio";
1033 #address-cells = <1>;
1039 compatible = "allwinner,sun50i-a64-mali", "arm,mali-400";
1040 reg = <0x01c40000 0x10000>;
1041 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
1042 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
1043 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
1044 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
1045 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
1046 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
1047 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
1048 interrupt-names = "gp",
1055 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
1056 clock-names = "bus", "core";
1057 resets = <&ccu RST_BUS_GPU>;
1060 gic: interrupt-controller@1c81000 {
1061 compatible = "arm,gic-400";
1062 reg = <0x01c81000 0x1000>,
1063 <0x01c82000 0x2000>,
1064 <0x01c84000 0x2000>,
1065 <0x01c86000 0x2000>;
1066 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1067 interrupt-controller;
1068 #interrupt-cells = <3>;
1072 compatible = "allwinner,sun50i-a64-pwm",
1073 "allwinner,sun5i-a13-pwm";
1074 reg = <0x01c21400 0x400>;
1076 pinctrl-names = "default";
1077 pinctrl-0 = <&pwm_pin>;
1079 status = "disabled";
1082 mbus: dram-controller@1c62000 {
1083 compatible = "allwinner,sun50i-a64-mbus";
1084 reg = <0x01c62000 0x1000>;
1085 clocks = <&ccu 112>;
1086 dma-ranges = <0x00000000 0x40000000 0xc0000000>;
1087 #interconnect-cells = <1>;
1091 compatible = "allwinner,sun50i-a64-csi";
1092 reg = <0x01cb0000 0x1000>;
1093 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1094 clocks = <&ccu CLK_BUS_CSI>,
1095 <&ccu CLK_CSI_SCLK>,
1096 <&ccu CLK_DRAM_CSI>;
1097 clock-names = "bus", "mod", "ram";
1098 resets = <&ccu RST_BUS_CSI>;
1099 pinctrl-names = "default";
1100 pinctrl-0 = <&csi_pins>;
1101 status = "disabled";
1105 compatible = "allwinner,sun50i-a64-mipi-dsi";
1106 reg = <0x01ca0000 0x1000>;
1107 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1108 clocks = <&ccu CLK_BUS_MIPI_DSI>;
1109 resets = <&ccu RST_BUS_MIPI_DSI>;
1112 status = "disabled";
1113 #address-cells = <1>;
1117 dsi_in_tcon0: endpoint {
1118 remote-endpoint = <&tcon0_out_dsi>;
1123 dphy: d-phy@1ca1000 {
1124 compatible = "allwinner,sun50i-a64-mipi-dphy",
1125 "allwinner,sun6i-a31-mipi-dphy";
1126 reg = <0x01ca1000 0x1000>;
1127 clocks = <&ccu CLK_BUS_MIPI_DSI>,
1128 <&ccu CLK_DSI_DPHY>;
1129 clock-names = "bus", "mod";
1130 resets = <&ccu RST_BUS_MIPI_DSI>;
1131 status = "disabled";
1135 deinterlace: deinterlace@1e00000 {
1136 compatible = "allwinner,sun50i-a64-deinterlace",
1137 "allwinner,sun8i-h3-deinterlace";
1138 reg = <0x01e00000 0x20000>;
1139 clocks = <&ccu CLK_BUS_DEINTERLACE>,
1140 <&ccu CLK_DEINTERLACE>,
1141 <&ccu CLK_DRAM_DEINTERLACE>;
1142 clock-names = "bus", "mod", "ram";
1143 resets = <&ccu RST_BUS_DEINTERLACE>;
1144 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
1145 interconnects = <&mbus 9>;
1146 interconnect-names = "dma-mem";
1149 hdmi: hdmi@1ee0000 {
1150 compatible = "allwinner,sun50i-a64-dw-hdmi",
1151 "allwinner,sun8i-a83t-dw-hdmi";
1152 reg = <0x01ee0000 0x10000>;
1154 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1155 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
1157 clock-names = "iahb", "isfr", "tmds";
1158 resets = <&ccu RST_BUS_HDMI1>;
1159 reset-names = "ctrl";
1162 status = "disabled";
1165 #address-cells = <1>;
1171 hdmi_in_tcon1: endpoint {
1172 remote-endpoint = <&tcon1_out_hdmi>;
1182 hdmi_phy: hdmi-phy@1ef0000 {
1183 compatible = "allwinner,sun50i-a64-hdmi-phy";
1184 reg = <0x01ef0000 0x10000>;
1185 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
1186 <&ccu CLK_PLL_VIDEO0>;
1187 clock-names = "bus", "mod", "pll-0";
1188 resets = <&ccu RST_BUS_HDMI0>;
1189 reset-names = "phy";
1194 compatible = "allwinner,sun50i-a64-rtc",
1195 "allwinner,sun8i-h3-rtc";
1196 reg = <0x01f00000 0x400>;
1197 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1198 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1199 clock-output-names = "osc32k", "osc32k-out", "iosc";
1204 r_intc: interrupt-controller@1f00c00 {
1205 compatible = "allwinner,sun50i-a64-r-intc",
1206 "allwinner,sun6i-a31-r-intc";
1207 interrupt-controller;
1208 #interrupt-cells = <2>;
1209 reg = <0x01f00c00 0x400>;
1210 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1213 r_ccu: clock@1f01400 {
1214 compatible = "allwinner,sun50i-a64-r-ccu";
1215 reg = <0x01f01400 0x100>;
1216 clocks = <&osc24M>, <&rtc 0>, <&rtc 2>,
1217 <&ccu CLK_PLL_PERIPH0>;
1218 clock-names = "hosc", "losc", "iosc", "pll-periph";
1223 codec_analog: codec-analog@1f015c0 {
1224 compatible = "allwinner,sun50i-a64-codec-analog";
1225 reg = <0x01f015c0 0x4>;
1226 status = "disabled";
1229 r_i2c: i2c@1f02400 {
1230 compatible = "allwinner,sun50i-a64-i2c",
1231 "allwinner,sun6i-a31-i2c";
1232 reg = <0x01f02400 0x400>;
1233 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
1234 clocks = <&r_ccu CLK_APB0_I2C>;
1235 resets = <&r_ccu RST_APB0_I2C>;
1236 status = "disabled";
1237 #address-cells = <1>;
1242 compatible = "allwinner,sun50i-a64-ir",
1243 "allwinner,sun6i-a31-ir";
1244 reg = <0x01f02000 0x400>;
1245 clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>;
1246 clock-names = "apb", "ir";
1247 resets = <&r_ccu RST_APB0_IR>;
1248 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1249 pinctrl-names = "default";
1250 pinctrl-0 = <&r_ir_rx_pin>;
1251 status = "disabled";
1254 r_pwm: pwm@1f03800 {
1255 compatible = "allwinner,sun50i-a64-pwm",
1256 "allwinner,sun5i-a13-pwm";
1257 reg = <0x01f03800 0x400>;
1259 pinctrl-names = "default";
1260 pinctrl-0 = <&r_pwm_pin>;
1262 status = "disabled";
1265 r_pio: pinctrl@1f02c00 {
1266 compatible = "allwinner,sun50i-a64-r-pinctrl";
1267 reg = <0x01f02c00 0x400>;
1268 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1269 clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
1270 clock-names = "apb", "hosc", "losc";
1273 interrupt-controller;
1274 #interrupt-cells = <3>;
1276 r_i2c_pl89_pins: r-i2c-pl89-pins {
1277 pins = "PL8", "PL9";
1281 r_ir_rx_pin: r-ir-rx-pin {
1283 function = "s_cir_rx";
1286 r_pwm_pin: r-pwm-pin {
1291 r_rsb_pins: r-rsb-pins {
1292 pins = "PL0", "PL1";
1297 r_rsb: rsb@1f03400 {
1298 compatible = "allwinner,sun8i-a23-rsb";
1299 reg = <0x01f03400 0x400>;
1300 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1301 clocks = <&r_ccu 6>;
1302 clock-frequency = <3000000>;
1303 resets = <&r_ccu 2>;
1304 pinctrl-names = "default";
1305 pinctrl-0 = <&r_rsb_pins>;
1306 status = "disabled";
1307 #address-cells = <1>;
1311 wdt0: watchdog@1c20ca0 {
1312 compatible = "allwinner,sun50i-a64-wdt",
1313 "allwinner,sun6i-a31-wdt";
1314 reg = <0x01c20ca0 0x20>;
1315 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;