hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/sun4i-a10.dtsi
....@@ -184,6 +184,26 @@
184184 status = "disabled";
185185 };
186186
187
+ pmu {
188
+ compatible = "arm,cortex-a8-pmu";
189
+ interrupts = <3>;
190
+ };
191
+
192
+ reserved-memory {
193
+ #address-cells = <1>;
194
+ #size-cells = <1>;
195
+ ranges;
196
+
197
+ /* Address must be kept in the lower 256 MiBs of DRAM for VE. */
198
+ default-pool {
199
+ compatible = "shared-dma-pool";
200
+ size = <0x6000000>;
201
+ alloc-ranges = <0x40000000 0x10000000>;
202
+ reusable;
203
+ linux,cma-default;
204
+ };
205
+ };
206
+
187207 soc {
188208 compatible = "simple-bus";
189209 #address-cells = <1>;
....@@ -224,6 +244,19 @@
224244 status = "disabled";
225245 };
226246 };
247
+
248
+ sram_c: sram@1d00000 {
249
+ compatible = "mmio-sram";
250
+ reg = <0x01d00000 0xd0000>;
251
+ #address-cells = <1>;
252
+ #size-cells = <1>;
253
+ ranges = <0 0x01d00000 0xd0000>;
254
+
255
+ ve_sram: sram-section@0 {
256
+ compatible = "allwinner,sun4i-a10-sram-c1";
257
+ reg = <0x000000 0x80000>;
258
+ };
259
+ };
227260 };
228261
229262 dma: dma-controller@1c02000 {
....@@ -234,7 +267,7 @@
234267 #dma-cells = <2>;
235268 };
236269
237
- nfc: nand@1c03000 {
270
+ nfc: nand-controller@1c03000 {
238271 compatible = "allwinner,sun4i-a10-nand";
239272 reg = <0x01c03000 0x1000>;
240273 interrupts = <37>;
....@@ -309,6 +342,7 @@
309342 "tcon-ch0",
310343 "tcon-ch1";
311344 clock-output-names = "tcon0-pixel-clock";
345
+ #clock-cells = <0>;
312346 dmas = <&dma SUN4I_DMA_DEDICATED 14>;
313347
314348 ports {
....@@ -358,6 +392,7 @@
358392 "tcon-ch0",
359393 "tcon-ch1";
360394 clock-output-names = "tcon1-pixel-clock";
395
+ #clock-cells = <0>;
361396 dmas = <&dma SUN4I_DMA_DEDICATED 15>;
362397
363398 ports {
....@@ -392,6 +427,17 @@
392427 };
393428 };
394429 };
430
+ };
431
+
432
+ video-codec@1c0e000 {
433
+ compatible = "allwinner,sun4i-a10-video-engine";
434
+ reg = <0x01c0e000 0x1000>;
435
+ clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>,
436
+ <&ccu CLK_DRAM_VE>;
437
+ clock-names = "ahb", "mod", "ram";
438
+ resets = <&ccu RST_VE>;
439
+ interrupts = <53>;
440
+ allwinner,sram = <&ve_sram 1>;
395441 };
396442
397443 mmc0: mmc@1c0f000 {
....@@ -450,13 +496,14 @@
450496 phy-names = "usb";
451497 extcon = <&usbphy 0>;
452498 allwinner,sram = <&otg_sram 1>;
499
+ dr_mode = "otg";
453500 status = "disabled";
454501 };
455502
456503 usbphy: phy@1c13400 {
457504 #phy-cells = <1>;
458505 compatible = "allwinner,sun4i-a10-usb-phy";
459
- reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
506
+ reg = <0x01c13400 0x10>, <0x01c14800 0x4>, <0x01c1c800 0x4>;
460507 reg-names = "phy_ctrl", "pmu1", "pmu2";
461508 clocks = <&ccu CLK_USB_PHY>;
462509 clock-names = "usb_phy";
....@@ -577,6 +624,16 @@
577624 status = "disabled";
578625 };
579626
627
+ csi1: csi@1c1d000 {
628
+ compatible = "allwinner,sun4i-a10-csi1";
629
+ reg = <0x01c1d000 0x1000>;
630
+ interrupts = <43>;
631
+ clocks = <&ccu CLK_AHB_CSI1>, <&ccu CLK_DRAM_CSI1>;
632
+ clock-names = "bus", "ram";
633
+ resets = <&ccu RST_CSI1>;
634
+ status = "disabled";
635
+ };
636
+
580637 spi3: spi@1c1f000 {
581638 compatible = "allwinner,sun4i-a10-spi";
582639 reg = <0x01c1f000 0x1000>;
....@@ -621,6 +678,31 @@
621678 can0_ph_pins: can0-ph-pins {
622679 pins = "PH20", "PH21";
623680 function = "can";
681
+ };
682
+
683
+ /omit-if-no-ref/
684
+ csi1_8bits_pg_pins: csi1-8bits-pg-pins {
685
+ pins = "PG0", "PG2", "PG3", "PG4", "PG5",
686
+ "PG6", "PG7", "PG8", "PG9", "PG10",
687
+ "PG11";
688
+ function = "csi1";
689
+ };
690
+
691
+ /omit-if-no-ref/
692
+ csi1_24bits_ph_pins: csi1-24bits-ph-pins {
693
+ pins = "PH0", "PH1", "PH2", "PH3", "PH4",
694
+ "PH5", "PH6", "PH7", "PH8", "PH9",
695
+ "PH10", "PH11", "PH12", "PH13", "PH14",
696
+ "PH15", "PH16", "PH17", "PH18", "PH19",
697
+ "PH20", "PH21", "PH22", "PH23", "PH24",
698
+ "PH25", "PH26", "PH27";
699
+ function = "csi1";
700
+ };
701
+
702
+ /omit-if-no-ref/
703
+ csi1_clk_pg_pin: csi1-clk-pg-pin {
704
+ pins = "PG1";
705
+ function = "csi1";
624706 };
625707
626708 emac_pins: emac0-pins {
....@@ -760,13 +842,20 @@
760842 timer@1c20c00 {
761843 compatible = "allwinner,sun4i-a10-timer";
762844 reg = <0x01c20c00 0x90>;
763
- interrupts = <22>;
845
+ interrupts = <22>,
846
+ <23>,
847
+ <24>,
848
+ <25>,
849
+ <67>,
850
+ <68>;
764851 clocks = <&osc24M>;
765852 };
766853
767854 wdt: watchdog@1c20c90 {
768855 compatible = "allwinner,sun4i-a10-wdt";
769856 reg = <0x01c20c90 0x10>;
857
+ interrupts = <24>;
858
+ clocks = <&osc24M>;
770859 };
771860
772861 rtc: rtc@1c20d00 {