15fd752b6SBaolin WangWhat: /sys/class/leds/<led>/pattern 25fd752b6SBaolin WangDate: September 2018 35fd752b6SBaolin WangKernelVersion: 4.20 45fd752b6SBaolin WangDescription: 55fd752b6SBaolin Wang Specify a software pattern for the LED, that supports altering 65fd752b6SBaolin Wang the brightness for the specified duration with one software 75fd752b6SBaolin Wang timer. It can do gradual dimming and step change of brightness. 85fd752b6SBaolin Wang 95fd752b6SBaolin Wang The pattern is given by a series of tuples, of brightness and 101dd70937SKrzysztof Kozlowski duration (ms). 115fd752b6SBaolin Wang 121dd70937SKrzysztof Kozlowski The exact format is described in: 131dd70937SKrzysztof Kozlowski Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt 145fd752b6SBaolin Wang 155fd752b6SBaolin WangWhat: /sys/class/leds/<led>/hw_pattern 165fd752b6SBaolin WangDate: September 2018 175fd752b6SBaolin WangKernelVersion: 4.20 185fd752b6SBaolin WangDescription: 195fd752b6SBaolin Wang Specify a hardware pattern for the LED, for LED hardware that 205fd752b6SBaolin Wang supports autonomously controlling brightness over time, according 215fd752b6SBaolin Wang to some preprogrammed hardware patterns. It deactivates any active 225fd752b6SBaolin Wang software pattern. 235fd752b6SBaolin Wang 245fd752b6SBaolin Wang Since different LED hardware can have different semantics of 255fd752b6SBaolin Wang hardware patterns, each driver is expected to provide its own 2626a07553SMauro Carvalho Chehab description for the hardware patterns in their documentation 2726a07553SMauro Carvalho Chehab file at Documentation/leds/. 285fd752b6SBaolin Wang 295fd752b6SBaolin WangWhat: /sys/class/leds/<led>/repeat 305fd752b6SBaolin WangDate: September 2018 315fd752b6SBaolin WangKernelVersion: 4.20 325fd752b6SBaolin WangDescription: 335fd752b6SBaolin Wang Specify a pattern repeat number. -1 means repeat indefinitely, 345fd752b6SBaolin Wang other negative numbers and number 0 are invalid. 355fd752b6SBaolin Wang 365fd752b6SBaolin Wang This file will always return the originally written repeat 375fd752b6SBaolin Wang number. 38*1ca5d41cSMauro Carvalho Chehab 39*1ca5d41cSMauro Carvalho Chehab It should be noticed that some leds, like EL15203000 may 40*1ca5d41cSMauro Carvalho Chehab only support indefinitely patterns, so they always store -1. 41