Skip to content

accel: adxl380: Add support for 1 kHz sampling frequency

Francesco Lavra linux-iio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v12 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iio: accel: adxl380: Store sampling frequency index in odr struct memberdrivers/iio/accel/adxl380.c+2 -110 replies
2/3iio: accel: adxl380: Introduce helper function for activity detectiondrivers/iio/accel/adxl380.c+22 -52 replies
3/3iio: accel: adxl380: Add support for 1 kHz sampling frequencydrivers/iio/accel/adxl380.c drivers/iio/accel/adxl380.h+71 -211 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchNuno Sá
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] accel: adxl380: Add support for 1 kHz sampling frequency

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/[email protected]/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(-)
Signature · 1 line
2.39.5