xref: /openbmc/linux/drivers/iio/magnetometer/Kconfig (revision 0aea7ac8)
1bc1d57baSsrinivas pandruvada#
2bc1d57baSsrinivas pandruvada# Magnetometer sensors
3bc1d57baSsrinivas pandruvada#
43edc84e6SLars-Peter Clausen# When adding new entries keep the list in alphabetical order
53edc84e6SLars-Peter Clausen
6bc1d57baSsrinivas pandruvadamenu "Magnetometer sensors"
7bc1d57baSsrinivas pandruvada
82fc72cd8SJonathan Cameronconfig AK8975
957e73a42SGwendal Grignou	tristate "Asahi Kasei AK 3-Axis Magnetometer"
102fc72cd8SJonathan Cameron	depends on I2C
1184935853SGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
12bc11ca4aSGregor Boirie	select IIO_BUFFER
13bc11ca4aSGregor Boirie	select IIO_TRIGGERED_BUFFER
142fc72cd8SJonathan Cameron	help
1557e73a42SGwendal Grignou	  Say yes here to build support for Asahi Kasei AK8975, AK8963,
1657e73a42SGwendal Grignou	  AK09911 or AK09912 3-Axis Magnetometer.
172fc72cd8SJonathan Cameron
182fc72cd8SJonathan Cameron	  To compile this driver as a module, choose M here: the module
192fc72cd8SJonathan Cameron	  will be called ak8975.
202fc72cd8SJonathan Cameron
21d14c0f10SSrinivas Pandruvadaconfig AK09911
22d14c0f10SSrinivas Pandruvada	tristate "Asahi Kasei AK09911 3-axis Compass"
2336086889SArnd Bergmann	depends on I2C
2484935853SGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
2557e73a42SGwendal Grignou	select AK8975
26d14c0f10SSrinivas Pandruvada	help
2757e73a42SGwendal Grignou	  Deprecated: AK09911 is now supported by AK8975 driver.
28d14c0f10SSrinivas Pandruvada
292427d22dSHartmut Knaackconfig BMC150_MAGN
30761b7910SDaniel Baluta	tristate
312427d22dSHartmut Knaack	select IIO_BUFFER
322427d22dSHartmut Knaack	select IIO_TRIGGERED_BUFFER
332427d22dSHartmut Knaack
34761b7910SDaniel Balutaconfig BMC150_MAGN_I2C
35761b7910SDaniel Baluta	tristate "Bosch BMC150 I2C Magnetometer Driver"
36761b7910SDaniel Baluta	depends on I2C
37761b7910SDaniel Baluta	select BMC150_MAGN
38761b7910SDaniel Baluta	select REGMAP_I2C
39761b7910SDaniel Baluta	help
40761b7910SDaniel Baluta	  Say yes here to build support for the BMC150 magnetometer with
41761b7910SDaniel Baluta	  I2C interface.
422427d22dSHartmut Knaack
432427d22dSHartmut Knaack	  This is a combo module with both accelerometer and magnetometer.
442427d22dSHartmut Knaack	  This driver is only implementing magnetometer part, which has
452427d22dSHartmut Knaack	  its own address and register map.
462427d22dSHartmut Knaack
47*0aea7ac8SDaniel Baluta	  This driver also supports I2C Bosch BMC156 and BMM150 chips.
482427d22dSHartmut Knaack	  To compile this driver as a module, choose M here: the module will be
49761b7910SDaniel Baluta	  called bmc150_magn_i2c.
502427d22dSHartmut Knaack
51534536acSDaniel Balutaconfig BMC150_MAGN_SPI
52534536acSDaniel Baluta	tristate "Bosch BMC150 SPI Magnetometer Driver"
53534536acSDaniel Baluta	depends on SPI
54534536acSDaniel Baluta	select BMC150_MAGN
55534536acSDaniel Baluta	select REGMAP_SPI
56534536acSDaniel Baluta	help
57534536acSDaniel Baluta	  Say yes here to build support for the BMC150 magnetometer with
58534536acSDaniel Baluta	  SPI interface.
59534536acSDaniel Baluta
60534536acSDaniel Baluta	  This is a combo module with both accelerometer and magnetometer.
61534536acSDaniel Baluta	  This driver is only implementing magnetometer part, which has
62534536acSDaniel Baluta	  its own address and register map.
63534536acSDaniel Baluta
64*0aea7ac8SDaniel Baluta	  This driver also supports SPI Bosch BMC156 and BMM150 chips.
65534536acSDaniel Baluta	  To compile this driver as a module, choose M here: the module will be
66534536acSDaniel Baluta	  called bmc150_magn_spi.
67534536acSDaniel Baluta
6839631b5fSPeter Meerwaldconfig MAG3110
6939631b5fSPeter Meerwald	tristate "Freescale MAG3110 3-Axis Magnetometer"
7039631b5fSPeter Meerwald	depends on I2C
7150619cb1SPeter Meerwald	select IIO_BUFFER
7250619cb1SPeter Meerwald	select IIO_TRIGGERED_BUFFER
7339631b5fSPeter Meerwald	help
7439631b5fSPeter Meerwald	  Say yes here to build support for the Freescale MAG3110 3-Axis
7539631b5fSPeter Meerwald	  magnetometer.
7639631b5fSPeter Meerwald
7739631b5fSPeter Meerwald	  To compile this driver as a module, choose M here: the module
7839631b5fSPeter Meerwald	  will be called mag3110.
7939631b5fSPeter Meerwald
80bc1d57baSsrinivas pandruvadaconfig HID_SENSOR_MAGNETOMETER_3D
81bc1d57baSsrinivas pandruvada	depends on HID_SENSOR_HUB
82bc1d57baSsrinivas pandruvada	select IIO_BUFFER
83bc1d57baSsrinivas pandruvada	select IIO_TRIGGERED_BUFFER
84bc1d57baSsrinivas pandruvada	select HID_SENSOR_IIO_COMMON
859541cc39SAlexander Holler	select HID_SENSOR_IIO_TRIGGER
86bc1d57baSsrinivas pandruvada	tristate "HID Magenetometer 3D"
87bc1d57baSsrinivas pandruvada	help
88bc1d57baSsrinivas pandruvada	  Say yes here to build support for the HID SENSOR
89bc1d57baSsrinivas pandruvada	  Magnetometer 3D.
90bc1d57baSsrinivas pandruvada
91abeb6b1eSDaniel Balutaconfig MMC35240
92abeb6b1eSDaniel Baluta	tristate "MEMSIC MMC35240 3-axis magnetic sensor"
93abeb6b1eSDaniel Baluta	select REGMAP_I2C
94abeb6b1eSDaniel Baluta	depends on I2C
95abeb6b1eSDaniel Baluta	help
96abeb6b1eSDaniel Baluta	  Say yes here to build support for the MEMSIC MMC35240 3-axis
97abeb6b1eSDaniel Baluta	  magnetic sensor.
98abeb6b1eSDaniel Baluta
99abeb6b1eSDaniel Baluta	  To compile this driver as a module, choose M here: the module
100abeb6b1eSDaniel Baluta	  will be called mmc35240.
101abeb6b1eSDaniel Baluta
102872e79adSDenis Cioccaconfig IIO_ST_MAGN_3AXIS
103872e79adSDenis Ciocca	tristate "STMicroelectronics magnetometers 3-Axis Driver"
104872e79adSDenis Ciocca	depends on (I2C || SPI_MASTER) && SYSFS
105872e79adSDenis Ciocca	select IIO_ST_SENSORS_CORE
106872e79adSDenis Ciocca	select IIO_ST_MAGN_I2C_3AXIS if (I2C)
107872e79adSDenis Ciocca	select IIO_ST_MAGN_SPI_3AXIS if (SPI_MASTER)
108872e79adSDenis Ciocca	select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
109872e79adSDenis Ciocca	help
110872e79adSDenis Ciocca	  Say yes here to build support for STMicroelectronics magnetometers:
111872e79adSDenis Ciocca	  LSM303DLHC, LSM303DLM, LIS3MDL.
112872e79adSDenis Ciocca
113341673f1SPeter Meerwald	  This driver can also be built as a module. If so, these modules
114341673f1SPeter Meerwald	  will be created:
115872e79adSDenis Ciocca	  - st_magn (core functions for the driver [it is mandatory]);
116872e79adSDenis Ciocca	  - st_magn_i2c (necessary for the I2C devices [optional*]);
117872e79adSDenis Ciocca	  - st_magn_spi (necessary for the SPI devices [optional*]);
118872e79adSDenis Ciocca
119872e79adSDenis Ciocca	  (*) one of these is necessary to do something.
120872e79adSDenis Ciocca
121872e79adSDenis Cioccaconfig IIO_ST_MAGN_I2C_3AXIS
122872e79adSDenis Ciocca	tristate
123872e79adSDenis Ciocca	depends on IIO_ST_MAGN_3AXIS
124872e79adSDenis Ciocca	depends on IIO_ST_SENSORS_I2C
125872e79adSDenis Ciocca
126872e79adSDenis Cioccaconfig IIO_ST_MAGN_SPI_3AXIS
127872e79adSDenis Ciocca	tristate
128872e79adSDenis Ciocca	depends on IIO_ST_MAGN_3AXIS
129872e79adSDenis Ciocca	depends on IIO_ST_SENSORS_SPI
130872e79adSDenis Ciocca
1317247645fSCristina Moraruconfig SENSORS_HMC5843
1327247645fSCristina Moraru	tristate
1337247645fSCristina Moraru	select IIO_BUFFER
1347247645fSCristina Moraru	select IIO_TRIGGERED_BUFFER
1357247645fSCristina Moraru
1367247645fSCristina Moraruconfig SENSORS_HMC5843_I2C
1377247645fSCristina Moraru	tristate "Honeywell HMC5843/5883/5883L 3-Axis Magnetometer (I2C)"
1387247645fSCristina Moraru	depends on I2C
1397247645fSCristina Moraru	select SENSORS_HMC5843
1407247645fSCristina Moraru	select REGMAP_I2C
1417247645fSCristina Moraru	help
1427247645fSCristina Moraru	  Say Y here to add support for the Honeywell HMC5843, HMC5883 and
1437247645fSCristina Moraru	  HMC5883L 3-Axis Magnetometer (digital compass).
1447247645fSCristina Moraru
1457247645fSCristina Moraru	  This driver can also be compiled as a set of modules.
1467247645fSCristina Moraru	  If so, these modules will be created:
1477247645fSCristina Moraru	  - hmc5843_core (core functions)
1487247645fSCristina Moraru	  - hmc5843_i2c (support for HMC5843, HMC5883, HMC5883L and HMC5983)
1497247645fSCristina Moraru
1507247645fSCristina Moraruconfig SENSORS_HMC5843_SPI
1517247645fSCristina Moraru	tristate "Honeywell HMC5983 3-Axis Magnetometer (SPI)"
1527247645fSCristina Moraru	depends on SPI_MASTER
1537247645fSCristina Moraru	select SENSORS_HMC5843
1547247645fSCristina Moraru	select REGMAP_SPI
1557247645fSCristina Moraru	help
1567247645fSCristina Moraru	  Say Y here to add support for the Honeywell HMC5983 3-Axis Magnetometer
1577247645fSCristina Moraru	  (digital compass).
1587247645fSCristina Moraru
1597247645fSCristina Moraru	  This driver can also be compiled as a set of modules.
1607247645fSCristina Moraru	  If so, these modules will be created:
1617247645fSCristina Moraru	  - hmc5843_core (core functions)
1627247645fSCristina Moraru	  - hmc5843_spi (support for HMC5983)
1637247645fSCristina Moraru
164bc1d57baSsrinivas pandruvadaendmenu
165