iio: mlx90614: Implement filter configuration
Subsystems (2)
Crt Mori
maintainerPATCH v3 1/1 iio: mlx90614: Implement filter configuration
Implemented Low pass 3db frequency filter which configures FIR and IIR values within the configuration register of EEPROM. For more standardized interface we have fixed the FIR value to 1024, while changes in IIR value are directly connected to filter responses. The new datasheet version will provide a simplified table (also in reStructured text format below) with this change, to provide quick overview of possible settings.
Below sensor timings (bandwidth) are calculated for 3db frequency low pass filter.
+--------------------+-----------------+ | Filter setting (%) | Band width (Hz) | | (rounded to 1.0) | | +====================+=================+ | 13 | 0.15 | +--------------------+-----------------+ | 17 | 0.20 | +--------------------+-----------------+ | 25 | 0.31 | +--------------------+-----------------+ | 50 | 0.77 | +--------------------+-----------------+ | 57 | 0.86 | +--------------------+-----------------+ | 67 | 1.10 | +--------------------+-----------------+ | 80 | 1.53 | +--------------------+-----------------+ | 100 | 7.23 | +--------------------+-----------------+
The diff is made towards togreg branch. Added myself to MAINTAINERS and authors as per discussion with Jonathan.
Signed-off-by Crt Mori <[email protected]>
--- MAINTAINERS | 7 ++++ drivers/iio/temperature/mlx90614.c | 86 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 90 insertions(+), 3 deletions(-)
MAINTAINERS +7 -0
@@ -6739,6 +6739,13 @@ S: Supported F: include/linux/mlx5/ F: drivers/infiniband/hw/mlx5/ +MELEXIS MLX90614 DRIVER +M: Crt Mori <[email protected]> +L: [email protected] +W: http://www.melexis.com +S: Supported +F: drivers/iio/temperature/mlx90614.c + MN88472 MEDIA DRIVER M: Antti Palosaari <[email protected]> L: [email protected]
drivers/iio/temperature/mlx90614.c +83 -3
157 lines not on this page · raw message
Signature · 1 line
2.1.4