Skip to content

Commit e6352bf

Browse files
committed
Add few updates to the STM32 SPI driver
Merge series from Clément Le Goffic <[email protected]>: This series aims to improve the STM32 SPI driver in different areas. It adds SPI_READY mode, fixes an issue raised by a kernel bot, add the ability to use DMA-MDMA chaining for RX and deprecate an ST bindings vendor property.
2 parents 3e36c82 + 9a94449 commit e6352bf

File tree

3 files changed

+326
-35
lines changed

3 files changed

+326
-35
lines changed

Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ properties:
115115
maxItems: 4
116116

117117
st,spi-midi-ns:
118+
deprecated: true
118119
description: |
119120
Only for STM32H7, (Master Inter-Data Idleness) minimum time
120121
delay in nanoseconds inserted between two consecutive data frames.

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)