devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] leds: pwm: Add default-brightness property
@ 2024-10-15 15:14 George Stark
  2024-10-15 15:14 ` [PATCH 1/2] dt-bindings: " George Stark
  2024-10-15 15:14 ` [PATCH 2/2] leds: pwm: Add optional DT property default-brightness George Stark
  0 siblings, 2 replies; 6+ messages in thread
From: George Stark @ 2024-10-15 15:14 UTC (permalink / raw)
  To: pavel, lee, robh, krzk+dt, conor+dt
  Cc: linux-leds, devicetree, linux-kernel, kernel, George Stark

led-pwm driver supports default-state DT property and if that state is on then
the driver during initialization turns on the LED setting maximum brightness.
Sometimes it's desirable to use lower initial brightness.
This patch series adds support for DT property default-brightness.

Patch series is prepared for linux-next

Things to discuss:
If such a property is acceptable it could be moved to leds/common.yaml due to
several drivers support multiple brightness levels and could support the property
too.

George Stark (2):
  dt-bindings: leds: pwm: Add default-brightness property
  leds: pwm: Add optional DT property default-brightness

 .../devicetree/bindings/leds/leds-pwm.yaml          |  6 ++++++
 drivers/leds/leds-pwm.c                             | 13 ++++++++++---
 2 files changed, 16 insertions(+), 3 deletions(-)

--
2.25.1


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

end of thread, other threads:[~2024-11-01 15:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-15 15:14 [PATCH 0/2] leds: pwm: Add default-brightness property George Stark
2024-10-15 15:14 ` [PATCH 1/2] dt-bindings: " George Stark
2024-10-15 22:11   ` Rob Herring (Arm)
2024-10-15 15:14 ` [PATCH 2/2] leds: pwm: Add optional DT property default-brightness George Stark
2024-10-31 14:32   ` Lee Jones
2024-11-01 15:42     ` George Stark

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).