linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to use GPIO pin as the trigger for IIO devices?
@ 2016-04-07  3:51 Yong Li
  2016-04-10 14:46 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Yong Li @ 2016-04-07  3:51 UTC (permalink / raw)
  To: linux-iio

 am testing an IIO gyro sensor using kernel 4.4, currently I can use
the sysfs trigger as a trigger, I can read the data from
/dev/iio:deviceX after "echo 1 > trigger_now".


I want to use a gpio pin for the data trigger. For example, when the
GPIO pin 62 is low, the data will be ready.


How to connect/setup the gpio with the IIO triggers, how can I use the
iio_trig_interrupt.ko? I found there is new triggers in the
/sys/bus/iio/devices after I loaded the iio_trig_interrupt.ko.

Thanks,
Yong

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-12  5:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07  3:51 How to use GPIO pin as the trigger for IIO devices? Yong Li
2016-04-10 14:46 ` Jonathan Cameron
2016-04-12  5:19   ` Yong Li

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).