forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/iio/imu/st_lsm6dsx/Kconfig
....@@ -1,15 +1,19 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12
23 config IIO_ST_LSM6DSX
34 tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors"
4
- depends on (I2C || SPI)
5
+ depends on (I2C || SPI || I3C)
56 select IIO_BUFFER
67 select IIO_KFIFO_BUF
78 select IIO_ST_LSM6DSX_I2C if (I2C)
89 select IIO_ST_LSM6DSX_SPI if (SPI_MASTER)
10
+ select IIO_ST_LSM6DSX_I3C if (I3C)
911 help
1012 Say yes here to build support for STMicroelectronics LSM6DSx imu
1113 sensor. Supported devices: lsm6ds3, lsm6ds3h, lsm6dsl, lsm6dsm,
12
- ism330dlc
14
+ ism330dlc, lsm6dso, lsm6dsox, asm330lhh, lsm6dsr, lsm6ds3tr-c,
15
+ ism330dhcx, lsm6dsrx, lsm6ds0 and the accelerometer/gyroscope
16
+ of lsm9ds1.
1317
1418 To compile this driver as a module, choose M here: the module
1519 will be called st_lsm6dsx.
....@@ -23,3 +27,8 @@
2327 tristate
2428 depends on IIO_ST_LSM6DSX
2529 select REGMAP_SPI
30
+
31
+config IIO_ST_LSM6DSX_I3C
32
+ tristate
33
+ depends on IIO_ST_LSM6DSX
34
+ select REGMAP_I3C