linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 1/3] dt-bindings: leds-lp55xx: limit pwr-sel property to ti,lp8501
@ 2024-05-29 18:59 Christian Marangi
  2024-05-29 18:59 ` [PATCH v4 2/3] dt-bindings: leds-lp55xx: Add new ti,lp5569 compatible Christian Marangi
  2024-05-29 18:59 ` [PATCH v4 3/3] leds: leds-lp5569: Add support for Texas Instruments LP5569 Christian Marangi
  0 siblings, 2 replies; 4+ messages in thread
From: Christian Marangi @ 2024-05-29 18:59 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Jacek Anaszewski, linux-leds, devicetree,
	linux-kernel
  Cc: Christian Marangi

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>
---
v3:
- Add ACK tag

 .../devicetree/bindings/leds/leds-lp55xx.yaml          | 10 ++++++++++
 1 file changed, 10 insertions(+)

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
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-13 13:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29 18:59 [PATCH v4 1/3] dt-bindings: leds-lp55xx: limit pwr-sel property to ti,lp8501 Christian Marangi
2024-05-29 18:59 ` [PATCH v4 2/3] dt-bindings: leds-lp55xx: Add new ti,lp5569 compatible Christian Marangi
2024-05-29 18:59 ` [PATCH v4 3/3] leds: leds-lp5569: Add support for Texas Instruments LP5569 Christian Marangi
2024-06-13 13:31   ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).