Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1What: /sys/class/leds/<led>/hw_pattern
2Date: September 2018
3KernelVersion: 4.20
4Description:
5 Specify a hardware pattern for the SC27XX LED. For the SC27XX
6 LED controller, it only supports 4 stages to make a single
7 hardware pattern, which is used to configure the rise time,
8 high time, fall time and low time for the breathing mode.
9
10 For the breathing mode, the SC27XX LED only expects one brightness
11 for the high stage. To be compatible with the hardware pattern
12 format, we should set brightness as 0 for rise stage, fall
13 stage and low stage.
14
15 Min stage duration: 125 ms
16 Max stage duration: 31875 ms
17
18 Since the stage duration step is 125 ms, the duration should be
19 a multiplier of 125, like 125ms, 250ms, 375ms, 500ms ... 31875ms.
20
21 Thus the format of the hardware pattern values should be:
22 "0 rise_duration brightness high_duration 0 fall_duration 0 low_duration".