summaryrefslogtreecommitdiff
path: root/drivers/iio/imu/st_lsm6ds3/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/imu/st_lsm6ds3/Kconfig')
-rw-r--r--drivers/iio/imu/st_lsm6ds3/Kconfig75
1 files changed, 75 insertions, 0 deletions
diff --git a/drivers/iio/imu/st_lsm6ds3/Kconfig b/drivers/iio/imu/st_lsm6ds3/Kconfig
new file mode 100644
index 00000000000..cb350b25d12
--- /dev/null
+++ b/drivers/iio/imu/st_lsm6ds3/Kconfig
@@ -0,0 +1,75 @@
+#
+# st-lsm6ds3 drivers for STMicroelectronics combo sensor
+#
+
+config ST_LSM6DS3_IIO
+ tristate "STMicroelectronics LSM6DS3 sensor"
+ depends on (I2C || SPI) && SYSFS
+ select IIO_BUFFER
+ select IIO_TRIGGERED_BUFFER
+ help
+ This driver supports the STMicroelectronics LSM6DS3 sensor.
+ It is a gyroscope/accelerometer combo device.
+ This driver can be built as a module. The module will be called
+ st-lsm6ds3.
+
+config ST_LSM6DS3_IIO_LIMIT_FIFO
+ int "Limit fifo read lenght (#n byte)"
+ depends on ST_LSM6DS3_IIO
+ range 0 8192
+ default 0
+ help
+ Limit atomic fifo read to #n byte. In some platform i2c/spi read
+ can be limited by software or hardware.
+
+ Set 0 to disable the limit.
+
+config ST_LSM6DS3_IIO_SENSORS_WAKEUP
+ bool "All sensors can wake-up system during suspend"
+ depends on ST_LSM6DS3_IIO
+ default n
+ help
+ If disabled only tilt and significant motion can wake-up system
+ during suspend.
+
+ If enabled all sensors can wake-up system during suspend.
+
+menuconfig ST_LSM6DS3_IIO_MASTER_SUPPORT
+ bool "I2C master controller"
+ depends on I2C && ST_LSM6DS3_IIO
+ default n
+ help
+ Added support for I2C master controller. Supported sensors up
+ to 4.
+
+if ST_LSM6DS3_IIO_MASTER_SUPPORT
+
+config ST_LSM6DS3_ENABLE_INTERNAL_PULLUP
+ bool "Enabled internals pull-up resistors"
+ default y
+
+choice
+ prompt "External sensor 0"
+ default ST_LSM6DS3_IIO_EXT0_LIS3MDL
+ help
+ Choose the external sensor 0 connected to LSM6DS3.
+
+config ST_LSM6DS3_IIO_EXT0_LIS3MDL
+ bool "LIS3MDL"
+config ST_LSM6DS3_IIO_EXT0_AKM09912
+ bool "AKM09912"
+endchoice
+
+choice
+ prompt "External sensor 1"
+ default ST_LSM6DS3_IIO_EXT1_DISABLED
+ help
+ Choose the external sensor 1 connected to LSM6DS3.
+
+config ST_LSM6DS3_IIO_EXT1_DISABLED
+ bool "Disabled"
+config ST_LSM6DS3_IIO_EXT1_LPS22HB
+ bool "LPS22HB"
+endchoice
+
+endif