1 # SPDX-License-Identifier: GPL-2.0-only
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
12 Say yes here to build support for STMicroelectronics LSM9DS0 IMU
13 sensor. Supported devices: accelerometer/magnetometer of lsm9ds0
16 To compile this driver as a module, choose M here: the module
17 will be called st_lsm9ds0.
19 Also need to enable at least one of I2C and SPI interface drivers
21 config 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
29 Build support for STMicroelectronics LSM9DS0 IMU I2C interface.
31 To compile this driver as a module, choose M here. The module
32 will be called st_lsm9ds0_i2c.
34 config 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
42 Build support for STMicroelectronics LSM9DS0 IMU I2C interface.
44 To compile this driver as a module, choose M here. The module
45 will be called st_lsm9ds0_spi.