Devicetree
 help / color / mirror / Atom feed
* [PATCH] ASoC: dt-bindings: es8316: Fix supply property constraints
@ 2026-08-13 11:53 Hongyang Zhao
  2026-08-13 16:49 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Hongyang Zhao @ 2026-08-13 11:53 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Daniel Drake, Katsuhiro Suzuki, Matteo Martelli,
	Binbin Zhou
  Cc: linux-sound, devicetree, linux-kernel, Roger Shimizu,
	Hongyang Zhao

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>
---
Fix the conditional schema added by commit e9966d450b46. Invert the
compatible check and move the supply restrictions under `then`.
---
 Documentation/devicetree/bindings/sound/everest,es8316.yaml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/everest,es8316.yaml b/Documentation/devicetree/bindings/sound/everest,es8316.yaml
index 276c73bb4790..f4ff23120c5b 100644
--- a/Documentation/devicetree/bindings/sound/everest,es8316.yaml
+++ b/Documentation/devicetree/bindings/sound/everest,es8316.yaml
@@ -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

---
base-commit: 79a883d53960fb2eaf02f72a37182078b4fc938e
change-id: 20260813-b4-es8316-binding-conditional-fix-0bbc9151fef2

Best regards,
-- 
Hongyang Zhao <hongyang.zhao@thundersoft.com>


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

end of thread, other threads:[~2026-08-14 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 11:53 [PATCH] ASoC: dt-bindings: es8316: Fix supply property constraints Hongyang Zhao
2026-08-13 16:49 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox