Skip to content

HID: add initial support for Goodix HID-over-SPI touchscreen

Charles Wang linux-devicetree linux-input lkml 8 versions – NAK

Status from this message: NAK, you duplicate again the binding. You cannot have bus-flavors.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest2 patches 9 repliesNAK
  2. v72 patches 10 repliesSuperseded
  3. v62 patches 4 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v52 patches8 repliesSuperseded
v42 patches5 repliesSuperseded
v31 patch5 repliesSuperseded
v21 patch5 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v8 from the cover letter

- Fix devicetree compatible conflict problem.

Patches in v8

#Subject and filesSizeRepliesApplied
1/2HID: hid-goodix: Add Goodix HID-over-SPI driverdrivers/hid/Kconfig drivers/hid/Makefile drivers/hid/hid-goodix-spi.c+817 -00 replies
2/2dt-bindings: input: Goodix SPI HID TouchscreenDocumentation/devicetree/bindings/input/goodix,gt7986u.yaml+71 -09 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDmitry TorokhovConor Dooley
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/2] HID: add initial support for Goodix HID-over-SPI touchscreen

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)

---
Changes in v8:
- Fix devicetree compatible conflict problem.

Changes in v7:
- Add Reviewed-by info.

Changes in v6:
- Remove spi_shutdown() method.
- Use devm_kmalloc to alloc event_buf.

Changes in v5:
- Add additional descriptive information to the dt-binding file.
- Fixed build warnings reported by kernel test robot.

Changes in v4:
- Allocate memory based on the report information.
- Added a new function goodix_get_event_report() to retrieve report data, reducing memory copy operations and avoiding the use of reg_rw_lock.
- Add low power control operations.
- Implemented power management operations.
- Introduced GOODIX_HID_STARTED to record the current device operating state.
- Add OF match table.

Changes in v3:
- Renamed the driver file to hid-goodix-spi.c.
- Mentioned in the commit message that this implementation is not compatible with Microsoft's HID-over-SPI protocol.
- Modified the driver to fetch the GOODIX_HID_REPORT_ADDR from device properties.
- Add a lock to prevent concurrent hid feature request operations.
- Optimized the SPI read/write functions by reducing the number of malloc calls.

Changes in v2:
- Fixed build warnings reported by kernel test robot

---
Charles Wang (2):
HID: hid-goodix: Add Goodix HID-over-SPI driver
dt-bindings: input: Goodix SPI HID Touchscreen

 .../bindings/input/goodix,gt7986u.yaml        |  71 ++
 drivers/hid/Kconfig                           |   6 +
 drivers/hid/Makefile                          |   1 +
 drivers/hid/hid-goodix-spi.c                  | 810 ++++++++++++++++++
 4 files changed, 888 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/goodix,gt7986u.yaml
 create mode 100644 drivers/hid/hid-goodix-spi.c
Signature · 1 line
2.43.0