]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc060e921723d92e02e044340da469c0ed3334f53
tree4578e678ad14d84906abc35314ae322d9cd9b850
parentd92dd0b91b98d02bf4976aa91bb1807fd7a11252
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]