]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: marvell: samsung,coreprimevelte: Fill in memory node
authorDuje Mihanović <duje@dujemihanovic.xyz>
Sat, 13 Sep 2025 21:21:10 +0000 (23:21 +0200)
committerDuje Mihanović <duje@dujemihanovic.xyz>
Mon, 13 Oct 2025 10:11:38 +0000 (12:11 +0200)
The board is known to have 1 GiB of DRAM with the first 16 MiB unusable.
Instead of relying on the bootloader to fill in the memory node, do it
ourselves.

Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
arch/arm64/boot/dts/marvell/mmp/pxa1908-samsung-coreprimevelte.dts

index 2f4f052ad890c7db6aad70f3a7dbe6ad1fc4848a..7fd5420937bd3c03a06945e0a27c4436e76ff059 100644 (file)
                };
        };
 
-       /* Bootloader fills this in */
        memory@0 {
                device_type = "memory";
-               reg = <0 0 0 0>;
+               reg = <0 0 0 0x40000000>;
        };
 
        reserved-memory {
+               /*
+                * Reserved by the vendor bootloader as a "secure region".
+                *
+                * TODO: See if the responsible stage of the bootloader can be
+                * replaced
+                */
+               secure-region@0 {
+                       reg = <0 0 0 0x1000000>;
+               };
+
                framebuffer@17000000 {
                        reg = <0 0x17000000 0 0x1800000>;
                        no-map;