[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250916110217.45894-4-professorjonny98@gmail.com>
Date: Tue, 16 Sep 2025 23:02:16 +1200
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 4/5] ABI: sysfs-class-leds-virtualcolor: Document sysfs entries for Virtual Color LEDs
From: Jonathan Brophy <professor_jonny@...mail.com>
Add sysfs-class-leds-virtualcolor to document Virtual Color drover sysfs
entries
Co-developed-by: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
Signed-off-by: Jonathan Brophy <professor_jonny@...mail.com>
---
.../ABI/sysfs-class-leds-virtualcolor | 43 +++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 Documentation/ABI/sysfs-class-leds-virtualcolor
diff --git a/Documentation/ABI/sysfs-class-leds-virtualcolor b/Documentation/ABI/sysfs-class-leds-virtualcolor
new file mode 100644
index 000000000..60b878791
--- /dev/null
+++ b/Documentation/ABI/sysfs-class-leds-virtualcolor
@@ -0,0 +1,43 @@
+What: /sys/class/leds/<led>/priority
+Date: August 2025
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+Description: (RW) Priority level of the virtual LED group. Higher numbers
+ indicate higher priority. When multiple virtual LED groups are
+ active, only the highest priority group's state will be applied
+ to the physical LEDs.
+
+ Valid values: 0 to INT_MAX
+ Default: 0
+
+What: /sys/class/leds/<led>/blink_delay_on
+Date: August 2025
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+Description: (RW) The time in milliseconds that the LED should be on while
+ blinking. Setting both blink_delay_on and blink_delay_off to
+ zero disables blinking.
+
+ Valid values: 0 to ULONG_MAX
+ Default: 0
+
+What: /sys/class/leds/<led>/blink_delay_off
+Date: August 2025
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+Description: (RW) The time in milliseconds that the LED should be off while
+ blinking. Setting both blink_delay_on and blink_delay_off to
+ zero disables blinking.
+
+ Valid values: 0 to ULONG_MAX
+ Default: 0
+
+What: /sys/class/leds/<led>/brightness
+Date: August 2025
+Contact: Radoslav Tsvetkov <rtsvetkov@...dotech.eu>
+Description: (RW) Brightness value for the virtual LED group. This value is
+ applied to all monochromatic LEDs in the group if this group
+ has the highest priority among active groups.
+
+ When read-only mode is enabled via device tree, writes to this
+ attribute will return -EPERM.
+
+ Valid values: 0 to LED_FULL (usually 255)
+ Default: LED_OFF (0)
\ No newline at end of file
--
2.43.0
Powered by blists - more mailing lists