From 03884056556a2680b41f2e3b5bebcf878f56dc6c Mon Sep 17 00:00:00 2001 From: Kazuhide Takahashi Date: Sat, 21 Nov 2026 23:15:11 +0000 Subject: [PATCH] arm64: dts: apple: t8132-j715: hand the MTP over as a halted consumer Without U-Boot (stage 1 -> aura -> Linux), nothing keeps the J715's MTP running, so Linux cold-starts it. As on the J604, name /arm-io/mtp in linux-enablement-mac,dapf-halted-handoff so the loader programs its DART filter as for a halted consumer, and put the MTP and its HID on DART stream 0 (streams 1 to 3 remapped to 0) instead of the stream 1 the J713's running MTP is handed over on. Before this, the MTP firmware's first access faulted with "CTE invalid" and the keyboard and trackpad never came up. With U-Boot in the chain, U-Boot has to leave the MTP alone, as on the J604: if it starts the MTP for its keyboard, it stops it again before Linux, and the firmware crashes on Linux's second start. Linux still finds it halted on stream 0. A boot that hands the MTP over running, as the J713 does, would need the J713's stream 1 layout instead. Neither stage 1 -> aura -> Linux on 26.6.2 nor U-Boot with the J715 in its keyboard skip list does that, and it has not been tested. Tested on a J715 with OS firmware 26.6.2 and aura main plus aurora-silicon/aura#429: the MTP says hello, and the keyboard and trackpad work, with no DART faults. Through U-Boot aurora-wip with the J715 in that skip list: the same. Through U-Boot aurora-wip as is: the MTP firmware crashes as on the J604. Signed-off-by: Kazuhide Takahashi --- arch/arm64/boot/dts/apple/t8132-j715.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8132-j715.dts b/arch/arm64/boot/dts/apple/t8132-j715.dts index 3d02f4048027a..e56973cbe1a62 100644 --- a/arch/arm64/boot/dts/apple/t8132-j715.dts +++ b/arch/arm64/boot/dts/apple/t8132-j715.dts @@ -20,6 +20,15 @@ compatible = "apple,j715", "apple,t8132", "apple,arm-platform"; model = "Apple MacBook Air (15-inch, M4, 2025)"; + /* + * Without U-Boot (stage 1 -> aura -> Linux), iBoot leaves the + * J715's MTP stopped, as on the J604, so the loader programs its DART + * filter as for a halted consumer and Linux cold-starts it. + */ + chosen { + linux-enablement-mac,dapf-halted-handoff = "/arm-io/mtp"; + }; + /* * The AOP firmware runs the stream (MCA cluster 0, one serializer for * the six amps); macaudio's J715 variant links the AOP audio @@ -72,7 +81,21 @@ model = "MacBook Air J715 Jack"; }; +/* + * The cold-started MTP runs on DART stream 0, as on the J604, instead of + * the stream 1 the J713's running MTP is handed over on. + */ +&mtp_dart { + apple,remap-streams = <1 0>, <2 0>, <3 0>; +}; + +&mtp { + iommus = <&mtp_dart 0>; +}; + &mtp_hid { + iommus = <&mtp_dart 0>; + multi-touch { firmware-name = "apple/tpmtfw-j715.bin"; };