Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Milo Kim and committed by
Bryan Wu
863724a6 2f733cad

+39 -2
+19 -1
Documentation/leds/leds-lp5521.txt
··· 18 18 More details of the instructions can be found from the public data sheet. 19 19 20 20 LP5521 has the internal program memory for running various LED patterns. 21 - For the details, please refer to 'firmware' section in leds-lp55xx.txt 21 + There are two ways to run LED patterns. 22 + 23 + 1) Legacy interface - enginex_mode and enginex_load 24 + Control interface for the engines: 25 + x is 1 .. 3 26 + enginex_mode : disabled, load, run 27 + enginex_load : store program (visible only in engine load mode) 28 + 29 + Example (start to blink the channel 2 led): 30 + cd /sys/class/leds/lp5521:channel2/device 31 + echo "load" > engine3_mode 32 + echo "037f4d0003ff6000" > engine3_load 33 + echo "run" > engine3_mode 34 + 35 + To stop the engine: 36 + echo "disabled" > engine3_mode 37 + 38 + 2) Firmware interface - LP55xx common interface 39 + For the details, please refer to 'firmware' section in leds-lp55xx.txt 22 40 23 41 sysfs contains a selftest entry. 24 42 The test communicates with the chip and checks that
+20 -1
Documentation/leds/leds-lp5523.txt
··· 28 28 /sys/class/leds/lp5523:channelN (N: 0 ~ 8) 29 29 30 30 LP5523 has the internal program memory for running various LED patterns. 31 - For the details, please refer to 'firmware' section in leds-lp55xx.txt 31 + There are two ways to run LED patterns. 32 + 33 + 1) Legacy interface - enginex_mode, enginex_load and enginex_leds 34 + Control interface for the engines: 35 + x is 1 .. 3 36 + enginex_mode : disabled, load, run 37 + enginex_load : microcode load (visible only in load mode) 38 + enginex_leds : led mux control (visible only in load mode) 39 + 40 + cd /sys/class/leds/lp5523:channel2/device 41 + echo "load" > engine3_mode 42 + echo "9d80400004ff05ff437f0000" > engine3_load 43 + echo "111111111" > engine3_leds 44 + echo "run" > engine3_mode 45 + 46 + To stop the engine: 47 + echo "disabled" > engine3_mode 48 + 49 + 2) Firmware interface - LP55xx common interface 50 + For the details, please refer to 'firmware' section in leds-lp55xx.txt 32 51 33 52 Selftest uses always the current from the platform data. 34 53