From: Johan Hovold <johan@kernel.org>
To: tecfacet <tecfacet@yahoo.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: rotary encoder linux driver
Date: Tue, 14 Oct 2014 10:48:15 +0200 [thread overview]
Message-ID: <20141014084815.GC7958@localhost> (raw)
In-Reply-To: <1413163743.39490.YahooMailNeo@web160203.mail.bf1.yahoo.com>
On Sun, Oct 12, 2014 at 06:29:03PM -0700, tecfacet wrote:
> Hello.
>
> I am interested in the rotary encoder kernel driver. I am very new to
> this linux kernel driver thing.
>
> How do I pass the gpio and interrupt stuff to the kernel module.. I
> think it is thru the rotary_encoder.h file.. am I correct?
That should be done through the device tree these days. The binding is
documented in
Documentation/devicetree/bindings/input/rotary-encoder.txt
in the kernel source tree.
> How does the information about encoder position etc get back to my
> user space program? How is debounce handled?
> I am a little confused. Is there an example of a complete working
> implementation? I need to figure this out for school.
Have a look at the evtest program for an example:
http://cgit.freedesktop.org/~whot/evtest
Good luck,
Johan
next parent reply other threads:[~2014-10-14 8:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1413163743.39490.YahooMailNeo@web160203.mail.bf1.yahoo.com>
2014-10-14 8:48 ` Johan Hovold [this message]
2014-10-14 22:44 ` rotary encoder linux driver Ben Gamari
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=20141014084815.GC7958@localhost \
--to=johan@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tecfacet@yahoo.com \
/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).