devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V9 0/3] leds: pwm: Add optional GPIO enable pin support
@ 2025-11-05  6:50 LI Qingwu
  2025-11-05  6:50 ` [PATCH V9 1/3] dt-bindings: leds: pwm: Add enable-gpios property LI Qingwu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: LI Qingwu @ 2025-11-05  6:50 UTC (permalink / raw)
  To: lee, pavel, robh, krzk+dt, conor+dt, linux-leds, devicetree,
	linux-kernel, Qing-wu.Li

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-13 15:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05  6:50 [PATCH V9 0/3] leds: pwm: Add optional GPIO enable pin support LI Qingwu
2025-11-05  6:50 ` [PATCH V9 1/3] dt-bindings: leds: pwm: Add enable-gpios property LI Qingwu
2025-11-05  6:50 ` [PATCH V9 2/3] leds: pwm: Add optional GPIO enable pin support LI Qingwu
2025-11-13 15:53   ` Lee Jones
2025-11-05  6:50 ` [PATCH V9 3/3] leds: pwm: Reorder include files to alphabetic order LI Qingwu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).