Lines Matching +full:sun4i +full:- +full:a10 +full:- +full:ccu
2 * Copyright 2017 Chen-Yu Tsai <wens@csie.org>
5 * This file is dual-licensed: you can use it either under the terms
44 #include <dt-bindings/interrupt-controller/arm-gic.h>
45 #include <dt-bindings/clock/sun8i-de2.h>
46 #include <dt-bindings/clock/sun8i-r40-ccu.h>
47 #include <dt-bindings/clock/sun8i-tcon-top.h>
48 #include <dt-bindings/reset/sun8i-r40-ccu.h>
49 #include <dt-bindings/reset/sun8i-de2.h>
50 #include <dt-bindings/thermal/thermal.h>
53 #address-cells = <1>;
54 #size-cells = <1>;
55 interrupt-parent = <&gic>;
58 #address-cells = <1>;
59 #size-cells = <1>;
63 #clock-cells = <0>;
64 compatible = "fixed-clock";
65 clock-frequency = <24000000>;
66 clock-accuracy = <50000>;
67 clock-output-names = "osc24M";
71 #clock-cells = <0>;
72 compatible = "fixed-clock";
73 clock-frequency = <32768>;
74 clock-accuracy = <20000>;
75 clock-output-names = "ext-osc32k";
80 #address-cells = <1>;
81 #size-cells = <0>;
84 compatible = "arm,cortex-a7";
90 compatible = "arm,cortex-a7";
96 compatible = "arm,cortex-a7";
102 compatible = "arm,cortex-a7";
108 de: display-engine {
109 compatible = "allwinner,sun8i-r40-display-engine";
114 thermal-zones {
115 cpu_thermal: cpu0-thermal {
117 polling-delay-passive = <0>;
118 polling-delay = <0>;
119 thermal-sensors = <&ths 0>;
122 gpu_thermal: gpu-thermal {
124 polling-delay-passive = <0>;
125 polling-delay = <0>;
126 thermal-sensors = <&ths 1>;
131 compatible = "simple-bus";
132 #address-cells = <1>;
133 #size-cells = <1>;
137 compatible = "allwinner,sun8i-r40-de2-clk",
138 "allwinner,sun8i-h3-de2-clk";
140 clocks = <&ccu CLK_BUS_DE>,
141 <&ccu CLK_DE>;
142 clock-names = "bus",
144 resets = <&ccu RST_BUS_DE>;
145 #clock-cells = <1>;
146 #reset-cells = <1>;
150 compatible = "allwinner,sun8i-r40-de2-mixer-0";
154 clock-names = "bus",
159 #address-cells = <1>;
160 #size-cells = <0>;
165 remote-endpoint = <&tcon_top_mixer0_in_mixer0>;
172 compatible = "allwinner,sun8i-r40-de2-mixer-1";
176 clock-names = "bus",
181 #address-cells = <1>;
182 #size-cells = <0>;
187 remote-endpoint = <&tcon_top_mixer1_in_mixer1>;
194 compatible = "allwinner,sun8i-r40-deinterlace",
195 "allwinner,sun8i-h3-deinterlace";
197 clocks = <&ccu CLK_BUS_DEINTERLACE>,
198 <&ccu CLK_DEINTERLACE>,
204 <&ccu CLK_DRAM_CSI1>;
205 clock-names = "bus", "mod", "ram";
206 resets = <&ccu RST_BUS_DEINTERLACE>;
209 interconnect-names = "dma-mem";
212 syscon: system-control@1c00000 {
213 compatible = "allwinner,sun8i-r40-system-control",
214 "allwinner,sun4i-a10-system-control";
216 #address-cells = <1>;
217 #size-cells = <1>;
221 compatible = "mmio-sram";
223 #address-cells = <1>;
224 #size-cells = <1>;
227 ve_sram: sram-section@0 {
228 compatible = "allwinner,sun8i-r40-sram-c1",
229 "allwinner,sun4i-a10-sram-c1";
235 nmi_intc: interrupt-controller@1c00030 {
236 compatible = "allwinner,sun7i-a20-sc-nmi";
237 interrupt-controller;
238 #interrupt-cells = <2>;
243 dma: dma-controller@1c02000 {
244 compatible = "allwinner,sun8i-r40-dma",
245 "allwinner,sun50i-a64-dma";
248 clocks = <&ccu CLK_BUS_DMA>;
249 dma-channels = <16>;
250 dma-requests = <31>;
251 resets = <&ccu RST_BUS_DMA>;
252 #dma-cells = <1>;
256 compatible = "allwinner,sun8i-r40-spi",
257 "allwinner,sun8i-h3-spi";
260 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
261 clock-names = "ahb", "mod";
262 resets = <&ccu RST_BUS_SPI0>;
264 #address-cells = <1>;
265 #size-cells = <0>;
269 compatible = "allwinner,sun8i-r40-spi",
270 "allwinner,sun8i-h3-spi";
273 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
274 clock-names = "ahb", "mod";
275 resets = <&ccu RST_BUS_SPI1>;
277 #address-cells = <1>;
278 #size-cells = <0>;
282 compatible = "allwinner,sun8i-r40-csi0",
283 "allwinner,sun7i-a20-csi0";
286 clocks = <&ccu CLK_BUS_CSI0>, <&ccu CLK_CSI_SCLK>,
287 <&ccu CLK_DRAM_CSI0>;
288 clock-names = "bus", "isp", "ram";
289 resets = <&ccu RST_BUS_CSI0>;
291 interconnect-names = "dma-mem";
295 video-codec@1c0e000 {
296 compatible = "allwinner,sun8i-r40-video-engine";
298 clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>,
299 <&ccu CLK_DRAM_VE>;
300 clock-names = "ahb", "mod", "ram";
301 resets = <&ccu RST_BUS_VE>;
307 compatible = "allwinner,sun8i-r40-mmc",
308 "allwinner,sun50i-a64-mmc";
310 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
311 clock-names = "ahb", "mmc";
312 resets = <&ccu RST_BUS_MMC0>;
313 reset-names = "ahb";
314 pinctrl-0 = <&mmc0_pins>;
315 pinctrl-names = "default";
318 #address-cells = <1>;
319 #size-cells = <0>;
323 compatible = "allwinner,sun8i-r40-mmc",
324 "allwinner,sun50i-a64-mmc";
326 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
327 clock-names = "ahb", "mmc";
328 resets = <&ccu RST_BUS_MMC1>;
329 reset-names = "ahb";
332 #address-cells = <1>;
333 #size-cells = <0>;
337 compatible = "allwinner,sun8i-r40-emmc",
338 "allwinner,sun50i-a64-emmc";
340 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
341 clock-names = "ahb", "mmc";
342 resets = <&ccu RST_BUS_MMC2>;
343 reset-names = "ahb";
344 pinctrl-0 = <&mmc2_pins>;
345 pinctrl-names = "default";
348 #address-cells = <1>;
349 #size-cells = <0>;
353 compatible = "allwinner,sun8i-r40-mmc",
354 "allwinner,sun50i-a64-mmc";
356 clocks = <&ccu CLK_BUS_MMC3>, <&ccu CLK_MMC3>;
357 clock-names = "ahb", "mmc";
358 resets = <&ccu RST_BUS_MMC3>;
359 reset-names = "ahb";
360 pinctrl-0 = <&mmc3_pins>;
361 pinctrl-names = "default";
364 #address-cells = <1>;
365 #size-cells = <0>;
369 compatible = "allwinner,sun8i-r40-usb-phy";
374 reg-names = "phy_ctrl",
378 clocks = <&ccu CLK_USB_PHY0>,
379 <&ccu CLK_USB_PHY1>,
380 <&ccu CLK_USB_PHY2>;
381 clock-names = "usb0_phy",
384 resets = <&ccu RST_USB_PHY0>,
385 <&ccu RST_USB_PHY1>,
386 <&ccu RST_USB_PHY2>;
387 reset-names = "usb0_reset",
391 #phy-cells = <1>;
395 compatible = "allwinner,sun8i-r40-crypto";
398 clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
399 clock-names = "bus", "mod";
400 resets = <&ccu RST_BUS_CE>;
404 compatible = "allwinner,sun8i-r40-spi",
405 "allwinner,sun8i-h3-spi";
408 clocks = <&ccu CLK_BUS_SPI2>, <&ccu CLK_SPI2>;
409 clock-names = "ahb", "mod";
410 resets = <&ccu RST_BUS_SPI2>;
412 #address-cells = <1>;
413 #size-cells = <0>;
417 compatible = "allwinner,sun8i-r40-ahci";
420 clocks = <&ccu CLK_BUS_SATA>, <&ccu CLK_SATA>;
421 resets = <&ccu RST_BUS_SATA>;
422 reset-names = "ahci";
427 compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
430 clocks = <&ccu CLK_BUS_EHCI1>;
431 resets = <&ccu RST_BUS_EHCI1>;
433 phy-names = "usb";
438 compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
441 clocks = <&ccu CLK_BUS_OHCI1>,
442 <&ccu CLK_USB_OHCI1>;
443 resets = <&ccu RST_BUS_OHCI1>;
445 phy-names = "usb";
450 compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
453 clocks = <&ccu CLK_BUS_EHCI2>;
454 resets = <&ccu RST_BUS_EHCI2>;
456 phy-names = "usb";
461 compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
464 clocks = <&ccu CLK_BUS_OHCI2>,
465 <&ccu CLK_USB_OHCI2>;
466 resets = <&ccu RST_BUS_OHCI2>;
468 phy-names = "usb";
473 compatible = "allwinner,sun8i-r40-spi",
474 "allwinner,sun8i-h3-spi";
477 clocks = <&ccu CLK_BUS_SPI3>, <&ccu CLK_SPI3>;
478 clock-names = "ahb", "mod";
479 resets = <&ccu RST_BUS_SPI3>;
481 #address-cells = <1>;
482 #size-cells = <0>;
485 ccu: clock@1c20000 { label
486 compatible = "allwinner,sun8i-r40-ccu";
489 clock-names = "hosc", "losc";
490 #clock-cells = <1>;
491 #reset-cells = <1>;
495 compatible = "allwinner,sun8i-r40-rtc";
498 clock-output-names = "osc32k", "osc32k-out";
500 #clock-cells = <1>;
504 compatible = "allwinner,sun8i-r40-pinctrl";
507 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>;
508 clock-names = "apb", "hosc", "losc";
509 gpio-controller;
510 interrupt-controller;
511 #interrupt-cells = <3>;
512 #gpio-cells = <3>;
514 clk_out_a_pin: clk-out-a-pin {
519 /omit-if-no-ref/
520 csi0_8bits_pins: csi0-8bits-pins {
527 /omit-if-no-ref/
528 csi0_mclk_pin: csi0-mclk-pin {
533 gmac_rgmii_pins: gmac-rgmii-pins {
543 drive-strength = <40>;
546 i2c0_pins: i2c0-pins {
551 i2c1_pins: i2c1-pins {
556 i2c2_pins: i2c2-pins {
561 i2c3_pins: i2c3-pins {
566 i2c4_pins: i2c4-pins {
571 ir0_pins: ir0-pins {
576 ir1_pins: ir1-pins {
581 mmc0_pins: mmc0-pins {
585 drive-strength = <30>;
586 bias-pull-up;
589 mmc1_pg_pins: mmc1-pg-pins {
593 drive-strength = <30>;
594 bias-pull-up;
597 mmc2_pins: mmc2-pins {
602 drive-strength = <30>;
603 bias-pull-up;
606 /omit-if-no-ref/
607 mmc3_pins: mmc3-pins {
611 drive-strength = <30>;
612 bias-pull-up;
615 /omit-if-no-ref/
616 spi0_pc_pins: spi0-pc-pins {
621 /omit-if-no-ref/
622 spi0_cs0_pc_pin: spi0-cs0-pc-pin {
627 /omit-if-no-ref/
628 spi1_pi_pins: spi1-pi-pins {
633 /omit-if-no-ref/
634 spi1_cs0_pi_pin: spi1-cs0-pi-pin {
639 /omit-if-no-ref/
640 spi1_cs1_pi_pin: spi1-cs1-pi-pin {
645 /omit-if-no-ref/
646 uart0_pb_pins: uart0-pb-pins {
651 /omit-if-no-ref/
652 uart2_pi_pins: uart2-pi-pins {
657 /omit-if-no-ref/
658 uart2_rts_cts_pi_pins: uart2-rts-cts-pi-pins{
663 /omit-if-no-ref/
664 uart3_pg_pins: uart3-pg-pins {
669 /omit-if-no-ref/
670 uart3_rts_cts_pg_pins: uart3-rts-cts-pg-pins {
675 /omit-if-no-ref/
676 uart4_pg_pins: uart4-pg-pins {
681 /omit-if-no-ref/
682 uart5_ph_pins: uart5-ph-pins {
687 /omit-if-no-ref/
688 uart7_pi_pins: uart7-pi-pins {
695 compatible = "allwinner,sun4i-a10-timer";
707 compatible = "allwinner,sun4i-a10-wdt";
714 compatible = "allwinner,sun8i-r40-ir",
715 "allwinner,sun6i-a31-ir";
717 pinctrl-0 = <&ir0_pins>;
718 pinctrl-names = "default";
719 clocks = <&ccu CLK_BUS_IR0>, <&ccu CLK_IR0>;
720 clock-names = "apb", "ir";
722 resets = <&ccu RST_BUS_IR0>;
727 compatible = "allwinner,sun8i-r40-ir",
728 "allwinner,sun6i-a31-ir";
730 pinctrl-0 = <&ir1_pins>;
731 pinctrl-names = "default";
732 clocks = <&ccu CLK_BUS_IR1>, <&ccu CLK_IR1>;
733 clock-names = "apb", "ir";
735 resets = <&ccu RST_BUS_IR1>;
739 ths: thermal-sensor@1c24c00 {
740 compatible = "allwinner,sun8i-r40-ths";
742 clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
743 clock-names = "bus", "mod";
745 resets = <&ccu RST_BUS_THS>;
746 /* TODO: add nvmem-cells for calibration */
747 #thermal-sensor-cells = <1>;
751 compatible = "snps,dw-apb-uart";
754 reg-shift = <2>;
755 reg-io-width = <4>;
756 clocks = <&ccu CLK_BUS_UART0>;
757 resets = <&ccu RST_BUS_UART0>;
762 compatible = "snps,dw-apb-uart";
765 reg-shift = <2>;
766 reg-io-width = <4>;
767 clocks = <&ccu CLK_BUS_UART1>;
768 resets = <&ccu RST_BUS_UART1>;
773 compatible = "snps,dw-apb-uart";
776 reg-shift = <2>;
777 reg-io-width = <4>;
778 clocks = <&ccu CLK_BUS_UART2>;
779 resets = <&ccu RST_BUS_UART2>;
784 compatible = "snps,dw-apb-uart";
787 reg-shift = <2>;
788 reg-io-width = <4>;
789 clocks = <&ccu CLK_BUS_UART3>;
790 resets = <&ccu RST_BUS_UART3>;
795 compatible = "snps,dw-apb-uart";
798 reg-shift = <2>;
799 reg-io-width = <4>;
800 clocks = <&ccu CLK_BUS_UART4>;
801 resets = <&ccu RST_BUS_UART4>;
806 compatible = "snps,dw-apb-uart";
809 reg-shift = <2>;
810 reg-io-width = <4>;
811 clocks = <&ccu CLK_BUS_UART5>;
812 resets = <&ccu RST_BUS_UART5>;
817 compatible = "snps,dw-apb-uart";
820 reg-shift = <2>;
821 reg-io-width = <4>;
822 clocks = <&ccu CLK_BUS_UART6>;
823 resets = <&ccu RST_BUS_UART6>;
828 compatible = "snps,dw-apb-uart";
831 reg-shift = <2>;
832 reg-io-width = <4>;
833 clocks = <&ccu CLK_BUS_UART7>;
834 resets = <&ccu RST_BUS_UART7>;
839 compatible = "allwinner,sun6i-a31-i2c";
842 clocks = <&ccu CLK_BUS_I2C0>;
843 resets = <&ccu RST_BUS_I2C0>;
844 pinctrl-0 = <&i2c0_pins>;
845 pinctrl-names = "default";
847 #address-cells = <1>;
848 #size-cells = <0>;
852 compatible = "allwinner,sun6i-a31-i2c";
855 clocks = <&ccu CLK_BUS_I2C1>;
856 resets = <&ccu RST_BUS_I2C1>;
857 pinctrl-0 = <&i2c1_pins>;
858 pinctrl-names = "default";
860 #address-cells = <1>;
861 #size-cells = <0>;
865 compatible = "allwinner,sun6i-a31-i2c";
868 clocks = <&ccu CLK_BUS_I2C2>;
869 resets = <&ccu RST_BUS_I2C2>;
870 pinctrl-0 = <&i2c2_pins>;
871 pinctrl-names = "default";
873 #address-cells = <1>;
874 #size-cells = <0>;
878 compatible = "allwinner,sun6i-a31-i2c";
881 clocks = <&ccu CLK_BUS_I2C3>;
882 resets = <&ccu RST_BUS_I2C3>;
883 pinctrl-0 = <&i2c3_pins>;
884 pinctrl-names = "default";
886 #address-cells = <1>;
887 #size-cells = <0>;
891 compatible = "allwinner,sun6i-a31-i2c";
894 clocks = <&ccu CLK_BUS_I2C4>;
895 resets = <&ccu RST_BUS_I2C4>;
896 pinctrl-0 = <&i2c4_pins>;
897 pinctrl-names = "default";
899 #address-cells = <1>;
900 #size-cells = <0>;
904 compatible = "allwinner,sun8i-r40-mali", "arm,mali-400";
913 interrupt-names = "gp",
920 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
921 clock-names = "bus", "core";
922 resets = <&ccu RST_BUS_GPU>;
926 compatible = "allwinner,sun8i-r40-gmac";
927 syscon = <&ccu>;
930 interrupt-names = "macirq";
931 resets = <&ccu RST_BUS_GMAC>;
932 reset-names = "stmmaceth";
933 clocks = <&ccu CLK_BUS_GMAC>;
934 clock-names = "stmmaceth";
938 compatible = "snps,dwmac-mdio";
939 #address-cells = <1>;
940 #size-cells = <0>;
944 mbus: dram-controller@1c62000 {
945 compatible = "allwinner,sun8i-r40-mbus";
947 clocks = <&ccu 155>;
948 #address-cells = <1>;
949 #size-cells = <1>;
950 dma-ranges = <0x00000000 0x40000000 0x80000000>;
951 #interconnect-cells = <1>;
954 tcon_top: tcon-top@1c70000 {
955 compatible = "allwinner,sun8i-r40-tcon-top";
957 clocks = <&ccu CLK_BUS_TCON_TOP>,
958 <&ccu CLK_TCON_TV0>,
959 <&ccu CLK_TVE0>,
960 <&ccu CLK_TCON_TV1>,
961 <&ccu CLK_TVE1>,
962 <&ccu CLK_DSI_DPHY>;
963 clock-names = "bus",
964 "tcon-tv0",
966 "tcon-tv1",
969 clock-output-names = "tcon-top-tv0",
970 "tcon-top-tv1",
971 "tcon-top-dsi";
972 resets = <&ccu RST_BUS_TCON_TOP>;
973 #clock-cells = <1>;
976 #address-cells = <1>;
977 #size-cells = <0>;
983 remote-endpoint = <&mixer0_out_tcon_top>;
988 #address-cells = <1>;
989 #size-cells = <0>;
1002 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer0>;
1007 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer0>;
1012 #address-cells = <1>;
1013 #size-cells = <0>;
1018 remote-endpoint = <&mixer1_out_tcon_top>;
1023 #address-cells = <1>;
1024 #size-cells = <0>;
1037 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer1>;
1042 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer1>;
1047 #address-cells = <1>;
1048 #size-cells = <0>;
1053 remote-endpoint = <&tcon_tv0_out_tcon_top>;
1058 remote-endpoint = <&tcon_tv1_out_tcon_top>;
1066 remote-endpoint = <&hdmi_in_tcon_top>;
1072 tcon_tv0: lcd-controller@1c73000 {
1073 compatible = "allwinner,sun8i-r40-tcon-tv";
1076 clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top CLK_TCON_TOP_TV0>;
1077 clock-names = "ahb", "tcon-ch1";
1078 resets = <&ccu RST_BUS_TCON_TV0>;
1079 reset-names = "lcd";
1083 #address-cells = <1>;
1084 #size-cells = <0>;
1087 #address-cells = <1>;
1088 #size-cells = <0>;
1093 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv0>;
1098 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv0>;
1103 #address-cells = <1>;
1104 #size-cells = <0>;
1109 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv0>;
1115 tcon_tv1: lcd-controller@1c74000 {
1116 compatible = "allwinner,sun8i-r40-tcon-tv";
1119 clocks = <&ccu CLK_BUS_TCON_TV1>, <&tcon_top CLK_TCON_TOP_TV1>;
1120 clock-names = "ahb", "tcon-ch1";
1121 resets = <&ccu RST_BUS_TCON_TV1>;
1122 reset-names = "lcd";
1126 #address-cells = <1>;
1127 #size-cells = <0>;
1130 #address-cells = <1>;
1131 #size-cells = <0>;
1136 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv1>;
1141 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv1>;
1146 #address-cells = <1>;
1147 #size-cells = <0>;
1152 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv1>;
1158 gic: interrupt-controller@1c81000 {
1159 compatible = "arm,gic-400";
1164 interrupt-controller;
1165 #interrupt-cells = <3>;
1170 compatible = "allwinner,sun8i-r40-dw-hdmi",
1171 "allwinner,sun8i-a83t-dw-hdmi";
1173 reg-io-width = <1>;
1175 clocks = <&ccu CLK_BUS_HDMI0>, <&ccu CLK_HDMI_SLOW>,
1176 <&ccu CLK_HDMI>;
1177 clock-names = "iahb", "isfr", "tmds";
1178 resets = <&ccu RST_BUS_HDMI1>;
1179 reset-names = "ctrl";
1181 phy-names = "phy";
1185 #address-cells = <1>;
1186 #size-cells = <0>;
1192 remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
1202 hdmi_phy: hdmi-phy@1ef0000 {
1203 compatible = "allwinner,sun8i-r40-hdmi-phy";
1205 clocks = <&ccu CLK_BUS_HDMI1>, <&ccu CLK_HDMI_SLOW>,
1206 <&ccu CLK_PLL_VIDEO0>, <&ccu CLK_PLL_VIDEO1>;
1207 clock-names = "bus", "mod", "pll-0", "pll-1";
1208 resets = <&ccu RST_BUS_HDMI0>;
1209 reset-names = "phy";
1210 #phy-cells = <0>;
1215 compatible = "arm,cortex-a7-pmu";
1220 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
1224 compatible = "arm,armv7-timer";