diff options
Diffstat (limited to 'Documentation/leds/leds-lp5523.txt')
-rw-r--r-- | Documentation/leds/leds-lp5523.txt | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/Documentation/leds/leds-lp5523.txt b/Documentation/leds/leds-lp5523.txt index c2743f59f9ac..899fdad509fe 100644 --- a/Documentation/leds/leds-lp5523.txt +++ b/Documentation/leds/leds-lp5523.txt | |||
@@ -27,25 +27,8 @@ c) Default | |||
27 | If both fields are NULL, 'lp5523' is used by default. | 27 | If both fields are NULL, 'lp5523' is used by default. |
28 | /sys/class/leds/lp5523:channelN (N: 0 ~ 8) | 28 | /sys/class/leds/lp5523:channelN (N: 0 ~ 8) |
29 | 29 | ||
30 | The chip provides 3 engines. Each engine can control channels without | 30 | LP5523 has the internal program memory for running various LED patterns. |
31 | interaction from the main CPU. Details of the micro engine code can be found | 31 | For the details, please refer to 'firmware' section in leds-lp55xx.txt |
32 | from the public data sheet. Leds can be muxed to different channels. | ||
33 | |||
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 | sysfs contains a selftest entry. It measures each channel | ||
47 | voltage level and checks if it looks reasonable. If the level is too high, | ||
48 | the led is missing; if the level is too low, there is a short circuit. | ||
49 | 32 | ||
50 | Selftest uses always the current from the platform data. | 33 | Selftest uses always the current from the platform data. |
51 | 34 | ||
@@ -58,7 +41,7 @@ Example platform data: | |||
58 | 41 | ||
59 | Note - chan_nr can have values between 0 and 8. | 42 | Note - chan_nr can have values between 0 and 8. |
60 | 43 | ||
61 | static struct lp5523_led_config lp5523_led_config[] = { | 44 | static struct lp55xx_led_config lp5523_led_config[] = { |
62 | { | 45 | { |
63 | .name = "D1", | 46 | .name = "D1", |
64 | .chan_nr = 0, | 47 | .chan_nr = 0, |
@@ -88,10 +71,10 @@ static void lp5523_enable(bool state) | |||
88 | /* Control chip enable signal */ | 71 | /* Control chip enable signal */ |
89 | } | 72 | } |
90 | 73 | ||
91 | static struct lp5523_platform_data lp5523_platform_data = { | 74 | static struct lp55xx_platform_data lp5523_platform_data = { |
92 | .led_config = lp5523_led_config, | 75 | .led_config = lp5523_led_config, |
93 | .num_channels = ARRAY_SIZE(lp5523_led_config), | 76 | .num_channels = ARRAY_SIZE(lp5523_led_config), |
94 | .clock_mode = LP5523_CLOCK_EXT, | 77 | .clock_mode = LP55XX_CLOCK_EXT, |
95 | .setup_resources = lp5523_setup, | 78 | .setup_resources = lp5523_setup, |
96 | .release_resources = lp5523_release, | 79 | .release_resources = lp5523_release, |
97 | .enable = lp5523_enable, | 80 | .enable = lp5523_enable, |