Skip to content

arm64: dts: apple: t6050-k116s: Add the Touch ID sensor - #2204

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
axboe:k116s-touchid
Nov 23, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
axboe:k116s-touchid

Conversation

@axboe

@axboe axboe commented Nov 18, 2026

Copy link
Copy Markdown

Thomas, this is the node from your K116s notes, unchanged. The K116s has the J714s's Mesa sensor: spi2, chip select 0, 8 MHz, sensor-id 0x3356, power on NUB GPIO 21, data ready on AP GPIO 138 (checked against this machine's ADT). Pin 138 leaves the reserved ranges.

Tested on a K116s (firmware 27.2), on integration/aurora 0abc2f3 plus my K116s series, with your libfprint 1.94.100+aurora13 and fprintd 1.94.5+aurora4 packages:

  • The sensor binds and capture is interrupt-driven.
  • aurora-touchid-setup builds both files from the factory records.
  • Enroll and verify work; the enrolled finger is restored after a reboot.
  • A verify matches after a deep sleep and wake, without soc: apple: sep: calibrate the Touch ID sensor again after a system sleep #2202.
  • 3 of 3 deep sleeps resume with the node enabled.
  • xART guard refusals stay at 0.

Not tested: wrong-finger rejection and lockout.

The K116s has the J714s's Mesa sensor: spi2, chip select 0, 8 MHz,
sensor-id 0x3356, powered by NUB GPIO 21, data ready on AP GPIO 138
(ADT /arm-io/spi2/mesa). Describe it as on the J714s and take pin 138
out of the reserved ranges.

The node is Thomas Glanzmann's, from his K116s notes.

Suggested-by: Thomas Glanzmann <thomas@glanzmann.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
@RyanTheTide

Copy link
Copy Markdown

Thanks, this is a clean change. The node matches the J714s block, the reserved-range edit opens only pin 138, and the K116s is already in the T6050 SEP profile. So the PR is device tree only. We are also moving the SEP profile choice to the SoC compatible, after which no T6050 machine needs a board admit.

Your test list already covers most of the hardware row. To close it, could you add these, at this PR's head:

  1. After each of the three deep sleeps, a fprintd-verify result on the first try. Your notes show one match after one wake, so we would like 3/3, plus resume dmesg free of SEP, SPI and DART errors.
  2. A fprintd-verify with a finger that is not enrolled, giving verify-no-match. Lockout can wait.
  3. The cold-boot SEP lines (dmesg | grep -i sep: ready time, endpoint count, sensor registered with interrupt-driven capture).

Pasting the command output is enough. After that we will run no-regression rows on our A18 Pro (Neo) and M4 Pro machines. The change is board-local, so we expect no change there.

@axboe

axboe commented Nov 19, 2026

Copy link
Copy Markdown
Author

Ryan, thanks. Here is the rest of the row. All of it is from a K116s (firmware 27.2) running this commit on integration/aurora 0abc2f3 plus my K116s series; I have not run the PR's head on its own.

1. Verify after a deep sleep. From the journal of 2026-11-18: six deep-sleep wakes, and the first verify after each one matched.

Wake First verify after it
09:59:18 match at 10:02:03
10:16:46 match at 10:16:59
10:47:53 match at 10:57:41
11:17:47 match at 11:19:03
11:25:27 match at 11:25:41
11:42:02 match at 11:45:31

Over every boot since the node went in, journalctl -p warning has two kernel lines that mention SEP, SPI, the sensor or a DART, both from the first boot, before a finger was enrolled ("at least one catacomb/lockout file is absent", "matching unavailable this boot"). Nothing at a resume.

2. A finger that is not enrolled.

$ fprintd-verify
Using device /net/reactivated/Fprint/Device/0
Listing enrolled fingers:
 - #0: right-index-finger
Verify started!
Verifying: right-index-finger
Verify result: verify-no-match (done)

and the driver at the same time:

apple_sep 502600000.sep: verify: no enrolled finger matched the capture (enclave answered user -1, Linux enrolments use user 1000)
apple_sep 502600000.sep: verify: no match; the match operation stays open for the next touch of this authentication

3. Cold boot.

apple_sep 502600000.sep: SEP platform profile: T6050/J714s, K116s, J716c
apple_sep: xART guard level 1: 10 session records exist, 0 created by Linux; the other 10 are protected
apple_sep 502600000.sep: attach: 8 endpoints advertised in 20 messages
apple_sep 502600000.sep: ready in 1443 ms: 13 endpoints (cntl sbio scrd sse hdcp xars sks xarm hibe pnon skdl stac srep), key store open
apple_sep 502600000.sep: sbio: registering sensor at bring-up stage 0
apple-mesa spi0.0: sep sensor: data-ready IRQ 152 configured for interrupt capture
apple_sep 502600000.sep: sensor: interrupt-driven capture

The enrolled finger is restored at every boot ("Touch ID: restored 1 enrolled identity/identities; enrolment survived reboot").

@RyanTheTide

Copy link
Copy Markdown

Thanks, that completes the row: first-try matches after six deep-sleep wakes, verify-no-match with an unenrolled finger, and a clean cold boot. Since the PR is device tree only, results from the same commit on top of your K116s series are fine. We are putting it up for review.

For reference, the SoC-based SEP profile choice we mentioned is now #2311. Once it lands, the K116s entry in the profile list is no longer needed, and nothing changes for this PR.

@RyanTheTide

Copy link
Copy Markdown

The K116s Touch ID DT change is still needed. This head replays cleanly onto integration/aurora 5441428d9033, and apple/t6050-k116s.dtb builds. The existing K116s hardware results are above.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Formal §1–§6 pre-PR checklist review at verified live head 6bf80ea19a6bdb4e168d2551f282d4d7a18cdfba (not superseded on integration/aurora; live CI 2/2 green: dt-checks, host-tests).

Checklist Verification

  • §1 No model gating: PASS — pure board-local DTS addition in arch/arm64/boot/dts/apple/t6050-k116s.dts matching t6050-j714s.dts and merged t6050-j716c.dts (#2162), with no driver-side model gating. All referenced labels (ps_nub_gpio, nub_gpio0, ps_spi2, spi2, clkref, pinctrl_ap) exist in t6050-peripherals.dtsi (spi2 is enabled for T6050_K116S), and apple,k116s is already in drivers/soc/apple/profile.rs (T6050).
  • §2 Production-ready, no hacks: PASS — works on the default kernel command line with no extra parameters or hacks.
  • §3 Safety: PASS — &pinctrl_ap gpio-reserved-ranges = <0 80>, <82 24>, <108 26>, <135 1>, <140 81>; removes only <138 1> (opening AP GPIO 138 for Touch ID data-ready, matching t6050-j714s.dts), keeping SError pin 112 and all unused pins reserved. Per-device factory files (apple/mesacal-k116s.bin, apple/msrk-k116s.bin) are loaded from this Mac's own iBoot container.
  • §4 Clean-room & attribution: PASS — single commit 6bf80ea19a6b carries human author/committer (Jens Axboe <axboe@kernel.dk>), human Signed-off-by:, and Suggested-by: only, with zero AI trailers.
  • §5 Evidence: PASS — full K116s hardware row (fw 27.2, integration/aurora 0abc2f385e54 + K116s series, same commit): cold-boot SEP ready in 1443 ms (13 endpoints), apple-mesa spi0.0 IRQ 152 interrupt-driven capture, xART guard level 1 (0 refusals), aurora-touchid-setup, fprintd-enroll/fprintd-verify match + verify-no-match on an unenrolled finger, reboot persistence, 6/6 deep-sleep wakes matching on first verify, and journalctl -p warning clean at resume (only expected pre-enrollment lines on the initial boot).
  • §6 Naming: PASS.

Verdict

APPROVE — clean and ready for MERGETRAIN-LINUX4.

Assisted-by: LLM (Gemini 4 Neon)

@RyanTheTide
RyanTheTide merged commit 7d31b1a into aurora-silicon:integration/aurora Nov 23, 2026
2 checks passed
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