Skip to content

Commit

Permalink
ASoC: dt-bindings: dai-common: Narrow possible sound-dai-cells
Browse files Browse the repository at this point in the history
Instead of accepting any value for sound-dai-cells, the common DAI
properties schema should narrow them to sane choice.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Mostly sound-dai-cells are 0 or 1, but
Documentation/devicetree/bindings/sound/amlogic,aiu.yaml has value of 2.
  • Loading branch information
krzk committed Jan 9, 2024
1 parent 30a0fdc commit 829b167
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/sound/dai-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ allOf:
- $ref: component-common.yaml#

properties:
'#sound-dai-cells': true
'#sound-dai-cells':
enum: [0, 1, 2]

additionalProperties: true

0 comments on commit 829b167

Please sign in to comment.