* Re: rotary encoder linux driver [not found] <1413163743.39490.YahooMailNeo@web160203.mail.bf1.yahoo.com> @ 2014-10-14 8:48 ` Johan Hovold 2014-10-14 22:44 ` Ben Gamari 0 siblings, 1 reply; 2+ messages in thread From: Johan Hovold @ 2014-10-14 8:48 UTC (permalink / raw) To: tecfacet; +Cc: linux-input, linux-kernel 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: rotary encoder linux driver 2014-10-14 8:48 ` rotary encoder linux driver Johan Hovold @ 2014-10-14 22:44 ` Ben Gamari 0 siblings, 0 replies; 2+ messages in thread From: Ben Gamari @ 2014-10-14 22:44 UTC (permalink / raw) To: tecfacet; +Cc: linux-input, linux-kernel, Johan Hovold [-- Attachment #1: Type: text/plain, Size: 818 bytes --] Johan Hovold <johan@kernel.org> writes: > 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. > You may also be interested in the device tree for a BeagleBone cape that I recently brought up which includes an encoder, https://github.com/bgamari/dtb-rebuilder/blob/heaterbone-3.14/src/arm/heater-bone.dtsi#L248 Cheers, - Ben [-- Attachment #2: Type: application/pgp-signature, Size: 472 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-14 22:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1413163743.39490.YahooMailNeo@web160203.mail.bf1.yahoo.com>
2014-10-14 8:48 ` rotary encoder linux driver Johan Hovold
2014-10-14 22:44 ` Ben Gamari
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox