As announced in this article USB HID are support by Toradex ARM Computer Modules.
But the Generic USB HID Driver is only available for WinCE.
Is there a Generic USB HID Driver for Linux too on iMX6 ?
Hi
Is there a Generic USB HID Driver for Linux
In Linux that is a job for the kernel and can be selected by the kernel configuration.
For all our kernels the relevant driver is configured. IIRC as a kernel module.
Once the USB subsystem enumerates a USB HID device the driver will be loaded and should provide your touch as a new input device.
You could start the command line tool ‘evtest’ to get a list of the currently recognized input devices. Choose one from the list to log the events generated by it to the console:
root@colibri-imx6:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: stmpe-ts
/dev/input/event1: gpio-keys.29
/dev/input/event2: USB Mouse
Select the device event number [0-2]: 0
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "stmpe-ts"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 0
Min 0
Max 4095
Event code 1 (ABS_Y)
Value 0
Min 0
Max 4095
Event code 24 (ABS_PRESSURE)
Value 0
Min 0
Max 255
Properties:
Testing ... (interrupt to exit)
Event: time 1481636247.292062, type 3 (EV_ABS), code 0 (ABS_X), value 2453
Event: time 1481636247.292062, type 3 (EV_ABS), code 1 (ABS_Y), value 1929
Event: time 1481636247.292062, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 44
Event: time 1481636247.292062, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Max