Repository navigation
arm64: dts: apple: t6050: share Touch ID, add it to K114s, K114c and K116c - #3376
Conversation
…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
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
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:
- No hardware row yet: Tested is "DTB checks only", and every K114s item is under Still to run.
- 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.
- 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
2d96d922vs 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 thesepalias, the SEP mailbox andps_sepenabled, spi2 enabled withclocks = <&clkref>(as on K116s) andfingerprint@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 getsps_fab8_socfirmware-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_FIRMWAREnames per-device files thataurora-touchid-setupbuilds 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.
|
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):
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. |
There was a problem hiding this comment.
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:
- Merge main into the branch after #3363 lands (one merge covers both conflicts:
t6050-k114s.dtswith the merged #3383, and the K dtsi files with #3363). I'll re-check the DTBs at that head. - 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.
|
@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 |
Signed-off-by: Ryan Murray <[email protected]>
|
Review item 1: merged main (with #3383 and #3363) into the branch, one merge, normal push, head
Item 2: the heads-up to Joshua is above; the project-decision line is ORCH5's. |
|
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. |
There was a problem hiding this comment.
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.
|
@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 |
|
K114s row tied to The 01:16 readiness row booted
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. |
|
Merging under the interim ruleset-gap rule (COMMON-RULES 01:54), at
One-way: K boards' SEP attaches and writes Linux's identity keybag into the shared xART storage at guard level 1. Revert: |
|
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):
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 ( |
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 fromt6050-j716c-sep.dtsi): thesepalias, the mailbox, the SEP power domain and its two firmware-owned fabric parents.t6050-touchid.dtsi: includes the SEP part and adds spi2 withfingerprint@0. The board names its per-device calibration and root key inT6050_TOUCHID_FIRMWAREbefore the include.aurora-touchid-setupbuilds both files from the Mac's own iBoot System Container. Without the define the include fails to build.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 thesepalias, the SEP and spi2 enables,fingerprint@0and 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
aurora-touchid-setupbuilds the calibration; then enrol, match, a wrong finger rejected, the enrolment restored after a reboot, and a match after s2idle.