Skip to content

Commit 0426525

Browse files
committed
hid: apple: Add DockChannel HID transport driver
This adds the transport layer required to communicate with the internal keyboard and trackpad on Apple M2 and later MacBooks. It facilitates HID communication via the DockChannel FIFO and the "MTP" coprocessor. Signed-off-by: Michael Reeves <[email protected]>
1 parent aa79b6c commit 0426525

5 files changed

Lines changed: 1029 additions & 0 deletions

File tree

drivers/hid/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,8 @@ source "drivers/hid/surface-hid/Kconfig"
14421442

14431443
source "drivers/hid/intel-thc-hid/Kconfig"
14441444

1445+
source "drivers/hid/apple-dockchannel-hid/Kconfig"
1446+
14451447
endif # HID
14461448

14471449
# USB support may be used with HID disabled

drivers/hid/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,5 @@ obj-$(CONFIG_AMD_SFH_HID) += amd-sfh-hid/
176176
obj-$(CONFIG_SURFACE_HID_CORE) += surface-hid/
177177

178178
obj-$(CONFIG_INTEL_THC_HID) += intel-thc-hid/
179+
180+
obj-$(CONFIG_APPLE_DOCKCHANNEL_HID) += apple-dockchannel-hid/
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
menu "Apple DockChannel HID support"
3+
depends on APPLE_DOCKCHANNEL
4+
5+
config APPLE_DOCKCHANNEL_HID
6+
tristate "HID over DockChannel transport layer for Apple Silicon SoCs"
7+
depends on APPLE_DOCKCHANNEL && INPUT && OF && HID
8+
help
9+
This provides a HID transport layer over the Apple DockChannel
10+
interface. This is required to support the internal keyboard
11+
and trackpad on M2 and later MacBook models.
12+
13+
Say Y here if you have an M2 or later MacBook.
14+
15+
endmenu
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
#
3+
# Makefile for DockChannel HID transport drivers
4+
#
5+
6+
obj-$(CONFIG_APPLE_DOCKCHANNEL_HID) += apple_dockchannel_hid.o

0 commit comments

Comments
 (0)