]> Gentwo Git Trees - linux/.git/commitdiff
dt-bindings: leds: pwm: Add enable-gpios property
authorLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Mon, 17 Nov 2025 05:45:08 +0000 (05:45 +0000)
committerLee Jones <lee@kernel.org>
Thu, 20 Nov 2025 12:20:14 +0000 (12:20 +0000)
Some PWM LED driver chips like TPS92380 and LT3743 require a separate
enable signal in addition to PWM control. Add this property to allow
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>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20251117054511.730246-1-Qing-wu.Li@leica-geosystems.com.cn
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/devicetree/bindings/leds/leds-pwm.yaml

index 61b97e8bc36d08fa0b987a776c3fdfae9e2e684d..6c4fcefbe25f9c83306bcc8fcf4df34440961b9e 100644 (file)
@@ -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