0001 # SPDX-License-Identifier: GPL-2.0-only
0002
0003 config IIO_ST_LSM6DSX
0004 tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors"
0005 depends on (I2C || SPI || I3C)
0006 select IIO_BUFFER
0007 select IIO_KFIFO_BUF
0008 select IIO_ST_LSM6DSX_I2C if (I2C)
0009 select IIO_ST_LSM6DSX_SPI if (SPI_MASTER)
0010 select IIO_ST_LSM6DSX_I3C if (I3C)
0011 help
0012 Say yes here to build support for STMicroelectronics LSM6DSx imu
0013 sensor. Supported devices: lsm6ds3, lsm6ds3h, lsm6dsl, lsm6dsm,
0014 ism330dlc, lsm6dso, lsm6dsox, asm330lhh, asm330lhhx, lsm6dsr,
0015 lsm6ds3tr-c, ism330dhcx, lsm6dsrx, lsm6ds0, lsm6dsop,
0016 the accelerometer/gyroscope of lsm9ds1 and lsm6dst.
0017
0018 To compile this driver as a module, choose M here: the module
0019 will be called st_lsm6dsx.
0020
0021 config IIO_ST_LSM6DSX_I2C
0022 tristate
0023 depends on IIO_ST_LSM6DSX
0024 select REGMAP_I2C
0025
0026 config IIO_ST_LSM6DSX_SPI
0027 tristate
0028 depends on IIO_ST_LSM6DSX
0029 select REGMAP_SPI
0030
0031 config IIO_ST_LSM6DSX_I3C
0032 tristate
0033 depends on IIO_ST_LSM6DSX
0034 select REGMAP_I3C