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 = "arm,armv8-timer";
159 allwinner,erratum-unknown1;
160 interrupts = <GIC_PPI 13
161 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
163 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
165 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
167 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
171 cpu_thermal: cpu0-thermal {
173 polling-delay-passive = <0>;
175 thermal-sensors = <&ths 0>;
179 trip = <&cpu_alert0>;
180 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
181 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
182 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
183 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
186 trip = <&cpu_alert1>;
187 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
188 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
189 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
190 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
195 cpu_alert0: cpu_alert0 {
197 temperature = <75000>;
202 cpu_alert1: cpu_alert1 {
204 temperature = <90000>;
211 temperature = <110000>;
218 gpu0_thermal: gpu0-thermal {
220 polling-delay-passive = <0>;
222 thermal-sensors = <&ths 1>;
225 gpu1_thermal: gpu1-thermal {
227 polling-delay-passive = <0>;
229 thermal-sensors = <&ths 2>;
234 compatible = "simple-bus";
235 #address-cells = <1>;
240 compatible = "allwinner,sun50i-a64-de2";
241 reg = <0x1000000 0x400000>;
242 allwinner,sram = <&de2_sram 1>;
243 #address-cells = <1>;
245 ranges = <0 0x1000000 0x400000>;
247 display_clocks: clock@0 {
248 compatible = "allwinner,sun50i-a64-de2-clk";
250 clocks = <&ccu CLK_BUS_DE>,
254 resets = <&ccu RST_BUS_DE>;
259 rotate: rotate@20000 {
260 compatible = "allwinner,sun50i-a64-de2-rotate",
261 "allwinner,sun8i-a83t-de2-rotate";
262 reg = <0x20000 0x10000>;
263 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
264 clocks = <&display_clocks CLK_BUS_ROT>,
265 <&display_clocks CLK_ROT>;
268 resets = <&display_clocks RST_ROT>;
271 mixer0: mixer@100000 {
272 compatible = "allwinner,sun50i-a64-de2-mixer-0";
273 reg = <0x100000 0x100000>;
274 clocks = <&display_clocks CLK_BUS_MIXER0>,
275 <&display_clocks CLK_MIXER0>;
278 resets = <&display_clocks RST_MIXER0>;
281 #address-cells = <1>;
285 #address-cells = <1>;
289 mixer0_out_tcon0: endpoint@0 {
291 remote-endpoint = <&tcon0_in_mixer0>;
294 mixer0_out_tcon1: endpoint@1 {
296 remote-endpoint = <&tcon1_in_mixer0>;
302 mixer1: mixer@200000 {
303 compatible = "allwinner,sun50i-a64-de2-mixer-1";
304 reg = <0x200000 0x100000>;
305 clocks = <&display_clocks CLK_BUS_MIXER1>,
306 <&display_clocks CLK_MIXER1>;
309 resets = <&display_clocks RST_MIXER1>;
312 #address-cells = <1>;
316 #address-cells = <1>;
320 mixer1_out_tcon0: endpoint@0 {
322 remote-endpoint = <&tcon0_in_mixer1>;
325 mixer1_out_tcon1: endpoint@1 {
327 remote-endpoint = <&tcon1_in_mixer1>;
334 syscon: syscon@1c00000 {
335 compatible = "allwinner,sun50i-a64-system-control";
336 reg = <0x01c00000 0x1000>;
337 #address-cells = <1>;
342 compatible = "mmio-sram";
343 reg = <0x00018000 0x28000>;
344 #address-cells = <1>;
346 ranges = <0 0x00018000 0x28000>;
348 de2_sram: sram-section@0 {
349 compatible = "allwinner,sun50i-a64-sram-c";
350 reg = <0x0000 0x28000>;
354 sram_c1: sram@1d00000 {
355 compatible = "mmio-sram";
356 reg = <0x01d00000 0x40000>;
357 #address-cells = <1>;
359 ranges = <0 0x01d00000 0x40000>;
361 ve_sram: sram-section@0 {
362 compatible = "allwinner,sun50i-a64-sram-c1",
363 "allwinner,sun4i-a10-sram-c1";
364 reg = <0x000000 0x40000>;
369 dma: dma-controller@1c02000 {
370 compatible = "allwinner,sun50i-a64-dma";
371 reg = <0x01c02000 0x1000>;
372 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
373 clocks = <&ccu CLK_BUS_DMA>;
376 resets = <&ccu RST_BUS_DMA>;
380 tcon0: lcd-controller@1c0c000 {
381 compatible = "allwinner,sun50i-a64-tcon-lcd",
382 "allwinner,sun8i-a83t-tcon-lcd";
383 reg = <0x01c0c000 0x1000>;
384 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
385 clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>;
386 clock-names = "ahb", "tcon-ch0";
387 clock-output-names = "tcon-pixel-clock";
389 resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>;
390 reset-names = "lcd", "lvds";
393 #address-cells = <1>;
397 #address-cells = <1>;
401 tcon0_in_mixer0: endpoint@0 {
403 remote-endpoint = <&mixer0_out_tcon0>;
406 tcon0_in_mixer1: endpoint@1 {
408 remote-endpoint = <&mixer1_out_tcon0>;
413 #address-cells = <1>;
417 tcon0_out_dsi: endpoint@1 {
419 remote-endpoint = <&dsi_in_tcon0>;
420 allwinner,tcon-channel = <1>;
426 tcon1: lcd-controller@1c0d000 {
427 compatible = "allwinner,sun50i-a64-tcon-tv",
428 "allwinner,sun8i-a83t-tcon-tv";
429 reg = <0x01c0d000 0x1000>;
430 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
431 clocks = <&ccu CLK_BUS_TCON1>, <&ccu CLK_TCON1>;
432 clock-names = "ahb", "tcon-ch1";
433 resets = <&ccu RST_BUS_TCON1>;
437 #address-cells = <1>;
441 #address-cells = <1>;
445 tcon1_in_mixer0: endpoint@0 {
447 remote-endpoint = <&mixer0_out_tcon1>;
450 tcon1_in_mixer1: endpoint@1 {
452 remote-endpoint = <&mixer1_out_tcon1>;
457 #address-cells = <1>;
461 tcon1_out_hdmi: endpoint@1 {
463 remote-endpoint = <&hdmi_in_tcon1>;
469 video-codec@1c0e000 {
470 compatible = "allwinner,sun50i-a64-video-engine";
471 reg = <0x01c0e000 0x1000>;
472 clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>,
474 clock-names = "ahb", "mod", "ram";
475 resets = <&ccu RST_BUS_VE>;
476 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
477 allwinner,sram = <&ve_sram 1>;
481 compatible = "allwinner,sun50i-a64-mmc";
482 reg = <0x01c0f000 0x1000>;
483 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
484 clock-names = "ahb", "mmc";
485 resets = <&ccu RST_BUS_MMC0>;
487 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
488 max-frequency = <150000000>;
490 #address-cells = <1>;
495 compatible = "allwinner,sun50i-a64-mmc";
496 reg = <0x01c10000 0x1000>;
497 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
498 clock-names = "ahb", "mmc";
499 resets = <&ccu RST_BUS_MMC1>;
501 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
502 max-frequency = <150000000>;
504 #address-cells = <1>;
509 compatible = "allwinner,sun50i-a64-emmc";
510 reg = <0x01c11000 0x1000>;
511 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
512 clock-names = "ahb", "mmc";
513 resets = <&ccu RST_BUS_MMC2>;
515 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
516 max-frequency = <200000000>;
518 #address-cells = <1>;
522 sid: eeprom@1c14000 {
523 compatible = "allwinner,sun50i-a64-sid";
524 reg = <0x1c14000 0x400>;
525 #address-cells = <1>;
528 ths_calibration: thermal-sensor-calibration@34 {
533 crypto: crypto@1c15000 {
534 compatible = "allwinner,sun50i-a64-crypto";
535 reg = <0x01c15000 0x1000>;
536 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
537 clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
538 clock-names = "bus", "mod";
539 resets = <&ccu RST_BUS_CE>;
542 usb_otg: usb@1c19000 {
543 compatible = "allwinner,sun8i-a33-musb";
544 reg = <0x01c19000 0x0400>;
545 clocks = <&ccu CLK_BUS_OTG>;
546 resets = <&ccu RST_BUS_OTG>;
547 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
548 interrupt-names = "mc";
551 extcon = <&usbphy 0>;
556 usbphy: phy@1c19400 {
557 compatible = "allwinner,sun50i-a64-usb-phy";
558 reg = <0x01c19400 0x14>,
561 reg-names = "phy_ctrl",
564 clocks = <&ccu CLK_USB_PHY0>,
566 clock-names = "usb0_phy",
568 resets = <&ccu RST_USB_PHY0>,
570 reset-names = "usb0_reset",
577 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
578 reg = <0x01c1a000 0x100>;
579 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
580 clocks = <&ccu CLK_BUS_OHCI0>,
581 <&ccu CLK_BUS_EHCI0>,
582 <&ccu CLK_USB_OHCI0>;
583 resets = <&ccu RST_BUS_OHCI0>,
584 <&ccu RST_BUS_EHCI0>;
589 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
590 reg = <0x01c1a400 0x100>;
591 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
592 clocks = <&ccu CLK_BUS_OHCI0>,
593 <&ccu CLK_USB_OHCI0>;
594 resets = <&ccu RST_BUS_OHCI0>;
599 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
600 reg = <0x01c1b000 0x100>;
601 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
602 clocks = <&ccu CLK_BUS_OHCI1>,
603 <&ccu CLK_BUS_EHCI1>,
604 <&ccu CLK_USB_OHCI1>;
605 resets = <&ccu RST_BUS_OHCI1>,
606 <&ccu RST_BUS_EHCI1>;
613 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
614 reg = <0x01c1b400 0x100>;
615 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
616 clocks = <&ccu CLK_BUS_OHCI1>,
617 <&ccu CLK_USB_OHCI1>;
618 resets = <&ccu RST_BUS_OHCI1>;
625 compatible = "allwinner,sun50i-a64-ccu";
626 reg = <0x01c20000 0x400>;
627 clocks = <&osc24M>, <&rtc 0>;
628 clock-names = "hosc", "losc";
633 pio: pinctrl@1c20800 {
634 compatible = "allwinner,sun50i-a64-pinctrl";
635 reg = <0x01c20800 0x400>;
636 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
637 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
638 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
639 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>;
640 clock-names = "apb", "hosc", "losc";
643 interrupt-controller;
644 #interrupt-cells = <3>;
647 pins = "PE0", "PE2", "PE3", "PE4", "PE5", "PE6",
648 "PE7", "PE8", "PE9", "PE10", "PE11";
653 csi_mclk_pin: csi-mclk-pin {
658 i2c0_pins: i2c0-pins {
663 i2c1_pins: i2c1-pins {
668 i2c2_pins: i2c2-pins {
669 pins = "PE14", "PE15";
674 lcd_rgb666_pins: lcd-rgb666-pins {
675 pins = "PD0", "PD1", "PD2", "PD3", "PD4",
676 "PD5", "PD6", "PD7", "PD8", "PD9",
677 "PD10", "PD11", "PD12", "PD13",
678 "PD14", "PD15", "PD16", "PD17",
679 "PD18", "PD19", "PD20", "PD21";
683 mmc0_pins: mmc0-pins {
684 pins = "PF0", "PF1", "PF2", "PF3",
687 drive-strength = <30>;
691 mmc1_pins: mmc1-pins {
692 pins = "PG0", "PG1", "PG2", "PG3",
695 drive-strength = <30>;
699 mmc2_pins: mmc2-pins {
700 pins = "PC5", "PC6", "PC8", "PC9",
701 "PC10","PC11", "PC12", "PC13",
702 "PC14", "PC15", "PC16";
704 drive-strength = <30>;
708 mmc2_ds_pin: mmc2-ds-pin {
711 drive-strength = <30>;
720 rmii_pins: rmii-pins {
721 pins = "PD10", "PD11", "PD13", "PD14", "PD17",
722 "PD18", "PD19", "PD20", "PD22", "PD23";
724 drive-strength = <40>;
727 rgmii_pins: rgmii-pins {
728 pins = "PD8", "PD9", "PD10", "PD11", "PD12",
729 "PD13", "PD15", "PD16", "PD17", "PD18",
730 "PD19", "PD20", "PD21", "PD22", "PD23";
732 drive-strength = <40>;
735 spdif_tx_pin: spdif-tx-pin {
740 spi0_pins: spi0-pins {
741 pins = "PC0", "PC1", "PC2", "PC3";
745 spi1_pins: spi1-pins {
746 pins = "PD0", "PD1", "PD2", "PD3";
750 uart0_pb_pins: uart0-pb-pins {
755 uart1_pins: uart1-pins {
760 uart1_rts_cts_pins: uart1-rts-cts-pins {
765 uart2_pins: uart2-pins {
770 uart3_pins: uart3-pins {
775 uart4_pins: uart4-pins {
780 uart4_rts_cts_pins: uart4-rts-cts-pins {
786 spdif: spdif@1c21000 {
787 #sound-dai-cells = <0>;
788 compatible = "allwinner,sun50i-a64-spdif",
789 "allwinner,sun8i-h3-spdif";
790 reg = <0x01c21000 0x400>;
791 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
792 clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
793 resets = <&ccu RST_BUS_SPDIF>;
794 clock-names = "apb", "spdif";
797 pinctrl-names = "default";
798 pinctrl-0 = <&spdif_tx_pin>;
802 lradc: lradc@1c21800 {
803 compatible = "allwinner,sun50i-a64-lradc",
804 "allwinner,sun8i-a83t-r-lradc";
805 reg = <0x01c21800 0x400>;
806 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
811 #sound-dai-cells = <0>;
812 compatible = "allwinner,sun50i-a64-i2s",
813 "allwinner,sun8i-h3-i2s";
814 reg = <0x01c22000 0x400>;
815 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
816 clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
817 clock-names = "apb", "mod";
818 resets = <&ccu RST_BUS_I2S0>;
819 dma-names = "rx", "tx";
820 dmas = <&dma 3>, <&dma 3>;
825 #sound-dai-cells = <0>;
826 compatible = "allwinner,sun50i-a64-i2s",
827 "allwinner,sun8i-h3-i2s";
828 reg = <0x01c22400 0x400>;
829 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
830 clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
831 clock-names = "apb", "mod";
832 resets = <&ccu RST_BUS_I2S1>;
833 dma-names = "rx", "tx";
834 dmas = <&dma 4>, <&dma 4>;
839 #sound-dai-cells = <0>;
840 compatible = "allwinner,sun50i-a64-codec-i2s";
841 reg = <0x01c22c00 0x200>;
842 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
843 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
844 clock-names = "apb", "mod";
845 resets = <&ccu RST_BUS_CODEC>;
846 dmas = <&dma 15>, <&dma 15>;
847 dma-names = "rx", "tx";
851 codec: codec@1c22e00 {
852 #sound-dai-cells = <0>;
853 compatible = "allwinner,sun8i-a33-codec";
854 reg = <0x01c22e00 0x600>;
855 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
856 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
857 clock-names = "bus", "mod";
861 ths: thermal-sensor@1c25000 {
862 compatible = "allwinner,sun50i-a64-ths";
863 reg = <0x01c25000 0x100>;
864 clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
865 clock-names = "bus", "mod";
866 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
867 resets = <&ccu RST_BUS_THS>;
868 nvmem-cells = <&ths_calibration>;
869 nvmem-cell-names = "calibration";
870 #thermal-sensor-cells = <1>;
873 uart0: serial@1c28000 {
874 compatible = "snps,dw-apb-uart";
875 reg = <0x01c28000 0x400>;
876 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
879 clocks = <&ccu CLK_BUS_UART0>;
880 resets = <&ccu RST_BUS_UART0>;
884 uart1: serial@1c28400 {
885 compatible = "snps,dw-apb-uart";
886 reg = <0x01c28400 0x400>;
887 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
890 clocks = <&ccu CLK_BUS_UART1>;
891 resets = <&ccu RST_BUS_UART1>;
895 uart2: serial@1c28800 {
896 compatible = "snps,dw-apb-uart";
897 reg = <0x01c28800 0x400>;
898 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
901 clocks = <&ccu CLK_BUS_UART2>;
902 resets = <&ccu RST_BUS_UART2>;
906 uart3: serial@1c28c00 {
907 compatible = "snps,dw-apb-uart";
908 reg = <0x01c28c00 0x400>;
909 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
912 clocks = <&ccu CLK_BUS_UART3>;
913 resets = <&ccu RST_BUS_UART3>;
917 uart4: serial@1c29000 {
918 compatible = "snps,dw-apb-uart";
919 reg = <0x01c29000 0x400>;
920 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
923 clocks = <&ccu CLK_BUS_UART4>;
924 resets = <&ccu RST_BUS_UART4>;
929 compatible = "allwinner,sun6i-a31-i2c";
930 reg = <0x01c2ac00 0x400>;
931 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
932 clocks = <&ccu CLK_BUS_I2C0>;
933 resets = <&ccu RST_BUS_I2C0>;
934 pinctrl-names = "default";
935 pinctrl-0 = <&i2c0_pins>;
937 #address-cells = <1>;
942 compatible = "allwinner,sun6i-a31-i2c";
943 reg = <0x01c2b000 0x400>;
944 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
945 clocks = <&ccu CLK_BUS_I2C1>;
946 resets = <&ccu RST_BUS_I2C1>;
947 pinctrl-names = "default";
948 pinctrl-0 = <&i2c1_pins>;
950 #address-cells = <1>;
955 compatible = "allwinner,sun6i-a31-i2c";
956 reg = <0x01c2b400 0x400>;
957 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
958 clocks = <&ccu CLK_BUS_I2C2>;
959 resets = <&ccu RST_BUS_I2C2>;
960 pinctrl-names = "default";
961 pinctrl-0 = <&i2c2_pins>;
963 #address-cells = <1>;
968 compatible = "allwinner,sun8i-h3-spi";
969 reg = <0x01c68000 0x1000>;
970 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
971 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
972 clock-names = "ahb", "mod";
973 dmas = <&dma 23>, <&dma 23>;
974 dma-names = "rx", "tx";
975 pinctrl-names = "default";
976 pinctrl-0 = <&spi0_pins>;
977 resets = <&ccu RST_BUS_SPI0>;
980 #address-cells = <1>;
985 compatible = "allwinner,sun8i-h3-spi";
986 reg = <0x01c69000 0x1000>;
987 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
988 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
989 clock-names = "ahb", "mod";
990 dmas = <&dma 24>, <&dma 24>;
991 dma-names = "rx", "tx";
992 pinctrl-names = "default";
993 pinctrl-0 = <&spi1_pins>;
994 resets = <&ccu RST_BUS_SPI1>;
997 #address-cells = <1>;
1001 emac: ethernet@1c30000 {
1002 compatible = "allwinner,sun50i-a64-emac";
1004 reg = <0x01c30000 0x10000>;
1005 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1006 interrupt-names = "macirq";
1007 resets = <&ccu RST_BUS_EMAC>;
1008 reset-names = "stmmaceth";
1009 clocks = <&ccu CLK_BUS_EMAC>;
1010 clock-names = "stmmaceth";
1011 status = "disabled";
1014 compatible = "snps,dwmac-mdio";
1015 #address-cells = <1>;
1021 compatible = "allwinner,sun50i-a64-mali", "arm,mali-400";
1022 reg = <0x01c40000 0x10000>;
1023 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
1024 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
1025 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
1026 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
1027 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
1028 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
1029 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
1030 interrupt-names = "gp",
1037 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
1038 clock-names = "bus", "core";
1039 resets = <&ccu RST_BUS_GPU>;
1042 gic: interrupt-controller@1c81000 {
1043 compatible = "arm,gic-400";
1044 reg = <0x01c81000 0x1000>,
1045 <0x01c82000 0x2000>,
1046 <0x01c84000 0x2000>,
1047 <0x01c86000 0x2000>;
1048 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1049 interrupt-controller;
1050 #interrupt-cells = <3>;
1054 compatible = "allwinner,sun50i-a64-pwm",
1055 "allwinner,sun5i-a13-pwm";
1056 reg = <0x01c21400 0x400>;
1058 pinctrl-names = "default";
1059 pinctrl-0 = <&pwm_pin>;
1061 status = "disabled";
1064 mbus: dram-controller@1c62000 {
1065 compatible = "allwinner,sun50i-a64-mbus";
1066 reg = <0x01c62000 0x1000>;
1067 clocks = <&ccu 112>;
1068 dma-ranges = <0x00000000 0x40000000 0xc0000000>;
1069 #interconnect-cells = <1>;
1073 compatible = "allwinner,sun50i-a64-csi";
1074 reg = <0x01cb0000 0x1000>;
1075 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1076 clocks = <&ccu CLK_BUS_CSI>,
1077 <&ccu CLK_CSI_SCLK>,
1078 <&ccu CLK_DRAM_CSI>;
1079 clock-names = "bus", "mod", "ram";
1080 resets = <&ccu RST_BUS_CSI>;
1081 pinctrl-names = "default";
1082 pinctrl-0 = <&csi_pins>;
1083 status = "disabled";
1087 compatible = "allwinner,sun50i-a64-mipi-dsi";
1088 reg = <0x01ca0000 0x1000>;
1089 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1090 clocks = <&ccu CLK_BUS_MIPI_DSI>;
1091 resets = <&ccu RST_BUS_MIPI_DSI>;
1094 status = "disabled";
1095 #address-cells = <1>;
1099 dsi_in_tcon0: endpoint {
1100 remote-endpoint = <&tcon0_out_dsi>;
1105 dphy: d-phy@1ca1000 {
1106 compatible = "allwinner,sun50i-a64-mipi-dphy",
1107 "allwinner,sun6i-a31-mipi-dphy";
1108 reg = <0x01ca1000 0x1000>;
1109 clocks = <&ccu CLK_BUS_MIPI_DSI>,
1110 <&ccu CLK_DSI_DPHY>;
1111 clock-names = "bus", "mod";
1112 resets = <&ccu RST_BUS_MIPI_DSI>;
1113 status = "disabled";
1117 deinterlace: deinterlace@1e00000 {
1118 compatible = "allwinner,sun50i-a64-deinterlace",
1119 "allwinner,sun8i-h3-deinterlace";
1120 reg = <0x01e00000 0x20000>;
1121 clocks = <&ccu CLK_BUS_DEINTERLACE>,
1122 <&ccu CLK_DEINTERLACE>,
1123 <&ccu CLK_DRAM_DEINTERLACE>;
1124 clock-names = "bus", "mod", "ram";
1125 resets = <&ccu RST_BUS_DEINTERLACE>;
1126 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
1127 interconnects = <&mbus 9>;
1128 interconnect-names = "dma-mem";
1131 hdmi: hdmi@1ee0000 {
1132 compatible = "allwinner,sun50i-a64-dw-hdmi",
1133 "allwinner,sun8i-a83t-dw-hdmi";
1134 reg = <0x01ee0000 0x10000>;
1136 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1137 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
1139 clock-names = "iahb", "isfr", "tmds";
1140 resets = <&ccu RST_BUS_HDMI1>;
1141 reset-names = "ctrl";
1144 status = "disabled";
1147 #address-cells = <1>;
1153 hdmi_in_tcon1: endpoint {
1154 remote-endpoint = <&tcon1_out_hdmi>;
1164 hdmi_phy: hdmi-phy@1ef0000 {
1165 compatible = "allwinner,sun50i-a64-hdmi-phy";
1166 reg = <0x01ef0000 0x10000>;
1167 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
1168 <&ccu CLK_PLL_VIDEO0>;
1169 clock-names = "bus", "mod", "pll-0";
1170 resets = <&ccu RST_BUS_HDMI0>;
1171 reset-names = "phy";
1176 compatible = "allwinner,sun50i-a64-rtc",
1177 "allwinner,sun8i-h3-rtc";
1178 reg = <0x01f00000 0x400>;
1179 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1180 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1181 clock-output-names = "osc32k", "osc32k-out", "iosc";
1186 r_intc: interrupt-controller@1f00c00 {
1187 compatible = "allwinner,sun50i-a64-r-intc",
1188 "allwinner,sun6i-a31-r-intc";
1189 interrupt-controller;
1190 #interrupt-cells = <2>;
1191 reg = <0x01f00c00 0x400>;
1192 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1195 r_ccu: clock@1f01400 {
1196 compatible = "allwinner,sun50i-a64-r-ccu";
1197 reg = <0x01f01400 0x100>;
1198 clocks = <&osc24M>, <&rtc 0>, <&rtc 2>,
1199 <&ccu CLK_PLL_PERIPH0>;
1200 clock-names = "hosc", "losc", "iosc", "pll-periph";
1205 codec_analog: codec-analog@1f015c0 {
1206 compatible = "allwinner,sun50i-a64-codec-analog";
1207 reg = <0x01f015c0 0x4>;
1208 status = "disabled";
1211 r_i2c: i2c@1f02400 {
1212 compatible = "allwinner,sun50i-a64-i2c",
1213 "allwinner,sun6i-a31-i2c";
1214 reg = <0x01f02400 0x400>;
1215 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
1216 clocks = <&r_ccu CLK_APB0_I2C>;
1217 resets = <&r_ccu RST_APB0_I2C>;
1218 status = "disabled";
1219 #address-cells = <1>;
1224 compatible = "allwinner,sun50i-a64-ir",
1225 "allwinner,sun6i-a31-ir";
1226 reg = <0x01f02000 0x400>;
1227 clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>;
1228 clock-names = "apb", "ir";
1229 resets = <&r_ccu RST_APB0_IR>;
1230 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1231 pinctrl-names = "default";
1232 pinctrl-0 = <&r_ir_rx_pin>;
1233 status = "disabled";
1236 r_pwm: pwm@1f03800 {
1237 compatible = "allwinner,sun50i-a64-pwm",
1238 "allwinner,sun5i-a13-pwm";
1239 reg = <0x01f03800 0x400>;
1241 pinctrl-names = "default";
1242 pinctrl-0 = <&r_pwm_pin>;
1244 status = "disabled";
1247 r_pio: pinctrl@1f02c00 {
1248 compatible = "allwinner,sun50i-a64-r-pinctrl";
1249 reg = <0x01f02c00 0x400>;
1250 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1251 clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
1252 clock-names = "apb", "hosc", "losc";
1255 interrupt-controller;
1256 #interrupt-cells = <3>;
1258 r_i2c_pl89_pins: r-i2c-pl89-pins {
1259 pins = "PL8", "PL9";
1263 r_ir_rx_pin: r-ir-rx-pin {
1265 function = "s_cir_rx";
1268 r_pwm_pin: r-pwm-pin {
1273 r_rsb_pins: r-rsb-pins {
1274 pins = "PL0", "PL1";
1279 r_rsb: rsb@1f03400 {
1280 compatible = "allwinner,sun8i-a23-rsb";
1281 reg = <0x01f03400 0x400>;
1282 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1283 clocks = <&r_ccu 6>;
1284 clock-frequency = <3000000>;
1285 resets = <&r_ccu 2>;
1286 pinctrl-names = "default";
1287 pinctrl-0 = <&r_rsb_pins>;
1288 status = "disabled";
1289 #address-cells = <1>;
1293 wdt0: watchdog@1c20ca0 {
1294 compatible = "allwinner,sun50i-a64-wdt",
1295 "allwinner,sun6i-a31-wdt";
1296 reg = <0x01c20ca0 0x20>;
1297 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;