Skip to content

Commit 58ae9a2

Browse files
krzkbroonie
authored andcommitted
ASoC: dt-bindings: Reference common DAI properties
Reference in all sound components which have '#sound-dai-cells' the dai-common.yaml schema, which allows to use 'sound-name-prefix' property. Signed-off-by: Krzysztof Kozlowski <[email protected]> Tested-by: Nicolas Frattaroli <[email protected]> Acked-by: Nicolas Frattaroli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3fda853 commit 58ae9a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+276
-95
lines changed

Documentation/devicetree/bindings/sound/adi,adau1372.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ description: |
1414
Analog Devices ADAU1372 four inputs and two outputs codec.
1515
https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1372.pdf
1616
17+
allOf:
18+
- $ref: dai-common.yaml#
19+
1720
properties:
1821
compatible:
1922
enum:
@@ -42,7 +45,7 @@ required:
4245
- clocks
4346
- clock-names
4447

45-
additionalProperties: false
48+
unevaluatedProperties: false
4649

4750
examples:
4851
- |

Documentation/devicetree/bindings/sound/adi,adau1977.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ required:
5151
- AVDD-supply
5252

5353
allOf:
54+
- $ref: dai-common.yaml#
5455
- $ref: /schemas/spi/spi-peripheral-props.yaml#
5556

5657
unevaluatedProperties: false

Documentation/devicetree/bindings/sound/adi,adau7118.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ description: |
1515
standalone mode.
1616
https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU7118.pdf
1717
18+
allOf:
19+
- $ref: dai-common.yaml#
20+
1821
properties:
1922
compatible:
2023
enum:
@@ -57,7 +60,7 @@ required:
5760
- iovdd-supply
5861
- dvdd-supply
5962

60-
additionalProperties: false
63+
unevaluatedProperties: false
6164

6265
examples:
6366
- |

Documentation/devicetree/bindings/sound/ak4375.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ title: AK4375 DAC and headphones amplifier
99
maintainers:
1010
- Vincent Knecht <[email protected]>
1111

12+
allOf:
13+
- $ref: dai-common.yaml#
14+
1215
properties:
1316
compatible:
1417
const: asahi-kasei,ak4375
@@ -35,7 +38,7 @@ required:
3538
- avdd-supply
3639
- tvdd-supply
3740

38-
additionalProperties: false
41+
unevaluatedProperties: false
3942

4043
examples:
4144
- |

Documentation/devicetree/bindings/sound/ak4613.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ title: AK4613 I2C transmitter
99
maintainers:
1010
- Kuninori Morimoto <[email protected]>
1111

12+
allOf:
13+
- $ref: dai-common.yaml#
14+
1215
properties:
1316
compatible:
1417
const: asahi-kasei,ak4613
@@ -35,7 +38,7 @@ required:
3538
- compatible
3639
- reg
3740

38-
additionalProperties: false
41+
unevaluatedProperties: false
3942

4043
examples:
4144
- |

Documentation/devicetree/bindings/sound/ak4642.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ title: AK4642 I2C transmitter
99
maintainers:
1010
- Kuninori Morimoto <[email protected]>
1111

12+
allOf:
13+
- $ref: dai-common.yaml#
14+
1215
properties:
1316
compatible:
1417
enum:
@@ -37,7 +40,7 @@ required:
3740
- compatible
3841
- reg
3942

40-
additionalProperties: false
43+
unevaluatedProperties: false
4144

4245
examples:
4346
- |

Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ required:
102102
- dma-names
103103

104104
allOf:
105+
- $ref: dai-common.yaml#
105106
- if:
106107
properties:
107108
compatible:
@@ -228,7 +229,7 @@ allOf:
228229
- Mic
229230
- Speaker
230231

231-
additionalProperties: false
232+
unevaluatedProperties: false
232233

233234
examples:
234235
- |

Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ properties:
6161
maxItems: 1
6262

6363
allOf:
64+
- $ref: dai-common.yaml#
6465
- if:
6566
properties:
6667
compatible:
@@ -128,7 +129,7 @@ required:
128129
- dmas
129130
- dma-names
130131

131-
additionalProperties: false
132+
unevaluatedProperties: false
132133

133134
examples:
134135
- |

Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ properties:
5454
maxItems: 1
5555

5656
allOf:
57+
- $ref: dai-common.yaml#
5758
- if:
5859
properties:
5960
compatible:
@@ -104,7 +105,7 @@ required:
104105
- dmas
105106
- dma-names
106107

107-
additionalProperties: false
108+
unevaluatedProperties: false
108109

109110
examples:
110111
- |

Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ title: Allwinner H6 DMIC
99
maintainers:
1010
- Ban Tao <[email protected]>
1111

12+
allOf:
13+
- $ref: dai-common.yaml#
14+
1215
properties:
1316
compatible:
1417
oneOf:
@@ -59,7 +62,7 @@ required:
5962
- dma-names
6063
- resets
6164

62-
additionalProperties: false
65+
unevaluatedProperties: false
6366

6467
examples:
6568
- |

0 commit comments

Comments
 (0)