xref: /linux/Documentation/leds/leds-st1202.rst (revision 3a2c4d55e32ad65efebdb6de44eef3bfa08bb49d)
1.. SPDX-License-Identifier: GPL-2.0
2
3============================================
4Kernel driver for STMicroelectronics LED1202
5============================================
6
7/sys/class/leds/<led>/hw_pattern
8--------------------------------
9
10Specify a hardware pattern for the ST1202 LED. The LED controller
11implements 12 low-side current generators with independent dimming
12control. Internal volatile memory allows the user to store up to 8
13different patterns. Each pattern is a particular output configuration
14in terms of PWM duty-cycle and duration (ms).
15
16To be compatible with the hardware pattern format, maximum 8 tuples of
17brightness (PWM) and duration must be written to hw_pattern.
18
19- Brightness range: 0-255
20- Min pattern duration: 22 ms
21- Max pattern duration: 5610 ms
22
23The format of the hardware pattern values should be:
24"brightness duration brightness duration ..."
25
26/sys/class/leds/<led>/repeat
27----------------------------
28
29Specify a pattern repeat number, which is common for all channels.
30Default is 1. Writing 0 is invalid. Writing -1 or 255 repeats the
31pattern indefinitely.
32
33This file will always return the originally written repeat number.
34