gpio_keys.txt 1011 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. Device-Tree bindings for input/gpio_keys.c keyboard driver
  2. Required properties:
  3. - compatible = "gpio-keys";
  4. Optional properties:
  5. - input-name: input name of the device
  6. - autorepeat: Boolean, Enable auto repeat feature of Linux input
  7. subsystem.
  8. Each button (key) is represented as a sub-node of "gpio-keys":
  9. Subnode properties:
  10. - gpios: OF device-tree gpio specification.
  11. - label: Descriptive name of the key.
  12. - linux,code: Keycode to emit.
  13. Optional subnode-properties:
  14. - linux,input-type: Specify event type this button/key generates.
  15. If not specified defaults to <1> == EV_KEY.
  16. - debounce-interval: Debouncing interval time in milliseconds.
  17. If not specified defaults to 5.
  18. - gpio-key,wakeup: Boolean, button can wake-up the system.
  19. Example nodes:
  20. gpio_keys {
  21. compatible = "gpio-keys";
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. autorepeat;
  25. input-name = "gpio-keys";
  26. button@21 {
  27. label = "GPIO Key UP";
  28. linux,code = <103>;
  29. gpios = <&gpio1 0 1>;
  30. };
  31. ...