iio: imu: inv_icm42600: add temperature sensor support
authorJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Mon, 22 Jun 2020 15:37:22 +0000 (17:37 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jun 2020 13:20:16 +0000 (14:20 +0100)
commitbc3eb0207fb52b575cf3e4863b43be53291acc3b
tree4578e678ad14d84906abc35314ae322d9cd9b850
parenta47c1cdcb901031cde22fb1261a4a36d55ae66a8
iio: imu: inv_icm42600: add temperature sensor support

Add temperature channel in gyroscope and accelerometer devices.

Temperature is available in full 16 bits resolution when reading
register and in low 8 bits resolution in the FIFO. Return full
precision raw temperature with corresponding scale and offset.

Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c
drivers/iio/imu/inv_icm42600/inv_icm42600_temp.c [new file with mode: 0644]
drivers/iio/imu/inv_icm42600/inv_icm42600_temp.h [new file with mode: 0644]