From 5ccc09add9f5c4d120fed2e1957949b2389eab0d Mon Sep 17 00:00:00 2001 From: Allan Clempe Date: Thu, 3 Dec 2026 00:57:07 +1000 Subject: [PATCH] arm64: dts: apple: t6041-j616c: enable MTP touch states On the MacBook Pro 16-inch M4 Max (J616c), the MTP trackpad runs the AppleMTPFirmwareMac-6310.85.7 firmware family whose standard 38-byte header contact records carry the contact touch state in the high byte and the firmware path ID in the low byte of the first word (the same format verified on J813 with firmware 6310.85.7 and J815 with 6300.85.6, and already used by hid-magicmouse for T6041 palm contact IDs). Without apple,touch-states on the multi-touch node, hid-magicmouse leaves msc->mtp_states false: - off-surface approaching/leaving contacts (states 1, 2, 5, 6) with non-zero touch_major are reported as active evdev touches; - magicmouse_raw_event_mtp() falls back to input_mt_assign_slots() with dmax = 0 instead of input_mt_get_slot_by_key(), handing an active slot over to another contact whenever one lifts as another lands in the same 8 ms frame, which libinput logs as "kernel bug: Touch jump detected and discarded."; - out-of-range (state 7) records do not clear msc->mtp_palm_ids before path-ID reuse. Add apple,touch-states to the J616c multi-touch node alongside its firmware-name, matching t8142-j813.dts and t8142-j815.dts. Signed-off-by: Allan Clempe --- arch/arm64/boot/dts/apple/t6041-j616c.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6041-j616c.dts b/arch/arm64/boot/dts/apple/t6041-j616c.dts index ccdd779a5e580..fe4bc1f051572 100644 --- a/arch/arm64/boot/dts/apple/t6041-j616c.dts +++ b/arch/arm64/boot/dts/apple/t6041-j616c.dts @@ -21,6 +21,11 @@ &mtp_hid { multi-touch { firmware-name = "apple/tpmtfw-j616c.bin"; + /* + * Standard MTP records carry touch state and path ID in the + * first word (firmware 6310.85.7, matching J813/J815). + */ + apple,touch-states; }; };