diff options
author | Kim Kyuwon <chammoru@gmail.com> | 2009-03-04 14:59:29 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-04-06 11:06:26 -0400 |
commit | 0b56129be72c38179697b7441aacbe133d515ff9 (patch) | |
tree | 7f13b977bc999fb3d4904b8196e362236c5a5c77 /drivers/leds/Kconfig | |
parent | 95dc5768c9e9ce207319e17bcf7e28288c671d02 (diff) |
leds: add BD2802GU LED driver
ROHM BD2802GU is a RGB LED controller attached to i2c bus and specifically
engineered for decoration purposes. This RGB controller incorporates
lighting patterns and illuminates.
This driver is designed to minimize power consumption, so when there is no
emitting LED, it enters to reset state. And because the BD2802GU has lots
of features that can't be covered by the current LED framework, it
provides Advanced Configuration Function(ADF) mode, so that user
applications can set registers of BD2802GU directly.
Here are basic usage examples :
; to turn on LED (not blink)
$ echo 1 > /sys/class/leds/led1_R/brightness
; to blink LED
$ echo timer > /sys/class/leds/led1_R/trigger
$ echo 1 > /sys/class/leds/led1_R/delay_on
$ echo 1 > /sys/class/leds/led1_R/delay_off
; to turn off LED
$ echo 0 > /sys/class/leds/led1_R/brightness
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Kim Kyuwon <chammoru@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r-- | drivers/leds/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index db84d8f616dc..b77baecd50ca 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig | |||
@@ -210,6 +210,13 @@ config LEDS_PWM | |||
210 | help | 210 | help |
211 | This option enables support for pwm driven LEDs | 211 | This option enables support for pwm driven LEDs |
212 | 212 | ||
213 | config LEDS_BD2802 | ||
214 | tristate "LED driver for BD2802 RGB LED" | ||
215 | depends on LEDS_CLASS && I2C | ||
216 | help | ||
217 | This option enables support for BD2802GU RGB LED driver chips | ||
218 | accessed via the I2C bus. | ||
219 | |||
213 | comment "LED Triggers" | 220 | comment "LED Triggers" |
214 | 221 | ||
215 | config LEDS_TRIGGERS | 222 | config LEDS_TRIGGERS |