]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
twl4030-gpio supports LED signals
authorDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 13 Oct 2008 20:04:16 +0000 (13:04 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 16 Oct 2008 21:25:22 +0000 (14:25 -0700)
commit4ade1742fb39a43a8b29055d499591c7cace4aa4
treecf6ba06a7136d6df642af72dcf87a372beb5ac1c
parent8b8a2b4ba934390de12075afbbb3391276c22f39
twl4030-gpio supports LED signals

Expose the two TWL4030 LED signals as output-only GPIOs.  Boards
need to explicitly ask that this be done, to help avoid conflicts
on boards using these same pins to hook up to a vibrator motor.

Note that these are high drive open drain signals; LEDA is rated
for up to 160 mA (!), LEDB up to 60 mA.  Boards using one of these
signals to drive a bank of LCD backlight LEDs would probably want
to access the dedicated PWMs for brightness control, too; easy to
add such support later.

Example:  Beagle has one real LED here (PWM not necessary), and
one GPIO controlling VBUS output over EHCI (PWM not wanted).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/gpio/twl4030-gpio.c
include/linux/i2c/twl4030.h