diff mbox series

[3/3] ARM: dts: samsung: exynos5420-galaxy-tab-common: decrease available memory

Message ID 20240130-galaxy-tab-s-cleanup-v1-3-d4e17857241d@grimler.se
State Accepted
Commit 9a5dbb835fd396c78da34b26ee91db6d529d096d
Headers show
Series ARM: dts: samsung: enable wifi and cleanup exynos5420-galaxy-tab dts'es | expand

Commit Message

Henrik Grimler Jan. 30, 2024, 8:40 p.m. UTC
The last 6 MiB are used by trustzone firmware, and cannot be used by
Linux.  Currently we are saved by that the proprietary bootloader
(sboot) passes available memory to kernel through ATAG_MEM.  Change
memory range in any case so that we do not have to rely on ATAG_MEM.

Signed-off-by: Henrik Grimler <henrik@grimler.se>

---

Similar fix was applied for the exynos5422 odroids in commit
6591a02e17e6 ("ARM: dts: reduce total RAM by 22 MiB for
exynos5422-odroidxu3"):
https://lore.kernel.org/all/1421842972-25807-1-git-send-email-m.szyprowski@samsung.com/
---
 arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi
index d569fac29b18..ac929e282c84 100644
--- a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi
+++ b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi
@@ -40,7 +40,7 @@  chosen {
 
 	memory@20000000 {
 		device_type = "memory";
-		reg = <0x20000000 0xc0000000>;
+		reg = <0x20000000 0xbfa00000>;
 	};
 
 	firmware@2073000 {