Skip to content

arm64: dts: apple: t8142-j704: PMP always-on, trackpad actuator, MCC - #1847

Draft
dmitzsaz wants to merge 3 commits into
aurora-silicon:mainfrom
dmitzsaz:pr/j704-dt-followup
Draft

dmitzsaz wants to merge 3 commits into
aurora-silicon:mainfrom
dmitzsaz:pr/j704-dt-followup

Conversation

@dmitzsaz

Copy link
Copy Markdown
Contributor

Three DT-only follow-ups to #1231 that bring the J704 in line with what the M5 Airs got this week. The drivers are already in integration/aurora; each change mirrors the Air commit for the same die.

Tested on: the PMP change on J704 with the same property on an earlier tree (one clean s2idle and wake, display, Wi-Fi and Bluetooth back). The actuator and the MCC are not tested on the J704 yet; the PR stays a draft until they are.

scripts/dtc/apple-dt-check.sh against a34d26c: 137 DTBs, no new warnings and none removed. The J704 keeps only the disp0_piodma alias warning it already had.

Prepared with Claude Opus 5.5.

The PMP firmware keeps running DCS and fabric DVFS while the system is
up. The J704 ps_pmp domain is not marked always-on, so genpd gates it
at s2idle and the PMP takes an SError in its own firmware. The J813
got the same fix in ceaab64 ("arm64: dts: apple: t8142-j813: Keep
the PMP power domain on"); T8132 and T8140 mark ps_pmp always-on too.

Tested on J704 with the same property on an earlier tree: the first
s2idle no longer crashes the PMP, and the machine wakes with the
display, Wi-Fi and Bluetooth back.

Signed-off-by: Dmitriy <[email protected]>
Assisted-by: LLM
The J704's MTP firmware offers the trackpad's haptic engine as
interface 4 "actuator", as on the M5 MacBook Airs:

  Initializing comm interface <4- "actuator">

Without a node for it, dockchannel-hid ignores the interface and the
click stays firmware-driven, with no Force Touch stage. Describe it as
d2db3f8 ("arm64: dts: apple: t8142-j813-j815: Add the trackpad
actuator") does for the Airs.

Signed-off-by: Dmitriy <[email protected]>
Assisted-by: LLM
The J704 ADT's mcc,t8142 node matches the J815's: one AMCC
(amcc-count 1, amcc-reg-idx 1), amcc-plane-enable-mask 0xf, reg[1] at
0x220000000 spanning the four planes 0x40000 apart. Enable the
t8142.dtsi node from 167e403 ("arm64: dts: apple: t8142: Add the
MCC (system level cache) node"). The boot loader turns allocation on;
the driver checks it and flushes the cache on shutdown.

Signed-off-by: Dmitriy <[email protected]>
Assisted-by: LLM
@RyanTheTide

Copy link
Copy Markdown
Contributor

Blockers: 2.

  1. Commits e30a7ce, b484d69, a54463e: each ends with an Assisted-by: LLM trailer. Commits should carry only the human Signed-off-by; drop the trailer from the commits (amend onto a new branch, no force push) and put one Assisted-by: LLM (<Vendor>:<Model>) line as the last line of the PR body instead of "Prepared with Claude Opus 5.5."
  2. No J704 run on this head. The PMP change ran with "the same property on an earlier tree". The actuator (t8142-j704-peripherals.dtsi:262) and the MCC enable (t8142-j704.dts:318) have not run on a J704 at all. The DT itself matches what the J813/J815 carry on integration/aurora (actuator { }; in t8142-j813-j815.dtsi:342, &mcc { status = "okay"; } in t8142-j813.dts:303), and the ps_pmp apple,always-on mirrors ceaab64. So the open question is only whether each one behaves on this machine. The MCC enable matters most, because it switches on cache maintenance in a driver that has only run on the Airs.

HW row: J704, integration/aurora head + these 3 commits on the default command line: the MCC driver binds and reports the loader-enabled ways (or refuses cleanly), dockchannel-hid brings up interface 4 "actuator" and a Force Touch press reports the second stage, 3 s2idle cycles with no PMP SError and display/Wi-Fi/BT back, a clean shutdown (MCC flush path); 0 AVC, 0 failed units, no new kernel errors versus the same head without the series.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor

The three changes still apply cleanly to the current integration/aurora tip 110861f, and none of them is on the tip yet: ps_pmp has no apple,always-on, there's no actuator node, and &mcc is not enabled on the J704. The DT matches what the J813/J815 already carry. @dmitzsaz what's needed now is a J704 run of this head (the tip plus these 3 commits): the MCC binding or refusing cleanly, interface 4 actuator with a Force Touch second stage, 3 s2idle cycles without a PMP SError, and a clean shutdown.

Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches; CHECK_DTBS over every Apple DTB: no new warnings against the tip.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@dmitzsaz checking open drafts today. To come out of draft, this still needs:

  • A test run at the current head on a Mac with the hardware it touches, then mark it ready for review.

If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done.

@chrisdavedev

Copy link
Copy Markdown

J704 run of the three changes in this PR (MacBook Pro 14" M5, T8142, board id 0x22), on a second J704.

Setup — not the tip: the three changes were applied with fdtput to the J704 DTB in Aurora's shipped boot image (m1n1/boot-ctxr.bin), and booted with the Aurora distribution kernel, not integration/aurora + this head.

  • Stub: macOS 26.6.2 (25G83), installed by Aurora Installer 0.1.0 Alpha 23, Fedora 44
  • aura 1.0.0b14-g3ff77894; U-Boot: u-boot#51 at 91e33f54 (apple_m1_defconfig)
  • Kernel: 7.3.0-40.fc44.aurora.aarch64 (16K pages); boot to multi-user.target with the display drivers blacklisted
  • Local DT changes that are not part of this PR: the PCIe port 2 DART (iommu@48a000000) disabled and 0x200 dropped from the pcie iommu-map, which avoids the SError that arm64: dts: apple: t8142-j704: Keep the PCIe host to the trained port 0 #2582 addresses; apple,t8132-nvme-ans2 added to the NVMe compatible
  • Decompiled DTB diff against the shipped DTB: only &mcc { status = "okay"; }, apple,always-on on power-controller@598 (pmp), and actuator { }; under input@8000

MCC: binds.

apple-mcc 220000000.memory-controller: system level cache allocation enabled on 4 planes

Actuator (interface 4): binds, and the Force Touch second stage works.

RTKit: syslog message: actuator_cr.c:84: Actuator interface configuration completed
dockchannel-hid 394b30000.input: Interface actuator is now ready
RTKit: syslog message: actuator.c:71: Actuator ready
hid-apple-mtp-haptic 0019:05AC:0359.0004: hidraw2: HOST HID v5.10 Device [Apple MTP actuator] on 394b30000.input.4 (actuator)
RTKit: syslog message: actuator_cr.c:133: Intercepted 0x21 click handoff: 00
magicmouse 0019:05AC:0359.0002: initialised MTP haptics

Without the node, the trackpad bound to hid-generic and advertised no FF capability. With it, magicmouse binds and the multi-touch evdev reports FF bits (8000 0). By hand: normal clicks give haptic feedback, and pressing harder gives the second-stage deep click. A 2-minute evdev capture shows BTN_LEFT down/up pairs and ABS_MT_PRESSURE up to 1066.

s2idle with the PMP always on: 6 of 6 passed, with no PMP SError.

  • 3 cycles at pm_test=platform (runs through noirq, then resumes after 5 s), all rc=0
  • 3 real s2idle cycles woken from the internal keyboard (about 16 min, 29 s and 2 min asleep), all rc=0
  • suspend_stats: 6 success, 0 fail. pm_genpd_summary shows pmp on before and after every cycle
  • 0 SError lines and 0 kernel err or higher for the whole boot. USB came back after every wake (a hub on the left-front port with cdc_ncm Ethernet), with no replug

Shutdown: clean, twice. Each systemctl poweroff reached poweroff.target, then systemd-shutdown synced and stopped, with no kernel errors. Both times the Mac stayed off until the power button was pressed. No failed units except my own evdev capture unit, which exited on its timeout. The only err journal lines are SELinux (permissive) denials for a debug sshd I run from /run, unrelated to this change.

Not covered: the integration/aurora tip with this head, and the 27.2 stub. I can rerun on 27.2 after reinstalling.

Assisted-by: LLM (Anthropic:Claude Opus 5.5)

@rjianwei

rjianwei commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Tested on MacBook Pro (14-inch, M5, 24 GB, apple,j704) running macOS 27.2 stub, Aura Stage 2 (1.0.0b17-g378497cf), and ALARM 7.3.0-1-46-ARCH (applied on top of #3782):

  • PMP apple,always-on (ps_pmp): Verified power-controller@598/apple,always-on in live DT. Ran systemctl suspend (s2idle) and resumed cleanly (PM: suspend entry (s2idle) -> PM: suspend exit) with 0 apple_pmp crashes (previously apple_pmp 380500000.pmp: RTKit: co-processor has crashed / PMP firmware crashed occurred on s2idle).
  • Trackpad actuator: dockchannel-hid bound interface 4 (actuator), hid-apple-mtp-haptic attached ([Apple MTP actuator]), and magicmouse logged initialised MTP haptics with Force Touch click handoff working before and after s2idle.
  • MCC (&mcc): apple-mcc 220000000.memory-controller: system level cache allocation enabled on 4 planes.
  • 0 failed systemd units, aurora-stage2-commit succeeded cleanly.

J704: PASS.

This branch has not been deployed

No deployments
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.

4 participants