mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 18:49:41 +00:00

This patch makes I2C, I3C and SPI interface drivers for ST lsm6dsx individually selectable via Kconfig. The default is kept unchanged - I2C, I3C and SPI interface drivers are still selected by default if the corresponding bus support is available. However, the patch makes it possible to explicitly disable drivers that are not needed for a particular target. Signed-off-by: Sean Nyekjaer <sean@geanix.com> Link: https://patch.msgid.link/20241203-lsm6dsx-v1-1-6d7893443bc8@geanix.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
58 lines
1.3 KiB
Plaintext
58 lines
1.3 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
|
|
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 "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors I2C Interface"
|
|
depends on I2C && IIO_ST_LSM6DSX
|
|
default I2C && IIO_ST_LSM6DSX
|
|
select REGMAP_I2C
|
|
|
|
config IIO_ST_LSM6DSX_SPI
|
|
tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors SPI Interface"
|
|
depends on SPI_MASTER && IIO_ST_LSM6DSX
|
|
default SPI_MASTER && IIO_ST_LSM6DSX
|
|
select REGMAP_SPI
|
|
|
|
config IIO_ST_LSM6DSX_I3C
|
|
tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors I3C Interface"
|
|
depends on I3C && IIO_ST_LSM6DSX
|
|
default I3C && IIO_ST_LSM6DSX
|
|
select REGMAP_I3C
|