Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] leds: pwm-multicolor: Fix default-trigger by allowing default-intensity
@ 2026-06-04 11:06 Jonas Rebmann
  2026-06-04 11:06 ` [PATCH 1/2] dt-bindings: leds: Add default-intensity property Jonas Rebmann
  2026-06-04 11:06 ` [PATCH 2/2] leds: pwm-multicolor: Introduce " Jonas Rebmann
  0 siblings, 2 replies; 5+ messages in thread
From: Jonas Rebmann @ 2026-06-04 11:06 UTC (permalink / raw)
  To: Lee Jones, Pavel Machek, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Jacek Anaszewski, Sven Schwermer
  Cc: Pavel Machek, linux-leds, devicetree, linux-kernel, kernel,
	Jonas Rebmann

Typically using linux,default-trigger allows turning LEDs on on initialization
or triggering on e.g. a kernel panic regardless of how early.

While supported in pwm-multicolor, this was not usable because the
individual color components multiplication factor (intensity), defaulted
all to 0 (black) and the LED remains off regardless of its overall
"brightness" value.

Allow setting defaults for each component's intensity to make the other
"default-" properties actually usable here.

Update binding documentation accordingly.

Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
---
Jonas Rebmann (2):
      dt-bindings: leds: Add default-intensity property
      leds: pwm-multicolor: Introduce default-intensity property

 Documentation/devicetree/bindings/leds/common.yaml             | 10 ++++++++++
 .../devicetree/bindings/leds/leds-pwm-multicolor.yaml          |  4 ++++
 drivers/leds/rgb/leds-pwm-multicolor.c                         |  2 ++
 3 files changed, 16 insertions(+)
---
base-commit: ba3e43a9e601636f5edb54e259a74f96ca3b8fd8
change-id: 20260604-multicolor-default-11e3becde05a

Best regards,
--  
Jonas Rebmann <jre@pengutronix.de>


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

end of thread, other threads:[~2026-06-04 14:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-04 11:06 [PATCH 0/2] leds: pwm-multicolor: Fix default-trigger by allowing default-intensity Jonas Rebmann
2026-06-04 11:06 ` [PATCH 1/2] dt-bindings: leds: Add default-intensity property Jonas Rebmann
2026-06-04 11:13   ` sashiko-bot
2026-06-04 14:37   ` Rob Herring (Arm)
2026-06-04 11:06 ` [PATCH 2/2] leds: pwm-multicolor: Introduce " Jonas Rebmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox