]> Gentwo Git Trees - linux/.git/commit
leds: pwm: Add optional GPIO enable pin support
authorLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Mon, 17 Nov 2025 05:45:09 +0000 (05:45 +0000)
committerLee Jones <lee@kernel.org>
Thu, 20 Nov 2025 12:20:21 +0000 (12:20 +0000)
commitbb64206276db15f1d6e115febb262c9830628625
tree7ecd44cc905aa1e56d574cc9760d5c813b13d690
parentd7dca03a48e2e95b4469d3e3a1ef23065d90f98b
leds: pwm: Add optional GPIO enable pin support

Add support for optional GPIO-based enable pin control to PWM LED driver.
Some PWM LED driver chips like TPS92380 and LT3743 require a separate
enable signal in addition to PWM control. Implement support for such
GPIO control through the "enable-gpios" device tree property, activating
the pin when LED brightness is non-zero and deactivating it when off.

Tested on i.MX8MP EVK with TPS92380 LED driver chip

Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Link: https://patch.msgid.link/20251117054511.730246-2-Qing-wu.Li@leica-geosystems.com.cn
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-pwm.c