From: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Fabrice Gasnier <fabrice.gasnier-qxv4g6HH51o@public.gmane.org>,
linux-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
mcoquelin.stm32-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
alexandre.torgue-qxv4g6HH51o@public.gmane.org,
lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org,
knaack.h-Mmb7MZpHnFY@public.gmane.org,
pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org,
benjamin.gaignard-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
benjamin.gaignard-qxv4g6HH51o@public.gmane.org,
Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
Subject: Re: [PATCH v2 1/5] Documentation: dt: iio: document stm32 adc trigger polarity
Date: Sun, 5 Feb 2017 09:56:18 +0000 [thread overview]
Message-ID: <1b326a3d-522f-b76e-0bc3-656b5fd2a8ae@kernel.org> (raw)
In-Reply-To: <1485786840-4557-2-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
On 30/01/17 14:33, Fabrice Gasnier wrote:
> STM32 ADC trigger polarity can be set to either rising, falling
> or both edges. Allow to configure it from dt.
>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
This falls into the same question of whether this is really an interrupt
(be it one that linux can't see) or not.
It certainly similar enough I'd like to see us use as much of the
interrupt bindings as possible rather than reinventing the wheel.
cc'd Thomas Gleixner.
Thomas, what we have here effectively an interrupt that we have the option
to directly route to the hardware block to initialize an ADC sample
(rather than bouncing through the kernel). It can also be directly
exposed as a real interrupt and the chances are we are going to end
up with a mixture of the two depending on who is interesting in the
'interrupt'.
Any thoughts?
Jonathan
> ---
> Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> index 5dfc88e..6c6d968 100644
> --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
> @@ -57,6 +57,8 @@ Optional properties:
> - dmas: Phandle to dma channel for this ADC instance.
> See ../../dma/dma.txt for details.
> - dma-names: Must be "rx" when dmas property is being used.
> +- st,trigger-polarity: Must be 0 (default), 1 or 2 to set default trigger
> + polarity to respectively "rising-edge", "falling-edge" or "both-edges".
>
> Example:
> adc: adc@40012000 {
> @@ -84,6 +86,7 @@ Example:
> st,adc-channels = <8>;
> dmas = <&dma2 0 0 0x400 0x0>;
> dma-names = "rx";
> + st,trigger-polarity = <1>;
> };
> ...
> other adc child nodes follow...
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-02-05 9:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-30 14:33 [PATCH v2 0/5] Add EXTI GPIO trigger support to STM32 ADC Fabrice Gasnier
2017-01-30 14:33 ` [PATCH v2 1/5] Documentation: dt: iio: document stm32 adc trigger polarity Fabrice Gasnier
[not found] ` <1485786840-4557-2-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
2017-02-05 9:56 ` Jonathan Cameron [this message]
[not found] ` <1485786840-4557-1-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
2017-01-30 14:33 ` [PATCH v2 2/5] iio: adc: stm32: add dt option to set default " Fabrice Gasnier
2017-01-30 14:33 ` [PATCH v2 3/5] Documentation: dt: iio: document stm32 exti trigger Fabrice Gasnier
2017-01-30 14:33 ` [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers Fabrice Gasnier
[not found] ` <1485786840-4557-5-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
2017-02-03 19:40 ` Linus Walleij
[not found] ` <CACRpkdZeiFYFdRWCEgYWDWh4Wn2gT29KAFao9mgj7sTi768kFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-04 11:39 ` Jonathan Cameron
[not found] ` <1236cee4-41bf-b3b9-51e4-7e585234b0c7-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-02-04 20:03 ` Linus Walleij
2017-02-05 10:00 ` Jonathan Cameron
2017-02-06 16:01 ` Fabrice Gasnier
[not found] ` <b035b596-6b48-2671-93af-24b52b1ffab8-qxv4g6HH51o@public.gmane.org>
2017-02-11 10:29 ` Jonathan Cameron
[not found] ` <a2b1a05f-ba8e-7b0d-11bf-479cbc5ce079-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-02-17 16:05 ` Fabrice Gasnier
2017-02-19 12:49 ` Jonathan Cameron
2017-01-30 14:34 ` [PATCH v2 5/5] iio: adc: stm32: add exti gpio trigger source Fabrice Gasnier
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=1b326a3d-522f-b76e-0bc3-656b5fd2a8ae@kernel.org \
--to=jic23-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=alexandre.torgue-qxv4g6HH51o@public.gmane.org \
--cc=benjamin.gaignard-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=benjamin.gaignard-qxv4g6HH51o@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=fabrice.gasnier-qxv4g6HH51o@public.gmane.org \
--cc=knaack.h-Mmb7MZpHnFY@public.gmane.org \
--cc=lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org \
--cc=linux-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=mcoquelin.stm32-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.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;
as well as URLs for NNTP newsgroup(s).