• Charles Wang's avatar
    HID: hid-goodix: Add Goodix HID-over-SPI driver · 75e16c8c
    Charles Wang authored
    This patch introduces a new driver to support the Goodix GT7986U
    touch controller. This device is not compatible with Microsoft's
    HID-over-SPI protocol and therefore needs to implement its own
    flavor. The data reported is packaged according to the HID
    protocol but uses SPI for communication to improve speed. This
    enables the device to transmit not only coordinate data but also
    corresponding raw data that can be accessed by user-space programs
    through the hidraw interface. The raw data can be utilized for
    functions like palm rejection, thereby improving the touch experience.
    
    Key features:
    - Device connection confirmation and initialization
    - IRQ-based event reporting to the input subsystem
    - Support for HIDRAW operations (GET_REPORT and SET_REPORT)
    Reviewed-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    Signed-off-by: default avatarCharles Wang <charles.goodix@gmail.com>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
    75e16c8c
hid-goodix-spi.c 21 KB