xref: /openbmc/linux/drivers/misc/lis3lv02d/Kconfig (revision ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1)
1*ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2ff606677SJean Delvare#
3ff606677SJean Delvare# STMicroelectonics LIS3LV02D and similar accelerometers
4ff606677SJean Delvare#
5ff606677SJean Delvare
6ff606677SJean Delvareconfig SENSORS_LIS3_SPI
7ff606677SJean Delvare	tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (SPI)"
8ff606677SJean Delvare	depends on !ACPI && SPI_MASTER && INPUT
9ff606677SJean Delvare	select SENSORS_LIS3LV02D
10ff606677SJean Delvare	default n
11ff606677SJean Delvare	help
12ff606677SJean Delvare	  This driver provides support for the LIS3LV02Dx accelerometer connected
13ff606677SJean Delvare	  via SPI. The accelerometer data is readable via
14ff606677SJean Delvare	  /sys/devices/platform/lis3lv02d.
15ff606677SJean Delvare
16ff606677SJean Delvare	  This driver also provides an absolute input class device, allowing
17ff606677SJean Delvare	  the laptop to act as a pinball machine-esque joystick.
18ff606677SJean Delvare
19ff606677SJean Delvare	  This driver can also be built as modules.  If so, the core module
20ff606677SJean Delvare	  will be called lis3lv02d and a specific module for the SPI transport
21ff606677SJean Delvare	  is called lis3lv02d_spi.
22ff606677SJean Delvare
23ff606677SJean Delvareconfig SENSORS_LIS3_I2C
24ff606677SJean Delvare	tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (I2C)"
25ff606677SJean Delvare	depends on I2C && INPUT
26ff606677SJean Delvare	select SENSORS_LIS3LV02D
27ff606677SJean Delvare	default n
28ff606677SJean Delvare	help
29ff606677SJean Delvare	  This driver provides support for the LIS3LV02Dx accelerometer connected
30ff606677SJean Delvare	  via I2C. The accelerometer data is readable via
31ff606677SJean Delvare	  /sys/devices/platform/lis3lv02d.
32ff606677SJean Delvare
33ff606677SJean Delvare	  This driver also provides an absolute input class device, allowing
34ff606677SJean Delvare	  the device to act as a pinball machine-esque joystick.
35ff606677SJean Delvare
36ff606677SJean Delvare	  This driver can also be built as modules.  If so, the core module
37ff606677SJean Delvare	  will be called lis3lv02d and a specific module for the I2C transport
38ff606677SJean Delvare	  is called lis3lv02d_i2c.
39