Commit 1d8f4b04 authored by Icenowy Zheng's avatar Icenowy Zheng Committed by Jonathan Cameron

iio: magnetometer: add a driver for Voltafield AF8133J magnetometer

AF8133J is a simple I2C-connected magnetometer, without interrupts.

Add a simple IIO driver for it.
Signed-off-by: default avatarIcenowy Zheng <icenowy@aosc.io>
Signed-off-by: default avatarDalton Durst <dalton@ubports.com>
Signed-off-by: default avatarShoji Keita <awaittrot@shjk.jp>
Co-developed-by: default avatarOndrej Jirman <megi@xff.cz>
Signed-off-by: default avatarOndrej Jirman <megi@xff.cz>
Reviewed-by: default avatarAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tested-by: default avatarAndrey Skvortsov <andrej.skvortzov@gmail.com>
Link: https://lore.kernel.org/r/20240222011341.3232645-4-megi@xff.czSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 3b2eaffd
...@@ -6,6 +6,18 @@ ...@@ -6,6 +6,18 @@
menu "Magnetometer sensors" menu "Magnetometer sensors"
config AF8133J
tristate "Voltafield AF8133J 3-Axis Magnetometer"
depends on I2C
depends on OF
select REGMAP_I2C
help
Say yes here to build support for Voltafield AF8133J I2C-based
3-axis magnetometer chip.
To compile this driver as a module, choose M here: the module
will be called af8133j.
config AK8974 config AK8974
tristate "Asahi Kasei AK8974 3-Axis Magnetometer" tristate "Asahi Kasei AK8974 3-Axis Magnetometer"
depends on I2C depends on I2C
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# #
# When adding new entries keep the list in alphabetical order # When adding new entries keep the list in alphabetical order
obj-$(CONFIG_AF8133J) += af8133j.o
obj-$(CONFIG_AK8974) += ak8974.o obj-$(CONFIG_AK8974) += ak8974.o
obj-$(CONFIG_AK8975) += ak8975.o obj-$(CONFIG_AK8975) += ak8975.o
obj-$(CONFIG_BMC150_MAGN) += bmc150_magn.o obj-$(CONFIG_BMC150_MAGN) += bmc150_magn.o
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment