xref: /openbmc/linux/drivers/iio/imu/st_lsm6dsx/Kconfig (revision d3402925)
1# SPDX-License-Identifier: GPL-2.0-only
2
3config IIO_ST_LSM6DSX
4	tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors"
5	depends on (I2C || SPI || I3C)
6	select IIO_BUFFER
7	select IIO_TRIGGERED_BUFFER
8	select IIO_KFIFO_BUF
9	select IIO_ST_LSM6DSX_I2C if (I2C)
10	select IIO_ST_LSM6DSX_SPI if (SPI_MASTER)
11	select IIO_ST_LSM6DSX_I3C if (I3C)
12	help
13	  Say yes here to build support for STMicroelectronics LSM6DSx imu
14	  sensor. Supported devices: lsm6ds3, lsm6ds3h, lsm6dsl, lsm6dsm,
15	  ism330dlc, lsm6dso, lsm6dsox, asm330lhh, asm330lhhx, lsm6dsr,
16	  lsm6ds3tr-c, ism330dhcx, lsm6dsrx, lsm6ds0, lsm6dsop, lsm6dstx,
17	  lsm6dsv, lsm6dsv16x, lsm6dso16is, ism330is, lsm6dst and the
18	  accelerometer/gyroscope of lsm9ds1.
19
20	  To compile this driver as a module, choose M here: the module
21	  will be called st_lsm6dsx.
22
23config IIO_ST_LSM6DSX_I2C
24	tristate
25	depends on IIO_ST_LSM6DSX
26	select REGMAP_I2C
27
28config IIO_ST_LSM6DSX_SPI
29	tristate
30	depends on IIO_ST_LSM6DSX
31	select REGMAP_SPI
32
33config IIO_ST_LSM6DSX_I3C
34	tristate
35	depends on IIO_ST_LSM6DSX
36	select REGMAP_I3C
37