linux/drivers/iio/imu/st_lsm6dsx
Mario Tesi cb3b6b8e1b iio: imu: st_lsm6dsx: add odr calibration feature
On LSM6DSO/LSM6DSR/LSM6DSOX/ASM330LHH and ISH330DHCX
devices it is possible to trim the hardware timestamp
resolution through the FREQ_FINE[7:0] bits of the
INTERNAL_FREQ_FINE register, which contains the difference
in percentage of the effective ODR (and timestamp rate)
with respect to the typical value.

The formula for calculating the effective ODR reported
in the application notes has been linearized to the first
order to simplify the calculation (pls. see note on source
code).

This change may be useful in the outcome of CTS
tests regarding the SingleSensorTests and the
SensorTest#testSensorTimeStamps for high ODRs

Signed-off-by: Mario Tesi <mario.tesi@st.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-10-15 21:11:06 +01:00
..
Kconfig iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9ds1 2019-09-03 18:55:50 +01:00
Makefile iio: imu: st_lsm6dsx: add i3c basic support for LSM6DSO and LSM6DSR 2019-07-27 22:55:27 +01:00
st_lsm6dsx_buffer.c iio: imu: st_lsm6dsx: add odr calibration feature 2019-10-15 21:11:06 +01:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: add odr calibration feature 2019-10-15 21:11:06 +01:00
st_lsm6dsx_i2c.c iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9ds1 2019-09-03 18:55:50 +01:00
st_lsm6dsx_i3c.c iio: imu: st_lsm6dsx: add i3c basic support for LSM6DSO and LSM6DSR 2019-07-27 22:55:27 +01:00
st_lsm6dsx_shub.c iio: imu: st_lsm6dsx: fix waitime for st_lsm6dsx i2c controller 2019-10-09 19:11:28 +01:00
st_lsm6dsx_spi.c iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9ds1 2019-09-03 18:55:50 +01:00
st_lsm6dsx.h iio: imu: st_lsm6dsx: add odr calibration feature 2019-10-15 21:11:06 +01:00