From: Lars-Peter Clausen <lars@metafoo.de>
To: Matthias Meier <matthias.j.meier@gmx.net>, linux-iio@vger.kernel.org
Subject: Re: iio_interrupt_trigger
Date: Mon, 19 Oct 2015 11:43:53 +0200 [thread overview]
Message-ID: <5624BB59.20003@metafoo.de> (raw)
In-Reply-To: <5623962F.6040105@gmx.net>
On 10/18/2015 02:53 PM, Matthias Meier wrote:
> Hi
>
> I'm trying to set on a IMX6 SoC (wandboard) a PWM to use as a
> 'iio_interrupt_trigger' source.
> I can't figure out how to assign the pwm to the 'iio_interrupt_trigger'
> module in the device tree source.
> (The pwm an the iio adc device when sysfs triggered is working fine)
>
> Any suggestions?
The problem is that you can't really instantiate the iio-interrupt-trigger
from the devicetree. IIO is a software concept, there is no hardware
associated with it that you could describe in the devicetree.
There have been discussions in the past about implementing a pwm trigger,
similar to the existing iio-trig-bfin-timer.c trigger driver. But instead of
directly accessing the PWM/Timer hardware registers use the PWM API. This
requires some extensions to the PWM API though, so we can export the IRQ
associated with the PWM device.
So far nobody has stepped up to implement this, but sounds like a fun
project, doesn't it? ;)
- Lars
next prev parent reply other threads:[~2015-10-19 9:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-18 12:53 iio_interrupt_trigger Matthias Meier
2015-10-19 9:43 ` Lars-Peter Clausen [this message]
2015-10-20 16:00 ` iio_interrupt_trigger Matthias Meier
2015-10-20 17:05 ` iio_interrupt_trigger Matthias Meier
2015-10-20 17:31 ` iio_interrupt_trigger Lars-Peter Clausen
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=5624BB59.20003@metafoo.de \
--to=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=matthias.j.meier@gmx.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.