Skip to content

Touch ID on the M3 MacBook Air (J613, J615) - #82

Closed
scottjones wants to merge 2 commits into
omacom:integration/aurorafrom
scottjones:t8122-touchid
Closed

scottjones wants to merge 2 commits into
omacom:integration/aurorafrom
scottjones:t8122-touchid

Conversation

@scottjones

@scottjones scottjones commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Drafted with an AI assistant (Claude Code); I reviewed it before opening. The commits carry Assisted-by: Claude:claude-opus-5-5, and Grok cross-reviewed the series before it was opened; its findings are fixed.

Adds Touch ID on the 13" and 15" M3 MacBook Air (J613, J615): a T8122 SEP profile and the SEP, SEP DART, SEP mailbox, spi2 and Mesa sensor nodes. Tested end to end on a J613. Results and logs are in #79.

Commits

  1. soc: apple: sep: add a T8122 (MacBook Air M3) platform profile. This is T8112 with wide_dma_mask: true, because the SEP DART aperture is 0x100_0000_4000 + 0xffff0000 (the T8140 BIT(40) alias). Only apple,j613 and apple,j615 select it. J433, J434 and J504 share the SoC, but their sensor wiring hasn't been checked.
  2. arm64: dts: apple: t8122: describe the SEP and the J613/J615 Mesa sensor.
    • t8122.dtsi: sep_dart, sep, sep_mbox, and spi2 with a disabled mesa node (mode 1, as on J415, no pinctrl).
    • J613 and J615 board files: the sep alias, plus the sensor powered from pinctrl_nub 29 with apple/mesacal-<board>.bin.
    • tools/aurora-sep/tests/test_t8122_sep.py: compiles the boards and checks those nodes, including every address, interrupt and the mailbox interrupt order against the ADT. It also checks that the other T8122 boards keep them off, and that only J613/J615 select the profile.

The J613 and J615 device trees describe these identically, apart from phandles.

Hardware results (J613)

The Mac runs system firmware 27.0 and OS firmware 26.6.2, with the m3next Stage 1, m1n1 aurora17-5 and the j613-25g83 profile. The kernel is the 2026.10.11.15 package. This branch's apple-sep.ko was built with the release config and toolchain, and its DTBs were swapped into boot.bin.

Check Result
m1n1 with the sep alias boots; SEPFW, lpol, ibot provided
Read-only load profile T8122/J613, DART aliasing 0x10000004000..0x100ffff3fff, 12 endpoints, hwrng
Keybag sks: identity keybag provisioned; ref-key created; xART 12 live records, 0 malformed
Enrol enroll-completed, 6 touches
Verify verify-match; a different finger verify-no-match
Reboot Touch ID: restored 1 enrolled identity; verify-match
macOS in between macOS Touch ID still unlocks; adding a fingerprint there works; Linux still restores and matches afterwards

Tests

python3 -m unittest discover in tools/aurora-sep/tests (DTC = the built scripts/dtc/dtc) ran 822 tests on the first revision of this branch, including the new T8122 tests, which passed. The same 4 failures and 3 errors appear on integration/aurora without this branch (819 tests): the test_m3_max Ctrl-C survey tests, test_host_entropy, test_refkey_seal_admission and test_m3_pro_mesa uninstall. After the review fixes (stronger checks in test_t8122_sep.py, two static asserts, comments), test_t8122_sep and test_t8112_sep_dma pass (7 tests), and make modules dtbs is clean.

Not covered

  • J615 hardware: none here.
  • PAM (lock screen and sudo), and suspend/resume.
  • The data-ready line, AP GPIO 199 (the same follow-up as T8112 Touch ID: describe data-ready interrupt without breaking working polling #53).
  • Documentation/devicetree/bindings/spi/apple,spi.yaml doesn't list apple,t8122-spi. spi1 already uses the same compatible pair, so I left the binding for a separate change.
  • Installer: install-aurora-sep.sh still says Touch ID isn't supported on M3. On a Mac that already has apple/mesa_calibration.bin, it won't re-extract the calibration as apple/mesacal-j613.bin. For the test I copied the file across.

🤖 Generated with Claude Code

The 13" and 15" M3 MacBook Air (J613, J615) hand over a running SEP like
the M2 Air, so this is T8112's warm registration, shared-memory geometry
and variant-5 key store. Their SEP DART input aperture is
0x100_0000_4000 + 0xffff0000 (ADT vm-base 0x10000004000), the BIT(40) alias
T8140 uses, so the profile also needs the wide DMA mask.

Only J613 and J615 select it: the other T8122 Macs (J433, J434, J504)
share the SoC, but their sensor wiring has not been checked.

Tested on a J613 (system firmware 27.0, OS firmware 26.6.2): the SEP
attaches with 12 endpoints, the identity keybag is provisioned, a finger
enrols and verifies, a different finger is rejected, and the enrolment is
restored after a reboot and after macOS has used Touch ID in between.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Scott Jones <[email protected]>
From the J613 and J615 ADTs in the macOS 26.6.2 (25G83) restore image,
which describe these identically:

- t8122.dtsi: the SEP DART (0x29cac0000, IRQ 324, dma-range at the BIT(40)
  alias as on t8140), the SEP and its mailbox (IRQs 318-321), and spi2
  (0x2a1108000, IRQ 767) with a disabled Mesa sensor in SPI mode 1, as on
  J415. iBoot leaves the spi2 pads muxed and the controller uses its
  native chip select, so there is no pinctrl. The SEP and its DART stay
  disabled; apple_sep enables them.
- t8122-j613.dts, t8122-j615.dts: the sep alias, and the sensor with its
  power on NUB GPIO 29 and the board's calibration file. The data-ready
  line (AP GPIO 199) is left out, so the driver polls, as on J415.

The sep alias makes m1n1 copy SEPFW and the boot manifests; the J613
26.6.2 stub provides all three. test_t8122_sep.py compiles the boards and
checks these nodes, that the other T8122 Macs keep them off, and that only
J613 and J615 select the profile, and the node addresses and interrupts
match the ADT.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Scott Jones <[email protected]>
@chriskearney

Copy link
Copy Markdown

Thanks, Scott. Reviewed and merging.

Checked here:

  • It is on the current integration/aurora, with no conflicts.
  • All arm64 device trees and the apple-sep Rust objects build with the release config and toolchain (Rust 1.93.1, clang 22), with no T8122 warnings.
  • test_t8122_sep and test_t8112_sep_dma pass (7/7). The full aurora-sep suite runs 823 tests and fails only the same 4 test_m3_max Ctrl-C tests as the base, so nothing new.
  • The new addresses and interrupts don't collide with any existing T8122 node.

I'm squash-merging with one combined commit message, as for the earlier contributor PRs. The code is exactly as you wrote it.

Follow-ups before a release carries this:

  1. Suspend/resume on the J613. The Neo needed the GPIO power domain on its SEP so the mailbox survives sleep (611ecc7), and spi2 has no pinctrl, so after a resume the pads rely on how iBoot left them. Could you check that Touch ID still matches after a suspend?
  2. J615. Nobody has run it yet. Once it's released, the SEP attaches and provisions on first boot on every J613/J615 where the SEP service is enabled, and the installer enables it on M3 too.
  3. Installer. The M3 messages still say Touch ID isn't supported, and the M3 Air needs to be taken out of that. With this device tree the installer looks for apple/mesacal-j613.bin (or -j615) and extracts it when it's missing, so calibration should work without copying by hand. That's worth confirming on the next install.

@chriskearney

Copy link
Copy Markdown

Merged through #88 (merge commit 80ee1e9): your two commits, with you as author and the code byte-for-byte as here. I couldn't push to this branch, and the branch rules only allow merge or rebase, so #88 carries the one-sentence change to the second commit's message. Thanks again; the follow-ups in my review comment above still stand.

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