devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: dt-bindings: dai-common: Narrow possible sound-dai-cells
@ 2024-01-09 21:38 Krzysztof Kozlowski
  2024-01-10 11:07 ` Jerome Brunet
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-09 21:38 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Jerome Brunet, linux-sound, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski

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.
---
 Documentation/devicetree/bindings/sound/dai-common.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/dai-common.yaml b/Documentation/devicetree/bindings/sound/dai-common.yaml
index 1aed2f0f1775..6db35887cbe6 100644
--- a/Documentation/devicetree/bindings/sound/dai-common.yaml
+++ b/Documentation/devicetree/bindings/sound/dai-common.yaml
@@ -13,6 +13,7 @@ allOf:
   - $ref: component-common.yaml#
 
 properties:
-  '#sound-dai-cells': true
+  '#sound-dai-cells':
+    enum: [0, 1, 2]
 
 additionalProperties: true
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-01-16 16:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-09 21:38 [PATCH] ASoC: dt-bindings: dai-common: Narrow possible sound-dai-cells Krzysztof Kozlowski
2024-01-10 11:07 ` Jerome Brunet
2024-01-10 11:37   ` Mark Brown
2024-01-10 12:51     ` Krzysztof Kozlowski
2024-01-10 12:57       ` Mark Brown
2024-01-10 13:24         ` Krzysztof Kozlowski
2024-01-10 13:36           ` Jerome Brunet
2024-01-16 16:47             ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).