Repository navigation
soc: apple: sep + dts: Touch ID on the M2 Max (t6021) - #58
Merged
DjDeveloperr merged 3 commits intoSep 29, 2026
Merged
Conversation
profile::detect() matched apple,t8103, apple,t6020, apple,t6000 and apple,t8140, so an M2 Max returned ENODEV. Module init discarded that error, which left the apple,sep node disabled with nothing probed and nothing logged -- indistinguishable from a driver that started cleanly. The M2 Max needs no constants of its own. t6020.dtsi is written as a cut-down t6021: it includes t6021.dtsi and disables the parts the smaller die lacks. Both parts pull in t602x-die0.dtsi, which places the SEP at 0x396400000, its DART at 0x394ac0000 and the same four mailbox interrupts on either die, and t602x-j414-j416.dtsi already carries the sep alias for j414c alongside j414s. So map apple,t6021 onto T6020. Bootstrap stays WarmRegister and dart_range_required stays true, both inherited from T6020, so the existing gate still applies the SEP/DART changeset on this platform. Also log the unmatched-SoC case instead of swallowing it, so the next unlisted SoC says so rather than failing silently. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The Touch ID sensor sits on spi2, chip-select 0, on the T602x die as on T600x, but t602x-die0.dtsi had no node for it, so no M2 Pro/Max board could describe the sensor and the SEP driver's SPI side never bound. Add it under spi2 with the same constants as the t600x node: 8 MHz, SPI mode 2 (spi-cpol), compatible apple,mesa-fingerprint. It ships disabled; boards enable it with their own power and data-ready lines. Signed-off-by: Scott Jones <[email protected]> Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…sensor From the J414c platform device tree (/arm-io/spi2/mesa): the sensor is on spi2 chip-select 0 at 8 MHz, its power line is gpio0 pin 122 (function-mesa_pwr, active high) and its data-ready line is pin 121 on the same controller (phandle 163, gpio,t8101 at 0x39b028000, which is pinctrl_ap). These are the lines J414s uses. Describe them in the node so the driver takes the power GPIO and the data-ready interrupt from the device tree rather than the J414s-only fallback. Tested on a MacBook Pro 14" M2 Max (J414c), OS firmware 13.5, with the m1n1 SEP warm-preservation guard: the sensor binds at 8 MHz in mode 2 with interrupt-driven capture, fprintd enrolment completes and fprintd-verify reports verify-match. Signed-off-by: Scott Jones <[email protected]> Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
chriskearney
force-pushed
the
sep-j414c-mesa
branch
from
September 29, 2026 22:00
8633c8e to
e69faf4
Compare
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.
Touch ID working end to end on the M2 Max. Three commits, in dependency order — the middle two are authored by @scottjones, who found the gap and confirmed the result on hardware.
soc: apple: sep: run the T6020 profile on the M2 Max (t6021)arm64: dts: apple: t602x: add the Mesa fingerprint sensor on spi2arm64: dts: apple: t6021-j414c: enable spi2 and the Mesa fingerprint sensorWhy all three
They are only useful together, which is why they are one series rather than three PRs.
profile::detect()matched t8103, t6020, t6000 and t8140, so an M2 Max returnedENODEV. Module init discarded that error, leaving theapple,sepnode disabled with nothing probed and nothing logged — indistinguishable from a driver that started cleanly. That is worth fixing on its own; it cost a day of debugging before anyone realised the driver had never run.But with the SEP attaching, Touch ID still could not work: no t602x board describes the Mesa sensor — not J414s either — so
spi2stayed disabled andapple-mesanever bound. Scott's two commits add the node, disabled, tot602x-die0.dtsiand enable it on J414c.The M2 Max needs no constants of its own
t6020.dtsiis written as a cut-downt6021.dtsiand#includes it; both pull int602x-die0.dtsi, so the SEP, its DART and the SPI controller sit at the same addresses with the same interrupts on either die, andt602x-j414-j416.dtsialready carries thesepalias for J414c. Mappingapple,t6021ontoT6020is therefore the whole change.The sensor constants match the J414c platform device tree and are identical on J414s:
spi2chip select 0, 8 MHz, SPI mode 2 (spi-cpolalone), power on pin 122, data-ready on pin 121, 20 ns CS setup and hold. Those are also exactly the values theT6020profile already carries inprofile.rs, so the profile and the device tree now agree rather than the profile driving the controller by raw base address alone.Evidence
Scott, on a MacBook Pro 14" M2 Max (J414c), OS firmware 13.5, with the m1n1 warm-registration guard in place:
Independently, the t6021 commit has been in shipped test builds since 29 Sep and the
apple,t6021match is confirmed present in the builtapple-sep.ko; the M1 path is unaffected and still cold-boots normally (TZ0 → IMG4 → 7 endpoints) on j313.What this does not claim
0x6on at least one machine, so login should stay password-based for now. That is an enclave-side issue separate from this series.firmware-nameis not set on J414c. j313, j293 and j316s each setapple/mesacal-<board>.bin; without it the driver uses the genericapple/mesa_calibration.bin. Scott's machine works on the fallback, so this is a consistency question for you rather than a bug — happy to add it if you would prefer the convention followed.Risk
The driver change is one
detect()arm plus a log line on the previously silent path. The rest is device-tree only: other t602x boards gain a disabled node and nothing else, and reverting restores the previous DTBs. On J414c the kernel now claims pins 122 and 121 and powersspi2.🤖 Generated with Claude Code