Skip to content

arm64: dts: apple: t6050: share Touch ID, add it to K114s, K114c and K116c - #3376

Merged
RyanTheTide merged 3 commits into
mainfrom
k114s/touchid-shared
Nov 27, 2026
Merged

RyanTheTide merged 3 commits into
mainfrom
k114s/touchid-shared

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Problem

The SEP mailbox and the Touch ID sensor are written out three times on main, in the J714s, J716c and K116s board files, and the K114s, K114c and K116c have neither. All of these boards' ADTs describe the same hardware: the SEP behind sep_mbox/ps_sep, and the Mesa sensor on spi2 at 8 MHz, chip select 0, powered by NUB GPIO 21, with data ready on AP GPIO 138. That holds for the live K114s, K116s, J716c and J714s ADTs and for the 27.2 DeviceTrees of the K114c and K116c.

Change

One device-tree commit:

  • t6050-sep.dtsi (renamed from t6050-j716c-sep.dtsi): the sep alias, the mailbox, the SEP power domain and its two firmware-owned fabric parents.
  • t6050-touchid.dtsi: includes the SEP part and adds spi2 with fingerprint@0. The board names its per-device calibration and root key in T6050_TOUCHID_FIRMWARE before the include. aurora-touchid-setup builds both files from the Mac's own iBoot System Container. Without the define the include fails to build.
  • J714s, J716c and K116s use the include in place of their own copies. K114s, K114c and K116c gain it.
  • The K boards' shared pin lists (t6050-k114-k116.dtsi, t6050-k114.dtsi, t6050-k114c.dts) leave pin 138 open, as K116s and J714s already do.

This covers the K114s device tree from #2115. That PR's board block would re-reserve the jack and SD-reader pins on today's main: its list <0 138>, <139 82> predates them.

Tested: DTB checks only so far. All 11 T6050 DTBs were built before and after the change. J714s, J716c and K116s are identical after dtc -s (only property order moves). K114s, K114c and K116c gain only the sep alias, the SEP and spi2 enables, fingerprint@0 and pin 138; K116c also gains the two firmware-owned fabric parents, which the 14-inch boards already had for the ANE. The other five DTBs are byte-identical. dtschema shows the same messages before and after (0 new). A K114s readiness row (SEP ready, sensor bound, calibration built, no enrolment) is staged as a one-shot boot.

Risk: one-way · On K114s, K114c and K116c, apple_sep now attaches and creates a Linux identity keybag in the xART storage that macOS shares (T6050 guard level 1: only Linux's own records and the two shared roots are written). Enrolment and matching write more. Reverting the DT disables the mailbox again; records already written stay.

Still to run

  • K114s at this head: SEP ready, sensor bound, aurora-touchid-setup builds the calibration; then enrol, match, a wrong finger rejected, the enrolment restored after a reboot, and a match after s2idle.
  • macOS Touch ID and unlock still working after the Linux enrolment (K114s).
  • K114c / K116c / K116s rows from their owners, if they can.

…K116c

The SEP mailbox and the Touch ID sensor (ADT spi2/mesa) were written out
three times, in the J714s, J716c and K116s board files, while the K114s,
K114c and K116c had neither. The live ADTs of the J714s, J716c, K114s and
K116s and the 27.2 DeviceTrees of the K114c and K116c describe both alike:
the SEP behind sep_mbox and ps_sep, the Mesa sensor on spi2 at 8 MHz on
chip select 0, NUB GPIO 21 for power and AP GPIO 138 for data ready.

Move the SEP part into t6050-sep.dtsi (was t6050-j716c-sep.dtsi) and the
sensor into t6050-touchid.dtsi, which includes it. A board names its
per-device calibration and root key in T6050_TOUCHID_FIRMWARE before the
include; aurora-touchid-setup builds those files from the Mac's own iBoot
System Container. The K boards' shared pin lists now leave pin 138 open.

The J714s, J716c and K116s DTBs are unchanged apart from property order
(identical after dtc -s). The K114s, K114c and K116c DTBs gain the sep
alias, the mailbox and SEP power domain, the firmware-owned fabric
parents (K116c only; the 14-inch boards already had them for the ANE),
spi2 with fingerprint@0, and pin 138. The other five T6050 DTBs are
byte-identical. dtschema reports nothing new.

Signed-off-by: Ryan Murray <[email protected]>
Signed-off-by: Ryan Murray <[email protected]>

# Conflicts:
#	arch/arm64/boot/dts/apple/t6050-k114c.dts
#	arch/arm64/boot/dts/apple/t6050-k114s.dts
#	arch/arm64/boot/dts/apple/t6050-k116c.dts
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:one-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at 8b1cba63: not ready yet

Check Detail
CI at head ok 3 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 8b1cba63, a Mac and a result in the PR body or a comment
Conflicts ok not computed yet
PR text ok Risk: one-way · On K114s, K114c and K116c, applesep now attaches and creates a Linux identity keybag in the xART storage that macOS shares (T6050 guard level 1: only Linux's own records and the two shared roots are written). Enrolment and matching write more. Reverting the DT disables the mailbox again; records already written stay. Still to run - K114s at this head: SEP ready, sensor bound, aurora-touchid-setup builds the calibration; then enrol, match, a wrong finger rejected, the enrolment restored after a reboot, and a match after s2idle. - macOS Touch ID and unlock still working after the Linux enrolment (K114s). - K114c / K116c / K116s rows from their owners, if they can.

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@aurora-silicon-review aurora-silicon-review Bot 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.

Verdict: HOLD at 8b1cba63fb08. The device tree is right; it can't merge before a K114s row and Ryan's OK for the SEP write.

Blockers:

  1. No hardware row yet: Tested is "DTB checks only", and every K114s item is under Still to run.
  2. The PR's own risk is one-way. With this DT, apple_sep attaches on K114s, K114c and K116c and writes a Linux keybag into the xART storage that macOS shares, and a revert doesn't remove it. Once this is in main, the next fleet kernel does that on Ryan's K114s whether or not anyone has run the readiness one-shot. Ryan's OK for that write (asked 21:5x in K114S-BRINGUP) has to come first.
  3. Before merge, after Linux's SEP has attached on the K114s: macOS Touch ID and unlock still work. That's the case that can't be undone, so it needs proof on the board this turns on. A Linux enrolment can be a later row.

Checked: read the whole diff; built all 11 T6050 DTBs at main and at main plus this PR and compared them as sorted DTS (no phandle numbers); checked the per-board changes against the description; dtschema result from CI; looked for anything that gates by board; no attribution.

Evidence
  • Semantic DTS diff, main 2d96d922 vs main plus this PR: J714c, J714s, J716c, J716s, J775c, J775d, J873s and K116s unchanged (J714s, J716c and K116s only reorder). K114s, K114c and K116c gain the sep alias, the SEP mailbox and ps_sep enabled, spi2 enabled with clocks = <&clkref> (as on K116s) and fingerprint@0 (8 MHz, CPOL, 20 ns CS setup/hold, NUB GPIO 21 enable, AP pin 138 IRQ), and pin 138 drops out of the reserved ranges. K116c also gets ps_fab8_soc firmware-owned and enabled, which every other T6050 board already has.
  • The values match K116s/J714s/J716c on main, which already run Touch ID, and the PR cites the live K114s ADT (spi2/mesa equal to the K116s).
  • T6050_TOUCHID_FIRMWARE names per-device files that aurora-touchid-setup builds from the Mac's own iBoot container; nothing from Apple is in the tree.
  • Merge order: this conflicts with #3383 (t6050-k114s.dts) and #3363 (t6050-k114-k116.dtsi, t6050-k114.dtsi, t6050-k114c.dts), so it will need main merged in again after those land.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s readiness row (no enrolment) at this change's DT (one-shot Aura Stage 2: Ryan's default DT plus the SEP, sensor, pin 138 and #3377's actuator node; kernel 7.3.0-42; first SEP boot on this Mac):

  • SEP: profile T6050, ready in 1506 ms, 13 endpoints, key store open, hwrng registered. sks: identity keybag provisioned (the Linux keybag, created on this boot). xART guard level 1: 10 existing session records, all protected, 0 refusals, 0 xarm failures.
  • Sensor: apple-mesa spi0.0 bound at 8 MHz, mode 2. The first four bring-up attempts had no root key: apple/msrk-k114s.bin didn't exist yet (ENOENT, then ELOOP while it was being written). aurora-touchid-setup rebuilt both mesacal-k114s.bin and msrk-k114s.bin from this Mac's factory records (trigger "refused"). The driver's retry 10 s later attached the sensor with interrupt capture.
  • Userspace: aurora-sep status all PASS apart from one boot-time log line about the attempts above; touchid ready, sensor online, restore empty. fprintd lists one device. SELinux Enforcing, 0 AVC, 0 failed units.
  • Restore: a plain reboot returned to the default DT (no SEP); nothing else changed.

Still to run: enrol, match, a wrong finger refused (Ryan, morning; Touch ID waits for the first password login after each boot), enrolment restored after a reboot, a match after s2idle, and macOS Touch ID after that.

@aurora-silicon-review aurora-silicon-review Bot 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.

Verdict: FINISH, then merge, at 8b1cba63fb08. The K114s readiness row and the 00:22 OK for Ryan's Mac clear my first two blockers; two items are left.

Blockers:

  1. Merge main into the branch after #3363 lands (one merge covers both conflicts: t6050-k114s.dts with the merged #3383, and the K dtsi files with #3363). I'll re-check the DTBs at that head.
  2. The OK for the one-way xART write covers Ryan's K114s (sacrificial macOS tonight). Once this is in main, the SEP also attaches, and writes its keybag, on every K114c and K116c running a fleet kernel, such as Joshua's K114c. J714s and K116s already do this on main, so it's the project's existing choice, but the K114c/K116c owners should hear about it first: one line from ORCH5 on this PR, and a heads-up to Joshua.

Not blocking, before the release notes say Touch ID works on the K boards: enrol, match, a wrong finger refused, and macOS Touch ID afterwards (Ryan's morning row). The driver and userspace are the same ones already merged for J714s/K116s; this PR is the hardware description, and the readiness row exercises it.

Checked: the readiness row (01:16, one-shot with this PR's SEP, sensor and pin-138 nodes): SEP T6050 ready, 13 endpoints, key store open, keybag provisioned, xART guard level 1 with 10 existing records protected and 0 refusals; apple-mesa bound at 8 MHz, mode 2, with interrupt capture; plain reboot back to the default DT. The early ENOENT/ELOOP is the per-device root key not existing until aurora-touchid-setup writes it; the driver's retry recovered it on the default command line. No attribution.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@joshuaswarren heads-up for the K114c (and any K116c owner): once this is in main, a fleet kernel on those boards attaches the SEP at boot and creates the Linux identity keybag in the xART storage macOS shares. This is what the J714s and K116s already do on main. At guard level 1 the driver writes only Linux's own records and the two shared roots; macOS's existing session records are protected (on the K114s tonight: 10 protected, 0 refusals). Touch ID also needs the per-Mac mesacal/msrk files, which aurora-touchid-setup builds from the Mac's own factory records. If you'd rather your K114c didn't get this yet, say so here before it merges.

@github-actions github-actions Bot removed the merge-conflict Conflicts with the base branch (bot) label Nov 27, 2026
@RyanTheTide

RyanTheTide commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Review item 1: merged main (with #3383 and #3363) into the branch, one merge, normal push, head 06a3db509b98.

  • Conflicts: two in the pin lists, two from board blocks main had moved out.
    • t6050-k114-k116.dtsi and t6050-k114.dtsi: main now opens pin 81 (SD reader); this PR also opens 138. Comments name both.
    • t6050-k114c.dts: main moved its NOR and SD blocks, and its own pin list, into the shared files; taken as main has it, so the K114c now uses t6050-k114.dtsi's list with 138 open.
    • t6050-k114s.dts: main moved the NOR out; only the Touch ID include stays.
  • DTBs against main aa3351bc8e: J714s, J716c and K116s are identical after dtc -s, and the other five non-K boards are byte-identical. K114s, K114c and K116c gain only the sep alias, the SEP and spi2 enables, fingerprint@0 and pin 138 (plus K116c's two firmware-owned fabric parents). dtschema: 10 messages, the same as main.

Item 2: the heads-up to Joshua is above; the project-decision line is ORCH5's.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Project decision (ORCH5 for Ryan): yes. With this merged, the SEP attaches and provisions the Linux identity keybag on every K114c/K116c running a fleet kernel too, the same as J714s/K116s already do. That's consistent with the one-implementation, no-per-board-gating rule. Linux writes only its own records plus the two shared index records; existing macOS records stay protected by the xART guard (K114s readiness row: 10 pre-existing records protected, 0 refusals). macOS Touch ID after Linux provisioning is still to be verified on an M5 (K114s, tomorrow). Joshua, heads-up as owner of the K114c.

@aurora-silicon-review aurora-silicon-review Bot 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.

Verdict: MERGE at 06a3db509b98, once dt-checks and host-tests finish green on this head.

Blockers: none. Both items from my last review are done: main is merged in once (over #3383 and #3363), and ORCH5's yes for K114c/K116c is on the PR, with Joshua told.

Checked: rebuilt all 11 T6050 DTBs at main aa3351bc and at this head and compared them as sorted DTS. J714c, J714s, J716c, J716s, J775c, J775d, J873s, K114c and K116s change exactly as at 8b1cba63. On K114s and K116c the only difference from my earlier diff is the pin list's starting point: main now opens pin 81 (SD reader, #3363), and this PR still opens only pin 138. The SEP, spi2 and fingerprint@0 nodes are unchanged. Conflict resolution as described in the 17:21Z comment. No attribution.

Not blocking: enrol, match, a wrong finger refused, and macOS Touch ID after Linux provisioning (K114s, Ryan's morning row).

Evidence
  • K114s pin list: main <0 0x50>, <0x52 0x18>, <0x6c 0x1a>, <0x87 1>, <0x8a 1>, <0x8c 0x51> -> head without <0x8a 1>.
  • K116c pin list: main <0x87 4> -> head <0x87 3>, so 138 opens and 81 stays open.
  • Readiness row (01:16) ran these same SEP and sensor nodes: SEP ready, keybag provisioned, xART guard 1 (10 records protected, 0 refusals), apple-mesa bound at 8 MHz with interrupt.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr code-owner ping (interim ruleset-gap rule, point 6) for a one-way change (K boards' SEP attaches and writes the Linux identity keybag into the xART storage macOS shares). Ready once two things are in: (a) CI green at 06a3db50; (b) the K114s row tied to this exact head. The readiness row ('10 protected, 0 refusals') predates the main merge that resolved the pin-list conflicts, so either rerun it at 06a3db50 or post the K114s DTB from the rowed commit next to this head's with a semantic diff of none. ORCH5 recorded Ryan's project decision (yes) above. If you have no objection and both are in, I'll merge with the rationale after 05:31 AEDT. Revert: git revert -m 1 <merge> (disables the mailbox; written records stay).

@aurora-silicon-review

Copy link
Copy Markdown

K114s row tied to 06a3db509b98 (for the 17:26Z condition (b)): DTB comparison, no new boot.

The 01:16 readiness row booted t6050-k114s-touchid-act-nvrw.dtb from the kit (sha256 00b49f3d46a6..., listed in the kit's SHA256SUMS). I built this head's t6050-k114s.dtb and compared the two node by node, with phandles resolved to node paths, since the numbers differ between builds:

So the readiness row exercised exactly this head's Touch ID description. Enrol, match, refuse and macOS Touch ID remain Ryan's morning row, as before.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the interim ruleset-gap rule (COMMON-RULES 01:54), at 06a3db50.

  1. The review App approved at this head, from a lane other than the author, and KREVIEW reviewed it.
  2. CI is green (dt-checks, host-tests, pr-text).
  3. The K114s readiness row booted a DTB whose SEP, mailbox, power domains, spi2 and fingerprint@0 are identical to this head's, per the node-by-node comparison above. 10 macOS records were protected with 0 refusals.
  4. J714s and K116s, which already attach the SEP on main, have DTBs identical apart from property order, and the other five T6050 DTBs are byte-identical.
  5. There's no open blocking review. Ryan's project decision (via ORCH5) is recorded above.
  6. Dj was pinged here at 04:26 AEDT, more than an hour ago, with no objection.

One-way: K boards' SEP attaches and writes Linux's identity keybag into the shared xART storage at guard level 1. Revert: git revert -m 1 <merge> disables the mailbox, and written records stay. Still to run: enrol/match/refuse plus macOS Touch ID (Ryan's morning row).

@RyanTheTide
RyanTheTide merged commit e5ef59e into main Nov 27, 2026
4 of 5 checks passed
@RyanTheTide
RyanTheTide deleted the k114s/touchid-shared branch November 27, 2026 18:39
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s finger row (merged head; same DT as the readiness row; kernel 7.3.0-k114srow, a lab build of main with the panel fix, plus spi-apple):

  • Enrol: right index, 7 touches, fprintd-enroll enroll-completed; kernel sbio: user 1000 now has 1 enrolled identity in the enclave.
  • Match: same finger, verify-match; kernel verify: enclave matched identity, post-result steps done 565 ms after the touch.
  • Wrong finger: verify-no-match; kernel no enrolled finger matched the capture.
  • xART: guard level 1, 0 refusals.

Touch ID stays off until the first password authentication after a boot. The GDM password login came before the enrolment, so it didn't arm (pam_aurora_touchid: Touch ID not re-armed: refused no enrolled fingerprints); a later su password step did. Userspace follow-up, not this DT. Still to run: enrolment restored after a reboot, a match after s2idle, and macOS Touch ID afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:one-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant