Skip to content

Commit d7dca03

Browse files
Qingwu-Lilag-linaro
authored andcommitted
dt-bindings: leds: pwm: Add enable-gpios property
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>
1 parent 88aa23c commit d7dca03

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Documentation/devicetree/bindings/leds/leds-pwm.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ patternProperties:
4040
initialization. If the option is not set then max brightness is used.
4141
$ref: /schemas/types.yaml#/definitions/uint32
4242

43+
enable-gpios:
44+
description:
45+
GPIO for LED hardware enable control. Set active when brightness is
46+
non-zero and inactive when brightness is zero.
47+
The GPIO default state follows the "default-state" property.
48+
maxItems: 1
49+
4350
required:
4451
- pwms
4552
- max-brightness

0 commit comments

Comments
 (0)