[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251009151847.GC2890766@google.com>
Date: Thu, 9 Oct 2025 16:18:47 +0100
From: Lee Jones <lee@...nel.org>
To: Jonathan Brophy <professorjonny98@...il.com>
Cc: Pavel Machek <pavel@...nel.org>,
Jonathan Brophy <professor_jonny@...mail.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Radoslav Tsvetkov <rtsvetkov@...dotech.eu>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-leds@...r.kernel.org
Subject: Re: [PATCH 1/4] leds: Add Virtual Color LED Group driver
On Thu, 09 Oct 2025, Jonathan Brophy wrote:
> From: Jonathan Brophy <professor_jonny@...mail.com>
>
> This commit introduces a new driver that implements virtual LED groups
> by aggregating multiple monochromatic LEDs. The driver provides
> priority-based control to manage concurrent LED activation requests,
> ensuring that only the highest-priority LED group's state is active at
> any given time.
>
> This driver is useful for systems that require coordinated control over
> multiple LEDs, such as RGB indicators or status LEDs that reflect
> complex system states.
>
> Co-developed-by: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
> Signed-off-by: Jonathan Brophy <professor_jonny@...mail.com>
> ---
> drivers/leds/rgb/Kconfig | 17 +
> drivers/leds/rgb/Makefile | 1 +
> drivers/leds/rgb/leds-group-virtualcolor.c | 440 +++++++++++++++++++++
> 3 files changed, 458 insertions(+)
> create mode 100644 drivers/leds/rgb/leds-group-virtualcolor.c
>
> diff --git a/drivers/leds/rgb/Kconfig b/drivers/leds/rgb/Kconfig
> index 222d943d826a..70a80fd46b9c 100644
> --- a/drivers/leds/rgb/Kconfig
> +++ b/drivers/leds/rgb/Kconfig
> @@ -75,4 +75,21 @@ config LEDS_MT6370_RGB
> This driver can also be built as a module. If so, the module
> will be called "leds-mt6370-rgb".
>
> +config LEDS_GROUP_VIRTUALCOLOR
> + tristate "Virtual LED Group Driver with Priority Control"
> + depends on OF || COMPILE_TEST
> + help
> + This option enables support for virtual LED groups that aggregate
> + multiple monochromatic LEDs with priority-based control. It allows
> + managing concurrent LED activation requests by ensuring only the
> + highest-priority LED state is active at any given time.
Grep for:
"This driver groups several monochromatic LED devices in a single multicolor LED device."
Does this scratch your itch? Is this something worth building on?
> +
> + Multiple LEDs can be grouped together and controlled as a single
> + virtual LED with priority levels and blinking support. This is
> + useful for systems that need to manage multiple LED indicators
> + with different priority levels.
> +
> + To compile this driver as a module, choose M here: the module
> + will be called leds-group-virtualcolor.
--
Lee Jones [李琼斯]
Powered by blists - more mailing lists