xref: /openbmc/linux/drivers/iio/magnetometer/Kconfig (revision d14c0f10)
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
92fc72cd8SJonathan Cameron	tristate "Asahi Kasei AK8975 3-Axis Magnetometer"
102fc72cd8SJonathan Cameron	depends on I2C
112fc72cd8SJonathan Cameron	depends on GPIOLIB
122fc72cd8SJonathan Cameron	help
132fc72cd8SJonathan Cameron	  Say yes here to build support for Asahi Kasei AK8975 3-Axis
146027c077SSrinivas Pandruvada	  Magnetometer. This driver can also support AK8963, if i2c
156027c077SSrinivas Pandruvada	  device name is identified as ak8963.
162fc72cd8SJonathan Cameron
172fc72cd8SJonathan Cameron	  To compile this driver as a module, choose M here: the module
182fc72cd8SJonathan Cameron	  will be called ak8975.
192fc72cd8SJonathan Cameron
20d14c0f10SSrinivas Pandruvadaconfig AK09911
21d14c0f10SSrinivas Pandruvada	tristate "Asahi Kasei AK09911 3-axis Compass"
22d14c0f10SSrinivas Pandruvada	depends on I2C
23d14c0f10SSrinivas Pandruvada	help
24d14c0f10SSrinivas Pandruvada	  Say yes here to build support for Asahi Kasei AK09911 3-Axis
25d14c0f10SSrinivas Pandruvada	  Magnetometer.
26d14c0f10SSrinivas Pandruvada
27d14c0f10SSrinivas Pandruvada	  To compile this driver as a module, choose M here: the module
28d14c0f10SSrinivas Pandruvada	  will be called ak09911.
29d14c0f10SSrinivas Pandruvada
3039631b5fSPeter Meerwaldconfig MAG3110
3139631b5fSPeter Meerwald	tristate "Freescale MAG3110 3-Axis Magnetometer"
3239631b5fSPeter Meerwald	depends on I2C
3350619cb1SPeter Meerwald	select IIO_BUFFER
3450619cb1SPeter Meerwald	select IIO_TRIGGERED_BUFFER
3539631b5fSPeter Meerwald	help
3639631b5fSPeter Meerwald	  Say yes here to build support for the Freescale MAG3110 3-Axis
3739631b5fSPeter Meerwald	  magnetometer.
3839631b5fSPeter Meerwald
3939631b5fSPeter Meerwald	  To compile this driver as a module, choose M here: the module
4039631b5fSPeter Meerwald	  will be called mag3110.
4139631b5fSPeter Meerwald
42bc1d57baSsrinivas pandruvadaconfig HID_SENSOR_MAGNETOMETER_3D
43bc1d57baSsrinivas pandruvada	depends on HID_SENSOR_HUB
44bc1d57baSsrinivas pandruvada	select IIO_BUFFER
45bc1d57baSsrinivas pandruvada	select IIO_TRIGGERED_BUFFER
46bc1d57baSsrinivas pandruvada	select HID_SENSOR_IIO_COMMON
479541cc39SAlexander Holler	select HID_SENSOR_IIO_TRIGGER
48bc1d57baSsrinivas pandruvada	tristate "HID Magenetometer 3D"
49bc1d57baSsrinivas pandruvada	help
50bc1d57baSsrinivas pandruvada	  Say yes here to build support for the HID SENSOR
51bc1d57baSsrinivas pandruvada	  Magnetometer 3D.
52bc1d57baSsrinivas pandruvada
53872e79adSDenis Cioccaconfig IIO_ST_MAGN_3AXIS
54872e79adSDenis Ciocca	tristate "STMicroelectronics magnetometers 3-Axis Driver"
55872e79adSDenis Ciocca	depends on (I2C || SPI_MASTER) && SYSFS
56872e79adSDenis Ciocca	select IIO_ST_SENSORS_CORE
57872e79adSDenis Ciocca	select IIO_ST_MAGN_I2C_3AXIS if (I2C)
58872e79adSDenis Ciocca	select IIO_ST_MAGN_SPI_3AXIS if (SPI_MASTER)
59872e79adSDenis Ciocca	select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
60872e79adSDenis Ciocca	help
61872e79adSDenis Ciocca	  Say yes here to build support for STMicroelectronics magnetometers:
62872e79adSDenis Ciocca	  LSM303DLHC, LSM303DLM, LIS3MDL.
63872e79adSDenis Ciocca
64341673f1SPeter Meerwald	  This driver can also be built as a module. If so, these modules
65341673f1SPeter Meerwald	  will be created:
66872e79adSDenis Ciocca	  - st_magn (core functions for the driver [it is mandatory]);
67872e79adSDenis Ciocca	  - st_magn_i2c (necessary for the I2C devices [optional*]);
68872e79adSDenis Ciocca	  - st_magn_spi (necessary for the SPI devices [optional*]);
69872e79adSDenis Ciocca
70872e79adSDenis Ciocca	  (*) one of these is necessary to do something.
71872e79adSDenis Ciocca
72872e79adSDenis Cioccaconfig IIO_ST_MAGN_I2C_3AXIS
73872e79adSDenis Ciocca	tristate
74872e79adSDenis Ciocca	depends on IIO_ST_MAGN_3AXIS
75872e79adSDenis Ciocca	depends on IIO_ST_SENSORS_I2C
76872e79adSDenis Ciocca
77872e79adSDenis Cioccaconfig IIO_ST_MAGN_SPI_3AXIS
78872e79adSDenis Ciocca	tristate
79872e79adSDenis Ciocca	depends on IIO_ST_MAGN_3AXIS
80872e79adSDenis Ciocca	depends on IIO_ST_SENSORS_SPI
81872e79adSDenis Ciocca
82bc1d57baSsrinivas pandruvadaendmenu
83