Skip to content

Commit c69b7ed

Browse files
Olivier Moysanbroonie
authored andcommitted
ASoC: dt-bindings: add stm32mp25 support for i2s
Add STM32MP25 support for STM32 I2S peripheral, through "st,stm32mp25-i2s" compatible. Signed-off-by: Olivier Moysan <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b4b3622 commit c69b7ed

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

Documentation/devicetree/bindings/sound/st,stm32-i2s.yaml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ description:
1313
The SPI/I2S block supports I2S/PCM protocols when configured on I2S mode.
1414
Only some SPI instances support I2S.
1515

16-
allOf:
17-
- $ref: dai-common.yaml#
18-
1916
properties:
2017
compatible:
2118
enum:
2219
- st,stm32h7-i2s
20+
- st,stm32mp25-i2s
2321

2422
"#sound-dai-cells":
2523
const: 0
@@ -33,13 +31,15 @@ properties:
3331
- description: clock feeding the internal clock generator.
3432
- description: I2S parent clock for sampling rates multiple of 8kHz.
3533
- description: I2S parent clock for sampling rates multiple of 11.025kHz.
34+
minItems: 2
3635

3736
clock-names:
3837
items:
3938
- const: pclk
4039
- const: i2sclk
4140
- const: x8k
4241
- const: x11k
42+
minItems: 2
4343

4444
interrupts:
4545
maxItems: 1
@@ -79,6 +79,36 @@ required:
7979
- dmas
8080
- dma-names
8181

82+
allOf:
83+
- $ref: dai-common.yaml#
84+
- if:
85+
properties:
86+
compatible:
87+
contains:
88+
const: st,stm32h7-i2s
89+
90+
then:
91+
properties:
92+
clocks:
93+
minItems: 4
94+
95+
clock-names:
96+
minItems: 4
97+
98+
- if:
99+
properties:
100+
compatible:
101+
contains:
102+
const: st,stm32mp25-i2s
103+
104+
then:
105+
properties:
106+
clocks:
107+
maxItems: 2
108+
109+
clock-names:
110+
maxItems: 2
111+
82112
unevaluatedProperties: false
83113

84114
examples:

0 commit comments

Comments
 (0)