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

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>

authored by

Toshi Kikuchi and committed by
Bryan Wu
7ff6b232 52da81ea

+30
+30
Documentation/leds/leds-lp5523.txt
··· 49 49 2) Firmware interface - LP55xx common interface 50 50 For the details, please refer to 'firmware' section in leds-lp55xx.txt 51 51 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 + 52 82 Selftest uses always the current from the platform data. 53 83 54 84 Each channel contains led current settings.