mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
16ac43a1b1
Add support to STM ASM330LHHXG1 (accelerometer and gyroscope) Mems sensor. The ASM330LHHXG1 sensor can use LSM6DSR as fallback device since LSM6DSR implements all the ASM330LHHXG1 features currently implemented in st_lsm6dsx. Link: https://www.st.com/resource/en/datasheet/asm330lhhxg1.pdf Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://lore.kernel.org/r/e3dbe4720cdf407d0152e93b1331306a8c7f5df3.1706961432.git.lorenzo@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
58 lines
1.1 KiB
Plaintext
58 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config IIO_ST_LSM6DSX
|
|
tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors"
|
|
depends on (I2C || SPI || I3C)
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
select IIO_KFIFO_BUF
|
|
select IIO_ST_LSM6DSX_I2C if (I2C)
|
|
select IIO_ST_LSM6DSX_SPI if (SPI_MASTER)
|
|
select IIO_ST_LSM6DSX_I3C if (I3C)
|
|
help
|
|
Say yes here to build support for STMicroelectronics LSM6DSx imu
|
|
sensor.
|
|
Supported devices:
|
|
- asm330lhb
|
|
- asm330lhh
|
|
- asm330lhhx
|
|
- asm330lhhxg1
|
|
- ism330dhcx
|
|
- ism330dlc
|
|
- ism330is
|
|
- lsm6ds0
|
|
- lsm6ds3
|
|
- lsm6ds3h
|
|
- lsm6ds3tr-c
|
|
- lsm6dsl
|
|
- lsm6dsm
|
|
- lsm6dso
|
|
- lsm6dso16is
|
|
- lsm6dsop
|
|
- lsm6dsox
|
|
- lsm6dsr
|
|
- lsm6dsrx
|
|
- lsm6dst
|
|
- lsm6dstx
|
|
- lsm6dsv
|
|
- lsm6dsv16x
|
|
- lsm9ds1
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called st_lsm6dsx.
|
|
|
|
config IIO_ST_LSM6DSX_I2C
|
|
tristate
|
|
depends on IIO_ST_LSM6DSX
|
|
select REGMAP_I2C
|
|
|
|
config IIO_ST_LSM6DSX_SPI
|
|
tristate
|
|
depends on IIO_ST_LSM6DSX
|
|
select REGMAP_SPI
|
|
|
|
config IIO_ST_LSM6DSX_I3C
|
|
tristate
|
|
depends on IIO_ST_LSM6DSX
|
|
select REGMAP_I3C
|