input-reset.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. Input: sysrq reset sequence
  2. A simple binding to represent a set of keys as described in
  3. include/uapi/linux/input.h. This is to communicate a sequence of keys to the
  4. sysrq driver. Upon holding the keys for a specified amount of time (if
  5. specified) the system is sync'ed and reset.
  6. Key sequences are global to the system but all the keys in a set must be coming
  7. from the same input device.
  8. The /chosen node should contain a 'linux,sysrq-reset-seq' child node to define
  9. a set of keys.
  10. Required property:
  11. sysrq-reset-seq: array of Linux keycodes, one keycode per cell.
  12. Optional property:
  13. timeout-ms: duration keys must be pressed together in milliseconds before
  14. generating a sysrq. If omitted the system is rebooted immediately when a valid
  15. sequence has been recognized.
  16. Example:
  17. chosen {
  18. linux,sysrq-reset-seq {
  19. keyset = <0x03
  20. 0x04
  21. 0x0a>;
  22. timeout-ms = <3000>;
  23. };
  24. };
  25. Would represent KEY_2, KEY_3 and KEY_9.