hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/iio/accel/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # Accelerometer drivers
34 #
....@@ -6,28 +7,28 @@
67 menu "Accelerometers"
78
89 config ADIS16201
9
- tristate "Analog Devices ADIS16201 Dual-Axis Digital Inclinometer and Accelerometer"
10
- depends on SPI
11
- select IIO_ADIS_LIB
12
- select IIO_ADIS_LIB_BUFFER if IIO_BUFFER
13
- help
14
- Say Y here to build support for Analog Devices adis16201 dual-axis
15
- digital inclinometer and accelerometer.
10
+ tristate "Analog Devices ADIS16201 Dual-Axis Digital Inclinometer and Accelerometer"
11
+ depends on SPI
12
+ select IIO_ADIS_LIB
13
+ select IIO_ADIS_LIB_BUFFER if IIO_BUFFER
14
+ help
15
+ Say Y here to build support for Analog Devices adis16201 dual-axis
16
+ digital inclinometer and accelerometer.
1617
17
- To compile this driver as a module, say M here: the module will
18
- be called adis16201.
18
+ To compile this driver as a module, say M here: the module will
19
+ be called adis16201.
1920
2021 config ADIS16209
21
- tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer"
22
- depends on SPI
23
- select IIO_ADIS_LIB
24
- select IIO_ADIS_LIB_BUFFER if IIO_BUFFER
25
- help
26
- Say Y here to build support for Analog Devices adis16209 dual-axis digital inclinometer
27
- and accelerometer.
22
+ tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer"
23
+ depends on SPI
24
+ select IIO_ADIS_LIB
25
+ select IIO_ADIS_LIB_BUFFER if IIO_BUFFER
26
+ help
27
+ Say Y here to build support for Analog Devices adis16209 dual-axis digital inclinometer
28
+ and accelerometer.
2829
29
- To compile this driver as a module, say M here: the module will be
30
- called adis16209.
30
+ To compile this driver as a module, say M here: the module will be
31
+ called adis16209.
3132
3233 config ADXL345
3334 tristate
....@@ -60,29 +61,78 @@
6061 will be called adxl345_spi and you will also get adxl345_core
6162 for the core module.
6263
63
-config BMA180
64
- tristate "Bosch BMA180/BMA250 3-Axis Accelerometer Driver"
64
+config ADXL372
65
+ tristate
66
+ select IIO_BUFFER
67
+ select IIO_TRIGGERED_BUFFER
68
+
69
+config ADXL372_SPI
70
+ tristate "Analog Devices ADXL372 3-Axis Accelerometer SPI Driver"
71
+ depends on SPI
72
+ select ADXL372
73
+ select REGMAP_SPI
74
+ help
75
+ Say yes here to add support for the Analog Devices ADXL372 triaxial
76
+ acceleration sensor.
77
+ To compile this driver as a module, choose M here: the
78
+ module will be called adxl372_spi.
79
+
80
+config ADXL372_I2C
81
+ tristate "Analog Devices ADXL372 3-Axis Accelerometer I2C Driver"
6582 depends on I2C
83
+ select ADXL372
84
+ select REGMAP_I2C
85
+ help
86
+ Say yes here to add support for the Analog Devices ADXL372 triaxial
87
+ acceleration sensor.
88
+ To compile this driver as a module, choose M here: the
89
+ module will be called adxl372_i2c.
90
+
91
+config BMA180
92
+ tristate "Bosch BMA023/BMA1x0/BMA25x 3-Axis Accelerometer Driver"
93
+ depends on I2C && INPUT_BMA150=n
6694 select IIO_BUFFER
6795 select IIO_TRIGGERED_BUFFER
6896 help
69
- Say Y here if you want to build a driver for the Bosch BMA180 or
70
- BMA250 triaxial acceleration sensor.
97
+ Say Y here if you want to build a driver for the Bosch BMA023, BMA150
98
+ BMA180, SMB380, or BMA25x triaxial acceleration sensor.
7199
72100 To compile this driver as a module, choose M here: the
73101 module will be called bma180.
74102
75103 config BMA220
76
- tristate "Bosch BMA220 3-Axis Accelerometer Driver"
104
+ tristate "Bosch BMA220 3-Axis Accelerometer Driver"
77105 depends on SPI
78106 select IIO_BUFFER
79107 select IIO_TRIGGERED_BUFFER
80
- help
81
- Say yes here to add support for the Bosch BMA220 triaxial
82
- acceleration sensor.
108
+ help
109
+ Say yes here to add support for the Bosch BMA220 triaxial
110
+ acceleration sensor.
83111
84
- To compile this driver as a module, choose M here: the
85
- module will be called bma220_spi.
112
+ To compile this driver as a module, choose M here: the
113
+ module will be called bma220_spi.
114
+
115
+config BMA400
116
+ tristate "Bosch BMA400 3-Axis Accelerometer Driver"
117
+ select REGMAP
118
+ select BMA400_I2C if I2C
119
+ select BMA400_SPI if SPI
120
+ help
121
+ Say Y here if you want to build a driver for the Bosch BMA400
122
+ triaxial acceleration sensor.
123
+
124
+ To compile this driver as a module, choose M here: the
125
+ module will be called bma400_core and you will also get
126
+ bma400_i2c if I2C is enabled and bma400_spi if SPI is
127
+ enabled.
128
+
129
+config BMA400_I2C
130
+ tristate
131
+ depends on BMA400
132
+
133
+config BMA400_SPI
134
+ tristate
135
+ depends on BMA400
86136
87137 config BMC150_ACCEL
88138 tristate "Bosch BMC150 Accelerometer Driver"
....@@ -161,7 +211,6 @@
161211 config HID_SENSOR_ACCEL_3D
162212 depends on HID_SENSOR_HUB
163213 select IIO_BUFFER
164
- select IIO_TRIGGERED_BUFFER
165214 select HID_SENSOR_IIO_COMMON
166215 select HID_SENSOR_IIO_TRIGGER
167216 tristate "HID Accelerometers 3D"
....@@ -174,9 +223,7 @@
174223
175224 config IIO_CROS_EC_ACCEL_LEGACY
176225 tristate "ChromeOS EC Legacy Accelerometer Sensor"
177
- select IIO_BUFFER
178
- select IIO_TRIGGERED_BUFFER
179
- select CROS_EC_LPC_REGISTER_DEVICE
226
+ depends on IIO_CROS_EC_SENSORS_CORE
180227 help
181228 Say yes here to get support for accelerometers on Chromebook using
182229 legacy EC firmware.
....@@ -196,7 +243,7 @@
196243 Say yes here to build support for STMicroelectronics accelerometers:
197244 LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC,
198245 LIS331DLH, LSM303DL, LSM303DLM, LSM330, LIS2DH12, H3LIS331DL,
199
- LNG2DM
246
+ LNG2DM, LIS3DE, LIS2DE12, LIS2HH12
200247
201248 This driver can also be built as a module. If so, these modules
202249 will be created: