Thread (32 messages) 32 messages, 3 authors, 2009-04-16

RE: [PATCH] generic driver for rotary encoders on GPIOs

From: hartleys <hidden>
Date: 2009-02-27 18:30:56

On Friday, February 27, 2009 11:01 AM, Daniel Mack wrote:
This patch adds a generic driver for rotary encoders connected to
GPIO pins of a system. It relies on gpiolib and generic hardware
irqs. The documentation that also comes with this patch explains
the concept and how to use the driver.

Signed-off-by: Daniel Mack <redacted>
---
 new version as discussed on linux-input.
Works great now on the ep93xx with no changes.

I have a minor patch to it that allows the platform init to configure
the absolute/relative axis to report the encoder on.  If you would like
to see it I can put together a patch.

Also, any ideas if the driver could be modified to support more that one
rotary encoder?

It might be possible to load driver multiple times, once for each
encoder, but then all the events show up in different /dev/input/event*
places.

BTW, pretty cool.  I was handling a rotary encoder in my FPGA but this
makes it much cleaner.

Regards,
Hartley
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help