Skip to contentSkip to conversation

Add pca9532 led driver

PATCH New Riku Voipio 1 participant 1 message Apr 29, 2008

Subsystems (2)
lore
Share & tools
lore

Riku Voipio

author maintainer
#0 lore raw

PATCH 1/1 Add pca9532 led driver

NXP pca9532 is a LED dimmer/controller attached to i2c bus. It allows attaching upto 16 leds which can either be on, off or dimmed and/or blinked with the two PWM modulators available.

This driver is a "new-style" i2c driver that adheres to the driver model and implements the led framework api. Since the leds connected to driver are platform specific, it is only usefull when platform data is passed to the driver to define what leds are connected to which pins.

---
 drivers/leds/Kconfig         |    8 +
 drivers/leds/Makefile        |    1 +
 drivers/leds/leds-pca9532.c  |  327 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/leds-pca9532.h |   45 ++++++
 4 files changed, 381 insertions(+), 0 deletions(-)
 create mode 100644 drivers/leds/leds-pca9532.c
 create mode 100644 include/linux/leds-pca9532.h
drivers/leds/Kconfig +8 -0
index 86a369b..1c35dfa 100644
@@ -103,6 +103,14 @@ config LEDS_HP6XX
 	  This option enables led support for the handheld
 	  HP Jornada 620/660/680/690.
 
+config LEDS_PCA9532
+	tristate "LED driver for PCA9532 dimmer"
+	depends on LEDS_CLASS && I2C && INPUT && EXPERIMENTAL
+	help
+	  This option enables support for NXP pca9532
+	  led controller. It is generally only usefull
+	  as a platform driver
+
 config LEDS_GPIO
 	tristate "LED Support for GPIO connected LEDs"
 	depends on LEDS_CLASS && GENERIC_GPIO
drivers/leds/Makefile +1 -0
index 973d626..7156f99 100644
@@ -16,6 +16,7 @@ obj-$(CONFIG_LEDS_WRAP)			+= leds-wrap.o
 obj-$(CONFIG_LEDS_H1940)		+= leds-h1940.o
 obj-$(CONFIG_LEDS_COBALT_QUBE)		+= leds-cobalt-qube.o
 obj-$(CONFIG_LEDS_COBALT_RAQ)		+= leds-cobalt-raq.o
+obj-$(CONFIG_LEDS_PCA9532)		+= leds-pca9532.o
 obj-$(CONFIG_LEDS_GPIO)			+= leds-gpio.o
 obj-$(CONFIG_LEDS_CM_X270)              += leds-cm-x270.o
 obj-$(CONFIG_LEDS_CLEVO_MAIL)		+= leds-clevo-mail.o
drivers/leds/leds-pca9532.c new file +327 -0

327 lines not on this page · raw message

include/linux/leds-pca9532.h new file +45 -0

45 lines not on this page · raw message

Signature · 5 lines
1.5.4.5


-- 
"rm -rf" only sounds scary if you don't have backups