]> git.hungrycats.org Git - linux/commitdiff
ASoC: dt-bindings: es8316: Fix supply property constraints
authorHongyang Zhao <hongyang.zhao@thundersoft.com>
Thu, 13 Aug 2026 11:53:34 +0000 (19:53 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 13 Aug 2026 16:49:45 +0000 (17:49 +0100)
The DT meta-schema requires a `then` clause when an `if` condition has
an `else` clause. Invert the compatible check and move the supply
property restrictions to `then` so they remain allowed only for ES8316.

Fixes: e9966d450b46 ("ASoC: dt-bindings: es8316: Add regulator supplies")
Reported-by: Rob Herring <robh@kernel.org>
Closes: https://lore.kernel.org/r/20260812194234.GA693895-robh@kernel.org
Signed-off-by: Hongyang Zhao <hongyang.zhao@thundersoft.com>
Link: https://patch.msgid.link/20260813-b4-es8316-binding-conditional-fix-v1-1-6cd56aa1370c@thundersoft.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/everest,es8316.yaml

index 276c73bb47907ba99227f1dfd3c4be84be7bd03e..f4ff23120c5b55939f1d28eb5a90b24ac841ba2b 100644 (file)
@@ -33,9 +33,10 @@ allOf:
   - if:
       properties:
         compatible:
-          contains:
-            const: everest,es8316
-    else:
+          not:
+            contains:
+              const: everest,es8316
+    then:
       properties:
         avdd-supply: false
         cpvdd-supply: false