diff options
author | Krzysztof Kozlowski <[email protected]> | 2023-03-25 12:43:53 +0100 |
---|---|---|
committer | Lee Jones <[email protected]> | 2023-04-26 11:40:34 +0100 |
commit | 66c8d55966fd169a36fa2ca6e80517080492e87f (patch) | |
tree | cba534e0386f27c4cd37b8abc92181d6dff060d2 | |
parent | 67d6c76fc815cddc77de9529221f9ff8dd1fb10e (diff) |
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 <[email protected]>
Acked-by: Chen-Yu Tsai <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Tested-by: Andre Przywara <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml index b7a8747d5fa0..2691ac08f536 100644 --- a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml +++ b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml @@ -47,9 +47,8 @@ allOf: - x-powers,axp209 then: - not: - required: - - x-powers,drive-vbus-en + properties: + x-powers,drive-vbus-en: false - if: not: @@ -59,14 +58,9 @@ allOf: const: x-powers,axp806 then: - allOf: - - not: - required: - - x-powers,self-working-mode - - - not: - required: - - x-powers,master-mode + properties: + x-powers,self-working-mode: false + x-powers,master-mode: false - if: not: |