Re: [PATCH V6 0/2] leds: pwm: Add optional GPIO enable pin support
From: Krzysztof Kozlowski
Date: Mon Jul 07 2025 - 02:18:27 EST
On Mon, Jul 07, 2025 at 10:07:50AM +0800, LI Qingwu wrote:
> Add support for an optional GPIO enable pin to the PWM LED driver.
> Some LED controllers require an additional enable GPIO to be enabled
> on the device before PWM control can take effect.
>
> Testing:
> - Tested on i.MX8MP EVK board with TPS92380 LED backlight driver
> - Verified GPIO enable/disable functionality works correctly
> - Confirmed both GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW polarities
> work properly
>
>
> Device tree configuration used for testing:
>
> backlight_keypad: backlight-keypad {
> compatible = "pwm-leds";
>
> led {
> color = <LED_COLOR_ID_WHITE>;
> enable-gpios = <&pca6416 11 GPIO_ACTIVE_HIGH>;
> function = LED_FUNCTION_KBD_BACKLIGHT;
> max-brightness = <100>;
> pwms = <&pwm3 0 2500 0>;
> };
> };
>
> Changes in V6:
> - Collected Reviewed-by from Krzysztof Kozlowski on 1/2 patch. (Thanks!)
Don't send new versions for that. It's just unnecessary traffic and
effort for us to sort out such emails.
Read submitting patches in this regard.
Best regards,
Krzysztof