Skip to content

Commit 0fc57bf

Browse files
robherringbroonie
authored andcommitted
spi: dt-bindings: st,stm32-spi: Move "st,spi-midi-ns" to spi-peripheral-props.yaml
In order to validate SPI peripherals, SPI controller-specific child node properties need to be in a separate schema, spi-peripheral-props.yaml, which SPI peripheral schemas reference. As there is just a single property in this case, just add it to spi-peripheral-props.yaml directly. Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c40897f commit 0fc57bf

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ properties:
113113
minItems: 2
114114
maxItems: 4
115115

116+
st,spi-midi-ns:
117+
description: |
118+
Only for STM32H7, (Master Inter-Data Idleness) minimum time
119+
delay in nanoseconds inserted between two consecutive data frames.
120+
116121
# The controller specific properties go here.
117122
allOf:
118123
- $ref: arm,pl022-peripheral-props.yaml#

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ 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
3021

3122
properties:
3223
compatible:
@@ -59,17 +50,6 @@ properties:
5950
- const: rx
6051
- const: tx
6152

62-
patternProperties:
63-
"^[a-zA-Z][a-zA-Z0-9,+\\-._]{0,63}@[0-9a-f]+$":
64-
type: object
65-
# SPI slave nodes must be children of the SPI master node and can
66-
# contain the following properties.
67-
properties:
68-
st,spi-midi-ns:
69-
description: |
70-
Only for STM32H7, (Master Inter-Data Idleness) minimum time
71-
delay in nanoseconds inserted between two consecutive data frames.
72-
7353
required:
7454
- compatible
7555
- reg

0 commit comments

Comments
 (0)