All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: gmane@reliableembeddedsystems.com,
	Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: iio A/D converter input to input event subsystem
Date: Sun, 03 Aug 2014 16:43:20 +0100	[thread overview]
Message-ID: <53DE5898.1040806@kernel.org> (raw)
In-Reply-To: <33f1c38a7367710e30956080fa02da8a@reliableembeddedsystems.com>

On 03/08/14 16:08, gmane@reliableembeddedsystems.com wrote:
> Hi,
> 
> On 2014-08-03 04:56, Alexandre Belloni wrote:
>> Hi Robert,
> 
>>
>> Did you have a look at uinput? This would allow you to inject input
>> events after processing the ADC values in userspace.
>>
>> Simple example: http://thiemonge.org/getting-started-with-uinput
> 
> Thanks this looks interesting. I had in the meantime a look at iio_hwmon [1] which does something similar to what I want
> for the hwmon subsystem instead of the input event subsystem.

There is a rather aged iio_input driver, that uses the buffered interface (not polled)
and could probably be adapted to your usecase reasonably easily.  The case is different enough
that I'd probably suggest a new driver for it though rather than trying to blugeon it into
the existing driver.

http://www.spinics.net/lists/linux-iio/msg06881.html (latest version I think).
The infrastructure for this went in back then, but the input driver never quite got the
attention it needed.

One big issue outstanding around this stuff is that no one likes the device
tree bindings.  Probably doesn't matter for your project in the short term however!

Jonathan
> 
> Regards,
> 
> Robert
> 
> [1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/hwmon/iio_hwmon.c?id=refs/tags/v3.16-rc7
=

  reply	other threads:[~2014-08-03 15:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02 18:14 iio A/D converter input to input event subsystem gmane
2014-08-03  9:56 ` Alexandre Belloni
2014-08-03 15:08   ` gmane
2014-08-03 15:43     ` Jonathan Cameron [this message]
2014-08-03 16:39       ` gmane
2014-08-03 20:43         ` Jonathan Cameron

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=53DE5898.1040806@kernel.org \
    --to=jic23@kernel.org \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=gmane@reliableembeddedsystems.com \
    --cc=linux-iio@vger.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 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.