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