From: Jonathan Cameron <jic23@kernel.org>
To: Alexandru Tachici <alexandru.tachici@analog.com>
Cc: <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 6/6] iio: accel: adxl372: Update sysfs docs
Date: Sat, 7 Mar 2020 12:09:44 +0000 [thread overview]
Message-ID: <20200307120944.5e369676@archlinux> (raw)
In-Reply-To: <20200225120909.12629-7-alexandru.tachici@analog.com>
On Tue, 25 Feb 2020 14:09:09 +0200
Alexandru Tachici <alexandru.tachici@analog.com> wrote:
> This patch adds entries in the syfs docs of ADXL372.
>
> Signed-off-by: Stefan Popa <stefan.popa@analog.com>
> Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
> ---
> .../ABI/testing/sysfs-bus-iio-accel-adxl372 | 30 +++++++++++++++++++
> 1 file changed, 30 insertions(+)
> create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372 b/Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372
> new file mode 100644
> index 000000000000..709376b54bec
> --- /dev/null
> +++ b/Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372
> @@ -0,0 +1,30 @@
> +What: /sys/bus/iio/devices/iio:deviceX/buffer_peak_mode_enable
> +KernelVersion:
> +Contact: linux-iio@vger.kernel.org
> +Description:
> + This attribute allows to configure the FIFO to store sample
> + sets of impact event peak (x, y, z). As a precondition, all
> + three channels (x, y, z) need to be enabled.
> + Writing 1, peak fifo mode will be enabled, if cleared and
> + all three channels are enabled, sample sets of concurrent
> + 3-axis data will be stored in the FIFO.
As this is referring to the internal fifo (I think!) should we name it
hwfifo_peak_mode_enable to separate it from being related to the software "buffer"?
> +
> +What: /sys/bus/iio/devices/iio:deviceX/activity_detect_event
> +KernelVersion:
> +Contact: linux-iio@vger.kernel.org
> +Description:
> + adxl372 works in loop mode. It will loop between activity
> + and inactivity detection mode. The thresh_rising sysfs files
> + found in events/ need to be configured in order to define when
> + the device will mark a sensed acceleration over a period of
> + time as activity.
Hmm. As you noted in the cover letter this is a bit odd having a mixture of
an event and a more fundamental state control.
Please state what value this will provide when read.
> +
> +What: /sys/bus/iio/devices/iio:deviceX/inactivity_detect_event
> +KernelVersion:
> +Contact: linux-iio@vger.kernel.org
> +Description:
> + adxl372 works in loop mode. It will loop between activity
> + and inactivity detection mode. The thresh_falling sysfs files
> + found in events/ need to be configured in order to define when
> + the device will mark a sensed acceleration over a period of
> + time as inactivity.
prev parent reply other threads:[~2020-03-07 12:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-25 12:09 [PATCH v2 0/6] iio: accel: adxl372: add peak mode Alexandru Tachici
2020-02-25 12:09 ` [PATCH v2 1/6] iio: accel: adxl372: Add support for FIFO " Alexandru Tachici
2020-03-07 12:02 ` Jonathan Cameron
2020-02-25 12:09 ` [PATCH v2 2/6] iio: accel: adxl372: add sysfs for time registers Alexandru Tachici
2020-03-07 12:15 ` Jonathan Cameron
2020-02-25 12:09 ` [PATCH v2 3/6] iio: accel: adxl372: Add sysfs for g thresholds Alexandru Tachici
2020-02-25 12:09 ` [PATCH v2 4/6] iio: accel: adxl372: add iio events Alexandru Tachici
2020-03-07 12:12 ` Jonathan Cameron
2020-02-25 12:09 ` [PATCH v2 5/6] iio: accel: adxl372: add additional events ABIs Alexandru Tachici
2020-02-25 12:09 ` [PATCH v2 6/6] iio: accel: adxl372: Update sysfs docs Alexandru Tachici
2020-03-07 12:09 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200307120944.5e369676@archlinux \
--to=jic23@kernel.org \
--cc=alexandru.tachici@analog.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox