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