162306a36Sopenharmony_ciWhat:		/sys/class/leds/<led>/brightness
262306a36Sopenharmony_ciDate:		March 2006
362306a36Sopenharmony_ciKernelVersion:	2.6.17
462306a36Sopenharmony_ciContact:	Richard Purdie <rpurdie@rpsys.net>
562306a36Sopenharmony_ciDescription:
662306a36Sopenharmony_ci		Set the brightness of the LED.
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci		Most LEDs don't have hardware brightness support, so will
962306a36Sopenharmony_ci		just be turned on for non-zero brightness settings.
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci		.. Note::
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci		  For multicolor LEDs, writing to this file will update all
1462306a36Sopenharmony_ci		  LEDs within the group to a calculated percentage of what
1562306a36Sopenharmony_ci		  each color LED intensity is set to.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci		  The percentage is calculated for each grouped LED via
1862306a36Sopenharmony_ci		  the equation below::
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci		    led_brightness = brightness * multi_intensity/max_brightness
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci		  For additional details please refer to
2362306a36Sopenharmony_ci		  Documentation/leds/leds-class-multicolor.rst.
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci		The value is between 0 and
2662306a36Sopenharmony_ci		/sys/class/leds/<led>/max_brightness.
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci		Writing 0 to this file clears active trigger.
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci		Writing non-zero to this file while trigger is active changes the
3162306a36Sopenharmony_ci		top brightness trigger is going to use.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciWhat:		/sys/class/leds/<led>/max_brightness
3662306a36Sopenharmony_ciDate:		March 2006
3762306a36Sopenharmony_ciKernelVersion:	2.6.17
3862306a36Sopenharmony_ciContact:	Richard Purdie <rpurdie@rpsys.net>
3962306a36Sopenharmony_ciDescription:
4062306a36Sopenharmony_ci		Maximum brightness level for this LED, default is 255 (LED_FULL).
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci		If the LED does not support different brightness levels, this
4362306a36Sopenharmony_ci		should be 1.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciWhat:		/sys/class/leds/<led>/brightness_hw_changed
4662306a36Sopenharmony_ciDate:		January 2017
4762306a36Sopenharmony_ciKernelVersion:	4.11
4862306a36Sopenharmony_ciDescription:
4962306a36Sopenharmony_ci		Last hardware set brightness level for this LED. Some LEDs
5062306a36Sopenharmony_ci		may be changed autonomously by hardware/firmware. Only LEDs
5162306a36Sopenharmony_ci		where this happens and the driver can detect this, will have
5262306a36Sopenharmony_ci		this file.
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ci		This file supports poll() to detect when the hardware changes
5562306a36Sopenharmony_ci		the brightness.
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ci		Reading this file will return the last brightness level set
5862306a36Sopenharmony_ci		by the hardware, this may be different from the current
5962306a36Sopenharmony_ci		brightness. Reading this file when no hw brightness change
6062306a36Sopenharmony_ci		event has happened will return an ENODATA error.
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ciWhat:		/sys/class/leds/<led>/trigger
6362306a36Sopenharmony_ciDate:		March 2006
6462306a36Sopenharmony_ciKernelVersion:	2.6.17
6562306a36Sopenharmony_ciContact:	Richard Purdie <rpurdie@rpsys.net>
6662306a36Sopenharmony_ciDescription:
6762306a36Sopenharmony_ci		Set the trigger for this LED. A trigger is a kernel based source
6862306a36Sopenharmony_ci		of LED events.
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ci		You can change triggers in a similar manner to the way an IO
7162306a36Sopenharmony_ci		scheduler is chosen. Trigger specific parameters can appear in
7262306a36Sopenharmony_ci		/sys/class/leds/<led> once a given trigger is selected. For
7362306a36Sopenharmony_ci		their documentation see `sysfs-class-led-trigger-*`.
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ciWhat:		/sys/class/leds/<led>/inverted
7662306a36Sopenharmony_ciDate:		January 2011
7762306a36Sopenharmony_ciKernelVersion:	2.6.38
7862306a36Sopenharmony_ciContact:	Richard Purdie <rpurdie@rpsys.net>
7962306a36Sopenharmony_ciDescription:
8062306a36Sopenharmony_ci		Invert the LED on/off state. This parameter is specific to
8162306a36Sopenharmony_ci		gpio and backlight triggers. In case of the backlight trigger,
8262306a36Sopenharmony_ci		it is useful when driving a LED which is intended to indicate
8362306a36Sopenharmony_ci		a device in a standby like state.
84