mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![Lorenzo Bianconi](/assets/img/avatar_default.png)
Add support to STM ASM330LHB (acc + gyro) automotive Mems sensor. The ASM330LHB sensor can use ASM330LHH as fallback device since it implements all the ASM330LHB features currently implemented in st_lsm6dsx. Datasheet: https://www.st.com/resource/en/datasheet/asm330lhb.pdf Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://lore.kernel.org/r/a1d675457da7aa9e979d8cabea410e942e015e71.1678100533.git.lorenzo@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# 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: lsm6ds3, lsm6ds3h, lsm6dsl, lsm6dsm,
|
|
ism330dlc, lsm6dso, lsm6dsox, asm330lhh, asm330lhhx, lsm6dsr,
|
|
lsm6ds3tr-c, ism330dhcx, lsm6dsrx, lsm6ds0, lsm6dsop, lsm6dstx,
|
|
lsm6dsv, lsm6dsv16x, lsm6dso16is, ism330is, asm330lhb, lsm6dst
|
|
and the accelerometer/gyroscope of 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
|