Skip to content

Commit 468434a

Browse files
Ansuellag-linaro
authored andcommitted
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 <ansuelsmth@gmail.com> Acked-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20240626160027.19703-2-ansuelsmth@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent c581f17 commit 468434a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Documentation/devicetree/bindings/leds/leds-lp55xx.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ patternProperties:
151151
$ref: /schemas/types.yaml#/definitions/string
152152
description: name of channel
153153

154+
if:
155+
not:
156+
properties:
157+
compatible:
158+
contains:
159+
const: ti,lp8501
160+
then:
161+
properties:
162+
pwr-sel: false
163+
154164
required:
155165
- compatible
156166
- reg

0 commit comments

Comments
 (0)