blob: 85860217aaf3a5f0a94d08e0eb4b2e425a7e8845 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Lorenzo Bianconi290a6ce2017-01-10 22:55:18 +01002
3config IIO_ST_LSM6DSX
4 tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors"
Vitor Soares2660b002019-07-19 15:30:55 +02005 depends on (I2C || SPI || I3C)
Lorenzo Bianconi290a6ce2017-01-10 22:55:18 +01006 select IIO_BUFFER
7 select IIO_KFIFO_BUF
8 select IIO_ST_LSM6DSX_I2C if (I2C)
9 select IIO_ST_LSM6DSX_SPI if (SPI_MASTER)
Vitor Soares2660b002019-07-19 15:30:55 +020010 select IIO_ST_LSM6DSX_I3C if (I3C)
Lorenzo Bianconi290a6ce2017-01-10 22:55:18 +010011 help
12 Say yes here to build support for STMicroelectronics LSM6DSx imu
Lorenzo Bianconi179c8d62018-03-30 22:33:50 +020013 sensor. Supported devices: lsm6ds3, lsm6ds3h, lsm6dsl, lsm6dsm,
Lorenzo Bianconidb947a72019-08-05 12:18:43 +020014 ism330dlc, lsm6dso, lsm6dsox, asm330lhh, lsm6dsr, lsm6ds3tr-c,
Lorenzo Bianconi2c57d262020-11-29 10:43:06 +010015 ism330dhcx, lsm6dsrx, lsm6ds0, lsm6dsop, the accelerometer/gyroscope
Lorenzo Bianconi4393e4c2020-10-06 14:07:41 +020016 of lsm9ds1 and lsm6dst.
Lorenzo Bianconi290a6ce2017-01-10 22:55:18 +010017
18 To compile this driver as a module, choose M here: the module
19 will be called st_lsm6dsx.
20
21config IIO_ST_LSM6DSX_I2C
22 tristate
23 depends on IIO_ST_LSM6DSX
Lorenzo Bianconi51a8b702018-01-01 19:54:44 +010024 select REGMAP_I2C
Lorenzo Bianconi290a6ce2017-01-10 22:55:18 +010025
26config IIO_ST_LSM6DSX_SPI
27 tristate
28 depends on IIO_ST_LSM6DSX
Lorenzo Bianconi51a8b702018-01-01 19:54:44 +010029 select REGMAP_SPI
Vitor Soares2660b002019-07-19 15:30:55 +020030
31config IIO_ST_LSM6DSX_I3C
32 tristate
33 depends on IIO_ST_LSM6DSX
34 select REGMAP_I3C