From: Jonathan Cameron <jic23@kernel.org>
To: Daniel Baluta <daniel.baluta@gmail.com>,
Fabrice Gasnier <fabrice.gasnier@st.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
Devicetree List <devicetree@vger.kernel.org>,
benjamin.gaignard@linaro.org,
Lars-Peter Clausen <lars@metafoo.de>,
alexandre.torgue@st.com,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
Peter Meerwald <pmeerw@pmeerw.net>,
linux@armlinux.org.uk,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Rob Herring <robh+dt@kernel.org>,
mcoquelin.stm32@gmail.com, Hartmut Knaack <knaack.h@gmx.de>,
Linus Walleij <linus.walleij@linaro.org>,
linux-arm-kernel@lists.infradead.org, benjamin.gaignard@st.com
Subject: Re: [RFC 0/4] iio: trigger: Add OF support and GPIO based trigger
Date: Sat, 18 Feb 2017 19:07:12 +0000 [thread overview]
Message-ID: <3a2d79be-d39d-10d8-6ff4-d8aea9560263@kernel.org> (raw)
In-Reply-To: <CAEnQRZDey70TR=nU4rpFyVMqDuUFAGc2SpNCmraUO5x29n1+ow@mail.gmail.com>
On 17/02/17 16:23, Daniel Baluta wrote:
> On Fri, Feb 17, 2017 at 6:03 PM, Fabrice Gasnier <fabrice.gasnier@st.com> wrote:
>> Hi,
>>
>> I send this as an RFC, as I'm digging to try to get as generic
>> as possible GPIO based trigger support, as discussed earlier in
>> other patchset "Add EXTI GPIO trigger support to STM32 ADC":
>> https://www.spinics.net/lists/arm-kernel/msg559091.html
>>
>> Following various comments on this, I sent this RFC to address two
>> topics, that I see as possible prerequisite:
>> - Add trigger OF support
>> - GPIO based trigger
>
> I wonder if we could use configfs to create and configure
> a GPIO based trigger.
>
> You should just create another trigger type (look into
> drivers/iio/trigger/iio-trig-hrtimer.c)
> the userspace API will look like this:
>
> # cd /config/iio/triggers
> # insert your iio-trig-gpio
> # setup the global parameters for the GPIO (the local params can be
> set via dts/acpi)
> # cd /config/iio/trigers/gpios/
>
> #mkdir t1
>
> And this will create an io-gpio-trigger named t1.
>
> Not sure this fits your usecase but would be nice to consider.
>
It might potentially make sense to support both DT or similar instantiation and
instantiation from userspace. Primary route seems to me to always be DT based
though as we are dealing with wiring...
So I'm unconvinced on the configfs option, but might be talked round.
> thanks,
> Daniel.
>
prev parent reply other threads:[~2017-02-18 19:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-17 16:03 [RFC 0/4] iio: trigger: Add OF support and GPIO based trigger Fabrice Gasnier
2017-02-17 16:03 ` [RFC 1/4] dt-bindings: iio: introduce trigger providers, consumers Fabrice Gasnier
2017-02-17 16:03 ` [RFC 2/4] iio: trigger: add OF support Fabrice Gasnier
2017-02-17 16:03 ` [RFC 3/4] dt-bindings: iio: add support for GPIO triggers Fabrice Gasnier
[not found] ` <1487347429-31761-4-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
2017-02-18 19:22 ` Jonathan Cameron
2017-02-23 15:03 ` Linus Walleij
[not found] ` <CACRpkdaFLMDhYZJrO=-MuSG31aO5vOZ2KX3_c95jzze46pymmQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-23 15:45 ` Fabrice Gasnier
2017-02-17 16:03 ` [RFC 4/4] iio: trigger: add GPIO trigger Fabrice Gasnier
[not found] ` <1487347429-31761-5-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
2017-02-17 16:16 ` Lars-Peter Clausen
[not found] ` <06f74b54-91fa-31c5-f015-52a6524059ef-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2017-02-18 19:19 ` Jonathan Cameron
[not found] ` <3e2653fe-874c-d761-b274-ffe889df18a7-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-02-20 16:24 ` Fabrice Gasnier
[not found] ` <03234803-c75d-bd1a-492b-761c0d5218ff-qxv4g6HH51o@public.gmane.org>
2017-02-25 16:21 ` Jonathan Cameron
[not found] ` <1487347429-31761-1-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
2017-02-17 16:23 ` [RFC 0/4] iio: trigger: Add OF support and GPIO based trigger Daniel Baluta
2017-02-18 19:07 ` 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=3a2d79be-d39d-10d8-6ff4-d8aea9560263@kernel.org \
--to=jic23@kernel.org \
--cc=alexandre.torgue@st.com \
--cc=benjamin.gaignard@linaro.org \
--cc=benjamin.gaignard@st.com \
--cc=daniel.baluta@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrice.gasnier@st.com \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=pmeerw@pmeerw.net \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).