devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: leds-lp55xx: limit pwr-sel property to ti,lp8501
@ 2024-05-15 14:31 Christian Marangi
  2024-05-15 14:31 ` [PATCH 2/3] dt-bindings: leds-lp55xx: Add new ti,lp5569 compatible Christian Marangi
  2024-05-15 14:31 ` [PATCH 3/3] leds: leds-lp5569: Add support for Texas Instruments LP5569 Christian Marangi
  0 siblings, 2 replies; 6+ messages in thread
From: Christian Marangi @ 2024-05-15 14:31 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>
---
 .../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] 6+ messages in thread

end of thread, other threads:[~2024-05-18 12:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-15 14:31 [PATCH 1/3] dt-bindings: leds-lp55xx: limit pwr-sel property to ti,lp8501 Christian Marangi
2024-05-15 14:31 ` [PATCH 2/3] dt-bindings: leds-lp55xx: Add new ti,lp5569 compatible Christian Marangi
2024-05-15 15:35   ` Conor Dooley
2024-05-15 14:31 ` [PATCH 3/3] leds: leds-lp5569: Add support for Texas Instruments LP5569 Christian Marangi
2024-05-16 18:20   ` kernel test robot
2024-05-18 12:46   ` kernel test robot

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).