Skip to content

J616s: SEP and Touch ID (T6040) - #498

Merged
RyanTheTide merged 6 commits into
wip/j616s-gpu-parity-20261026from
j616s/sep-20261027
Oct 27, 2026
Merged

RyanTheTide merged 6 commits into
wip/j616s-gpu-parity-20261026from
j616s/sep-20261027

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Touch ID on the 16-inch M4 Pro MacBook Pro (J616s, T6040), on top of wip/j616s-gpu-parity-20261026.

  • dt-bindings: apple,t6041-spi; apple,mesa-fingerprint firmware-name takes an optional second entry, the sensor's signed root-key container.
  • soc: apple: sep: the root-key container's name comes from that second entry. Boards that give only the calibration (J700) keep apple/msrk-j700.bin, so the J700 device tree and its installed file are unchanged.
  • soc: apple: sep: a T6040/J616s profile. iBoot boots the SEP before the AP OS (warm registration), the sensor is the 0x3356 part J700 uses, so the profile is T8140's with J616s's spi2 address and the xART guard on from the first boot.
  • arm64: dts: apple: t6040: the SEP, its DART and mailbox, spi2 with the sensor, and the sep/spi_p/spi2 power states, all from the J616s ADT. t6040-j616s enables Touch ID.

No new module parameters or command-line options: the device tree selects the profile and names the per-device files.

Tested on J616s (26.6.2), tether boot

  • The SEP attaches warm and advertises all 12 endpoints; keybag provisioned; trusted keys seal and unseal (aurora-sep-load: 4 s).
  • xART guard level 1: the existing records are protected, 0 refusals.
  • The sensor authenticates with its sealed root key, the sealed calibration loads, the data-ready interrupt is used, touchid: ready, sensor: online.
  • fprintd (libfprint aurora driver) lists "Apple secure enclave fingerprint sensor"; an enrolment starts and is cancelled cleanly without a finger.
  • Not yet done: a real enrolment and match (needs a finger), and the J700 regression boot for the shared root-key-name change (queued).

Draft until the J700 regression boot passes.

🤖 Generated with Claude Code

The M4 Pro (T6040/T6041) SPI controllers are register compatible with
T8103, like the T6020 and T8140 ones.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Sensors whose enclave session needs a signed root key (the J700 and
J616s part, 0x3356) take it as per-device factory data, like the
calibration. Let firmware-name carry it as an optional second entry so
the board description names it.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
The signed root-key container is per-device data, but its name was
fixed to J700's. Read it from the sensor node's second firmware-name
entry and keep J700's name when the board gives only the calibration,
so the J700 device tree and its installed file keep working unchanged.
Name the file in the error when it cannot be loaded.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
The J616s ADT (26.6.2) describes a SEP that iBoot boots before the AP
OS, an iop-sep,ascwrap-v6 whose DART window starts at the BIT(40)
alias, and the Mesa sensor J700 carries (0x3356) on spi2 at 0x429108000,
8 MHz, chip select 0. So this is a warm-registration platform with
T8140's authenticated sensor session, and the xART guard on from the
first boot because macOS shares the enclave.

Only J616s is matched; the other T6040 Macs' sensor wiring is unchecked.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
From the J616s ADT: the SEP at 0x406600000 with its mailbox at +0x8000
(AIC 666-669), its DART at 0x404c80000 (AIC 676) with the window iBoot
programmed (vm-base 0x10000004000, vm-size 0x3ff00000), and spi2 at
0x429108000 (AIC 1569) with the Mesa sensor child. Add the sep, spi_p
and spi2 power states from the ADT pmgr devices.

The SEP and its DART stay disabled; apple_sep enables them when it
loads.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Give the boot loader the sep alias it reserves the SEP firmware
through, enable the SEP mailbox and spi2, and describe the sensor: NUB
GPIO 53 powers it, AP GPIO 116 is its data-ready line, and its sealed
calibration and root key come from this Mac's own iBoot system
container.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide marked this pull request as ready for review October 27, 2026 14:14
@RyanTheTide
RyanTheTide merged commit eb67e03 into wip/j616s-gpu-parity-20261026 Oct 27, 2026
@RyanTheTide
RyanTheTide deleted the j616s/sep-20261027 branch October 27, 2026 14:14
erikwb pushed a commit to erikwb/linux that referenced this pull request Oct 28, 2026
…ora-silicon#518, aurora-silicon#516, aurora-silicon#519 and aurora-silicon#451

This is the tree of the J616s test kernel 7.3.0-aurora-j616s-batch5, built
from these parents:

- wip/j616s-batch1-20261027 (e1a25b5): the J616s bring-up series
- integration/aurora 647f084 (includes aurora-silicon#498, aurora-silicon#512, aurora-silicon#523 and DJ's G17 merges)
- aurora-silicon#518 ad14f2d: 25G83 tiler growth fix (Jonathan Goyvaerts)
- aurora-silicon#516 31340ab: T6040 two-lane DP pin D beside USB3
- aurora-silicon#519 d769aaf: tipd reconcile of firmware-entered J616s DP Alt Mode
- aurora-silicon#451 0d43a7f: J616s external displays (František Balázsy)

Resolution notes:
- aurora-silicon#451's display code supersedes the older aurora-silicon#451 copy carried by batch1,
  including its desktop 26.6 adaptive sync. Batch1's callback guard,
  ProMotion presentation timestamps, minRR=0 restore and swap watchdog stay.
- The display gate finds a Type-C route's PHY by its typecN name, so aurora-silicon#451's
  dcpext0 route@0 is not enabled on a tether whose ATC0 PHY is disabled.
- aurora-silicon#516's pin D and aurora-silicon#519's tipd reconcile are kept as in the J616s series.
  Batch2's selftest fixture reconcile for the G17 owner and CLPC fixtures is
  part of this tree.

Tested on the J616s with the follow-up commits: boots with 0 WARN, external
display at 1920x1080@180 through DP Alt Mode, 20/20 mode switches and
15/15 DPMS cycles with no new kernel errors.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
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.

1 participant