ARM: dts: samsung: exynos4412: decrease memory to account for unusable region

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>
This commit is contained in:
Artur Weber 2024-02-27 09:07:55 +01:00 committed by Arnd Bergmann
parent cceac3f06f
commit 784c93e3ca
No known key found for this signature in database
GPG Key ID: 60AB47FFC9095227
4 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ / {
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x40000000>;
reg = <0x40000000 0x3fc00000>;
};
};

View File

@ -11,7 +11,7 @@ / {
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x80000000>;
reg = <0x40000000 0x7fc00000>;
};
};

View File

@ -9,7 +9,7 @@ / {
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x80000000>;
reg = <0x40000000 0x7fc00000>;
};
/* bootargs are passed in by bootloader */

View File

@ -23,7 +23,7 @@ / {
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x80000000>;
reg = <0x40000000 0x7fc00000>;
};
aliases {