From bc34c37ed8265250c4c41c18953ab82fcc491c83 Mon Sep 17 00:00:00 2001 From: Hongyang Zhao Date: Thu, 13 Aug 2026 19:53:34 +0800 Subject: [PATCH] ASoC: dt-bindings: es8316: Fix supply property constraints 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 Closes: https://lore.kernel.org/r/20260812194234.GA693895-robh@kernel.org Signed-off-by: Hongyang Zhao Link: https://patch.msgid.link/20260813-b4-es8316-binding-conditional-fix-v1-1-6cd56aa1370c@thundersoft.com Signed-off-by: Mark Brown --- .../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 276c73bb47907..f4ff23120c5b5 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 -- 2.53.0