[PATCH V4 1/2] dt-bindings: leds: pwm: add enable-gpios property

LI Qingwu posted 2 patches 3 months ago
There is a newer version of this series
[PATCH V4 1/2] dt-bindings: leds: pwm: add enable-gpios property
Posted by LI Qingwu 3 months ago
some pwm led driver chips like tps92380 require a separate enable signal
in addition to pwm control. this property allows device trees to specify
such gpio, which will be controlled automatically by the driver based
on the led brightness state.

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

diff --git a/Documentation/devicetree/bindings/leds/leds-pwm.yaml b/Documentation/devicetree/bindings/leds/leds-pwm.yaml
index 61b97e8bc36d0..6c4fcefbe25f9 100644
--- a/Documentation/devicetree/bindings/leds/leds-pwm.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-pwm.yaml
@@ -40,6 +40,13 @@ patternProperties:
           initialization. If the option is not set then max brightness is used.
         $ref: /schemas/types.yaml#/definitions/uint32
 
+      enable-gpios:
+        description:
+          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
Re: [PATCH V4 1/2] dt-bindings: leds: pwm: add enable-gpios property
Posted by Krzysztof Kozlowski 3 months ago
On 03/07/2025 11:34, LI Qingwu wrote:
> some pwm led driver chips like tps92380 require a separate enable signal

Sentence starts with capital letter.

tps92380 does not have dedicated enable pin. It has VDDIO, which serves
also enable purpose, but it is a supply.

Best regards,
Krzysztof