Lines Matching refs:keys
3 * Driver for keys on GPIO lines capable of generating interrupts.
31 #include <dt-bindings/input/gpio-keys.h>
65 * SYSFS interface for enabling/disabling keys and switches:
67 * There are 4 attributes under /sys/devices/platform/gpio-keys/
68 * keys [ro] - bitmap of keys (EV_KEY) which can be
72 * disabled_keys [rw] - bitmap of keys currently disabled
79 * For example, if we have following switches set up as gpio-keys:
95 * We can disable only those keys which don't allow sharing the irq.
310 ATTR_SHOW_FN(keys, EV_KEY, false);
318 * /sys/devices/platform/gpio-keys/keys [ro]
319 * /sys/devices/platform/gpio-keys/switches [ro]
321 static DEVICE_ATTR(keys, S_IRUGO, gpio_keys_show_keys, NULL);
347 * /sys/devices/platform/gpio-keys/disabled_keys [rw]
348 * /sys/devices/platform/gpio-keys/disables_switches [rw]
795 { .compatible = "gpio-keys", },
843 input->phys = "gpio-keys/input0";
933 * The trigger type is always both edges for gpio-based keys and we do
934 * not support changing wakeup trigger for interrupt-based keys.
1052 .name = "gpio-keys",
1075 MODULE_ALIAS("platform:gpio-keys");