HID: magicmouse: add support for Macbook trackpads
authorJanne Grunau <j@jannau.net>
Thu, 16 Dec 2021 00:17:48 +0000 (01:17 +0100)
committerHector Martin <marcan@marcan.st>
Sat, 19 Feb 2022 08:05:59 +0000 (17:05 +0900)
commit1831e5af2cd9d0fb62fc573a4ac553433457e4d2
treef0b119c819723e7af62fc24919d48b22bb72e127
parent184fb86a28170eb1d6bc59b66b3707678f9dbbf5
HID: magicmouse: add support for Macbook trackpads

The trackpads in Macbooks beginning in 2015 are HID devices connected
over SPI. On Intel Macbooks they are currently supported by applespi.c.
This chang adds support for the trackpads on Apple Silicon Macbooks
starting in late 2020. They use a new HID over SPI transport driver.
The touch report format differs from USB/BT Magic Trackpads. It is the
same format as the type 4 format supported by bcm5974.c.

Signed-off-by: Janne Grunau <j@jannau.net>
drivers/hid/Kconfig
drivers/hid/hid-magicmouse.c