Commit 866a1389 authored by Gerald Loacker's avatar Gerald Loacker Committed by Jonathan Cameron
Browse files

iio: magnetometer: add ti tmag5273 driver

Add support for TI TMAG5273 Low-Power Linear 3D Hall-Effect Sensor.
Additionally to temperature and magnetic X, Y and Z-axes the angle and
magnitude are reported.
The sensor is operating in continuous measurement mode and changes to sleep
mode if not used for 5 seconds.

Datasheet: https://www.ti.com/lit/gpn/tmag5273


Signed-off-by: default avatarGerald Loacker <gerald.loacker@wolfvision.net>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221201072220.402585-4-gerald.loacker@wolfvision.net


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent fbb6d04e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20912,6 +20912,7 @@ M: Gerald Loacker <gerald.loacker@wolfvision.net>
L:	linux-iio@vger.kernel.org
S:	Maintained
F:	Documentation/devicetree/bindings/iio/magnetometer/ti,tmag5273.yaml
F:	drivers/iio/magnetometer/tmag5273.c
TI TRF7970A NFC DRIVER
M:	Mark Greer <mgreer@animalcreek.com>
+12 −0
Original line number Diff line number Diff line
@@ -208,6 +208,18 @@ config SENSORS_RM3100_SPI
	  To compile this driver as a module, choose M here: the module
	  will be called rm3100-spi.

config TI_TMAG5273
	tristate "TI TMAG5273 Low-Power Linear 3D Hall-Effect Sensor"
	depends on I2C
	select REGMAP_I2C
	help
	  Say Y here to add support for the TI TMAG5273 Low-Power
	  Linear 3D Hall-Effect Sensor.

	  This driver can also be compiled as a module.
	  To compile this driver as a module, choose M here: the module
	  will be called tmag5273.

config YAMAHA_YAS530
	tristate "Yamaha YAS530 family of 3-Axis Magnetometers (I2C)"
	depends on I2C
+2 −0
Original line number Diff line number Diff line
@@ -29,4 +29,6 @@ obj-$(CONFIG_SENSORS_RM3100) += rm3100-core.o
obj-$(CONFIG_SENSORS_RM3100_I2C)	+= rm3100-i2c.o
obj-$(CONFIG_SENSORS_RM3100_SPI)	+= rm3100-spi.o

obj-$(CONFIG_TI_TMAG5273)		+= tmag5273.o

obj-$(CONFIG_YAMAHA_YAS530)		+= yamaha-yas530.o
+743 −0

File added.

Preview size limit exceeded, changes collapsed.