Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/class/leds/<led>/pattern
0002 Date:           September 2018
0003 KernelVersion:  4.20
0004 Description:
0005                 Specify a software pattern for the LED, that supports altering
0006                 the brightness for the specified duration with one software
0007                 timer. It can do gradual dimming and step change of brightness.
0008 
0009                 The pattern is given by a series of tuples, of brightness and
0010                 duration (ms).
0011 
0012                 The exact format is described in:
0013                 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
0014 
0015 What:           /sys/class/leds/<led>/hw_pattern
0016 Date:           September 2018
0017 KernelVersion:  4.20
0018 Description:
0019                 Specify a hardware pattern for the LED, for LED hardware that
0020                 supports autonomously controlling brightness over time, according
0021                 to some preprogrammed hardware patterns. It deactivates any active
0022                 software pattern.
0023 
0024                 Since different LED hardware can have different semantics of
0025                 hardware patterns, each driver is expected to provide its own
0026                 description for the hardware patterns in their documentation
0027                 file at Documentation/leds/.
0028 
0029 What:           /sys/class/leds/<led>/repeat
0030 Date:           September 2018
0031 KernelVersion:  4.20
0032 Description:
0033                 Specify a pattern repeat number. -1 means repeat indefinitely,
0034                 other negative numbers and number 0 are invalid.
0035 
0036                 This file will always return the originally written repeat
0037                 number.
0038 
0039                 It should be noticed that some leds, like EL15203000 may
0040                 only support indefinitely patterns, so they always store -1.