]> git.karo-electronics.de Git - linux-beck.git/commit
iio: accel: add Freescale MMA7455L/MMA7456L 3-axis accelerometer driver
authorJoachim Eastwood <manabian@gmail.com>
Sat, 31 Oct 2015 12:49:16 +0000 (13:49 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 1 Nov 2015 18:00:35 +0000 (18:00 +0000)
commita84ef0d181d917125f1f16cffe53f84c19968969
treed0d1d0475bdb1c9e4b399560a2b6ff102df948a2
parent18fb1ab0eb81a08ecb00065f3e6c037a37d8e917
iio: accel: add Freescale MMA7455L/MMA7456L 3-axis accelerometer driver

Add support for Freescale MMA7455L/MMA7456L 3-axis in 10-bit mode for
I2C and SPI bus. This rather simple driver that currently doesn't
support all the hardware features of MMA7455L/MMA7456L.

Tested on Embedded Artist's LPC4357 Dev Kit with MMA7455L on I2C bus.

Data sheets for the two devices can be found here:
http://cache.freescale.com/files/sensors/doc/data_sheet/MMA7455L.pdf
http://cache.freescale.com/files/sensors/doc/data_sheet/MMA7456L.pdf

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/Kconfig
drivers/iio/accel/Makefile
drivers/iio/accel/mma7455.h [new file with mode: 0644]
drivers/iio/accel/mma7455_core.c [new file with mode: 0644]
drivers/iio/accel/mma7455_i2c.c [new file with mode: 0644]
drivers/iio/accel/mma7455_spi.c [new file with mode: 0644]