[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251105065012.88796-1-Qing-wu.Li@leica-geosystems.com.cn>
Date: Wed, 5 Nov 2025 06:50:09 +0000
From: LI Qingwu <Qing-wu.Li@...ca-geosystems.com.cn>
To: lee@...nel.org,
pavel@...nel.org,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
linux-leds@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Qing-wu.Li@...ca-geosystems.com.cn
Subject: [PATCH V9 0/3] leds: pwm: Add optional GPIO enable pin support
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 V9
Reorder include files to alphabetic.
LI Qingwu (3):
dt-bindings: leds: pwm: Add enable-gpios property
leds: pwm: Add optional GPIO enable pin support
leds: pwm: Reorder include files to alphabetic order
.../devicetree/bindings/leds/leds-pwm.yaml | 7 +++++
drivers/leds/leds-pwm.c | 27 ++++++++++++++++---
2 files changed, 30 insertions(+), 4 deletions(-)
--
2.43.0
Powered by blists - more mailing lists