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