]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: allwinner: sun50i-h616: Add SRAM nodes
authorJernej Skrabec <jernej.skrabec@gmail.com>
Tue, 24 Mar 2026 16:43:55 +0000 (00:43 +0800)
committerChen-Yu Tsai <wens@kernel.org>
Mon, 27 Apr 2026 15:26:03 +0000 (23:26 +0800)
The H616 SoC has a video engine, and two SRAM regions needed by it.

Add the SRAM regions to the dtsi file. The video engine will be added
in a separate change.

Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
[wens@kernel.org: Add VE SRAM region, commit message, and split into two]
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20260324164357.1607247-8-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi

index bf054869e78be6c0e18e5441c62814bd423fbbc5..b116d3c12881e4324aa38513830fba6595c992aa 100644 (file)
                        #size-cells = <1>;
                        ranges;
 
-                       sram_c: sram@28000 {
+                       /* SRAM C */
+                       sram@28000 {
                                compatible = "mmio-sram";
                                reg = <0x00028000 0x30000>;
                                #address-cells = <1>;
                                #size-cells = <1>;
                                ranges = <0 0x00028000 0x30000>;
+
+                               /*
+                                * 0x0 ~ 0x20000 is partial alias of VE SRAM below.
+                                * 0x20000 ~ 0x2ffff is (partial?) alias of DE SRAM.
+                                * However the whole region is toggled together.
+                                */
+                               sram_c: sram-section@0 {
+                                       compatible = "allwinner,sun50i-h616-sram-c",
+                                                    "allwinner,sun50i-a64-sram-c";
+                                       reg = <0x00000 0x30000>;
+                               };
+                       };
+
+                       /* VE SRAM */
+                       sram@1a00000 {
+                               compatible = "mmio-sram";
+                               reg = <0x01a00000 0x200000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               ranges = <0 0x01a00000 0x200000>;
+
+                               ve_sram: sram-section@0 {
+                                       compatible = "allwinner,sun50i-h616-ve-sram";
+                                       reg = <0x000000 0x200000>;
+                               };
                        };
                };