devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 1/2] dt-bindings: leds: pwm: Add enable-gpios property
@ 2025-07-02 11:47 LI Qingwu
  2025-07-02 11:47 ` [PATCH V2 2/2] leds: pwm: Add optional GPIO enable pin support LI Qingwu
  2025-07-02 13:28 ` [PATCH V2 1/2] dt-bindings: leds: pwm: Add enable-gpios property Rob Herring (Arm)
  0 siblings, 2 replies; 7+ messages in thread
From: LI Qingwu @ 2025-07-02 11:47 UTC (permalink / raw)
  To: lee, pavel, robh, krzk+dt, conor+dt, linux-leds, devicetree,
	linux-kernel, Qing-wu.Li
  Cc: bsp-development.geo

Some PWM LED chips have a dedicated enable GPIO.
This commit adds the support to specify such GPIO.

Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
---
 Documentation/devicetree/bindings/leds/leds-pwm.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/devicetree/bindings/leds/leds-pwm.yaml b/Documentation/devicetree/bindings/leds/leds-pwm.yaml
index 61b97e8bc36d0..2d38504f74c23 100644
--- a/Documentation/devicetree/bindings/leds/leds-pwm.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-pwm.yaml
@@ -40,6 +40,14 @@ patternProperties:
           initialization. If the option is not set then max brightness is used.
         $ref: /schemas/types.yaml#/definitions/uint32
 
+      enable-gpios:
+        description:
+        enable-gpios:
+          GPIO for LED hardware enable control. Set active when brightness is
+          non-zero and inactive when brightness is zero.
+          The GPIO default state follows the "default-state" property.
+        maxItems: 1
+
     required:
       - pwms
       - max-brightness
-- 
2.43.0


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

end of thread, other threads:[~2025-07-03  9:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 11:47 [PATCH V2 1/2] dt-bindings: leds: pwm: Add enable-gpios property LI Qingwu
2025-07-02 11:47 ` [PATCH V2 2/2] leds: pwm: Add optional GPIO enable pin support LI Qingwu
2025-07-02 13:28 ` [PATCH V2 1/2] dt-bindings: leds: pwm: Add enable-gpios property Rob Herring (Arm)
2025-07-03  3:54   ` LI Qingwu
2025-07-03  7:11     ` Krzysztof Kozlowski
2025-07-03  8:52       ` LI Qingwu
2025-07-03  9:56         ` Krzysztof Kozlowski

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