Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 863724a6 authored by Milo Kim's avatar Milo Kim Committed by Bryan Wu
Browse files

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: default avatarMilo Kim <milo.kim@ti.com>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 2f733cad
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
@@ -18,6 +18,24 @@ All three channels can be also controlled using the engine micro programs.
More details of the instructions can be found from the public data sheet.

LP5521 has the internal program memory for running various LED patterns.
There are two ways to run LED patterns.

1) Legacy interface - enginex_mode and enginex_load
  Control interface for the engines:
  x is 1 .. 3
  enginex_mode : disabled, load, run
  enginex_load : store program (visible only in engine load mode)

  Example (start to blink the channel 2 led):
  cd   /sys/class/leds/lp5521:channel2/device
  echo "load" > engine3_mode
  echo "037f4d0003ff6000" > engine3_load
  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

sysfs contains a selftest entry.
+20 −1
Original line number Diff line number Diff line
@@ -28,6 +28,25 @@ 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.
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.