mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
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:
parent
0196c4b4f8
commit
bc34c37ed8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user