linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* which driver to choose for a GPIO connected switch
@ 2011-02-24  8:58 Alexander Stein
  2011-02-24 10:26 ` Ferenc Wagner
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Stein @ 2011-02-24  8:58 UTC (permalink / raw)
  To: linux-input

Hello,

I'm just wondering which existing input driver I can choose to use an GPIO 
connected switch. The switch I'm talking about is connected via 3 
(interruptable) GPIOs and those GPIOs can be inverted.
I think gpio-keys is wrong as they will generate events on each state change.
Note: The switch is likely to bounce and the current GPIO state might be 
invalid (all 3 GPIOs are 0).
I also think gpio-keys can't make sure only one switch state is currently 
present. So I may get a current state 1 on 2 or more GPIOs which is obviously 
wrong.
My use case is the userspace polls the current switch state if it needs to 
know.
Do you have any suggestions which driver to use or even write?

Best regards,
Alexander

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-24 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24  8:58 which driver to choose for a GPIO connected switch Alexander Stein
2011-02-24 10:26 ` Ferenc Wagner
2011-02-24 11:07   ` Alexander Stein
2011-02-24 15:17     ` Ferenc Wagner

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).