From: Christian Marangi Date: Wed, 26 Jun 2024 16:00:06 +0000 (+0200) Subject: dt-bindings: leds-lp55xx: Limit pwr-sel property to ti,lp8501 X-Git-Tag: v6.11-rc1~145^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=468434a059a7d1fad4b98c2ca080817b1520cbdc;p=thirdparty%2Fkernel%2Flinux.git dt-bindings: leds-lp55xx: Limit pwr-sel property to ti,lp8501 pwr-sel property is specific to ti,lp8501, make it conditional of the related compatible. Signed-off-by: Christian Marangi Acked-by: Rob Herring (Arm) Link: https://lore.kernel.org/r/20240626160027.19703-2-ansuelsmth@gmail.com Signed-off-by: Lee Jones --- diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml index e9d4514d0166d..77828dedbb9f9 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml @@ -151,6 +151,16 @@ patternProperties: $ref: /schemas/types.yaml#/definitions/string description: name of channel +if: + not: + properties: + compatible: + contains: + const: ti,lp8501 +then: + properties: + pwr-sel: false + required: - compatible - reg