Kconfig 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Accelerometer drivers
  4. #
  5. # When adding new entries keep the list in alphabetical order
  6. menu "Accelerometers"
  7. config IIO_ST_ACC33
  8. tristate "STMicroelectronics LIS3DH/LIS2DH/LIS2DH12/LSM303AGR/IIS2DH Accelerometer driver"
  9. depends on (I2C || SPI_MASTER) && SYSFS
  10. select IIO_ST_ACC33_I2C if (I2C)
  11. select IIO_ST_ACC33_SPI if (SPI_MASTER)
  12. select IIO_BUFFER
  13. select IIO_KFIFO_BUF
  14. help
  15. Say yes here to build support for STMicroelectronics accelerometers:
  16. LIS3DH, LIS2DH, LIS2DH12, LSM303AGR, IIS2DH.
  17. This driver can also be built as a module. If so, will be created
  18. these modules:
  19. - st_ac33_core (core functions for the driver [it is mandatory]);
  20. - st_ac33_i2c (necessary for the I2C devices [optional*]);
  21. - st_ac33_spi (necessary for the SPI devices [optional*]);
  22. (*) one of these is necessary to do something.
  23. config IIO_ST_ACC33_I2C
  24. tristate
  25. depends on IIO_ST_ACC33
  26. config IIO_ST_ACC33_SPI
  27. tristate
  28. depends on IIO_ST_ACC33
  29. menuconfig IIO_ST_LIS2DS12
  30. tristate "STMicroelectronics LIS2DS12/LSM303AH Accelerometer Driver"
  31. depends on (I2C || SPI_MASTER) && SYSFS
  32. select IIO_BUFFER
  33. select IIO_TRIGGERED_BUFFER
  34. select IIO_ST_LIS2DS12_I2C if (I2C)
  35. select IIO_ST_LIS2DS12_SPI if (SPI)
  36. help
  37. Say yes here to build support for the LIS2DS12 and LSM303AH
  38. accelerometers.
  39. if IIO_ST_LIS2DS12
  40. config IIO_ST_LIS2DS12_I2C
  41. tristate
  42. depends on IIO_ST_LIS2DS12
  43. depends on I2C
  44. config IIO_ST_LIS2DS12_SPI
  45. tristate
  46. depends on IIO_ST_LIS2DS12
  47. depends on SPI
  48. config ST_LIS2DS12_IIO_LIMIT_FIFO
  49. int "Limit fifo read lenght (#n byte)"
  50. depends on IIO_ST_LIS2DS12
  51. range 0 1536
  52. default 0
  53. help
  54. Limit atomic fifo read to #n byte. In some platform i2c/spi read
  55. can be limited by software or hardware.
  56. Set 0 to disable the limit.
  57. endif #IIO_ST_LIS2DS12
  58. config IIO_ST_LIS2DW12
  59. tristate "STMicroelectronics LIS2DW12/IIS2DLPC/AIS2IH Accelerometer Driver"
  60. depends on (I2C || SPI)
  61. select IIO_BUFFER
  62. select IIO_KFIFO_BUF
  63. select IIO_ST_LIS2DW12_I2C if (I2C)
  64. select IIO_ST_LIS2DW12_SPI if (SPI)
  65. help
  66. Say yes here to build support for the LIS2DW12, IIS2DLPC and AIS2IH accelerometer.
  67. This driver can also be built as a module. If so, will be created
  68. these modules:
  69. - st_lis2dw12 (core functions for the driver [it is mandatory]);
  70. - st_lis2dw12_i2c (necessary for the I2C devices [optional*]);
  71. - st_lis2dw12_spi (necessary for the SPI devices [optional*]);
  72. (*) one of these is necessary to do something.
  73. config IIO_ST_LIS2DW12_I2C
  74. tristate
  75. depends on IIO_ST_LIS2DW12
  76. depends on I2C
  77. config IIO_ST_LIS2DW12_SPI
  78. tristate
  79. depends on IIO_ST_LIS2DW12
  80. depends on SPI
  81. menuconfig IIO_ST_ISM303DAC_ACCEL
  82. tristate "STMicroelectronics ISM303DAC Accelerometer Driver"
  83. depends on (I2C || SPI_MASTER) && SYSFS
  84. select IIO_BUFFER
  85. select IIO_TRIGGERED_BUFFER
  86. select IIO_ST_ISM303DAC_ACCEL_I2C if (I2C)
  87. select IIO_ST_ISM303DAC_ACCEL_SPI if (SPI)
  88. help
  89. Say yes here to build support for the ISM303DAC
  90. accelerometers.
  91. config IIO_ST_ISM303DAC_ACCEL_I2C
  92. tristate
  93. depends on IIO_ST_ISM303DAC_ACCEL
  94. depends on I2C
  95. config IIO_ST_ISM303DAC_ACCEL_SPI
  96. tristate
  97. depends on IIO_ST_ISM303DAC_ACCEL
  98. depends on SPI
  99. config ST_ISM303DAC_ACCEL_IIO_LIMIT_FIFO
  100. int "Limit fifo read lenght (#n byte)"
  101. depends on IIO_ST_ISM303DAC_ACCEL
  102. range 0 1536
  103. default 0
  104. help
  105. Limit atomic fifo read to #n byte. In some platform i2c/spi read
  106. can be limited by software or hardware.
  107. Set 0 to disable the limit.
  108. config IIO_ST_LIS3DHH
  109. tristate "STMicroelectronics LIS3DHH/IIS3DHHC Accelerometer driver"
  110. depends on SPI_MASTER && SYSFS
  111. select IIO_BUFFER
  112. select IIO_KFIFO_BUF
  113. help
  114. Say yes here to build support for STMicroelectronics LIS3DHH and
  115. IIS3DHHC accelerometers
  116. This driver can also be built as a module. If so, will be named
  117. st_lis3dhh
  118. config IIO_ST_LIS2HH12
  119. tristate "STMicroelectronics LIS2HH12 Accelerometer driver"
  120. depends on (I2C || SPI_MASTER) && SYSFS
  121. select IIO_BUFFER
  122. select IIO_TRIGGERED_BUFFER
  123. select IIO_ST_LIS2HH12_I2C if (I2C)
  124. select IIO_ST_LIS2HH12_SPI if (SPI)
  125. help
  126. Say yes here to build support for the LIS2HH12 accelerometer.
  127. config IIO_ST_LIS2HH12_I2C
  128. tristate
  129. depends on IIO_ST_LIS2HH12
  130. depends on I2C
  131. config IIO_ST_LIS2HH12_SPI
  132. tristate
  133. depends on IIO_ST_LIS2HH12
  134. config IIO_ST_LIS2DUXS12
  135. tristate "STMicroelectronics LIS2DUX12/LIS2DUXS12 sensors"
  136. depends on (I2C || SPI || I3C)
  137. select IIO_BUFFER
  138. select IIO_KFIFO_BUF
  139. select IIO_ST_LIS2DUXS12_I2C if (I2C)
  140. select IIO_ST_LIS2DUXS12_SPI if (SPI_MASTER)
  141. select IIO_ST_LIS2DUXS12_I3C if (I3C)
  142. help
  143. Say yes here to build support for STMicroelectronics LIS2DUX(S)12 accel
  144. sensors.
  145. To compile this driver as a module, choose M here: the module
  146. will be called lis2duxs12.
  147. config IIO_ST_LIS2DUXS12_I2C
  148. tristate
  149. select REGMAP_I2C
  150. depends on IIO_ST_LIS2DUXS12
  151. config IIO_ST_LIS2DUXS12_SPI
  152. tristate
  153. select REGMAP_SPI
  154. depends on IIO_ST_LIS2DUXS12
  155. config IIO_ST_LIS2DUXS12_I3C
  156. tristate
  157. select REGMAP_I3C
  158. depends on IIO_ST_LIS2DUXS12
  159. config IIO_ST_H3LIS331DL
  160. tristate "STMicroelectronics H3LIS331DL/LIS331DLH sensor"
  161. depends on (I2C || SPI)
  162. select IIO_BUFFER
  163. select IIO_KFIFO_BUF
  164. select IIO_TRIGGERED_BUFFER
  165. select IIO_ST_H3LIS331DL_I2C if (I2C)
  166. select IIO_ST_H3LIS331DL_SPI if (SPI_MASTER)
  167. help
  168. Say yes here to build support for STMicroelectronics H3LIS331DL and
  169. LIS331DLH accelerometer sensors.
  170. To compile this driver as a module, choose M here: the module
  171. will be called st_h3lis331dl.
  172. config IIO_ST_H3LIS331DL_I2C
  173. tristate
  174. select REGMAP_I2C
  175. depends on IIO_ST_H3LIS331DL
  176. config IIO_ST_H3LIS331DL_SPI
  177. tristate
  178. select REGMAP_SPI
  179. depends on IIO_ST_H3LIS331DL
  180. config IIO_ST_LIS2DU12
  181. tristate "STMicroelectronics LIS2DU12 Accelerometer Driver"
  182. depends on (I2C || SPI || I3C)
  183. select IIO_BUFFER
  184. select IIO_KFIFO_BUF
  185. select IIO_ST_LIS2DU12_I2C if (I2C)
  186. select IIO_ST_LIS2DU12_SPI if (SPI)
  187. select IIO_ST_LIS2DU12_I3C if (I3C)
  188. help
  189. Say yes here to build support for the LIS2DU12 accelerometer.
  190. This driver can also be built as a module. If so, will be created
  191. these modules:
  192. - st_lisdu12 (core functions for the driver [it is mandatory]);
  193. - st_lisdu12_i2c (necessary for the I2C devices [optional*]);
  194. - st_lisdu12_spi (necessary for the SPI devices [optional*]);
  195. - st_lisdu12_i3c (necessary for the I3C devices [optional*]);
  196. (*) one of these is necessary to do something.
  197. config IIO_ST_LIS2DU12_I2C
  198. tristate
  199. depends on IIO_ST_LIS2DU12
  200. depends on I2C
  201. config IIO_ST_LIS2DU12_SPI
  202. tristate
  203. depends on IIO_ST_LIS2DU12
  204. depends on SPI
  205. config IIO_ST_LIS2DU12_I3C
  206. tristate
  207. depends on IIO_ST_LIS2DU12
  208. depends on I3C
  209. endmenu