]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: dts: samsung: exynos4412: decrease memory to account for unusable region
authorArtur Weber <aweber.kernel@gmail.com>
Tue, 27 Feb 2024 08:07:55 +0000 (09:07 +0100)
committerArnd Bergmann <arnd@arndb.de>
Mon, 4 Mar 2024 16:22:43 +0000 (17:22 +0100)
The last 4 MiB of RAM on those devices is likely used by trustzone
firmware, and is unusable under Linux. Change the device tree memory
node accordingly.

The proprietary bootloader (S-BOOT) passes these memory ranges through
ATAG_MEM; this change allows us to have the correct memory ranges
without relying on ATAG_MEM.

Tested-by: Henrik Grimler <henrik@grimler.se> # i9300, i9305
Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
Link: https://lore.kernel.org/r/20240217-exynos4-memsize-fix-v1-1-7858e9c5f844@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/samsung/exynos4412-i9300.dts
arch/arm/boot/dts/samsung/exynos4412-i9305.dts
arch/arm/boot/dts/samsung/exynos4412-n710x.dts
arch/arm/boot/dts/samsung/exynos4412-p4note.dtsi

index 61aca5798f388dd3c33949bf648e40ae65efdc53..b79d456e976dfdd7514a75cb03c6d73b08ce950d 100644 (file)
@@ -18,7 +18,7 @@
 
        memory@40000000 {
                device_type = "memory";
-               reg = <0x40000000 0x40000000>;
+               reg = <0x40000000 0x3fc00000>;
        };
 };
 
index 77083f1a827314e8f8638224d74ed66382ffd7c8..1048ef5d9bc3ba7b10bd65cff9ebe6f3ba1fd14d 100644 (file)
@@ -11,7 +11,7 @@
 
        memory@40000000 {
                device_type = "memory";
-               reg = <0x40000000 0x80000000>;
+               reg = <0x40000000 0x7fc00000>;
        };
 };
 
index 0a151437fc7349d6258a208ff5488ed114e0d9b3..eee1000dea922793e343d95ffd2accd9d2407139 100644 (file)
@@ -9,7 +9,7 @@
 
        memory@40000000 {
                device_type = "memory";
-               reg = <0x40000000 0x80000000>;
+               reg = <0x40000000 0x7fc00000>;
        };
 
        /* bootargs are passed in by bootloader */
index 39a3d1cbe4c3b5adf8f5f64f0e9598fe60555854..28a6058027335e6af91e55bda8292e83a87a33aa 100644 (file)
@@ -23,7 +23,7 @@
 
        memory@40000000 {
                device_type = "memory";
-               reg = <0x40000000 0x80000000>;
+               reg = <0x40000000 0x7fc00000>;
        };
 
        aliases {