1*4882a593SmuzhiyunInput: sysrq reset sequence 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunA simple binding to represent a set of keys as described in 4*4882a593Smuzhiyuninclude/uapi/linux/input.h. This is to communicate a sequence of keys to the 5*4882a593Smuzhiyunsysrq driver. Upon holding the keys for a specified amount of time (if 6*4882a593Smuzhiyunspecified) the system is sync'ed and reset. 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunKey sequences are global to the system but all the keys in a set must be coming 9*4882a593Smuzhiyunfrom the same input device. 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunThe /chosen node should contain a 'linux,sysrq-reset-seq' child node to define 12*4882a593Smuzhiyuna set of keys. 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunRequired property: 15*4882a593Smuzhiyunkeyset: array of Linux keycodes, one keycode per cell. 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunOptional property: 18*4882a593Smuzhiyuntimeout-ms: duration keys must be pressed together in milliseconds before 19*4882a593Smuzhiyungenerating a sysrq. If omitted the system is rebooted immediately when a valid 20*4882a593Smuzhiyunsequence has been recognized. 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunExample: 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun chosen { 25*4882a593Smuzhiyun linux,sysrq-reset-seq { 26*4882a593Smuzhiyun keyset = <0x03 27*4882a593Smuzhiyun 0x04 28*4882a593Smuzhiyun 0x0a>; 29*4882a593Smuzhiyun timeout-ms = <3000>; 30*4882a593Smuzhiyun }; 31*4882a593Smuzhiyun }; 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunWould represent KEY_2, KEY_3 and KEY_9. 34