linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: leds: register-bit-led: Add active-low property
@ 2022-08-18 17:25 Pali Rohár
  2022-08-18 17:25 ` [PATCH 2/2] leds: syscon: Implement support for " Pali Rohár
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Pali Rohár @ 2022-08-18 17:25 UTC (permalink / raw)
  To: Pavel Machek, Rob Herring, Krzysztof Kozlowski, Linus Walleij,
	Marek Behún
  Cc: linux-leds, devicetree, linux-kernel

Allow to define inverted logic (0 - enable LED, 1 - disable LED) via
active-low property.

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 Documentation/devicetree/bindings/leds/register-bit-led.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/leds/register-bit-led.yaml b/Documentation/devicetree/bindings/leds/register-bit-led.yaml
index 79b8fc0f9d23..5c6ef26f1a94 100644
--- a/Documentation/devicetree/bindings/leds/register-bit-led.yaml
+++ b/Documentation/devicetree/bindings/leds/register-bit-led.yaml
@@ -43,6 +43,11 @@ properties:
         0x100000, 0x200000, 0x400000, 0x800000, 0x1000000, 0x2000000, 0x4000000,
         0x8000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000 ]
 
+  active-low:
+    $ref: /schemas/types.yaml#/definitions/flag
+    description:
+      LED is ON when bit in register is not set
+
   offset:
     description:
       register offset to the register controlling this LED
-- 
2.20.1


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

end of thread, other threads:[~2022-11-08 12:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-18 17:25 [PATCH 1/2] dt-bindings: leds: register-bit-led: Add active-low property Pali Rohár
2022-08-18 17:25 ` [PATCH 2/2] leds: syscon: Implement support for " Pali Rohár
2022-08-26  8:05   ` Linus Walleij
2022-08-31 11:49     ` Pali Rohár
2022-10-09 11:40       ` Pali Rohár
2022-11-01 22:32         ` Pali Rohár
2022-11-08 12:42           ` Linus Walleij
2022-08-19  6:46 ` [PATCH 1/2] dt-bindings: leds: register-bit-led: Add " Krzysztof Kozlowski
2022-08-19  6:56   ` Pali Rohár
2022-08-19  8:08     ` Pavel Machek
2022-08-19  8:38       ` Krzysztof Kozlowski
2022-08-19  8:42         ` Pali Rohár
2022-08-19  9:08           ` Krzysztof Kozlowski
2022-08-19  9:11           ` Pali Rohár
2022-08-19  8:35 ` Linus Walleij

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