diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2013-07-09 05:11:37 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-08-26 20:22:10 -0400 |
commit | 33b3a561f417ec3e1013999ce8bdb6c055abb1ce (patch) | |
tree | c2288f2c8fba1860f433c7fb05cc54e346238cfa /drivers/leds/Kconfig | |
parent | 81d22878092feab779f3efaab404036d31dc06f8 (diff) |
leds: support new LP8501 device - another LP55xx common
LP8501 can drive up to 9 channels like LP5523.
LEDs can be controlled directly via the I2C and programmable engines are
supported.
LP55xx common driver
LP8501 is one of LP55xx family device, so LP55xx common code are used.
Chip specific data is defined in the structure, 'lp55xx_device_config'.
Differences between LP8501 and LP5523
Different register layout for LED output control and others.
LP8501 specific feature for separate output power selection.
LP8501 doesn't support external clock detection.
Different programming engine data.
LP8501 specific feature - output power selection
Output channels are selected by power selection - Vout or Vdd.
Separate power for VDD1-6 and VDD7-9 are available.
It is configurable in the platform data.
To support this feature, LP55xx DT structure and header are changed.
Device tree binding is updated as well.
LED pattern data
Example pattern data is updated in the driver documentation.
Signed-off-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r-- | drivers/leds/Kconfig | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index e43402dd1dea..77329ce672cb 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig | |||
@@ -194,11 +194,11 @@ config LEDS_LP3944 | |||
194 | module will be called leds-lp3944. | 194 | module will be called leds-lp3944. |
195 | 195 | ||
196 | config LEDS_LP55XX_COMMON | 196 | config LEDS_LP55XX_COMMON |
197 | tristate "Common Driver for TI/National LP5521, LP5523/55231 and LP5562" | 197 | tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501" |
198 | depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 | 198 | depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 || LEDS_LP8501 |
199 | select FW_LOADER | 199 | select FW_LOADER |
200 | help | 200 | help |
201 | This option supports common operations for LP5521 and LP5523/55231 | 201 | This option supports common operations for LP5521/5523/55231/5562/8501 |
202 | devices. | 202 | devices. |
203 | 203 | ||
204 | config LEDS_LP5521 | 204 | config LEDS_LP5521 |
@@ -232,6 +232,18 @@ config LEDS_LP5562 | |||
232 | Driver provides direct control via LED class and interface for | 232 | Driver provides direct control via LED class and interface for |
233 | programming the engines. | 233 | programming the engines. |
234 | 234 | ||
235 | config LEDS_LP8501 | ||
236 | tristate "LED Support for TI LP8501 LED driver chip" | ||
237 | depends on LEDS_CLASS && I2C | ||
238 | select LEDS_LP55XX_COMMON | ||
239 | help | ||
240 | If you say yes here you get support for TI LP8501 LED driver. | ||
241 | It is 9 channel chip with programmable engines. | ||
242 | Driver provides direct control via LED class and interface for | ||
243 | programming the engines. | ||
244 | It is similar as LP5523, but output power selection is available. | ||
245 | And register layout and engine program schemes are different. | ||
246 | |||
235 | config LEDS_LP8788 | 247 | config LEDS_LP8788 |
236 | tristate "LED support for the TI LP8788 PMIC" | 248 | tristate "LED support for the TI LP8788 PMIC" |
237 | depends on LEDS_CLASS | 249 | depends on LEDS_CLASS |