blob: bb2fec4b5880bfe792018e607c600cdc86a0a862 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001# SPDX-License-Identifier: GPL-2.0-only
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002#
3# STMicroelectonics LIS3LV02D and similar accelerometers
4#
5
6config SENSORS_LIS3_SPI
7 tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (SPI)"
8 depends on !ACPI && SPI_MASTER && INPUT
9 select SENSORS_LIS3LV02D
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000010 help
11 This driver provides support for the LIS3LV02Dx accelerometer connected
12 via SPI. The accelerometer data is readable via
13 /sys/devices/platform/lis3lv02d.
14
15 This driver also provides an absolute input class device, allowing
16 the laptop to act as a pinball machine-esque joystick.
17
18 This driver can also be built as modules. If so, the core module
19 will be called lis3lv02d and a specific module for the SPI transport
20 is called lis3lv02d_spi.
21
22config SENSORS_LIS3_I2C
23 tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (I2C)"
24 depends on I2C && INPUT
25 select SENSORS_LIS3LV02D
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000026 help
27 This driver provides support for the LIS3LV02Dx accelerometer connected
28 via I2C. The accelerometer data is readable via
29 /sys/devices/platform/lis3lv02d.
30
31 This driver also provides an absolute input class device, allowing
32 the device to act as a pinball machine-esque joystick.
33
34 This driver can also be built as modules. If so, the core module
35 will be called lis3lv02d and a specific module for the I2C transport
36 is called lis3lv02d_i2c.