linux/drivers/iio/imu
Lorenzo Bianconi db3c490503 iio: imu: st_lsm6dsx: discard samples during filters settling time
During digital filters settling time the driver is expected to drop
samples since they can be corrupted. Introduce the capability to drop
a given number of samples according to the configured ODR.
Add sample_to_discard for LSM6DSM-like sensors since new generation
devices (e.g. LSM6DSO) support DRDY mask where corrupted samples are
masked in hw with values greather than 0x7ffd so the driver can easily
discard them.
I have not added sample_to_discard support for LSM6DS3 or LSM6DS3H since
I do not have any sample for testing at the moment.

Reported-by: Philippe De Muyter <phdm@macqel.be>
Tested-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/21dcd94935c147ef9b1da4984b3da6264ee9609e.1677496295.git.lorenzo@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-03-11 12:18:29 +00:00
..
bmi160 iio: imu: bmi160/bmi160_i2c: Convert to i2c's .probe_new() 2022-11-23 20:01:42 +00:00
bno055 iio: imu: fix spdx format 2023-01-28 16:22:46 +00:00
inv_icm42600 iio: imu: inv_icm42600: Add support for icm42631 2022-11-23 19:58:45 +00:00
inv_mpu6050 iio: imu: inv_mpu6050: Convert to i2c's .probe_new() 2022-11-23 20:20:18 +00:00
st_lsm6dsx iio: imu: st_lsm6dsx: discard samples during filters settling time 2023-03-11 12:18:29 +00:00
st_lsm9ds0 iio: st_sensors: core and lsm9ds0 switch to devm_regulator_bulk_get_enable() 2022-11-23 19:44:01 +00:00
adis16400.c iio: imu: adis16400: Call '__adis_initial_startup()' in probe 2022-11-23 20:37:51 +00:00
adis16460.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis16475.c iio: imu: adis16475: correct copy paste mistake in comment block 2023-03-11 12:18:28 +00:00
adis16480.c iio: imu: adis16480: Improve getting the optional clocks 2022-04-28 19:22:56 +01:00
adis_buffer.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis_trigger.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis.c iio: adis: add '__adis_enable_irq()' implementation 2022-11-23 20:37:50 +00:00
fxos8700_core.c iio: imu: fxos8700: fix MAGN sensor scale and unit 2023-01-21 18:15:19 +00:00
fxos8700_i2c.c iio: imu: fxos8700_i2c: Convert to i2c's .probe_new() 2022-11-23 20:01:42 +00:00
fxos8700_spi.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
Kconfig iio: imu: add Bosch Sensortec BNO055 core driver 2022-09-21 18:42:56 +01:00
kmx61.c iio: imu: kmx61: Fix spelling mistake "Errow" -> "Error" 2022-12-28 17:19:46 +00:00
Makefile iio: imu: add Bosch Sensortec BNO055 core driver 2022-09-21 18:42:56 +01:00