[PATCH] ARM: dts: ux500: Add eSRAM to the device tree

Linus Walleij linus.walleij at linaro.org
Tue Nov 8 12:47:19 PST 2022


The Ux500 contains 640KB embedded static RAM that can be
used to speed up e.g. image rotation. Put it in the device
tree so that accelerators can pick it up.

Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
 arch/arm/boot/dts/ste-db8500.dtsi |  4 ----
 arch/arm/boot/dts/ste-db9500.dtsi |  4 ----
 arch/arm/boot/dts/ste-dbx5x0.dtsi | 15 +++++++++++++++
 3 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/arch/arm/boot/dts/ste-db8500.dtsi b/arch/arm/boot/dts/ste-db8500.dtsi
index f1ff3f4835d7..d5fe4583d790 100644
--- a/arch/arm/boot/dts/ste-db8500.dtsi
+++ b/arch/arm/boot/dts/ste-db8500.dtsi
@@ -13,10 +13,6 @@ cpu at 300 {
 	};
 
 	reserved-memory {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		ranges;
-
 		/* Modem trace memory */
 		ram at 6000000 {
 			reg = <0x06000000 0x00f00000>;
diff --git a/arch/arm/boot/dts/ste-db9500.dtsi b/arch/arm/boot/dts/ste-db9500.dtsi
index 4273d36e881d..3a0a3e6713dc 100644
--- a/arch/arm/boot/dts/ste-db9500.dtsi
+++ b/arch/arm/boot/dts/ste-db9500.dtsi
@@ -13,10 +13,6 @@ cpu at 300 {
 	};
 
 	reserved-memory {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		ranges;
-
 		/*
 		 * Initial Secure Software ISSW memory
 		 *
diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi
index a42a4fd69299..7fdf6ed9b202 100644
--- a/arch/arm/boot/dts/ste-dbx5x0.dtsi
+++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi
@@ -65,6 +65,21 @@ CPU1: cpu at 301 {
 		};
 	};
 
+	reserved-memory {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		/*
+		 * ESRAM - 640K Embedded Static RAM, 5 banks of 128K each
+		 * this memory is used when you need something fast.
+		 */
+		esram: ram at 40000000 {
+			reg = <0x40000000 0x000a0000>;
+			no-map;
+		};
+	};
+
 	thermal-zones {
 		/*
 		 * Thermal zone for the SoC, using the thermal sensor in the
-- 
2.37.3




More information about the linux-arm-kernel mailing list