Skip to content

Commit a0e4d3f

Browse files
committed
soc: apple: Add DockChannel driver
This patch adds a driver for Apple's DockChannel protocol which is a hardware FIFO found on Apple Silicon devices. Notably, it used to enable communication with the internal trackpad and keyboard on MacBooks with an M2 and later chipset. Co-developed-by: Hector Martin <[email protected]> Signed-off-by: Hector Martin <[email protected]> Signed-off-by: Michael Reeves <[email protected]>
1 parent 0faa3d2 commit a0e4d3f

4 files changed

Lines changed: 589 additions & 0 deletions

File tree

drivers/soc/apple/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ if ARCH_APPLE || COMPILE_TEST
44

55
menu "Apple SoC drivers"
66

7+
config APPLE_DOCKCHANNEL
8+
tristate "Apple DockChannel FIFO"
9+
depends on ARCH_APPLE || COMPILE_TEST
10+
help
11+
DockChannel is a hardware FIFO used on Apple Silicon SoCs for
12+
communication between the application processor and various
13+
coprocessors. It is the primary transport for the internal
14+
keyboard and trackpad on M2 and later MacBook models.
15+
16+
Say Y here if you have an M2 or later Apple MacBook.
17+
718
config APPLE_MAILBOX
819
tristate "Apple SoC mailboxes"
920
depends on PM

drivers/soc/apple/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

3+
obj-$(CONFIG_APPLE_DOCKCHANNEL) += apple-dockchannel.o
4+
apple-dockchannel-y = dockchannel.o
5+
36
obj-$(CONFIG_APPLE_MAILBOX) += apple-mailbox.o
47
apple-mailbox-y = mailbox.o
58

0 commit comments

Comments
 (0)