[PATCH v2 1/3] ARM: dts: stm32: add SRAM binding

Steffen Trumtrar s.trumtrar at pengutronix.de
Mon May 16 05:16:17 PDT 2022


The STM32 has an SRAM from 0x1000000 to 0x10060000.
Make it available via mmio-sram.

Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
---
 arch/arm/boot/dts/stm32mp151.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index 08708346d583..1816d9b02bb8 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -122,6 +122,14 @@ soc {
 		interrupt-parent = <&intc>;
 		ranges;
 
+		sram: sram at 10000000 {
+			compatible = "mmio-sram";
+			reg = <0x10000000 0x60000>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0 0x10000000 0x60000>;
+		};
+
 		timers2: timer at 40000000 {
 			#address-cells = <1>;
 			#size-cells = <0>;
-- 
2.30.2




More information about the linux-arm-kernel mailing list