| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | What:		/sys/class/leds/<led>/pattern | 
|  | 2 | Date:		September 2018 | 
|  | 3 | KernelVersion:	4.20 | 
|  | 4 | Description: | 
|  | 5 | Specify a software pattern for the LED, that supports altering | 
|  | 6 | the brightness for the specified duration with one software | 
|  | 7 | timer. It can do gradual dimming and step change of brightness. | 
|  | 8 |  | 
|  | 9 | The pattern is given by a series of tuples, of brightness and | 
|  | 10 | duration (ms). | 
|  | 11 |  | 
|  | 12 | The exact format is described in: | 
|  | 13 | Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt | 
|  | 14 |  | 
|  | 15 | What:		/sys/class/leds/<led>/hw_pattern | 
|  | 16 | Date:		September 2018 | 
|  | 17 | KernelVersion:	4.20 | 
|  | 18 | Description: | 
|  | 19 | Specify a hardware pattern for the LED, for LED hardware that | 
|  | 20 | supports autonomously controlling brightness over time, according | 
|  | 21 | to some preprogrammed hardware patterns. It deactivates any active | 
|  | 22 | software pattern. | 
|  | 23 |  | 
|  | 24 | Since different LED hardware can have different semantics of | 
|  | 25 | hardware patterns, each driver is expected to provide its own | 
|  | 26 | description for the hardware patterns in their ABI documentation | 
|  | 27 | file. | 
|  | 28 |  | 
|  | 29 | What:		/sys/class/leds/<led>/repeat | 
|  | 30 | Date:		September 2018 | 
|  | 31 | KernelVersion:	4.20 | 
|  | 32 | Description: | 
|  | 33 | Specify a pattern repeat number. -1 means repeat indefinitely, | 
|  | 34 | other negative numbers and number 0 are invalid. | 
|  | 35 |  | 
|  | 36 | This file will always return the originally written repeat | 
|  | 37 | number. |