linux/Documentation/leds
Vadim Pasternak be4fdf99fa leds: add driver for Mellanox systems LEDs
This makes it possible to create a set of LEDs for Mellanox systems:
"msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410",
"msb7800", "msn2740", "msn2100".

Driver obtains LED devices according to system configuration, provided
through system DMI data, like mlxcpld:fan1:green, mlxcpld:fan1:red and
creates devices in form: "devicename:colour:function".

LED setting is controlled through on board CPLD Lattice device.
For setting particular LED off, solid, blink:
echo 0 > /sys/class/leds/mlxcpld\:status\:green/brightness
echo 1 > /sys/class/leds/mlxcpld\:status\:green/brightness
echo timer > /sys/class/leds/mlxcpld\:status\:green/trigger

On module probing all LEDs are set green, on removing - off.

Last setting overwrites previous, f.e. sequence for
changing LED from green - red - green:
echo 1 > /sys/class/leds/mlxcpld\:psu\:green/brightness
echo 1 > /sys/class/leds/mlxcpld\:psu\:red/brightness
echo 1 > /sys/class/leds/mlxcpld\:psu\:green/brightness
Note: LEDs cannot be turned on/off simultaneously.

The Kconfig currently controlling compilation of this code is:
drivers/leds/Kconfig:config LEDS_MLXCPLD

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
2016-09-15 16:49:39 +02:00
..
00-INDEX Documentation/: update 00-INDEX files 2014-02-10 16:01:40 -08:00
leds-blinkm.txt LEDS: add BlinkM RGB LED driver, documentation and update MAINTAINERS 2012-07-24 16:00:51 +08:00
leds-class-flash.txt Documentation: leds: Add description of v4l2-flash sub-device 2015-06-10 13:46:28 -07:00
leds-class.txt leds: documentation: 'ide-disk' to 'disk-activity' 2016-06-27 08:58:35 +02:00
leds-lm3556.txt Documentation: leds: Fix a typo 2013-08-26 17:22:12 -07:00
leds-lp55xx.txt leds: lp5523: Support LED MUX configuration on running a pattern 2014-01-27 17:28:48 -08:00
leds-lp3944.txt Documentation: leds: Fix a typo 2013-08-26 17:22:12 -07:00
leds-lp5521.txt Documentation: leds-lp5521,lp5523: update device attribute information 2013-08-26 17:22:13 -07:00
leds-lp5523.txt Documentation: leds-lp5523: describe master fader attributes 2015-05-25 13:26:47 -07:00
leds-lp5562.txt leds: lp55xx: configure the clock detection 2013-04-01 11:04:53 -07:00
leds-mlxcpld.txt leds: add driver for Mellanox systems LEDs 2016-09-15 16:49:39 +02:00
ledtrig-oneshot.txt Documentation: move oneshot trigger attributes documentation to ABI 2016-08-29 15:06:32 +02:00
ledtrig-transient.txt leds: add new transient trigger for one shot timer activation 2012-05-29 16:22:32 -07:00