gpio-keys-polled.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Device-Tree bindings for input/gpio_keys_polled.c keyboard driver
  2. Required properties:
  3. - compatible = "gpio-keys-polled";
  4. - poll-interval: Poll interval time in milliseconds
  5. Optional properties:
  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-polled":
  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_polled {
  21. compatible = "gpio-keys-polled";
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. poll-interval = <100>;
  25. autorepeat;
  26. button@21 {
  27. label = "GPIO Key UP";
  28. linux,code = <103>;
  29. gpios = <&gpio1 0 1>;
  30. };
  31. ...