Lines Matching refs:keys
3 * Driver for keys on GPIO lines capable of generating interrupts.
30 #include <dt-bindings/input/gpio-keys.h>
62 * SYSFS interface for enabling/disabling keys and switches:
64 * There are 4 attributes under /sys/devices/platform/gpio-keys/
65 * keys [ro] - bitmap of keys (EV_KEY) which can be
69 * disabled_keys [rw] - bitmap of keys currently disabled
76 * For example, if we have following switches set up as gpio-keys:
92 * We can disable only those keys which don't allow sharing the irq.
300 ATTR_SHOW_FN(keys, EV_KEY, false);
308 * /sys/devices/platform/gpio-keys/keys [ro]
309 * /sys/devices/platform/gpio-keys/switches [ro]
311 static DEVICE_ATTR(keys, S_IRUGO, gpio_keys_show_keys, NULL);
337 * /sys/devices/platform/gpio-keys/disabled_keys [rw]
338 * /sys/devices/platform/gpio-keys/disables_switches [rw]
756 { .compatible = "gpio-keys", },
804 input->phys = "gpio-keys/input0";
894 * The trigger type is always both edges for gpio-based keys and we do
895 * not support changing wakeup trigger for interrupt-based keys.
1013 .name = "gpio-keys",
1036 MODULE_ALIAS("platform:gpio-keys");