diff mbox series

[v2,1/3] dt-bindings: leds-lp55xx: limit pwr-sel property to ti,lp8501

Message ID 20240518125914.2938-1-ansuelsmth@gmail.com
State Superseded
Headers show
Series [v2,1/3] dt-bindings: leds-lp55xx: limit pwr-sel property to ti,lp8501 | expand

Commit Message

Christian Marangi May 18, 2024, 12:59 p.m. UTC
pwr-sel property is specific to ti,lp8501, make it conditional of the
related compatible.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
 .../devicetree/bindings/leds/leds-lp55xx.yaml          | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Rob Herring May 20, 2024, 8:58 p.m. UTC | #1
On Sat, 18 May 2024 14:59:11 +0200, Christian Marangi wrote:
> pwr-sel property is specific to ti,lp8501, make it conditional of the
> related compatible.
> 
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> ---
>  .../devicetree/bindings/leds/leds-lp55xx.yaml          | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml
index e9d4514d0166..77828dedbb9f 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