1 // SPDX-License-Identifier: (GPL-2.0+ or MIT)
3 * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io>
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/clock/sun50i-h6-ccu.h>
8 #include <dt-bindings/clock/sun50i-h6-r-ccu.h>
9 #include <dt-bindings/clock/sun8i-de2.h>
10 #include <dt-bindings/clock/sun8i-tcon-top.h>
11 #include <dt-bindings/reset/sun50i-h6-ccu.h>
12 #include <dt-bindings/reset/sun50i-h6-r-ccu.h>
13 #include <dt-bindings/reset/sun8i-de2.h>
16 interrupt-parent = <&gic>;
25 compatible = "arm,cortex-a53";
28 enable-method = "psci";
32 compatible = "arm,cortex-a53";
35 enable-method = "psci";
39 compatible = "arm,cortex-a53";
42 enable-method = "psci";
46 compatible = "arm,cortex-a53";
49 enable-method = "psci";
54 compatible = "allwinner,sun50i-h6-display-engine";
55 allwinner,pipelines = <&mixer0>;
61 compatible = "fixed-clock";
62 clock-frequency = <24000000>;
63 clock-output-names = "osc24M";
66 ext_osc32k: ext_osc32k_clk {
68 compatible = "fixed-clock";
69 clock-frequency = <32768>;
70 clock-output-names = "ext_osc32k";
74 compatible = "arm,cortex-a53-pmu";
75 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>,
76 <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
77 <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
78 <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
79 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
83 compatible = "arm,psci-0.2";
88 compatible = "arm,armv8-timer";
89 interrupts = <GIC_PPI 13
90 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
92 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
94 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
96 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
100 compatible = "simple-bus";
101 #address-cells = <1>;
106 compatible = "allwinner,sun50i-h6-de3",
107 "allwinner,sun50i-a64-de2";
108 reg = <0x1000000 0x400000>;
109 allwinner,sram = <&de2_sram 1>;
110 #address-cells = <1>;
112 ranges = <0 0x1000000 0x400000>;
114 display_clocks: clock@0 {
115 compatible = "allwinner,sun50i-h6-de3-clk";
117 clocks = <&ccu CLK_DE>,
121 resets = <&ccu RST_BUS_DE>;
126 mixer0: mixer@100000 {
127 compatible = "allwinner,sun50i-h6-de3-mixer-0";
128 reg = <0x100000 0x100000>;
129 clocks = <&display_clocks CLK_BUS_MIXER0>,
130 <&display_clocks CLK_MIXER0>;
133 resets = <&display_clocks RST_MIXER0>;
136 #address-cells = <1>;
142 mixer0_out_tcon_top_mixer0: endpoint {
143 remote-endpoint = <&tcon_top_mixer0_in_mixer0>;
150 video-codec@1c0e000 {
151 compatible = "allwinner,sun50i-h6-video-engine";
152 reg = <0x01c0e000 0x2000>;
153 clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>,
155 clock-names = "ahb", "mod", "ram";
156 resets = <&ccu RST_BUS_VE>;
157 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
158 allwinner,sram = <&ve_sram 1>;
161 syscon: syscon@3000000 {
162 compatible = "allwinner,sun50i-h6-system-control",
163 "allwinner,sun50i-a64-system-control";
164 reg = <0x03000000 0x1000>;
165 #address-cells = <1>;
170 compatible = "mmio-sram";
171 reg = <0x00028000 0x1e000>;
172 #address-cells = <1>;
174 ranges = <0 0x00028000 0x1e000>;
176 de2_sram: sram-section@0 {
177 compatible = "allwinner,sun50i-h6-sram-c",
178 "allwinner,sun50i-a64-sram-c";
179 reg = <0x0000 0x1e000>;
183 sram_c1: sram@1a00000 {
184 compatible = "mmio-sram";
185 reg = <0x01a00000 0x200000>;
186 #address-cells = <1>;
188 ranges = <0 0x01a00000 0x200000>;
190 ve_sram: sram-section@0 {
191 compatible = "allwinner,sun50i-h6-sram-c1",
192 "allwinner,sun4i-a10-sram-c1";
193 reg = <0x000000 0x200000>;
199 compatible = "allwinner,sun50i-h6-ccu";
200 reg = <0x03001000 0x1000>;
201 clocks = <&osc24M>, <&rtc 0>, <&rtc 2>;
202 clock-names = "hosc", "losc", "iosc";
207 dma: dma-controller@3002000 {
208 compatible = "allwinner,sun50i-h6-dma";
209 reg = <0x03002000 0x1000>;
210 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
211 clocks = <&ccu CLK_BUS_DMA>, <&ccu CLK_MBUS_DMA>;
212 clock-names = "bus", "mbus";
215 resets = <&ccu RST_BUS_DMA>;
220 compatible = "allwinner,sun50i-h6-sid";
221 reg = <0x03006000 0x400>;
224 watchdog: watchdog@30090a0 {
225 compatible = "allwinner,sun50i-h6-wdt",
226 "allwinner,sun6i-a31-wdt";
227 reg = <0x030090a0 0x20>;
228 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
230 /* Broken on some H6 boards */
234 pio: pinctrl@300b000 {
235 compatible = "allwinner,sun50i-h6-pinctrl";
236 reg = <0x0300b000 0x400>;
237 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
238 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
239 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
240 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
241 clocks = <&ccu CLK_APB1>, <&osc24M>, <&rtc 0>;
242 clock-names = "apb", "hosc", "losc";
245 interrupt-controller;
246 #interrupt-cells = <3>;
248 ext_rgmii_pins: rgmii-pins {
249 pins = "PD0", "PD1", "PD2", "PD3", "PD4",
250 "PD5", "PD7", "PD8", "PD9", "PD10",
251 "PD11", "PD12", "PD13", "PD19", "PD20";
253 drive-strength = <40>;
256 hdmi_pins: hdmi-pins {
257 pins = "PH8", "PH9", "PH10";
261 i2c0_pins: i2c0-pins {
262 pins = "PD25", "PD26";
266 i2c1_pins: i2c1-pins {
271 i2c2_pins: i2c2-pins {
272 pins = "PD23", "PD24";
276 mmc0_pins: mmc0-pins {
277 pins = "PF0", "PF1", "PF2", "PF3",
280 drive-strength = <30>;
285 mmc1_pins: mmc1-pins {
286 pins = "PG0", "PG1", "PG2", "PG3",
289 drive-strength = <30>;
293 mmc2_pins: mmc2-pins {
294 pins = "PC1", "PC4", "PC5", "PC6",
295 "PC7", "PC8", "PC9", "PC10",
296 "PC11", "PC12", "PC13", "PC14";
298 drive-strength = <30>;
302 spdif_tx_pin: spdif-tx-pin {
307 uart0_ph_pins: uart0-ph-pins {
313 gic: interrupt-controller@3021000 {
314 compatible = "arm,gic-400";
315 reg = <0x03021000 0x1000>,
319 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
320 interrupt-controller;
321 #interrupt-cells = <3>;
325 compatible = "allwinner,sun50i-h6-mmc",
326 "allwinner,sun50i-a64-mmc";
327 reg = <0x04020000 0x1000>;
328 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
329 clock-names = "ahb", "mmc";
330 resets = <&ccu RST_BUS_MMC0>;
332 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
333 pinctrl-names = "default";
334 pinctrl-0 = <&mmc0_pins>;
335 max-frequency = <150000000>;
337 #address-cells = <1>;
342 compatible = "allwinner,sun50i-h6-mmc",
343 "allwinner,sun50i-a64-mmc";
344 reg = <0x04021000 0x1000>;
345 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
346 clock-names = "ahb", "mmc";
347 resets = <&ccu RST_BUS_MMC1>;
349 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
350 pinctrl-names = "default";
351 pinctrl-0 = <&mmc1_pins>;
352 max-frequency = <150000000>;
354 #address-cells = <1>;
359 compatible = "allwinner,sun50i-h6-emmc",
360 "allwinner,sun50i-a64-emmc";
361 reg = <0x04022000 0x1000>;
362 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
363 clock-names = "ahb", "mmc";
364 resets = <&ccu RST_BUS_MMC2>;
366 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
367 pinctrl-names = "default";
368 pinctrl-0 = <&mmc2_pins>;
369 max-frequency = <150000000>;
371 #address-cells = <1>;
375 uart0: serial@5000000 {
376 compatible = "snps,dw-apb-uart";
377 reg = <0x05000000 0x400>;
378 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
381 clocks = <&ccu CLK_BUS_UART0>;
382 resets = <&ccu RST_BUS_UART0>;
386 uart1: serial@5000400 {
387 compatible = "snps,dw-apb-uart";
388 reg = <0x05000400 0x400>;
389 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
392 clocks = <&ccu CLK_BUS_UART1>;
393 resets = <&ccu RST_BUS_UART1>;
397 uart2: serial@5000800 {
398 compatible = "snps,dw-apb-uart";
399 reg = <0x05000800 0x400>;
400 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
403 clocks = <&ccu CLK_BUS_UART2>;
404 resets = <&ccu RST_BUS_UART2>;
408 uart3: serial@5000c00 {
409 compatible = "snps,dw-apb-uart";
410 reg = <0x05000c00 0x400>;
411 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
414 clocks = <&ccu CLK_BUS_UART3>;
415 resets = <&ccu RST_BUS_UART3>;
420 compatible = "allwinner,sun50i-h6-i2c",
421 "allwinner,sun6i-a31-i2c";
422 reg = <0x05002000 0x400>;
423 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
424 clocks = <&ccu CLK_BUS_I2C0>;
425 resets = <&ccu RST_BUS_I2C0>;
426 pinctrl-names = "default";
427 pinctrl-0 = <&i2c0_pins>;
429 #address-cells = <1>;
434 compatible = "allwinner,sun50i-h6-i2c",
435 "allwinner,sun6i-a31-i2c";
436 reg = <0x05002400 0x400>;
437 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
438 clocks = <&ccu CLK_BUS_I2C1>;
439 resets = <&ccu RST_BUS_I2C1>;
440 pinctrl-names = "default";
441 pinctrl-0 = <&i2c1_pins>;
443 #address-cells = <1>;
448 compatible = "allwinner,sun50i-h6-i2c",
449 "allwinner,sun6i-a31-i2c";
450 reg = <0x05002800 0x400>;
451 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
452 clocks = <&ccu CLK_BUS_I2C2>;
453 resets = <&ccu RST_BUS_I2C2>;
454 pinctrl-names = "default";
455 pinctrl-0 = <&i2c2_pins>;
457 #address-cells = <1>;
461 emac: ethernet@5020000 {
462 compatible = "allwinner,sun50i-h6-emac",
463 "allwinner,sun50i-a64-emac";
465 reg = <0x05020000 0x10000>;
466 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
467 interrupt-names = "macirq";
468 resets = <&ccu RST_BUS_EMAC>;
469 reset-names = "stmmaceth";
470 clocks = <&ccu CLK_BUS_EMAC>;
471 clock-names = "stmmaceth";
475 compatible = "snps,dwmac-mdio";
476 #address-cells = <1>;
481 spdif: spdif@5093000 {
482 #sound-dai-cells = <0>;
483 compatible = "allwinner,sun50i-h6-spdif";
484 reg = <0x05093000 0x400>;
485 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
486 clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
487 clock-names = "apb", "spdif";
488 resets = <&ccu RST_BUS_SPDIF>;
491 pinctrl-names = "default";
492 pinctrl-0 = <&spdif_tx_pin>;
496 usb2otg: usb@5100000 {
497 compatible = "allwinner,sun50i-h6-musb",
498 "allwinner,sun8i-a33-musb";
499 reg = <0x05100000 0x0400>;
500 clocks = <&ccu CLK_BUS_OTG>;
501 resets = <&ccu RST_BUS_OTG>;
502 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
503 interrupt-names = "mc";
506 extcon = <&usb2phy 0>;
510 usb2phy: phy@5100400 {
511 compatible = "allwinner,sun50i-h6-usb-phy";
512 reg = <0x05100400 0x24>,
515 reg-names = "phy_ctrl",
518 clocks = <&ccu CLK_USB_PHY0>,
520 clock-names = "usb0_phy",
522 resets = <&ccu RST_USB_PHY0>,
524 reset-names = "usb0_reset",
531 compatible = "allwinner,sun50i-h6-ehci", "generic-ehci";
532 reg = <0x05101000 0x100>;
533 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
534 clocks = <&ccu CLK_BUS_OHCI0>,
535 <&ccu CLK_BUS_EHCI0>,
536 <&ccu CLK_USB_OHCI0>;
537 resets = <&ccu RST_BUS_OHCI0>,
538 <&ccu RST_BUS_EHCI0>;
545 compatible = "allwinner,sun50i-h6-ohci", "generic-ohci";
546 reg = <0x05101400 0x100>;
547 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
548 clocks = <&ccu CLK_BUS_OHCI0>,
549 <&ccu CLK_USB_OHCI0>;
550 resets = <&ccu RST_BUS_OHCI0>;
557 compatible = "allwinner,sun50i-h6-ehci", "generic-ehci";
558 reg = <0x05311000 0x100>;
559 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
560 clocks = <&ccu CLK_BUS_OHCI3>,
561 <&ccu CLK_BUS_EHCI3>,
562 <&ccu CLK_USB_OHCI3>;
563 resets = <&ccu RST_BUS_OHCI3>,
564 <&ccu RST_BUS_EHCI3>;
571 compatible = "allwinner,sun50i-h6-ohci", "generic-ohci";
572 reg = <0x05311400 0x100>;
573 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
574 clocks = <&ccu CLK_BUS_OHCI3>,
575 <&ccu CLK_USB_OHCI3>;
576 resets = <&ccu RST_BUS_OHCI3>;
583 compatible = "allwinner,sun50i-h6-dw-hdmi";
584 reg = <0x06000000 0x10000>;
586 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
587 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,
588 <&ccu CLK_HDMI>, <&ccu CLK_HDMI_CEC>,
589 <&ccu CLK_HDCP>, <&ccu CLK_BUS_HDCP>;
590 clock-names = "iahb", "isfr", "tmds", "cec", "hdcp",
592 resets = <&ccu RST_BUS_HDMI_SUB>, <&ccu RST_BUS_HDCP>;
593 reset-names = "ctrl", "hdcp";
596 pinctrl-names = "default";
597 pinctrl-0 = <&hdmi_pins>;
601 #address-cells = <1>;
607 hdmi_in_tcon_top: endpoint {
608 remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
618 hdmi_phy: hdmi-phy@6010000 {
619 compatible = "allwinner,sun50i-h6-hdmi-phy";
620 reg = <0x06010000 0x10000>;
621 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>;
622 clock-names = "bus", "mod";
623 resets = <&ccu RST_BUS_HDMI>;
628 tcon_top: tcon-top@6510000 {
629 compatible = "allwinner,sun50i-h6-tcon-top";
630 reg = <0x06510000 0x1000>;
631 clocks = <&ccu CLK_BUS_TCON_TOP>,
635 clock-output-names = "tcon-top-tv0";
636 resets = <&ccu RST_BUS_TCON_TOP>;
641 #address-cells = <1>;
644 tcon_top_mixer0_in: port@0 {
645 #address-cells = <1>;
649 tcon_top_mixer0_in_mixer0: endpoint@0 {
651 remote-endpoint = <&mixer0_out_tcon_top_mixer0>;
655 tcon_top_mixer0_out: port@1 {
656 #address-cells = <1>;
660 tcon_top_mixer0_out_tcon_tv: endpoint@2 {
662 remote-endpoint = <&tcon_tv_in_tcon_top_mixer0>;
666 tcon_top_hdmi_in: port@4 {
667 #address-cells = <1>;
671 tcon_top_hdmi_in_tcon_tv: endpoint@0 {
673 remote-endpoint = <&tcon_tv_out_tcon_top>;
677 tcon_top_hdmi_out: port@5 {
680 tcon_top_hdmi_out_hdmi: endpoint {
681 remote-endpoint = <&hdmi_in_tcon_top>;
687 tcon_tv: lcd-controller@6515000 {
688 compatible = "allwinner,sun50i-h6-tcon-tv",
689 "allwinner,sun8i-r40-tcon-tv";
690 reg = <0x06515000 0x1000>;
691 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
692 clocks = <&ccu CLK_BUS_TCON_TV0>,
693 <&tcon_top CLK_TCON_TOP_TV0>;
696 resets = <&ccu RST_BUS_TCON_TV0>;
700 #address-cells = <1>;
706 tcon_tv_in_tcon_top_mixer0: endpoint {
707 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv>;
711 tcon_tv_out: port@1 {
712 #address-cells = <1>;
716 tcon_tv_out_tcon_top: endpoint@1 {
718 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv>;
725 compatible = "allwinner,sun50i-h6-rtc";
726 reg = <0x07000000 0x400>;
727 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
728 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
729 clock-output-names = "osc32k", "osc32k-out", "iosc";
730 clocks = <&ext_osc32k>;
734 r_ccu: clock@7010000 {
735 compatible = "allwinner,sun50i-h6-r-ccu";
736 reg = <0x07010000 0x400>;
737 clocks = <&osc24M>, <&rtc 0>, <&rtc 2>,
738 <&ccu CLK_PLL_PERIPH0>;
739 clock-names = "hosc", "losc", "iosc", "pll-periph";
744 r_watchdog: watchdog@7020400 {
745 compatible = "allwinner,sun50i-h6-wdt",
746 "allwinner,sun6i-a31-wdt";
747 reg = <0x07020400 0x20>;
748 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
752 r_intc: interrupt-controller@7021000 {
753 compatible = "allwinner,sun50i-h6-r-intc",
754 "allwinner,sun6i-a31-r-intc";
755 interrupt-controller;
756 #interrupt-cells = <2>;
757 reg = <0x07021000 0x400>;
758 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
761 r_pio: pinctrl@7022000 {
762 compatible = "allwinner,sun50i-h6-r-pinctrl";
763 reg = <0x07022000 0x400>;
764 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
765 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
766 clocks = <&r_ccu CLK_R_APB1>, <&osc24M>, <&rtc 0>;
767 clock-names = "apb", "hosc", "losc";
770 interrupt-controller;
771 #interrupt-cells = <3>;
773 r_i2c_pins: r-i2c-pins {
778 r_ir_rx_pin: r-ir-rx-pin {
780 function = "s_cir_rx";
785 compatible = "allwinner,sun50i-h6-ir",
786 "allwinner,sun6i-a31-ir";
787 reg = <0x07040000 0x400>;
788 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
789 clocks = <&r_ccu CLK_R_APB1_IR>,
791 clock-names = "apb", "ir";
792 resets = <&r_ccu RST_R_APB1_IR>;
793 pinctrl-names = "default";
794 pinctrl-0 = <&r_ir_rx_pin>;
799 compatible = "allwinner,sun50i-h6-i2c",
800 "allwinner,sun6i-a31-i2c";
801 reg = <0x07081400 0x400>;
802 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
803 clocks = <&r_ccu CLK_R_APB2_I2C>;
804 resets = <&r_ccu RST_R_APB2_I2C>;
805 pinctrl-names = "default";
806 pinctrl-0 = <&r_i2c_pins>;
808 #address-cells = <1>;