[PATCH] ASoC: dt-bindings: es8316: Fix supply property constraints
Hongyang Zhao <[email protected]>
| Newsgroups | org.kernel.vger.linux-sound,dev.linux.lists.patches,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260813-b4-es8316-binding-conditional-fix-v1-1-6cd56aa1370c@thundersoft.com> |
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 <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hongyang Zhao <[email protected]>
---
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 <[email protected]>