summaryrefslogtreecommitdiffstats
path: root/Documentation/leds/leds-lp5523.txt
diff options
context:
space:
mode:
authorMilo Kim <milo.kim@ti.com>2013-08-08 14:11:29 +0900
committerBryan Wu <cooloney@gmail.com>2013-08-26 17:22:13 -0700
commit863724a696e1a96b07c1bd0eb03cf08f10a714ba (patch)
tree0a4ad79c55d9262b9937e2aaa544bd02302a3e26 /Documentation/leds/leds-lp5523.txt
parent2f733cad3699c6fd1cc3350ab43c9f684b976e73 (diff)
downloadop-kernel-dev-863724a696e1a96b07c1bd0eb03cf08f10a714ba.zip
op-kernel-dev-863724a696e1a96b07c1bd0eb03cf08f10a714ba.tar.gz
Documentation: leds-lp5521,lp5523: update device attribute information
Now, all legacy application interfaces are restored. Each driver documentation is updated. Cc: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Milo Kim <milo.kim@ti.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'Documentation/leds/leds-lp5523.txt')
-rw-r--r--Documentation/leds/leds-lp5523.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/Documentation/leds/leds-lp5523.txt b/Documentation/leds/leds-lp5523.txt
index 899fdad..5b3e91d4 100644
--- a/Documentation/leds/leds-lp5523.txt
+++ b/Documentation/leds/leds-lp5523.txt
@@ -28,7 +28,26 @@ If both fields are NULL, 'lp5523' is used by default.
/sys/class/leds/lp5523:channelN (N: 0 ~ 8)
LP5523 has the internal program memory for running various LED patterns.
-For the details, please refer to 'firmware' section in leds-lp55xx.txt
+There are two ways to run LED patterns.
+
+1) Legacy interface - enginex_mode, enginex_load and enginex_leds
+ Control interface for the engines:
+ x is 1 .. 3
+ enginex_mode : disabled, load, run
+ enginex_load : microcode load (visible only in load mode)
+ enginex_leds : led mux control (visible only in load mode)
+
+ cd /sys/class/leds/lp5523:channel2/device
+ echo "load" > engine3_mode
+ echo "9d80400004ff05ff437f0000" > engine3_load
+ echo "111111111" > engine3_leds
+ echo "run" > engine3_mode
+
+ To stop the engine:
+ echo "disabled" > engine3_mode
+
+2) Firmware interface - LP55xx common interface
+ For the details, please refer to 'firmware' section in leds-lp55xx.txt
Selftest uses always the current from the platform data.
OpenPOWER on IntegriCloud