diff mbox series

[1/3] arm-bsp/u-boot:corstone1000: Use 32-bit cells for reserved-memory node

Message ID 20251107111252.25711-2-hugues.kambampiana@arm.com
State New
Headers show
Series Extract FVP options, enable module autoload & fix reserved-memory cells | expand

Commit Message

Hugues KAMBA MPIANA Nov. 7, 2025, 11:12 a.m. UTC
From: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>

Switch the *reserved-memory* node from two-cell (64-bit) encoding to
one-cell (32-bit) encoding and adjust the `reg` property accordingly
to make reserved-memory node format compatible with rest of the dts.

Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
---
 .../u-boot/u-boot-corstone1000.inc            |  5 +++
 ...-use-32-bit-cells-for-reserved-memor.patch | 39 +++++++++++++++++++
 2 files changed, 44 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0040-corstone1000-dts-use-32-bit-cells-for-reserved-memor.patch
diff mbox series

Patch

diff --git a/meta-arm-bsp/recipes-bsp/u-boot/u-boot-corstone1000.inc b/meta-arm-bsp/recipes-bsp/u-boot/u-boot-corstone1000.inc
index d39169d7..b33a5bcb 100644
--- a/meta-arm-bsp/recipes-bsp/u-boot/u-boot-corstone1000.inc
+++ b/meta-arm-bsp/recipes-bsp/u-boot/u-boot-corstone1000.inc
@@ -69,6 +69,11 @@  SRC_URI:append = " \
     file://0038-corstone1000-enable-OF_UPSTREAM-device-tree-support.patch \
 "
 
+# Use 32 bit cells for reserved-memory node in dts
+SRC_URI:append = " \
+    file://0040-corstone1000-dts-use-32-bit-cells-for-reserved-memor.patch \
+"
+
 uboot_configure_config:append() {
    openssl req -x509 -sha256 -newkey rsa:2048 -subj /CN=CRT/ -keyout ${B}/CRT.key -out $builddir/CRT.crt -nodes -days 365
 }
diff --git a/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0040-corstone1000-dts-use-32-bit-cells-for-reserved-memor.patch b/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0040-corstone1000-dts-use-32-bit-cells-for-reserved-memor.patch
new file mode 100644
index 00000000..a450e6d2
--- /dev/null
+++ b/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0040-corstone1000-dts-use-32-bit-cells-for-reserved-memor.patch
@@ -0,0 +1,39 @@ 
+From 25c478492b889fe857c7e1a3fa2c43ff956a36bb Mon Sep 17 00:00:00 2001
+From: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
+Date: Wed, 24 Sep 2025 13:42:25 +0000
+Subject: [PATCH 1/2] corstone1000: dts: use 32-bit cells for /reserved-memory
+ node
+
+Switch the *reserved-memory* node from two-cell (64-bit) encoding to
+one-cell (32-bit) encoding and adjust the `reg` property accordingly
+to make reserved-memory node format compatible with rest of the dts.
+
+Upstream-Status: Pending
+Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
+---
+ arch/arm/dts/corstone1000-u-boot.dtsi | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/arch/arm/dts/corstone1000-u-boot.dtsi b/arch/arm/dts/corstone1000-u-boot.dtsi
+index 023109fb6a7..92c493c5692 100644
+--- a/arch/arm/dts/corstone1000-u-boot.dtsi
++++ b/arch/arm/dts/corstone1000-u-boot.dtsi
+@@ -18,12 +18,12 @@
+ 	};
+ 
+ 	reserved-memory {
+-		#address-cells = <2>;
+-		#size-cells = <2>;
++		#address-cells = <1>;
++		#size-cells = <1>;
+ 		ranges;
+ 
+ 		smem_mem: smem_region@88000000 {
+-			reg = <0x0 0x88000000 0x0 0x100000>;
++			reg = <0x88000000 0x100000>;
+ 			no-map;
+ 		};
+ 	};
+-- 
+2.43.0
+