]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: adxl380: Add support for 1 kHz sampling frequency
authorFrancesco Lavra <flavra@baylibre.com>
Thu, 15 Jan 2026 17:53:50 +0000 (18:53 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Jan 2026 19:42:08 +0000 (19:42 +0000)
commitf65de31fb6aba70133a0cb57bba6f84b5fb4d695
tree74e99fefdea157bf49ebe17b92217fed3ce1e9b2
parentfabae7558722dcf41a9137f6f0f82462867d7c96
iio: accel: adxl380: Add support for 1 kHz sampling frequency

In sensor variants (such as ADXL380 and ADXL382) that support low-power
mode, the SAR signal path allows sampling acceleration data at lower rates;
more specifically, when the sensor operates in VLP mode, the sampling
frequency is 1 kHz.

To add support for the 1kHz sampling frequency value, modify the operating
mode selection logic to take into account the sampling frequency, and
configure the decimation filters only when applicable (i.e. when using a
sampling frequency that relies on the DSM signal path); in addition,
constrain the available sampling frequency values based on whether the
sensor is operating in low-power mode.

Signed-off-by: Francesco Lavra <flavra@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl380.c
drivers/iio/accel/adxl380.h