iio: magnetometer: Add driver support for PNI RM3100
authorSong Qiang <songqiang1304521@gmail.com>
Thu, 8 Nov 2018 09:27:49 +0000 (17:27 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Nov 2018 18:32:31 +0000 (18:32 +0000)
commit121354b2eceb2669ebdffa76b105ad6c03413966
tree7db7ed0542f64298ff6d0ee04e543de636f8ba32
parent9a8d64fa97206eb68ec741b5c52436f32286b7fd
iio: magnetometer: Add driver support for PNI RM3100

PNI RM3100 is a high resolution, large signal immunity magnetometer,
composed of 3 single sensors and a processing chip with a MagI2C
interface.

Following functions are available:
 - Single-shot measurement from
   /sys/bus/iio/devices/iio:deviceX/in_magn_{axis}_raw
 - Triggerd buffer measurement.
 - DRDY pin for data ready trigger.
 - Both i2c and spi interface are supported.
 - Both interrupt and polling measurement is supported, depends on if
   the 'interrupts' in DT is declared.

Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
MAINTAINERS
drivers/iio/magnetometer/Kconfig
drivers/iio/magnetometer/Makefile
drivers/iio/magnetometer/rm3100-core.c [new file with mode: 0644]
drivers/iio/magnetometer/rm3100-i2c.c [new file with mode: 0644]
drivers/iio/magnetometer/rm3100-spi.c [new file with mode: 0644]
drivers/iio/magnetometer/rm3100.h [new file with mode: 0644]