162306a36Sopenharmony_ciWhat: /sys/class/leds/<led>/pattern 262306a36Sopenharmony_ciDate: September 2018 362306a36Sopenharmony_ciKernelVersion: 4.20 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci Specify a software pattern for the LED, that supports altering 662306a36Sopenharmony_ci the brightness for the specified duration with one software 762306a36Sopenharmony_ci timer. It can do gradual dimming and step change of brightness. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci The pattern is given by a series of tuples, of brightness and 1062306a36Sopenharmony_ci duration (ms). 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci The exact format is described in: 1362306a36Sopenharmony_ci Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciWhat: /sys/class/leds/<led>/hw_pattern 1662306a36Sopenharmony_ciDate: September 2018 1762306a36Sopenharmony_ciKernelVersion: 4.20 1862306a36Sopenharmony_ciDescription: 1962306a36Sopenharmony_ci Specify a hardware pattern for the LED, for LED hardware that 2062306a36Sopenharmony_ci supports autonomously controlling brightness over time, according 2162306a36Sopenharmony_ci to some preprogrammed hardware patterns. It deactivates any active 2262306a36Sopenharmony_ci software pattern. 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci Since different LED hardware can have different semantics of 2562306a36Sopenharmony_ci hardware patterns, each driver is expected to provide its own 2662306a36Sopenharmony_ci description for the hardware patterns in their documentation 2762306a36Sopenharmony_ci file at Documentation/leds/. 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ciWhat: /sys/class/leds/<led>/repeat 3062306a36Sopenharmony_ciDate: September 2018 3162306a36Sopenharmony_ciKernelVersion: 4.20 3262306a36Sopenharmony_ciDescription: 3362306a36Sopenharmony_ci Specify a pattern repeat number. -1 means repeat indefinitely, 3462306a36Sopenharmony_ci other negative numbers and number 0 are invalid. 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci This file will always return the originally written repeat 3762306a36Sopenharmony_ci number. 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci It should be noticed that some leds, like EL15203000 may 4062306a36Sopenharmony_ci only support indefinitely patterns, so they always store -1. 41