Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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