linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] iio: accel: adxl372: add peak mode
@ 2020-08-03 17:22 alexandru.tachici
  2020-08-03 17:22 ` [PATCH v4 1/3] iio: accel: adxl372: Add support for FIFO " alexandru.tachici
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: alexandru.tachici @ 2020-08-03 17:22 UTC (permalink / raw)
  To: linux-iio, linux-kernel; +Cc: jic23

From: Alexandru Tachici <alexandru.tachici@analog.com>

This series adds the possibility to configure
the device, from sysfs, to work in peak mode. This enables
adxl372 to capture only over threshold accelerations.

1. Create sysfs files for falling_period/rising_period
and thresh_falling_value/thresh_rising_value in events/ dir.
Set INT1 reg for activity/inactivity and push
event code in events fifo on irq.

2. Document use of iio events sysfs files.

Alexandru Tachici (2):
  iio: accel: adxl372: add event interface
  docs: iio: Add adxl372 documentation

1. Device FIFO can now be set in peak mode and only over the
threshold accelerations will be stored. Driver sets adxl372
FIFO in peak mode when the peak iio:trigger is selected.

Stefan Popa (1):
  iio: accel: adxl372: Add support for FIFO peak mode

  Changelog v3 -> v4:
  - add mutex for threshold write so that writing the two
  registers becomes atomic
  - added a trigger for peak mode, when selected in the trigger
  user interface, adxl372 will start recording only peak acceleration
  data in the fifo
  - added a adxl372.rst doc file explaining the use of iio events sysfs

 Documentation/iio/adxl372.rst |  46 +++++
 Documentation/iio/index.rst   |   1 +
 drivers/iio/accel/adxl372.c   | 328 +++++++++++++++++++++++++++++++++-
 3 files changed, 367 insertions(+), 8 deletions(-)
 create mode 100644 Documentation/iio/adxl372.rst

-- 
2.20.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-09 13:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 17:22 [PATCH v4 0/3] iio: accel: adxl372: add peak mode alexandru.tachici
2020-08-03 17:22 ` [PATCH v4 1/3] iio: accel: adxl372: Add support for FIFO " alexandru.tachici
2020-08-09 13:11   ` Jonathan Cameron
2020-08-03 17:22 ` [PATCH v4 2/3] iio: accel: adxl372: add event interface alexandru.tachici
2020-08-09 13:19   ` Jonathan Cameron
2020-08-03 17:22 ` [PATCH v4 3/3] docs: iio: Add adxl372 documentation alexandru.tachici
2020-08-09 13:21   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).