3 ms·
None of this needs an actual kernel driver. You can use interrupt gpios from userspace using poll.
by revelation 11y ago
None of this needs an actual kernel driver. You can use interrupt gpios from userspace using poll.
- kenz0r 11y agoYou can, or you can use the gpio_keys driver to nicely handle it in kernel space and give you key presses via the event subsystem. One small device tree snippet, and you're sorted. There is even a gpio_keys_polled variant if you can't get interrupts from your GPIO controller.