I think I've just found something useful.
oot@imx7ulpevk:/unit_tests/Keyboard# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: rpmsg-keys
/dev/input/event1: fts_ts
/dev/input/event2: step_detector
/dev/input/event3: step_counter
Select the device event number [0-3]: 0
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "rpmsg-keys"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 114 (KEY_VOLUMEDOWN)
Event code 115 (KEY_VOLUMEUP)
Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
Event: time 1615552640.384524, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1615552640.384524, -------------- SYN_REPORT ------------
Event: time 1615552640.613127, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1615552640.613127, -------------- SYN_REPORT ------------
Event: time 1615552641.531526, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1615552641.531526, -------------- SYN_REPORT ------------
Event: time 1615552641.709455, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1615552641.709455, -------------- SYN_REPORT ------------
Event: time 1615552642.260209, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1615552642.260209, -------------- SYN_REPORT ------------
Event: time 1615552642.445113, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1615552642.445113, -------------- SYN_REPORT ------------
Event: time 1615552642.757307, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1615552642.757307, -------------- SYN_REPORT ------------
Event: time 1615552642.898507, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1615552642.898507, -------------- SYN_REPORT ------------
Event: time 1615552643.794227, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1615552643.794227, -------------- SYN_REPORT ------------
Event: time 1615552643.962250, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1615552643.962250, -------------- SYN_REPORT ------------
Event: time 1615552644.734817, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 1615552644.734817, -------------- SYN_REPORT ------------
Event: time 1615552644.956617, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
Event: time 1615552644.956617, -------------- SYN_REPORT ------------
Event: time 1615552645.468571, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 1615552645.468571, -------------- SYN_REPORT ------------
Event: time 1615552645.675356, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
Event: time 1615552645.675356, -------------- SYN_REPORT ------------
Event: time 1615552646.023229, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 1615552646.023229, -------------- SYN_REPORT ------------
Event: time 1615552646.161420, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
Event: time 1615552646.161420, -------------- SYN_REPORT ------------
Please let me know if there's something better than this one.
Thanks,
Bogdan