[PATCH v2 0/3] accel: adxl380: Add support for 1 kHz sampling frequency
From: Francesco Lavra
Date: Thu Jan 15 2026 - 12:53:53 EST
This series adds support for 1kHz sampling frequency for sensor variants
that implement low-power mode.
The first patch is a preparatory step to decouple sampling frequency values
from decimation filter settings, the second patch introduces a new helper
function to check whether activity/inactivity detection is enabled, and the
last patch adds support for the new sampling frequency value.
Tested on ADXL382.
Changes from v1 [1]:
- added Nuno's reviewed-by tag to patch 1
- modified reporting of available frequencies and setting of current
frequency to reflect activity detection status (Jonathan)
[1] https://lore.kernel.org/linux-iio/20260107123518.4017292-1-flavra@xxxxxxxxxxxx/T/
Francesco Lavra (3):
iio: accel: adxl380: Store sampling frequency index in odr struct
member
iio: accel: adxl380: Introduce helper function for activity detection
iio: accel: adxl380: Add support for 1 kHz sampling frequency
drivers/iio/accel/adxl380.c | 122 +++++++++++++++++++++++++-----------
drivers/iio/accel/adxl380.h | 10 ++-
2 files changed, 95 insertions(+), 37 deletions(-)
--
2.39.5