Skip to content

soc: apple: sep + dts: Touch ID on the M2 Max (t6021) - #58

Merged
DjDeveloperr merged 3 commits into
aurora-silicon:feat/sepfrom
chriskearney:sep-j414c-mesa
Sep 29, 2026
Merged

DjDeveloperr merged 3 commits into
aurora-silicon:feat/sepfrom
chriskearney:sep-j414c-mesa

Conversation

@chriskearney

@chriskearney chriskearney commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

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) the SEP attaches
arm64: dts: apple: t602x: add the Mesa fingerprint sensor on spi2 @scottjones
arm64: dts: apple: t6021-j414c: enable spi2 and the Mesa fingerprint sensor @scottjones

Why 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 returned ENODEV. Module init discarded that error, leaving the apple,sep node 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 spi2 stayed disabled and apple-mesa never bound. Scott's two commits add the node, disabled, to t602x-die0.dtsi and enable it on J414c.

The M2 Max needs no constants of its own

t6020.dtsi is written as a cut-down t6021.dtsi and #includes it; both pull in t602x-die0.dtsi, so the SEP, its DART and the SPI controller sit at the same addresses with the same interrupts on either die, and t602x-j414-j416.dtsi already carries the sep alias for J414c. Mapping apple,t6021 onto T6020 is therefore the whole change.

The sensor constants match the J414c platform device tree and are identical on J414s: spi2 chip select 0, 8 MHz, SPI mode 2 (spi-cpol alone), power on pin 122, data-ready on pin 121, 20 ns CS setup and hold. Those are also exactly the values the T6020 profile already carries in profile.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:

apple-mesa spi1.0: sep sensor: bound, 8000000 Hz, mode 2 (CPOL=1 CPHA=0)
apple-mesa spi1.0: sep sensor: data-ready IRQ 150 configured for interrupt capture
$ fprintd-enroll   -> Enroll result: enroll-completed
$ fprintd-verify   -> Verify result: verify-match (done)

Independently, the t6021 commit has been in shipped test builds since 29 Sep and the apple,t6021 match is confirmed present in the built apple-sep.ko; the M1 path is unaffected and still cold-boots normally (TZ0 → IMG4 → 7 endpoints) on j313.

What this does not claim

  • A match after reboot is unproven. Enrol and verify work; Catacomb persistence is refused with status 0x6 on at least one machine, so login should stay password-based for now. That is an enclave-side issue separate from this series.
  • PAM consumers and suspend/resume were not tested.
  • J416c is not enabled. Its platform device tree describes the same sensor on the same pins, so it is likely a one-line addition, but nobody has tested it and I would rather not switch on hardware sight-unseen.
  • firmware-name is not set on J414c. j313, j293 and j316s each set apple/mesacal-<board>.bin; without it the driver uses the generic apple/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 powers spi2.

🤖 Generated with Claude Code

chriskearney and others added 3 commits September 29, 2026 15:00
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 chriskearney changed the title arm64: dts: apple: Mesa fingerprint sensor on t602x, enabled on J414c soc: apple: sep + dts: Touch ID on the M2 Max (t6021) Sep 29, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

3 participants