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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <daniel@xxxxxxxx>
> ---
>  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
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux