xref: /linux/drivers/iio/magnetometer/Kconfig (revision 6ea24cf79e055f0a62a64baa8587e2254a493c7b)
1#
2# Magnetometer sensors
3#
4# When adding new entries keep the list in alphabetical order
5
6menu "Magnetometer sensors"
7
8config AK8975
9	tristate "Asahi Kasei AK 3-Axis Magnetometer"
10	depends on I2C
11	depends on GPIOLIB || COMPILE_TEST
12	help
13	  Say yes here to build support for Asahi Kasei AK8975, AK8963,
14	  AK09911 or AK09912 3-Axis Magnetometer.
15
16	  To compile this driver as a module, choose M here: the module
17	  will be called ak8975.
18
19config AK09911
20	tristate "Asahi Kasei AK09911 3-axis Compass"
21	depends on I2C
22	depends on GPIOLIB || COMPILE_TEST
23	select AK8975
24	help
25	  Deprecated: AK09911 is now supported by AK8975 driver.
26
27config BMC150_MAGN
28	tristate "Bosch BMC150 Magnetometer Driver"
29	depends on I2C
30	select REGMAP_I2C
31	select IIO_BUFFER
32	select IIO_TRIGGERED_BUFFER
33	help
34	  Say yes here to build support for the BMC150 magnetometer.
35
36	  Currently this only supports the device via an i2c interface.
37
38	  This is a combo module with both accelerometer and magnetometer.
39	  This driver is only implementing magnetometer part, which has
40	  its own address and register map.
41
42	  To compile this driver as a module, choose M here: the module will be
43	  called bmc150_magn.
44
45config MAG3110
46	tristate "Freescale MAG3110 3-Axis Magnetometer"
47	depends on I2C
48	select IIO_BUFFER
49	select IIO_TRIGGERED_BUFFER
50	help
51	  Say yes here to build support for the Freescale MAG3110 3-Axis
52	  magnetometer.
53
54	  To compile this driver as a module, choose M here: the module
55	  will be called mag3110.
56
57config HID_SENSOR_MAGNETOMETER_3D
58	depends on HID_SENSOR_HUB
59	select IIO_BUFFER
60	select IIO_TRIGGERED_BUFFER
61	select HID_SENSOR_IIO_COMMON
62	select HID_SENSOR_IIO_TRIGGER
63	tristate "HID Magenetometer 3D"
64	help
65	  Say yes here to build support for the HID SENSOR
66	  Magnetometer 3D.
67
68config MMC35240
69	tristate "MEMSIC MMC35240 3-axis magnetic sensor"
70	select REGMAP_I2C
71	depends on I2C
72	help
73	  Say yes here to build support for the MEMSIC MMC35240 3-axis
74	  magnetic sensor.
75
76	  To compile this driver as a module, choose M here: the module
77	  will be called mmc35240.
78
79config IIO_ST_MAGN_3AXIS
80	tristate "STMicroelectronics magnetometers 3-Axis Driver"
81	depends on (I2C || SPI_MASTER) && SYSFS
82	select IIO_ST_SENSORS_CORE
83	select IIO_ST_MAGN_I2C_3AXIS if (I2C)
84	select IIO_ST_MAGN_SPI_3AXIS if (SPI_MASTER)
85	select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
86	help
87	  Say yes here to build support for STMicroelectronics magnetometers:
88	  LSM303DLHC, LSM303DLM, LIS3MDL.
89
90	  This driver can also be built as a module. If so, these modules
91	  will be created:
92	  - st_magn (core functions for the driver [it is mandatory]);
93	  - st_magn_i2c (necessary for the I2C devices [optional*]);
94	  - st_magn_spi (necessary for the SPI devices [optional*]);
95
96	  (*) one of these is necessary to do something.
97
98config IIO_ST_MAGN_I2C_3AXIS
99	tristate
100	depends on IIO_ST_MAGN_3AXIS
101	depends on IIO_ST_SENSORS_I2C
102
103config IIO_ST_MAGN_SPI_3AXIS
104	tristate
105	depends on IIO_ST_MAGN_3AXIS
106	depends on IIO_ST_SENSORS_SPI
107
108config SENSORS_HMC5843
109	tristate
110	select IIO_BUFFER
111	select IIO_TRIGGERED_BUFFER
112
113config SENSORS_HMC5843_I2C
114	tristate "Honeywell HMC5843/5883/5883L 3-Axis Magnetometer (I2C)"
115	depends on I2C
116	select SENSORS_HMC5843
117	select REGMAP_I2C
118	help
119	  Say Y here to add support for the Honeywell HMC5843, HMC5883 and
120	  HMC5883L 3-Axis Magnetometer (digital compass).
121
122	  This driver can also be compiled as a set of modules.
123	  If so, these modules will be created:
124	  - hmc5843_core (core functions)
125	  - hmc5843_i2c (support for HMC5843, HMC5883, HMC5883L and HMC5983)
126
127config SENSORS_HMC5843_SPI
128	tristate "Honeywell HMC5983 3-Axis Magnetometer (SPI)"
129	depends on SPI_MASTER
130	select SENSORS_HMC5843
131	select REGMAP_SPI
132	help
133	  Say Y here to add support for the Honeywell HMC5983 3-Axis Magnetometer
134	  (digital compass).
135
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_spi (support for HMC5983)
140
141endmenu
142