leds: qnap-mcu: Add support for the red and green status LEDs
authorHeiko Stuebner <heiko@sntech.de>
Mon, 4 Aug 2025 11:49:49 +0000 (13:49 +0200)
committerLee Jones <lee@kernel.org>
Tue, 2 Sep 2025 07:54:46 +0000 (08:54 +0100)
commitc2d5d8f247049e22ef0afe8188cf8a6430144a17
tree9b3d9e8e9b8f65015b2c3cbf2de5574a190a05fe
parentfe4ffdbab4bb3cda1d72b93f7d2c3f7ea3df415d
leds: qnap-mcu: Add support for the red and green status LEDs

There is one more set of two LEDs on the qnap devices to indicate status.

One LED is green, the other is red and while they occupy the same space
on the front panel, they cannot be enabled at the same time.

But they can interact via blink functions, the MCU can flash them
alternately, going red -> green -> red -> ... either in 500ms or
1s intervals. They can of course also blink individually.

Add specific LED functions for them and register them on probe.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250804114949.3127417-3-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-qnap-mcu.c