iio: accel: Add support for Bosch BMA220
authorTiberiu Breana <tiberiu.a.breana@intel.com>
Thu, 5 May 2016 15:48:55 +0000 (18:48 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 May 2016 17:43:45 +0000 (18:43 +0100)
commitbf2a5600a3ebc9dc5f085b47791009e25ade0157
treeb17a7190e1f8bf4e90969c3d5e2c7a5a425c1a50
parent2763ac94f3e4d3711863729f4c11500d245f68cc
iio: accel: Add support for Bosch BMA220

This commit adds basic support for the Bosch Sensortec BMA220
digital triaxial acceleration sensor.
The device datasheet can be found here:

http://www.mouser.com/pdfdocs/BSTBMA220DS00308.PDF

Includes:
- raw readings
- ACPI detection
- power management

Signed-off-by: Tiberiu Breana <tiberiu.a.breana@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/Kconfig
drivers/iio/accel/Makefile
drivers/iio/accel/bma220_spi.c [new file with mode: 0644]