]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: dt-bindings: maxim,max98390: Reference common DAI properties
authorFei Shao <fshao@chromium.org>
Tue, 5 Nov 2024 09:14:31 +0000 (17:14 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 6 Nov 2024 14:19:32 +0000 (14:19 +0000)
MAX98390 is a smart amplifier and exposes one DAI, so '#sound-dai-cells'
property is needed for describing the DAI links.

Reference the dai-common.yaml schema to allow '#sound-dai-cells' to be
used.

This fixes dtbs_check error:
  '#sound-dai-cells' does not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Fei Shao <fshao@chromium.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20241105091513.3963102-1-fshao@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/maxim,max98390.yaml

index deaa6886c42fcf94c4483d8f962c00edf3b186f5..d35dd8408c61cdcc7d417de0b758f7a638a4b8f9 100644 (file)
@@ -9,6 +9,9 @@ title: Maxim Integrated MAX98390 Speaker Amplifier with Integrated Dynamic Speak
 maintainers:
   - Steve Lee <steves.lee@maximintegrated.com>
 
+allOf:
+  - $ref: dai-common.yaml#
+
 properties:
   compatible:
     const: maxim,max98390
@@ -32,11 +35,14 @@ properties:
   reset-gpios:
     maxItems: 1
 
+  '#sound-dai-cells':
+    const: 0
+
 required:
   - compatible
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |