mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:09:29 +02:00
Fix the repeat section: -1 is a valid value meaning infinite repeat,
as accepted by the ledtrig-pattern sysfs interface; only 0 and values
below -1 are rejected. The previous text incorrectly stated all negative
numbers were invalid. Also remove the redundant trailing sentence since
the behaviour is now covered inline.
Add the brightness range (0-255) to the hw_pattern section, which was
previously undocumented.
Fixes: b1816b2238 ("Documentation:leds: Add leds-st1202.rst")
Signed-off-by: Manuel Fombuena <fombuena@outlook.com>
Assisted-by: Claude:claude-sonnet-4-6
Link: https://patch.msgid.link/GV1PR08MB8497B2FB4F5AC4B142790CE5C5F52@GV1PR08MB8497.eurprd08.prod.outlook.com
Signed-off-by: Lee Jones <lee@kernel.org>
34 lines
1.1 KiB
ReStructuredText
34 lines
1.1 KiB
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
============================================
|
|
Kernel driver for STMicroelectronics LED1202
|
|
============================================
|
|
|
|
/sys/class/leds/<led>/hw_pattern
|
|
--------------------------------
|
|
|
|
Specify a hardware pattern for the ST1202 LED. The LED controller
|
|
implements 12 low-side current generators with independent dimming
|
|
control. Internal volatile memory allows the user to store up to 8
|
|
different patterns. Each pattern is a particular output configuration
|
|
in terms of PWM duty-cycle and duration (ms).
|
|
|
|
To be compatible with the hardware pattern format, maximum 8 tuples of
|
|
brightness (PWM) and duration must be written to hw_pattern.
|
|
|
|
- Brightness range: 0-255
|
|
- Min pattern duration: 22 ms
|
|
- Max pattern duration: 5610 ms
|
|
|
|
The format of the hardware pattern values should be:
|
|
"brightness duration brightness duration ..."
|
|
|
|
/sys/class/leds/<led>/repeat
|
|
----------------------------
|
|
|
|
Specify a pattern repeat number, which is common for all channels.
|
|
Default is 1. Writing 0 is invalid. Writing -1 or 255 repeats the
|
|
pattern indefinitely.
|
|
|
|
This file will always return the originally written repeat number.
|