My goal is to use the "GPIO Keys" or gpio-keys driver rather than /sys/class/gpio. I understand the gpio-keys solution will allow a button press to generate an event as if it came from a keyboard.
Here is what I have done so far:
- I connected a push button to GPO_IO6 (pin G5).
- I verified that pushing button pulls voltage down to ground.
- I configured and built a new uImage kernel using menuconfig to add support for InputDeviceSupport-Keyboards->"GPIO Buttons" in addition to /sys/class/gpio/ and Basic memory-mapped GPI controllers support.
-
After boot I see only a mouse under /dev/input/