Skip to content

Commit cbab791

Browse files
Demon000jic23
authored andcommitted
iio: accel: add ADXL367 driver
The ADXL367 is an ultralow power, 3-axis MEMS accelerometer. The ADXL367 does not alias input signals to achieve ultralow power consumption, it samples the full bandwidth of the sensor at all data rates. Measurement ranges of +-2g, +-4g, and +-8g are available, with a resolution of 0.25mg/LSB on the +-2 g range. In addition to its ultralow power consumption, the ADXL367 has many features to enable true system level power reduction. It includes a deep multimode output FIFO, a built-in micropower temperature sensor, and an internal ADC for synchronous conversion of an additional analog input. Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com> Link: https://lore.kernel.org/r/20220214073810.781016-6-cosmin.tanislav@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 27ae7f9 commit cbab791

File tree

7 files changed

+1903
-0
lines changed

7 files changed

+1903
-0
lines changed

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,14 @@ F: drivers/iio/accel/adxl355_core.c
606606
F: drivers/iio/accel/adxl355_i2c.c
607607
F: drivers/iio/accel/adxl355_spi.c
608608

609+
ADXL367 THREE-AXIS DIGITAL ACCELEROMETER DRIVER
610+
M: Cosmin Tanislav <cosmin.tanislav@analog.com>
611+
L: linux-iio@vger.kernel.org
612+
S: Supported
613+
W: http://ez.analog.com/community/linux-device-drivers
614+
F: Documentation/devicetree/bindings/iio/accel/adi,adxl367.yaml
615+
F: drivers/iio/accel/adxl367*
616+
609617
ADXL372 THREE-AXIS DIGITAL ACCELEROMETER DRIVER
610618
M: Michael Hennerich <michael.hennerich@analog.com>
611619
S: Supported

drivers/iio/accel/Kconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,33 @@ config ADXL355_SPI
123123
will be called adxl355_spi and you will also get adxl355_core
124124
for the core module.
125125

126+
config ADXL367
127+
tristate
128+
select IIO_BUFFER
129+
select IIO_TRIGGERED_BUFFER
130+
131+
config ADXL367_SPI
132+
tristate "Analog Devices ADXL367 3-Axis Accelerometer SPI Driver"
133+
depends on SPI
134+
select ADXL367
135+
select REGMAP_SPI
136+
help
137+
Say yes here to add support for the Analog Devices ADXL367 triaxial
138+
acceleration sensor.
139+
To compile this driver as a module, choose M here: the
140+
module will be called adxl367_spi.
141+
142+
config ADXL367_I2C
143+
tristate "Analog Devices ADXL367 3-Axis Accelerometer I2C Driver"
144+
depends on I2C
145+
select ADXL367
146+
select REGMAP_I2C
147+
help
148+
Say yes here to add support for the Analog Devices ADXL367 triaxial
149+
acceleration sensor.
150+
To compile this driver as a module, choose M here: the
151+
module will be called adxl367_i2c.
152+
126153
config ADXL372
127154
tristate
128155
select IIO_BUFFER

drivers/iio/accel/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ obj-$(CONFIG_ADXL345_SPI) += adxl345_spi.o
1515
obj-$(CONFIG_ADXL355) += adxl355_core.o
1616
obj-$(CONFIG_ADXL355_I2C) += adxl355_i2c.o
1717
obj-$(CONFIG_ADXL355_SPI) += adxl355_spi.o
18+
obj-$(CONFIG_ADXL367) += adxl367.o
19+
obj-$(CONFIG_ADXL367_I2C) += adxl367_i2c.o
20+
obj-$(CONFIG_ADXL367_SPI) += adxl367_spi.o
1821
obj-$(CONFIG_ADXL372) += adxl372.o
1922
obj-$(CONFIG_ADXL372_I2C) += adxl372_i2c.o
2023
obj-$(CONFIG_ADXL372_SPI) += adxl372_spi.o

0 commit comments

Comments
 (0)