mfd: dm355evm msp430 driver
authorDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 22 Dec 2008 11:05:27 +0000 (12:05 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Sun, 4 Jan 2009 11:17:43 +0000 (12:17 +0100)
commit0931a4c6dbfab03f2bfd22a9170130f7b155d53a
tree3b943723615a0212bf5e5b74b1fbc0689ee6cbae
parent4331bb32339a55fd88fbfb0581ed5132207bf9a2
mfd: dm355evm msp430 driver

Basic MFD framework for the MSP430 microcontroller firmware used
on the dm355evm board:

 - Provides an interface for other drivers: register read/write
   utilities, and register declarations.

 - Directly exports:
     * Many signals through the GPIO framework
         + LEDs
         + SW6 through gpio sysfs
 + NTSC/nPAL jumper through gpio sysfs
 + ... more could be added later, e.g. MMC signals
     * Child devices:
+ LEDs, via leds-gpio child (and default triggers)
+ RTC, via rtc-dm355evm child device
+ Buttons and IR control, via dm355evm_keys

 - Supports power-off system call.  Use the reset button to power
   the board back up; the power supply LED will be on, but the
   MSP430 waits to re-activate the regulators.

 - On probe() this:
     * Announces firmware revision
     * Turns off the banked LEDs
     * Exports the resources noted above
     * Hooks the power-off support
     * Muxes tvp5146 -or- imager for video input

Unless the new tvp514x driver (tracked for mainline) is configured,
this assumes that some custom imager driver handles video-in.

This completely ignores the registers reporting the output voltages
on the various power supplies.  Someone could add a hwmon interface
if that seems useful.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/dm355evm_msp.c [new file with mode: 0644]
include/linux/i2c/dm355evm_msp.h [new file with mode: 0644]