18c2ecf20Sopenharmony_ciWhat:		/sys/class/leds/<led>/brightness
28c2ecf20Sopenharmony_ciDate:		March 2006
38c2ecf20Sopenharmony_ciKernelVersion:	2.6.17
48c2ecf20Sopenharmony_ciContact:	Richard Purdie <rpurdie@rpsys.net>
58c2ecf20Sopenharmony_ciDescription:
68c2ecf20Sopenharmony_ci		Set the brightness of the LED.
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci		Most LEDs don't have hardware brightness support, so will
98c2ecf20Sopenharmony_ci		just be turned on for non-zero brightness settings.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci		.. Note::
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci		  For multicolor LEDs, writing to this file will update all
148c2ecf20Sopenharmony_ci		  LEDs within the group to a calculated percentage of what
158c2ecf20Sopenharmony_ci		  each color LED intensity is set to.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci		  The percentage is calculated for each grouped LED via
188c2ecf20Sopenharmony_ci		  the equation below::
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci		    led_brightness = brightness * multi_intensity/max_brightness
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci		  For additional details please refer to
238c2ecf20Sopenharmony_ci		  Documentation/leds/leds-class-multicolor.rst.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci		The value is between 0 and
268c2ecf20Sopenharmony_ci		/sys/class/leds/<led>/max_brightness.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci		Writing 0 to this file clears active trigger.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci		Writing non-zero to this file while trigger is active changes the
318c2ecf20Sopenharmony_ci		top brightness trigger is going to use.
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciWhat:		/sys/class/leds/<led>/max_brightness
368c2ecf20Sopenharmony_ciDate:		March 2006
378c2ecf20Sopenharmony_ciKernelVersion:	2.6.17
388c2ecf20Sopenharmony_ciContact:	Richard Purdie <rpurdie@rpsys.net>
398c2ecf20Sopenharmony_ciDescription:
408c2ecf20Sopenharmony_ci		Maximum brightness level for this LED, default is 255 (LED_FULL).
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci		If the LED does not support different brightness levels, this
438c2ecf20Sopenharmony_ci		should be 1.
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ciWhat:		/sys/class/leds/<led>/brightness_hw_changed
468c2ecf20Sopenharmony_ciDate:		January 2017
478c2ecf20Sopenharmony_ciKernelVersion:	4.11
488c2ecf20Sopenharmony_ciDescription:
498c2ecf20Sopenharmony_ci		Last hardware set brightness level for this LED. Some LEDs
508c2ecf20Sopenharmony_ci		may be changed autonomously by hardware/firmware. Only LEDs
518c2ecf20Sopenharmony_ci		where this happens and the driver can detect this, will have
528c2ecf20Sopenharmony_ci		this file.
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci		This file supports poll() to detect when the hardware changes
558c2ecf20Sopenharmony_ci		the brightness.
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci		Reading this file will return the last brightness level set
588c2ecf20Sopenharmony_ci		by the hardware, this may be different from the current
598c2ecf20Sopenharmony_ci		brightness. Reading this file when no hw brightness change
608c2ecf20Sopenharmony_ci		event has happened will return an ENODATA error.
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ciWhat:		/sys/class/leds/<led>/trigger
638c2ecf20Sopenharmony_ciDate:		March 2006
648c2ecf20Sopenharmony_ciKernelVersion:	2.6.17
658c2ecf20Sopenharmony_ciContact:	Richard Purdie <rpurdie@rpsys.net>
668c2ecf20Sopenharmony_ciDescription:
678c2ecf20Sopenharmony_ci		Set the trigger for this LED. A trigger is a kernel based source
688c2ecf20Sopenharmony_ci		of LED events.
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci		You can change triggers in a similar manner to the way an IO
718c2ecf20Sopenharmony_ci		scheduler is chosen. Trigger specific parameters can appear in
728c2ecf20Sopenharmony_ci		/sys/class/leds/<led> once a given trigger is selected. For
738c2ecf20Sopenharmony_ci		their documentation see `sysfs-class-led-trigger-*`.
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ciWhat:		/sys/class/leds/<led>/inverted
768c2ecf20Sopenharmony_ciDate:		January 2011
778c2ecf20Sopenharmony_ciKernelVersion:	2.6.38
788c2ecf20Sopenharmony_ciContact:	Richard Purdie <rpurdie@rpsys.net>
798c2ecf20Sopenharmony_ciDescription:
808c2ecf20Sopenharmony_ci		Invert the LED on/off state. This parameter is specific to
818c2ecf20Sopenharmony_ci		gpio and backlight triggers. In case of the backlight trigger,
828c2ecf20Sopenharmony_ci		it is useful when driving a LED which is intended to indicate
838c2ecf20Sopenharmony_ci		a device in a standby like state.
84