leds: tlc591xx: Driver for the TI 8/16 Channel i2c LED driver
authorAndrew Lunn <andrew@lunn.ch>
Tue, 17 Mar 2015 22:08:27 +0000 (15:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 4 May 2015 18:05:54 +0000 (11:05 -0700)
The TLC59116 is an I2C bus controlled 16-channel LED driver.  The
TLC59108 is an I2C bus controlled 8-channel LED driver, which is very
similar to the TLC59116. Each LED output has its own 8-bit
fixed-frequency PWM controller to control the brightness of the LED.
The LEDs can also be fixed off and on, making them suitable for use as
GPOs.

This is based on a driver from Belkin, but has been extensively
rewritten and extended to support both 08 and 16 versions.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Imre Kaloz <kaloz@openwrt.org>
Cc: Matthew.Fatheree@belkin.com
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/leds-tlc591xx.c [new file with mode: 0644]

index 966b960..a38b17a 100644 (file)
@@ -467,6 +467,14 @@ config LEDS_TCA6507
          LED driver chips accessed via the I2C bus.
          Driver support brightness control and hardware-assisted blinking.
 
+config LEDS_TLC591XX
+       tristate "LED driver for TLC59108 and TLC59116 controllers"
+       depends on LEDS_CLASS && I2C
+       select REGMAP_I2C
+       help
+         This option enables support for Texas Instruments TLC59108
+         and TLC59116 LED controllers.
+
 config LEDS_MAX8997
        tristate "LED support for MAX8997 PMIC"
        depends on LEDS_CLASS && MFD_MAX8997
index bf46093..749dbe3 100644 (file)
@@ -31,6 +31,7 @@ obj-$(CONFIG_LEDS_LP8501)             += leds-lp8501.o
 obj-$(CONFIG_LEDS_LP8788)              += leds-lp8788.o
 obj-$(CONFIG_LEDS_LP8860)              += leds-lp8860.o
 obj-$(CONFIG_LEDS_TCA6507)             += leds-tca6507.o
+obj-$(CONFIG_LEDS_TLC591XX)            += leds-tlc591xx.o
 obj-$(CONFIG_LEDS_CLEVO_MAIL)          += leds-clevo-mail.o
 obj-$(CONFIG_LEDS_IPAQ_MICRO)          += leds-ipaq-micro.o
 obj-$(CONFIG_LEDS_HP6XX)               += leds-hp6xx.o
Simple merge