[PATCH 6/6] ARM: dts: stm32: add sram pool to spi5 for DMA-MDMA chaining on MP13 DK

From: Alain Volmat

Date: Wed Jul 22 2026 - 05:23:00 EST


From: Clément Le Goffic <clement.legoffic@xxxxxxxxxxx>

The sram pool is used as a buffer area during a spi transfer using
DMA-MDMA chaining.
The pool size depends on the SPI framework that creates sg up to
4096 bytes.

Signed-off-by: Clément Le Goffic <clement.legoffic@xxxxxxxxxxx>
Signed-off-by: Alain Volmat <alain.volmat@xxxxxxxxxxx>
---
arch/arm/boot/dts/st/stm32mp135f-dk.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/st/stm32mp135f-dk.dts b/arch/arm/boot/dts/st/stm32mp135f-dk.dts
index 6022e73f58afd..35509b5c3872a 100644
--- a/arch/arm/boot/dts/st/stm32mp135f-dk.dts
+++ b/arch/arm/boot/dts/st/stm32mp135f-dk.dts
@@ -479,9 +479,21 @@ &spi5 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&spi5_pins_a>;
pinctrl-1 = <&spi5_sleep_pins_a>;
+ dmas = <&dmamux1 85 0x400 0x01>,
+ <&dmamux1 86 0x400 0x01>,
+ <&mdma 0 0x3 0x1200000a 0 0>;
+ dma-names = "rx", "tx", "rxm2m";
+ sram = <&spi5_dma_pool>;
status = "disabled";
};

+&sram2 {
+ spi5_dma_pool: dma-sram@1000 {
+ reg = <0x1000 0x1000>;
+ pool;
+ };
+};
+
&timers3 {
/delete-property/dmas;
/delete-property/dma-names;

--
2.34.1