18c2ecf20Sopenharmony_ciWhat: /sys/class/leds/<led>/pattern 28c2ecf20Sopenharmony_ciDate: September 2018 38c2ecf20Sopenharmony_ciKernelVersion: 4.20 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci Specify a software pattern for the LED, that supports altering 68c2ecf20Sopenharmony_ci the brightness for the specified duration with one software 78c2ecf20Sopenharmony_ci timer. It can do gradual dimming and step change of brightness. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci The pattern is given by a series of tuples, of brightness and 108c2ecf20Sopenharmony_ci duration (ms). 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci The exact format is described in: 138c2ecf20Sopenharmony_ci Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciWhat: /sys/class/leds/<led>/hw_pattern 168c2ecf20Sopenharmony_ciDate: September 2018 178c2ecf20Sopenharmony_ciKernelVersion: 4.20 188c2ecf20Sopenharmony_ciDescription: 198c2ecf20Sopenharmony_ci Specify a hardware pattern for the LED, for LED hardware that 208c2ecf20Sopenharmony_ci supports autonomously controlling brightness over time, according 218c2ecf20Sopenharmony_ci to some preprogrammed hardware patterns. It deactivates any active 228c2ecf20Sopenharmony_ci software pattern. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci Since different LED hardware can have different semantics of 258c2ecf20Sopenharmony_ci hardware patterns, each driver is expected to provide its own 268c2ecf20Sopenharmony_ci description for the hardware patterns in their documentation 278c2ecf20Sopenharmony_ci file at Documentation/leds/. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciWhat: /sys/class/leds/<led>/repeat 308c2ecf20Sopenharmony_ciDate: September 2018 318c2ecf20Sopenharmony_ciKernelVersion: 4.20 328c2ecf20Sopenharmony_ciDescription: 338c2ecf20Sopenharmony_ci Specify a pattern repeat number. -1 means repeat indefinitely, 348c2ecf20Sopenharmony_ci other negative numbers and number 0 are invalid. 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci This file will always return the originally written repeat 378c2ecf20Sopenharmony_ci number. 38