Kconfig 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Magnetometer sensors
  4. #
  5. # When adding new entries keep the list in alphabetical order
  6. menu "Magnetometer sensors"
  7. config AF8133J
  8. tristate "Voltafield AF8133J 3-Axis Magnetometer"
  9. depends on I2C
  10. depends on OF
  11. select REGMAP_I2C
  12. select IIO_BUFFER
  13. select IIO_TRIGGERED_BUFFER
  14. help
  15. Say yes here to build support for Voltafield AF8133J I2C-based
  16. 3-axis magnetometer chip.
  17. To compile this driver as a module, choose M here: the module
  18. will be called af8133j.
  19. config AK8974
  20. tristate "Asahi Kasei AK8974 3-Axis Magnetometer"
  21. depends on I2C
  22. select REGMAP_I2C
  23. select IIO_BUFFER
  24. select IIO_TRIGGERED_BUFFER
  25. help
  26. Say yes here to build support for Asahi Kasei AK8974, AMI305 or
  27. AMI306 I2C-based 3-axis magnetometer chips.
  28. To compile this driver as a module, choose M here: the module
  29. will be called ak8974.
  30. config AK8975
  31. tristate "Asahi Kasei AK8975 3-Axis Magnetometer"
  32. depends on I2C
  33. depends on GPIOLIB || COMPILE_TEST
  34. select IIO_BUFFER
  35. select IIO_TRIGGERED_BUFFER
  36. help
  37. Say yes here to build support for Asahi Kasei AK8975, AK8963,
  38. AK09911, AK09912, AK09916 or AK09918 3-Axis Magnetometer.
  39. To compile this driver as a module, choose M here: the module
  40. will be called ak8975.
  41. config AK09911
  42. tristate "Asahi Kasei AK09911 3-axis Compass"
  43. depends on I2C
  44. depends on GPIOLIB || COMPILE_TEST
  45. select AK8975
  46. help
  47. Deprecated: AK09911 is now supported by AK8975 driver.
  48. config BMC150_MAGN
  49. tristate
  50. select IIO_BUFFER
  51. select IIO_TRIGGERED_BUFFER
  52. config BMC150_MAGN_I2C
  53. tristate "Bosch BMC150 I2C Magnetometer Driver"
  54. depends on I2C
  55. select BMC150_MAGN
  56. select REGMAP_I2C
  57. help
  58. Say yes here to build support for the BMC150 magnetometer with
  59. I2C interface.
  60. This is a combo module with both accelerometer and magnetometer.
  61. This driver is only implementing magnetometer part, which has
  62. its own address and register map.
  63. This driver also supports I2C Bosch BMC156 and BMM150 chips.
  64. To compile this driver as a module, choose M here: the module will be
  65. called bmc150_magn_i2c.
  66. config BMC150_MAGN_SPI
  67. tristate "Bosch BMC150 SPI Magnetometer Driver"
  68. depends on SPI
  69. select BMC150_MAGN
  70. select REGMAP_SPI
  71. help
  72. Say yes here to build support for the BMC150 magnetometer with
  73. SPI interface.
  74. This is a combo module with both accelerometer and magnetometer.
  75. This driver is only implementing magnetometer part, which has
  76. its own address and register map.
  77. This driver also supports SPI Bosch BMC156 and BMM150 chips.
  78. To compile this driver as a module, choose M here: the module will be
  79. called bmc150_magn_spi.
  80. config MAG3110
  81. tristate "Freescale MAG3110 3-Axis Magnetometer"
  82. depends on I2C
  83. select IIO_BUFFER
  84. select IIO_TRIGGERED_BUFFER
  85. help
  86. Say yes here to build support for the Freescale MAG3110 3-Axis
  87. magnetometer.
  88. To compile this driver as a module, choose M here: the module
  89. will be called mag3110.
  90. config HID_SENSOR_MAGNETOMETER_3D
  91. depends on HID_SENSOR_HUB
  92. select IIO_BUFFER
  93. select HID_SENSOR_IIO_COMMON
  94. select HID_SENSOR_IIO_TRIGGER
  95. tristate "HID Magenetometer 3D"
  96. help
  97. Say yes here to build support for the HID SENSOR
  98. Magnetometer 3D.
  99. config MMC35240
  100. tristate "MEMSIC MMC35240 3-axis magnetic sensor"
  101. select REGMAP_I2C
  102. depends on I2C
  103. help
  104. Say yes here to build support for the MEMSIC MMC35240 3-axis
  105. magnetic sensor.
  106. To compile this driver as a module, choose M here: the module
  107. will be called mmc35240.
  108. config IIO_ST_MAGN_3AXIS
  109. tristate "STMicroelectronics magnetometers 3-Axis Driver"
  110. depends on (I2C || SPI_MASTER) && SYSFS
  111. select IIO_ST_SENSORS_CORE
  112. select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
  113. help
  114. Say yes here to build support for STMicroelectronics magnetometers:
  115. LSM303C, LSM303DLHC, LSM303DLM, LIS3MDL.
  116. Also need to enable at least one of I2C and SPI interface drivers
  117. below.
  118. config IIO_ST_MAGN_I2C_3AXIS
  119. tristate "STMicroelectronics magnetometers 3-Axis I2C Interface"
  120. depends on I2C && IIO_ST_MAGN_3AXIS
  121. default I2C && IIO_ST_MAGN_3AXIS
  122. select IIO_ST_SENSORS_I2C
  123. help
  124. Build support for STMicroelectronics magnetometers I2C interface.
  125. To compile this driver as a module, choose M here. The module
  126. will be called st_magn_i2c.
  127. config IIO_ST_MAGN_SPI_3AXIS
  128. tristate "STMicroelectronics magnetometers 3-Axis SPI Interface"
  129. depends on SPI_MASTER && IIO_ST_MAGN_3AXIS
  130. default SPI_MASTER && IIO_ST_MAGN_3AXIS
  131. select IIO_ST_SENSORS_SPI
  132. help
  133. Build support for STMicroelectronics magnetometers SPI interface.
  134. To compile this driver as a module, choose M here. The module
  135. will be called st_magn_spi.
  136. config SENSORS_HMC5843
  137. tristate
  138. select IIO_BUFFER
  139. select IIO_TRIGGERED_BUFFER
  140. config SENSORS_HMC5843_I2C
  141. tristate "Honeywell HMC5843/5883/5883L 3-Axis Magnetometer (I2C)"
  142. depends on I2C
  143. select SENSORS_HMC5843
  144. select REGMAP_I2C
  145. help
  146. Say Y here to add support for the Honeywell HMC5843, HMC5883 and
  147. HMC5883L 3-Axis Magnetometer (digital compass).
  148. This driver can also be compiled as a set of modules.
  149. If so, these modules will be created:
  150. - hmc5843_core (core functions)
  151. - hmc5843_i2c (support for HMC5843, HMC5883, HMC5883L and HMC5983)
  152. config SENSORS_HMC5843_SPI
  153. tristate "Honeywell HMC5983 3-Axis Magnetometer (SPI)"
  154. depends on SPI_MASTER
  155. select SENSORS_HMC5843
  156. select REGMAP_SPI
  157. help
  158. Say Y here to add support for the Honeywell HMC5983 3-Axis Magnetometer
  159. (digital compass).
  160. This driver can also be compiled as a set of modules.
  161. If so, these modules will be created:
  162. - hmc5843_core (core functions)
  163. - hmc5843_spi (support for HMC5983)
  164. config SENSORS_RM3100
  165. tristate
  166. select IIO_BUFFER
  167. select IIO_TRIGGERED_BUFFER
  168. config SENSORS_RM3100_I2C
  169. tristate "PNI RM3100 3-Axis Magnetometer (I2C)"
  170. depends on I2C
  171. select SENSORS_RM3100
  172. select REGMAP_I2C
  173. help
  174. Say Y here to add support for the PNI RM3100 3-Axis Magnetometer.
  175. This driver can also be compiled as a module.
  176. To compile this driver as a module, choose M here: the module
  177. will be called rm3100-i2c.
  178. config SENSORS_RM3100_SPI
  179. tristate "PNI RM3100 3-Axis Magnetometer (SPI)"
  180. depends on SPI_MASTER
  181. select SENSORS_RM3100
  182. select REGMAP_SPI
  183. help
  184. Say Y here to add support for the PNI RM3100 3-Axis Magnetometer.
  185. This driver can also be compiled as a module.
  186. To compile this driver as a module, choose M here: the module
  187. will be called rm3100-spi.
  188. config TI_TMAG5273
  189. tristate "TI TMAG5273 Low-Power Linear 3D Hall-Effect Sensor"
  190. depends on I2C
  191. select REGMAP_I2C
  192. help
  193. Say Y here to add support for the TI TMAG5273 Low-Power
  194. Linear 3D Hall-Effect Sensor.
  195. This driver can also be compiled as a module.
  196. To compile this driver as a module, choose M here: the module
  197. will be called tmag5273.
  198. config YAMAHA_YAS530
  199. tristate "Yamaha YAS530 family of 3-Axis Magnetometers (I2C)"
  200. depends on I2C
  201. select REGMAP_I2C
  202. select IIO_BUFFER
  203. select IIO_TRIGGERED_BUFFER
  204. help
  205. Say Y here to add support for the Yamaha YAS530 series of
  206. 3-Axis Magnetometers. YAS530, YAS532, YAS533 and YAS537 are
  207. supported.
  208. This driver can also be compiled as a module.
  209. To compile this driver as a module, choose M here: the module
  210. will be called yamaha-yas.
  211. endmenu