Skip to content

Commit 7ff6b23

Browse files
toshikikcooloney
authored andcommitted
Documentation: leds-lp5523: describe master fader attributes
Add the usage of the new attributes for master faders. Signed-off-by: Toshi Kikuchi <toshik@chromium.org> Acked-by: Milo Kim <milo.kim@ti.com> Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
1 parent 52da81e commit 7ff6b23

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎Documentation/leds/leds-lp5523.txt‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,36 @@ There are two ways to run LED patterns.
4949
2) Firmware interface - LP55xx common interface
5050
For the details, please refer to 'firmware' section in leds-lp55xx.txt
5151

52+
LP5523 has three master faders. If a channel is mapped to one of
53+
the master faders, its output is dimmed based on the value of the master
54+
fader.
55+
56+
For example,
57+
58+
echo "123000123" > master_fader_leds
59+
60+
creates the following channel-fader mappings:
61+
62+
channel 0,6 to master_fader1
63+
channel 1,7 to master_fader2
64+
channel 2,8 to master_fader3
65+
66+
Then, to have 25% of the original output on channel 0,6:
67+
68+
echo 64 > master_fader1
69+
70+
To have 0% of the original output (i.e. no output) channel 1,7:
71+
72+
echo 0 > master_fader2
73+
74+
To have 100% of the original output (i.e. no dimming) on channel 2,8:
75+
76+
echo 255 > master_fader3
77+
78+
To clear all master fader controls:
79+
80+
echo "000000000" > master_fader_leds
81+
5282
Selftest uses always the current from the platform data.
5383

5484
Each channel contains led current settings.

0 commit comments

Comments
 (0)