Skip to content

Commit bd60f94

Browse files
clegofficbroonie
authored andcommitted
spi: dt-bindings: stm32: update bindings with SPI Rx DMA-MDMA chaining
Add MDMA channel, and new sram property which are mandatory to enable SPI Rx DMA-MDMA chaining. Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com> Link: https://patch.msgid.link/20250616-spi-upstream-v1-3-7e8593f3f75d@foss.st.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4956bf4 commit bd60f94

1 file changed

Lines changed: 46 additions & 2 deletions

File tree

Documentation/devicetree/bindings/spi/st,stm32-spi.yaml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,38 @@ maintainers:
1818

1919
allOf:
2020
- $ref: spi-controller.yaml#
21+
- if:
22+
properties:
23+
compatible:
24+
contains:
25+
const: st,stm32f4-spi
26+
27+
then:
28+
properties:
29+
st,spi-midi-ns: false
30+
sram: false
31+
dmas:
32+
maxItems: 2
33+
dma-names:
34+
items:
35+
- const: rx
36+
- const: tx
37+
38+
- if:
39+
properties:
40+
compatible:
41+
contains:
42+
const: st,stm32mp25-spi
43+
44+
then:
45+
properties:
46+
sram: false
47+
dmas:
48+
maxItems: 2
49+
dma-names:
50+
items:
51+
- const: rx
52+
- const: tx
2153

2254
properties:
2355
compatible:
@@ -41,16 +73,28 @@ properties:
4173

4274
dmas:
4375
description: |
44-
DMA specifiers for tx and rx dma. DMA fifo mode must be used. See
45-
the STM32 DMA controllers bindings Documentation/devicetree/bindings/dma/stm32/*.yaml.
76+
DMA specifiers for tx and rx channels. DMA fifo mode must be used. See
77+
the STM32 DMA bindings Documentation/devicetree/bindings/dma/stm32/st,*dma.yaml
78+
minItems: 2
4679
items:
4780
- description: rx DMA channel
4881
- description: tx DMA channel
82+
- description: rxm2m MDMA channel
4983

5084
dma-names:
85+
minItems: 2
5186
items:
5287
- const: rx
5388
- const: tx
89+
- const: rxm2m
90+
91+
sram:
92+
$ref: /schemas/types.yaml#/definitions/phandle
93+
description: |
94+
Phandles to a reserved SRAM region which is used as temporary
95+
storage memory between DMA and MDMA engines.
96+
The region should be defined as child node of the AHB SRAM node
97+
as per the generic bindings in Documentation/devicetree/bindings/sram/sram.yaml
5498
5599
access-controllers:
56100
minItems: 1

0 commit comments

Comments
 (0)