[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251019092331.49531-4-professorjonny98@gmail.com>
Date: Sun, 19 Oct 2025 22:23:26 +1300
From: Jonathan Brophy <professorjonny98@...il.com>
To: lee Jones <lee@...nel.org>,
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>
Cc: devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-leds@...r.kernel.org
Subject: [PATCH v3 3/4] ABI: Add sysfs documentation for leds-group-virtualcolor
From: Jonathan Brophy <professor_jonny@...mail.com>
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 <rtsvetkov@...dotech.eu>
Signed-off-by: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
Signed-off-by: Jonathan Brophy <professor_jonny@...mail.com>
---
.../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/<led>/brightness
+Date: October 2025
+KernelVersion: 6.13
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+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/<led>/priority
+Date: October 2025
+KernelVersion: 6.13
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+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/<led>/red_brightness
+Date: October 2025
+KernelVersion: 6.13
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+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/<led>/green_brightness
+Date: October 2025
+KernelVersion: 6.13
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+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/<led>/blue_brightness
+Date: October 2025
+KernelVersion: 6.13
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+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/<led>/monochromatic_count
+Date: October 2025
+KernelVersion: 6.13
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+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/<led>/monochromatic_leds
+Date: October 2025
+KernelVersion: 6.13
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+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/<led>/monochromatic_brightness
+Date: October 2025
+KernelVersion: 6.13
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+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
Powered by blists - more mailing lists