aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/Kconfig
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2019-04-12 17:48:57 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-04-22 11:34:09 +0100
commita0701b6263aebdcb3f0b88add547f81e74da032b (patch)
treec418288a02f5786a2850669ed28c36791b5abba7 /drivers/iio/gyro/Kconfig
parentiio: gyro: add DT bindings to fxas21002c (diff)
downloadlinux-dev-a0701b6263aebdcb3f0b88add547f81e74da032b.tar.xz
linux-dev-a0701b6263aebdcb3f0b88add547f81e74da032b.zip
iio: gyro: add core driver for fxas21002c
Add core support for the NXP fxas21002c Tri-axis gyroscope, using the iio subsystem. It supports PM operations, axis reading, temperature, scale factor of the axis, high pass and low pass filtering, and sampling frequency selection. It will have extras modules to support the communication over i2c and spi. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/gyro/Kconfig')
-rw-r--r--drivers/iio/gyro/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/iio/gyro/Kconfig b/drivers/iio/gyro/Kconfig
index 3126cf05e6b9..cfd2cf44bac8 100644
--- a/drivers/iio/gyro/Kconfig
+++ b/drivers/iio/gyro/Kconfig
@@ -73,6 +73,17 @@ config BMG160_SPI
tristate
select REGMAP_SPI
+config FXAS21002C
+ tristate "NXP FXAS21002C Gyro Sensor"
+ select IIO_BUFFER
+ select IIO_TRIGGERED_BUFFER
+ help
+ Say yes here to build support for NXP FXAS21002C Tri-axis Gyro
+ Sensor driver connected via I2C or SPI.
+
+ This driver can also be built as a module. If so, the module
+ will be called fxas21002c_i2c or fxas21002c_spi.
+
config HID_SENSOR_GYRO_3D
depends on HID_SENSOR_HUB
select IIO_BUFFER