Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACA8F2C0F83 for ; Tue, 16 Sep 2025 11:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758020556; cv=none; b=IYPvv2aZkL7hyeTu9YTrnoYbMaGT8S61555B7PmzYZW4AmCsCYw+2H+WHVdmsFUzORCh+LoZ1fJBPZvlNZgtfoJXBIl579zCPXM1NmTKQRb4qJlXmn4YaJ1khXEaP3jPB1hF2ShvYUo3Ie2XqTrPFpROfdFDFkRi/u8Fx/JTN0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758020556; c=relaxed/simple; bh=crRdg9H34iLCQvUWW+XJwz7wfcy6ThS5tgax/Lof2e8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JggaDHcFT+gwnuQm54j/CvLiFTg8y8zeiWe2/siaAaipXHoPCq4euNj82MHPhQgIK+ZRWhBin4OXynL09EPZxRSdNP+yr0bqu/A9cFQ/dV/3aBYPhH5g1s7o63eyhLP6Fcz2qE4XHhx3WtemuzxW6d2rDF/NrScwEHVQOgAjHew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GohmsA+x; arc=none smtp.client-ip=209.85.215.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GohmsA+x" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-b4d1e7d5036so3451367a12.1 for ; Tue, 16 Sep 2025 04:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758020554; x=1758625354; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zHu193NtX7+iOFOKtOAeNY22s4s0XqIEn9OYXaVbsqM=; b=GohmsA+xDMjUQb1UxCPZURphZB0OQJgjulZwd8UROTWABpmBiCwKL3SQyCm/BoEPcr s7d4KMuBBne2ZZHTbos6kjVVE74ztpR/sU3P/ZqmqhJvK5pgBLaM7P1VWsBtOMTQljQg aHmULtTypDb5RpeZxY7BGgZE5L8fqFFncgKz4JVMoYehFU2yO5qzIT2TPzW8lbPebpnA leMLzHgV9Y9a4FBMaqjAEDI5puz3ujjaTgN/TdU7f9ykWfJTCoq5fPE2ETMFBEIjGtvb vXwVYfStE5uRRusOoQEyfuZYVu9iXpfS79/Tj8LBFLkdlsroyf4BdiDDEmv6W0mxmKUW 6UOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758020554; x=1758625354; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zHu193NtX7+iOFOKtOAeNY22s4s0XqIEn9OYXaVbsqM=; b=KaRV/PfCIrJ8Z04TWZ/eM/c5zWeh427UQWDcgV/oM41d70/UXoIyZbV045ACWOBJYV Jx5b6Bv0oJkQV6sOfIpD2qIuPoz0e2UuKY8/WqCtZrPTztwgiF/6CNxr4ldpyvrIOASi R05kSagwzh2IRFYanaasKgSdeoNAUhw+tdM8O7Q25FDToVqIeaPJlYhCSESvVBqNHNKM czsM+qruXJI8L4OYFZvu1H6o3afQKHeM6YMEzp1CyFzvnkLoCc6yfEI3hq3Veedh6OME zuyj9NNSsHTALPnKBljjH63N5wncnG4MllE5mIDoZ3Kbv5CyhRqk1hGsr/wHQdKOoyzz 9AvQ== X-Gm-Message-State: AOJu0Yyw890WDAUbPA+g5yszcFFWYozdAUhvYGiCOz+wY0zJbzIWbT3R At+sesYFDlvW0oQuM1Ayz8pUXsL/heGIsfbcBRVSwn8Y8YooZV6gxfaYNwXdEkBi X-Gm-Gg: ASbGncsEqWJXWTCLBFntPkuy2nm/2+hd+9tQzcK41MPurYEFRzVmtI9/W5Y0zGQm6Qx 7uTh3tmrfkNUIBSv/y8rczTrOEw0Slw/YYP0TZhSLUx5ILZ4YwTIBIl0LHqIsbnanKZvExqSKdY ZIzrauGInt6U4IB7hTYzxwVgGGPnkLgM5C4KZmJsBuTErbMT85PImM9Ugm2Y73MB38SztsvUhE7 1pY9vOECjmj904YdZWMkdfmG1JKE04q6v/lXR+dHTUdHtdI1LwFKRTpOPyMwrqslHqJ1vgl6Hcz /RTTCi0wYCVDHCkFnQdVjikN1Ao+wjvrYRQBb6ekhaFcgSZYA82oELhFK48rqoNu0BF68FqnbuI gKHy3NbG7gVfCKcEvu/0WHAvMYy/reZbX9r85GtYNE0yT X-Google-Smtp-Source: AGHT+IGFkicd/asfJggBrf0Hlx5Usz5b0JBqM111rmkFJk9Fk0wty0IDyzpW/1bu2O8iuAPOzz0Phg== X-Received: by 2002:a17:902:ccc7:b0:267:9a29:7800 with SMTP id d9443c01a7336-2679a297bfcmr68998755ad.59.1758020553931; Tue, 16 Sep 2025 04:02:33 -0700 (PDT) Received: from MRSPARKLE.localdomain ([206.83.103.177]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-25c3b304ce8sm158761725ad.128.2025.09.16.04.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Sep 2025 04:02:33 -0700 (PDT) From: Jonathan Brophy To: lee Jones , Pavel Machek , Jonathan Brophy , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Radoslav Tsvetkov Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH 2/5] leds: rgb: Add Virtual Color LED Group driver to Make Date: Tue, 16 Sep 2025 23:02:14 +1200 Message-ID: <20250916110217.45894-2-professorjonny98@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250916110217.45894-1-professorjonny98@gmail.com> References: <20250916110217.45894-1-professorjonny98@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jonathan Brophy This commit adds the Virtual Color driver to led/rgb Make and Kconfig. Co-developed-by: Radoslav Tsvetkov Signed-off-by: Jonathan Brophy --- drivers/leds/rgb/Kconfig | 17 +++++++++++++++++ drivers/leds/rgb/Makefile | 1 + 2 files changed, 18 insertions(+) diff --git a/drivers/leds/rgb/Kconfig b/drivers/leds/rgb/Kconfig index 222d943d8..70a80fd46 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. + + 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. + endif # LEDS_CLASS_MULTICOLOR diff --git a/drivers/leds/rgb/Makefile b/drivers/leds/rgb/Makefile index a501fd27f..693fd300b 100644 --- a/drivers/leds/rgb/Makefile +++ b/drivers/leds/rgb/Makefile @@ -6,3 +6,4 @@ obj-$(CONFIG_LEDS_NCP5623) += leds-ncp5623.o obj-$(CONFIG_LEDS_PWM_MULTICOLOR) += leds-pwm-multicolor.o obj-$(CONFIG_LEDS_QCOM_LPG) += leds-qcom-lpg.o obj-$(CONFIG_LEDS_MT6370_RGB) += leds-mt6370-rgb.o +obj-$(CONFIG_LEDS_GROUP_VIRTUALCOLOR) += leds-group-virtualcolor.o -- 2.43.0