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: e9966d450b ("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>
This commit is contained in:
Hongyang Zhao 2026-08-13 19:53:34 +08:00 committed by Mark Brown
parent 0196c4b4f8
commit bc34c37ed8
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View 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