Skip to content

arm64: dts: apple: t8132-j604: cold-start the MTP - #1367

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
aeries0x:j604-mtp-pr
Nov 10, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
aeries0x:j604-mtp-pr

Conversation

@aeries0x

@aeries0x aeries0x commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

My J604's iBoot leaves the MTP stopped, where the J713's runs it: its ASC CPU_CONTROL already reads 0 in the
first-stage loader (an m1n1 stage 1 on a stub the installer didn't make). aura ran the T8132 DAPF handoff only on the J713, and even there it skips the MTP (no PMGR power state on T8132), so nothing programmed the dart-mtp DAPF and Linux could not start the MTP (RTKit: IOP power acknowledgment failed: -62): no internal keyboard or trackpad.

This change to t8132-j604.dts:

  • asks the loader to program the dart-mtp filter for the halted MTP (linux-enablement-mac,dapf-halted-handoff = "/arm-io/mtp" in /chosen), and
  • cold-starts the MTP on DART stream 0, as the M4 Pro/Max trees do: mtp and mtp_hid on stream 0, streams 1-3
    remapped to 0 (the J604 ADT's dart-mtp remap is 1 2 3).

It needs aurora-silicon/aura#137, which accepts the J604 in the T8132 DAPF handoff and adds the property. Without it the
property is ignored and the MTP stays dead as before. The J713, J715 and other dtbs are unchanged.

include/linux/soc/apple/t8132.h says the J604's iBoot leaves the MTP running like the Airs'. On my J604 it doesn't
(read in the first-stage loader), so that comment may want a correction. I left apple_t8132_live_mtp() as it is: with
the MTP stopped its paths don't trigger (no apple,rtkit-handoff, the DART isn't retained in bypass).

Testing

J604 (Mac16,1), macOS 26.6.2 firmware, integration/aurora e220b4d plus this commit, tethered RAM-only boot (rebased onto ce2060e for this PR, no
conflicts):
the MTP cold-starts ("MTP Says Hello", firmware 5340.61.4), the trackpad firmware loads ("Touch interface ready"),
and the internal keyboard and trackpad work at the login. The test build also carried #1329 (G16 layout) and local
changes outside this file's MTP nodes (read-only RTC/NVMEM, sound nodes off, the SMC power-off write limited).

Assisted-by: LLM

The J713 tree keeps the MTP on DART stream 1, for the MTP its iBoot
leaves running. The J604's iBoot leaves the MTP stopped: its ASC
CPU_CONTROL already reads 0 in the first-stage loader. No loader
programmed the dart-mtp DAPF (aura's T8132 handoff ran only on the
J713, and the MTP has no PMGR power state there, so it is skipped),
and Linux could not start it ("RTKit: IOP power acknowledgment failed:
-62"): no internal keyboard or trackpad.

Ask the loader to program the dart-mtp filter for the halted MTP
(linux-enablement-mac,dapf-halted-handoff, aura's halted-consumer
writer) and let Linux cold-start it on stream 0, as the M4 Pro and Max
trees do: mtp and mtp_hid on stream 0, and streams 1-3 remapped to 0,
as the J604 ADT's dart-mtp "remap" (1 2 3) says.

Tested on a J604 (26.6.2): the MTP starts, the trackpad firmware
loads, and the internal keyboard and trackpad work.

Assisted-by: LLM
Signed-off-by: Friedrich <261542475+aeries0x@users.noreply.github.com>
@aeries0x

Copy link
Copy Markdown
Contributor Author

A note on scope, found on an installer-made J604 install: the cold start in this PR works only if no earlier stage has
run the MTP. The release U-Boot does (stdio probes the MTP keyboard and stops it QUIESCED at OS entry), and Linux's start
then crashes the firmware. aurora-silicon/u-boot#44 keeps U-Boot off the J604's MTP; with it the installed system has
its keyboard and trackpad. Nothing changes in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants