Skip to content

Commit c6e4669

Browse files
committed
Merge branch 'refs/heads/bits/090-spi-hid' into asahi-wip
2 parents c6bc42c + 1a0d1e7 commit c6e4669

20 files changed

Lines changed: 3768 additions & 77 deletions

drivers/hid/Kconfig

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ config HID_APPLE
129129
tristate "Apple {i,Power,Mac}Books"
130130
depends on LEDS_CLASS
131131
depends on NEW_LEDS
132-
default !EXPERT
132+
default !EXPERT || SPI_HID_APPLE
133133
help
134134
Support for some Apple devices which less or more break
135135
HID specification.
@@ -662,11 +662,13 @@ config LOGIWHEELS_FF
662662

663663
config HID_MAGICMOUSE
664664
tristate "Apple Magic Mouse/Trackpad multi-touch support"
665+
default SPI_HID_APPLE
665666
help
666667
Support for the Apple Magic Mouse/Trackpad multi-touch.
667668

668669
Say Y here if you want support for the multi-touch features of the
669-
Apple Wireless "Magic" Mouse and the Apple Wireless "Magic" Trackpad.
670+
Apple Wireless "Magic" Mouse, the Apple Wireless "Magic" Trackpad and
671+
force touch Trackpads in Macbooks starting from 2015.
670672

671673
config HID_MALTRON
672674
tristate "Maltron L90 keyboard"
@@ -1019,7 +1021,7 @@ config HID_SONY
10191021
* Guitar Hero PS3 and PC guitar dongles
10201022

10211023
config SONY_FF
1022-
bool "Sony PS2/3/4 accessories force feedback support"
1024+
bool "Sony PS2/3/4 accessories force feedback support"
10231025
depends on HID_SONY
10241026
select INPUT_FF_MEMLESS
10251027
help
@@ -1316,4 +1318,8 @@ source "drivers/hid/amd-sfh-hid/Kconfig"
13161318

13171319
source "drivers/hid/surface-hid/Kconfig"
13181320

1321+
source "drivers/hid/spi-hid/Kconfig"
1322+
1323+
source "drivers/hid/dockchannel-hid/Kconfig"
1324+
13191325
endif # HID_SUPPORT

drivers/hid/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,7 @@ obj-$(INTEL_ISH_FIRMWARE_DOWNLOADER) += intel-ish-hid/
167167
obj-$(CONFIG_AMD_SFH_HID) += amd-sfh-hid/
168168

169169
obj-$(CONFIG_SURFACE_HID_CORE) += surface-hid/
170+
171+
obj-$(CONFIG_SPI_HID_APPLE_CORE) += spi-hid/
172+
173+
obj-$(CONFIG_HID_DOCKCHANNEL) += dockchannel-hid/
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
menu "DockChannel HID support"
3+
depends on APPLE_DOCKCHANNEL
4+
5+
config HID_DOCKCHANNEL
6+
tristate "HID over DockChannel transport layer for Apple Silicon SoCs"
7+
default ARCH_APPLE
8+
depends on APPLE_DOCKCHANNEL && INPUT && OF && HID
9+
help
10+
Say Y here if you use an M2 or later Apple Silicon based laptop.
11+
The keyboard and touchpad are HID based devices connected via the
12+
proprietary DockChannel interface.
13+
14+
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_HID_DOCKCHANNEL) += dockchannel-hid.o

0 commit comments

Comments
 (0)