Kconfig 5.7 KB

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