Repository navigation
Touch ID on the M3 MacBook Air (J613, J615) - #82
Closed
scottjones wants to merge 2 commits into
Closed
scottjones wants to merge 2 commits into
scottjones wants to merge 2 commits into
Conversation
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]>
|
Thanks, Scott. Reviewed and merging. Checked here:
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:
|
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
T8112withwide_dma_mask: true, because the SEP DART aperture is0x100_0000_4000 + 0xffff0000(the T8140 BIT(40) alias). Onlyapple,j613andapple,j615select it. J433, J434 and J504 share the SoC, but their sensor wiring hasn't been checked.t8122.dtsi:sep_dart,sep,sep_mbox, andspi2with a disabledmesanode (mode 1, as on J415, no pinctrl).sepalias, plus the sensor powered frompinctrl_nub 29withapple/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-5and thej613-25g83profile. The kernel is the 2026.10.11.15 package. This branch'sapple-sep.kowas built with the release config and toolchain, and its DTBs were swapped intoboot.bin.sepaliasSEPFW,lpol,ibotprovidedT8122/J613, DART aliasing0x10000004000..0x100ffff3fff, 12 endpoints, hwrngsks: identity keybag provisioned; ref-key created; xART 12 live records, 0 malformedenroll-completed, 6 touchesverify-match; a different fingerverify-no-matchTouch ID: restored 1 enrolled identity;verify-matchTests
python3 -m unittest discoverintools/aurora-sep/tests(DTC = the builtscripts/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 onintegration/aurorawithout this branch (819 tests): thetest_m3_maxCtrl-C survey tests,test_host_entropy,test_refkey_seal_admissionandtest_m3_pro_mesauninstall. After the review fixes (stronger checks intest_t8122_sep.py, two static asserts, comments),test_t8122_sepandtest_t8112_sep_dmapass (7 tests), andmake modules dtbsis clean.Not covered
sudo), and suspend/resume.Documentation/devicetree/bindings/spi/apple,spi.yamldoesn't listapple,t8122-spi.spi1already uses the same compatible pair, so I left the binding for a separate change.install-aurora-sep.shstill says Touch ID isn't supported on M3. On a Mac that already hasapple/mesa_calibration.bin, it won't re-extract the calibration asapple/mesacal-j613.bin. For the test I copied the file across.🤖 Generated with Claude Code