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- Min pattern duration: 22 ms 20- Max pattern duration: 5660 ms 21 22The format of the hardware pattern values should be: 23"brightness duration brightness duration ..." 24 25/sys/class/leds/<led>/repeat 26---------------------------- 27 28Specify a pattern repeat number, which is common for all channels. 29Default is 1; negative numbers and 0 are invalid. 30 31This file will always return the originally written repeat number. 32 33When the 255 value is written to it, all patterns will repeat 34indefinitely. 35