iio: magnetometer: add ti tmag5273 driver
authorGerald Loacker <gerald.loacker@wolfvision.net>
Thu, 1 Dec 2022 07:22:20 +0000 (08:22 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 28 Dec 2022 17:19:44 +0000 (17:19 +0000)
commit866a1389174bbb71591bb0c927f1d63e7cc469c8
tree0d0d2476c91f29e9743e4a0c7a66ba351c628907
parentfbb6d04eab99020c63810225bdbd1fa40f02e6b9
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: Gerald Loacker <gerald.loacker@wolfvision.net>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221201072220.402585-4-gerald.loacker@wolfvision.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
MAINTAINERS
drivers/iio/magnetometer/Kconfig
drivers/iio/magnetometer/Makefile
drivers/iio/magnetometer/tmag5273.c [new file with mode: 0644]