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)
commit784c93e3ca2e55d917fbb53d1f1ed3f51dd89165
tree84fde128cfacec5581d5cc9df796ea2aa50366cb
parentcceac3f06fb37023aa51a21e27163addd64be992
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>
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