Linux: gpio-keys
gpio-keys
is part of Linux input subsystem that can be used as key driver which can generate gpio interrupt. Comparing with user-implemented drivers base on GPIO subsystem, gpio-keys
is much easier to use since it supports features like debounce/autorepeat by default.