da850-evm: add baseboard GPIO expander buttons, switches and LEDs
authorBen Gardiner <bengardiner@nanometrics.ca>
Thu, 9 Dec 2010 21:51:06 +0000 (16:51 -0500)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 22 Dec 2010 19:45:20 +0000 (11:45 -0800)
commit70b3093963feefbf122672f9fe5f916db5338ca0
treeab0a12caddfc513c7da9380af7a0cecdeb5096a9
parent53c2897d36153830d4d34324bedf23a641602cc9
da850-evm: add baseboard GPIO expander buttons, switches and LEDs

This patch adds a pca953x platform device for the tca6416 found on the evm
baseboard. The tca6416 is a GPIO expander, also found on the UI board at a
separate I2C address. The pins of the baseboard IO expander are connected to
software reset, deep sleep enable, test points, a push button, DIP switches and
LEDs.

Add support for the push button, DIP switches and LEDs and test points (as
free GPIOs). The reset and deep sleep enable connections are reserved by the
setup routine so that userspace can't toggle those lines.

The existing tca6416-keypad driver was not employed because there was no
apararent way to register the LEDs connected to gpio's on the tca6416 while
simultaneously registering the tca6416-keypad instance.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Reviewed-by: Chris Cordahi <christophercordahi@nanometrics.ca>
CC: Govindarajan, Sriramakrishnan <srk@ti.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
CC: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/board-da850-evm.c