Skip to content

Commit 4097da4

Browse files
stefpopajic23
authored andcommitted
iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer
This patch adds basic support for Analog Devices ADXL372 SPI-Bus Three-Axis Digital Accelerometer. The device is probed and configured the with some initial default values. With this basic driver, it is possible to read raw acceleration data. Datasheet: http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL372.pdf Signed-off-by: Stefan Popa <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 4d0434f commit 4097da4

File tree

4 files changed

+543
-0
lines changed

4 files changed

+543
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,12 @@ W: http://ez.analog.com/community/linux-device-drivers
543543
S: Supported
544544
F: drivers/input/misc/adxl34x.c
545545

546+
ADXL372 THREE-AXIS DIGITAL ACCELEROMETER DRIVER
547+
M: Stefan Popa <[email protected]>
548+
W: http://ez.analog.com/community/linux-device-drivers
549+
S: Supported
550+
F: drivers/iio/accel/adxl372.c
551+
546552
AF9013 MEDIA DRIVER
547553
M: Antti Palosaari <[email protected]>
548554

drivers/iio/accel/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ config ADXL345_SPI
6060
will be called adxl345_spi and you will also get adxl345_core
6161
for the core module.
6262

63+
config ADXL372
64+
tristate "Analog Devices ADXL372 3-Axis Accelerometer Driver"
65+
depends on SPI
66+
select IIO_BUFFER
67+
select IIO_TRIGGERED_BUFFER
68+
help
69+
Say yes here to add support for the Analog Devices ADXL372 triaxial
70+
acceleration sensor.
71+
To compile this driver as a module, choose M here: the
72+
module will be called adxl372.
73+
6374
config BMA180
6475
tristate "Bosch BMA180/BMA250 3-Axis Accelerometer Driver"
6576
depends on I2C

drivers/iio/accel/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ obj-$(CONFIG_ADIS16209) += adis16209.o
99
obj-$(CONFIG_ADXL345) += adxl345_core.o
1010
obj-$(CONFIG_ADXL345_I2C) += adxl345_i2c.o
1111
obj-$(CONFIG_ADXL345_SPI) += adxl345_spi.o
12+
obj-$(CONFIG_ADXL372) += adxl372.o
1213
obj-$(CONFIG_BMA180) += bma180.o
1314
obj-$(CONFIG_BMA220) += bma220_spi.o
1415
obj-$(CONFIG_BMC150_ACCEL) += bmc150-accel-core.o

0 commit comments

Comments
 (0)