[PATCH v3 0/2] leds: rgb: lpg: Don't enable TRILED when configuring PWM

Fenglin Wu via B4 Relay posted 2 patches 1 week, 5 days ago
Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 5 +++++
drivers/leds/rgb/leds-qcom-lpg.c                          | 4 +---
2 files changed, 6 insertions(+), 3 deletions(-)
[PATCH v3 0/2] leds: rgb: lpg: Don't enable TRILED when configuring PWM
Posted by Fenglin Wu via B4 Relay 1 week, 5 days ago
The LPG channel can be used for only outputting PWM signal without the
need to enable TRILED. Update the DT binding document to explain that
usage and remove the TRILED enabling register write in the driver for
that use case.

Signed-off-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
---
Changes in v3:
- Add a DT binding change to clarify the standalone PWM usage according
  to the suggestion from Bjorn.
- Link to v2: https://lore.kernel.org/r/20251118-lpg_triled_fix-v2-1-6d1e5831333f@oss.qualcomm.com

Changes in v2:
- Check "chan->in_use" flag in lpg_pwm_apply() is not correct, as it
  indicates the channel is being used as a LED and this PWM API would
  never get called. Instead, remove the code line which enables TRILED
  in lpg_pwm_apply() and update the commit text to explain it clearly.

- Link to v1: https://lore.kernel.org/r/20251114-lpg_triled_fix-v1-1-9b239832c53c@oss.qualcomm.com

---
Fenglin Wu (2):
      dt-bindings: leds: qcom-lpg: Explain standalone PWM usage
      leds: rgb: leds-qcom-lpg: Don't enable TRILED when configuring PWM

 Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 5 +++++
 drivers/leds/rgb/leds-qcom-lpg.c                          | 4 +---
 2 files changed, 6 insertions(+), 3 deletions(-)
---
base-commit: ea1c4c7e648d1ca91577071fc42fdc219521098c
change-id: 20251114-lpg_triled_fix-44491b49b340

Best regards,
-- 
Fenglin Wu <fenglin.wu@oss.qualcomm.com>
Re: [PATCH v3 0/2] leds: rgb: lpg: Don't enable TRILED when configuring PWM
Posted by Lee Jones 1 week, 4 days ago
On Wed, 19 Nov 2025 14:06:41 +0800, Fenglin Wu wrote:
> The LPG channel can be used for only outputting PWM signal without the
> need to enable TRILED. Update the DT binding document to explain that
> usage and remove the TRILED enabling register write in the driver for
> that use case.
> 
> 

Applied, thanks!

[1/2] dt-bindings: leds: qcom-lpg: Explain standalone PWM usage
      commit: 5d390e7a02e850a995ee25248292d4be61314078
[2/2] leds: rgb: leds-qcom-lpg: Don't enable TRILED when configuring PWM
      commit: 072cd5f458d76b9e15d89ebdaea8b5cb1312eeef

--
Lee Jones [李琼斯]