From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 ED8012E54D7 for ; Sun, 19 Oct 2025 09:24:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865860; cv=none; b=JUmAyIgG+rH+VHhGzepxzj9pMcAKzrNb81lLl/uX+baPvu9gkCiQNxVAeFl1UEuesEd3wUzAZ4VGWeHOGk6887BwOc56+llCJhhgUbnFWJ8RJGcyhZ6m0JYF98t7Cwl7/wLEyjp79MQi7UOe+ExKxjTGvhTl4A8rxKNeDpPM4u8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760865860; c=relaxed/simple; bh=5k6B+2Gkv6ahAvoJ2QIVhv7UjXsFYpKGLwBlGkw92u8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N0uiY2tO5jW2jfcUAyemQAT0k3pADc2NknQ1djTEyKfVUXcLBFM0U9D4wGvjA+1G0devTeOv6d6FOLq0cF0wmjgGqLgtfpMxKgeZspyEPgulYaV5tvOK+xkCkWTRMBg07VU0gDtS8c0Z4PdLCzySj8qZmmRittavNDWGmUcw+Rw= 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=Yhnf5gET; arc=none smtp.client-ip=209.85.214.172 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="Yhnf5gET" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-290ab379d48so30636675ad.2 for ; Sun, 19 Oct 2025 02:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760865858; x=1761470658; 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=1IEEUUortRsKDif5/C6NaVIjHsLkDuCc9ssKtrhB8jE=; b=Yhnf5gETs9DeuLHi2yhsC41gGNJ+BJPqH5ZpyRkgkDqzFQ30pKf5UklVGaa/jZhpkw GygOuJxCLk59JrtWsPYWhi5FtyBiGWdoVhmGq3dWIlxJRObbmYyoEv0WR175Xj6/78X8 FyNvgnVDx5BafRPr/9QVXhNy/K1QNZxvGpVlUS6JVmagSA5O1tmC6arvS6OLP3U00EtL RtpPYoozn2HG3knFDSZrE06otWqK54OHW/zHBcskBSRFTI9EZlGcjuCHHXFsaf41QCj5 P2r0KROiWp3VatAtcIfaeC2kD2MvDNEfmgiq/iAJcKBjRajx7qSBK3UxrhlSy7WT7CxR ETPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760865858; x=1761470658; 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=1IEEUUortRsKDif5/C6NaVIjHsLkDuCc9ssKtrhB8jE=; b=B+K0l20JtgaozIF9YAIwtZhwO0si37OhBKyTQYNiWUFaictpPmzI39Il+5GiaeFdFy agJTJvArTmqop/xriHlOcUi6GmDXHGoWoN2TSUilTlNgBcWi2sctGVQXv80gfIoJdYoh fPDhkKQr+loSVGVT2BgE+dcnu01BIVbjkQDtUv7vab3AzUjIx8vbgSRLbLOXdTajGomR xFKqYfv//3a83czKfvb+iXigOLH9eK7/gTghzjg0iHbKU+T2IF826h4P0PSmjigSdTkN j02bKqvbzO0mFFMR9H5DETQzCMzoui1dKPaFqNIYcDVb8CDOH/0CC3o8zy/v0nb4ijCG CPww== X-Forwarded-Encrypted: i=1; AJvYcCXI/F93ye6VxmNKCDz4I3noN2ocI68ZoQS1UmZ4Ld3+uJaz6l5HOmCrOdfUiXsE47ho+1MZlPHwGPQr@vger.kernel.org X-Gm-Message-State: AOJu0YwBmw3D9W0H9wQijpMqyio5inr6T4vZ4hOHGcQqvEcrEbBJufTj kBYPxRWJVnUy+DTJBb6wrDu6Mak/UBrjr5UKhsxOrWKln+4t+ASR3AUk+/p0Bnk6 X-Gm-Gg: ASbGncuEb4j3+H1yzs36qRYBgbCNae/umGy1hPUUon0XPxC6/3IRNnbQElz8p15gSgS tgAA5t2K76CUXWYnZKeCWqe1CyvLP98wlUe+l2it9tWbAJ+GQq1HD7TXoE/+5U/2gNTd8mlFOWI BQjZoQR7vLy5DXaFy4f5dpHGGZHh7461oR8EhXIj0+S6+spejjh6//d8+AOTMEnxUyldHIne+I4 uKWLO+8cRkYUDG+2V/xRL4mq1USAGwotkug83VqcraeDYbKf8aZ6tZHprY+5rfEX6pMrXSG2Mix KYsPuu3MUKr5bTRhmllP/a1fUJQ+nnXvQ5uX8UkASWIC+TFFnVR5jAaIsJivbxHfsGdX8APF/H5 No4XRPRRvDsjR684exPZBsXF3c/sWhDrlcu4Oue8IhwzfsJR2GMVcHIg30d2cdRTOLcdAQpVSME oQTgIIWnyZlTpLGLMr1hY= X-Google-Smtp-Source: AGHT+IF47Bmb/eccmGhShDF9o/qoPWSD6ziSHadaCR4ZNVXketjm3fHbjuIdKH6MpF4Y3hOhFbsTEg== X-Received: by 2002:a17:903:b0d:b0:269:b65a:cbb2 with SMTP id d9443c01a7336-290cb27eebcmr117044395ad.47.1760865858109; Sun, 19 Oct 2025 02:24:18 -0700 (PDT) Received: from MRSPARKLE.localdomain ([206.83.99.72]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29246ebd215sm48313115ad.14.2025.10.19.02.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Oct 2025 02:24:17 -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 v3 3/4] ABI: Add sysfs documentation for leds-group-virtualcolor Date: Sun, 19 Oct 2025 22:23:26 +1300 Message-ID: <20251019092331.49531-4-professorjonny98@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251019092331.49531-1-professorjonny98@gmail.com> References: <20251019092331.49531-1-professorjonny98@gmail.com> Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jonathan Brophy Document the sysfs ABI for the Virtual Color LED Group Driver, including brightness control, priority levels, per-color PWM control, and monochromatic LED diagnostic attributes. Co-developed-by: Radoslav Tsvetkov Signed-off-by: Radoslav Tsvetkov Signed-off-by: Jonathan Brophy --- .../ABI/testing/sysfs-class-leds-virtualcolor | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-leds-virtualcolor diff --git a/Documentation/ABI/testing/sysfs-class-leds-virtualcolor b/Documentation/ABI/testing/sysfs-class-leds-virtualcolor new file mode 100644 index 000000000000..f9b455ca34c8 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-leds-virtualcolor @@ -0,0 +1,89 @@ +What: /sys/class/leds//brightness +Date: October 2025 +KernelVersion: 6.13 +Contact: Radoslav Tsvetkov +Description: + Controls the overall brightness of the virtual LED. Setting to 0 + deactivates the virtual LED and restores the next highest-priority + active LED. Setting to 1-255 activates the virtual LED and applies + brightness to all grouped LEDs (monochromatic and RGB). + + Only the highest-priority active virtual LED is displayed at any + given time. + + Range: 0-255 (or configured max-brightness) + +What: /sys/class/leds//priority +Date: October 2025 +KernelVersion: 6.13 +Contact: Radoslav Tsvetkov +Description: + Sets the priority level for this virtual LED. Higher priority + values take precedence when multiple LEDs are active simultaneously. + + When a higher-priority LED is activated: + - The current active LED (if lower priority) is turned off + - The higher-priority LED's state is applied + - When the higher-priority LED is deactivated, the previous LED + is restored + + Default: 0 + Range: signed integer + +What: /sys/class/leds//red_brightness +Date: October 2025 +KernelVersion: 6.13 +Contact: Radoslav Tsvetkov +Description: + Sets brightness of all red PWM LEDs in the virtual group. Only + affects LEDs configured under "pwm-leds-red" in device tree. + + Range: 0-255 + +What: /sys/class/leds//green_brightness +Date: October 2025 +KernelVersion: 6.13 +Contact: Radoslav Tsvetkov +Description: + Sets brightness of all green PWM LEDs in the virtual group. Only + affects LEDs configured under "pwm-leds-green" in device tree. + + Range: 0-255 + +What: /sys/class/leds//blue_brightness +Date: October 2025 +KernelVersion: 6.13 +Contact: Radoslav Tsvetkov +Description: + Sets brightness of all blue PWM LEDs in the virtual group. Only + affects LEDs configured under "pwm-leds-blue" in device tree. + + Range: 0-255 + +What: /sys/class/leds//monochromatic_count +Date: October 2025 +KernelVersion: 6.13 +Contact: Radoslav Tsvetkov +Description: + Read-only. Shows the number of monochromatic LEDs in this virtual + LED group, as configured in device tree under the "leds" property. + +What: /sys/class/leds//monochromatic_leds +Date: October 2025 +KernelVersion: 6.13 +Contact: Radoslav Tsvetkov +Description: + Read-only. Shows a comma-separated list of monochromatic LED device + names that are part of this virtual group. Returns "none" if no + monochromatic LEDs are configured. + +What: /sys/class/leds//monochromatic_brightness +Date: October 2025 +KernelVersion: 6.13 +Contact: Radoslav Tsvetkov +Description: + Read-only. Shows the current brightness values of monochromatic LEDs + as a comma-separated list in the same order as monochromatic_leds. + Returns "none" if no monochromatic LEDs are configured. + + Example output: -- 2.43.0