Skip to content

Commit 66c8d55

Browse files
krzklag-linaro
authored andcommitted
dt-bindings: mfd: x-powers,axp152: Simplify disallowing properties
The syntax to disallow x-powers,drive-vbus-en, x-powers,self-working-mode and x-powers,master-mode for certain variants can be made simpler. Also this produces much nicer warning message when the condition hits wrong DTS. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Tested-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230325114353.50293-1-krzysztof.kozlowski@linaro.org
1 parent 67d6c76 commit 66c8d55

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ allOf:
4747
- x-powers,axp209
4848

4949
then:
50-
not:
51-
required:
52-
- x-powers,drive-vbus-en
50+
properties:
51+
x-powers,drive-vbus-en: false
5352

5453
- if:
5554
not:
@@ -59,14 +58,9 @@ allOf:
5958
const: x-powers,axp806
6059

6160
then:
62-
allOf:
63-
- not:
64-
required:
65-
- x-powers,self-working-mode
66-
67-
- not:
68-
required:
69-
- x-powers,master-mode
61+
properties:
62+
x-powers,self-working-mode: false
63+
x-powers,master-mode: false
7064

7165
- if:
7266
not:

0 commit comments

Comments
 (0)