xref: /linux/Documentation/ABI/testing/sysfs-class-led-trigger-pattern (revision c771600c6af14749609b49565ffb4cac2959710d)
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
15*aa172ba7SMartin KurbanovWhat:		/sys/class/leds/<led>/hr_pattern
16*aa172ba7SMartin KurbanovDate:		April 2024
17*aa172ba7SMartin KurbanovDescription:
18*aa172ba7SMartin Kurbanov		Specify a software pattern for the LED, that supports altering
19*aa172ba7SMartin Kurbanov		the brightness for the specified duration with one software
20*aa172ba7SMartin Kurbanov		timer. It can do gradual dimming and step change of brightness.
21*aa172ba7SMartin Kurbanov
22*aa172ba7SMartin Kurbanov		Unlike the /sys/class/leds/<led>/pattern, this attribute runs
23*aa172ba7SMartin Kurbanov		a pattern on high-resolution timer (hrtimer).
24*aa172ba7SMartin Kurbanov
255fd752b6SBaolin WangWhat:		/sys/class/leds/<led>/hw_pattern
265fd752b6SBaolin WangDate:		September 2018
275fd752b6SBaolin WangKernelVersion:	4.20
285fd752b6SBaolin WangDescription:
295fd752b6SBaolin Wang		Specify a hardware pattern for the LED, for LED hardware that
305fd752b6SBaolin Wang		supports autonomously controlling brightness over time, according
315fd752b6SBaolin Wang		to some preprogrammed hardware patterns. It deactivates any active
325fd752b6SBaolin Wang		software pattern.
335fd752b6SBaolin Wang
345fd752b6SBaolin Wang		Since different LED hardware can have different semantics of
355fd752b6SBaolin Wang		hardware patterns, each driver is expected to provide its own
3626a07553SMauro Carvalho Chehab		description for the hardware patterns in their documentation
3726a07553SMauro Carvalho Chehab		file at Documentation/leds/.
385fd752b6SBaolin Wang
395fd752b6SBaolin WangWhat:		/sys/class/leds/<led>/repeat
405fd752b6SBaolin WangDate:		September 2018
415fd752b6SBaolin WangKernelVersion:	4.20
425fd752b6SBaolin WangDescription:
435fd752b6SBaolin Wang		Specify a pattern repeat number. -1 means repeat indefinitely,
445fd752b6SBaolin Wang		other negative numbers and number 0 are invalid.
455fd752b6SBaolin Wang
465fd752b6SBaolin Wang		This file will always return the originally written repeat
475fd752b6SBaolin Wang		number.
481ca5d41cSMauro Carvalho Chehab
491ca5d41cSMauro Carvalho Chehab		It should be noticed that some leds, like EL15203000 may
501ca5d41cSMauro Carvalho Chehab		only support indefinitely patterns, so they always store -1.
51