* device tree binding for iio-trig-hrtimer
@ 2020-12-21 5:45 yarl-baudig
2020-12-21 12:02 ` Lars-Peter Clausen
0 siblings, 1 reply; 2+ messages in thread
From: yarl-baudig @ 2020-12-21 5:45 UTC (permalink / raw)
To: linux-iio
Hello,
Is it possible to create and bind an iio-trig-hrtimer as an interrupt-parent (or something like that) for a sensor?
If so, what would the dts look like?
Thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: device tree binding for iio-trig-hrtimer
2020-12-21 5:45 device tree binding for iio-trig-hrtimer yarl-baudig
@ 2020-12-21 12:02 ` Lars-Peter Clausen
0 siblings, 0 replies; 2+ messages in thread
From: Lars-Peter Clausen @ 2020-12-21 12:02 UTC (permalink / raw)
To: yarl-baudig, linux-iio
On 12/21/20 6:45 AM, yarl-baudig@mailoo.org wrote:
> Hello,
>
> Is it possible to create and bind an iio-trig-hrtimer as an interrupt-parent (or something like that) for a sensor?
> If so, what would the dts look like?
>
The very first version of the iio-trig-hrtimer driver did have
devicetree bindings[1].
But since the iio-trig-hrtimer does not represent any piece of hardware
and the devicetree is a description of the hardware this was dropped
before upstreaming the driver. And a new interface for being able to
dynamically create hrtimer triggers using configfs was created.
Creating a hrtimer trigger and assigning it to a sensor has to be done
from a userspace application.
- Lars
[1]
https://github.com/analogdevicesinc/linux/blob/1594c10513b7becdf7ed6026bb70a07ba8118d5f/drivers/staging/iio/trigger/iio-trig-hrtimer.c#L166-L170
<https://github.com/analogdevicesinc/linux/blob/1594c10513b7becdf7ed6026bb70a07ba8118d5f/drivers/staging/iio/trigger/iio-trig-hrtimer.c#L166-L170>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-21 12:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 5:45 device tree binding for iio-trig-hrtimer yarl-baudig
2020-12-21 12:02 ` Lars-Peter Clausen
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.