Kconfig 6.4 KB

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