xref: /linux/drivers/iio/imu/st_lsm9ds0/Kconfig (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1# SPDX-License-Identifier: GPL-2.0-only
2
3config IIO_ST_LSM9DS0
4	tristate "STMicroelectronics LSM9DS0 IMU driver"
5	depends on (I2C || SPI_MASTER) && SYSFS
6	depends on !SENSORS_LIS3_I2C
7	depends on !SENSORS_LIS3_SPI
8	select IIO_ST_ACCEL_3AXIS
9	select IIO_ST_MAGN_3AXIS
10
11	help
12	  Say yes here to build support for STMicroelectronics LSM9DS0 IMU
13	  sensor. Supported devices: accelerometer/magnetometer of lsm9ds0
14	  and lsm303d.
15
16	  To compile this driver as a module, choose M here: the module
17	  will be called st_lsm9ds0.
18
19	  Also need to enable at least one of I2C and SPI interface drivers
20
21config IIO_ST_LSM9DS0_I2C
22	tristate "STMicroelectronics LSM9DS0 IMU I2C interface"
23	depends on I2C && IIO_ST_LSM9DS0
24	default I2C && IIO_ST_LSM9DS0
25	select IIO_ST_ACCEL_I2C_3AXIS
26	select IIO_ST_MAGN_I2C_3AXIS
27	select REGMAP_I2C
28	help
29	  Build support for STMicroelectronics LSM9DS0 IMU I2C interface.
30
31	  To compile this driver as a module, choose M here. The module
32	  will be called st_lsm9ds0_i2c.
33
34config IIO_ST_LSM9DS0_SPI
35	tristate "STMicroelectronics LSM9DS0 IMU SPI interface"
36	depends on SPI_MASTER && IIO_ST_LSM9DS0
37	default SPI_MASTER && IIO_ST_LSM9DS0
38	select IIO_ST_ACCEL_SPI_3AXIS
39	select IIO_ST_MAGN_SPI_3AXIS
40	select REGMAP_SPI
41	help
42	  Build support for STMicroelectronics LSM9DS0 IMU I2C interface.
43
44	  To compile this driver as a module, choose M here. The module
45	  will be called st_lsm9ds0_spi.
46