Skip to content

arm64: dts: apple: t8122-j504: enable the Touch ID sensor - #2268

Draft
RyanTheTide wants to merge 1 commit into
mainfrom
spec-m3m4/j504-touchid
Draft

RyanTheTide wants to merge 1 commit into
mainfrom
spec-m3m4/j504-touchid

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown

Problem. The 14-inch M3 MacBook Pro (J504) has the Touch ID sensor on SPI2, like the M3 MacBook Airs, but its DT never enabled it.

Change. Enable SPI2 and the sensor in t8122-j504.dts, with this board's sensor power enable (AP GPIO 200 per its ADT, where the Airs use nub GPIO 29) and the Airs' chip-select timing. Name the board's calibration file, and add the sep alias so the loader reserves the SEP firmware as it does on the Airs. The chip select, the 8 MHz clock and the polled data-ready line are the same as on the Airs.

The SEP driver's Touch ID admission currently lists J613/J615 by board (drivers/soc/apple/profile.rs). The SoC-based profile selection in flight replaces that list; until it lands the sensor binds but matching stays off.

Testing. cpp + dtc on every T8122 board: same warning counts. Only the J504 DTB changes.

Still to run. On a J504: the sensor probes, and Touch ID enroll and match work once the SoC-based SEP profile lands.

The 14-inch M3 MacBook Pro has the Touch ID sensor (mesa) on SPI2 like the
M3 MacBook Airs. The only difference in its wiring is the sensor power
enable: an AP GPIO (200) here instead of the Airs' nub GPIO 29. The
chip select, the 8 MHz clock and the data-ready line (AP GPIO 199, left
out as on the Airs so the driver polls) are the same.

Enable SPI2 and the sensor with this board's power GPIO and the Airs' chip
select delays. Name this board's calibration file, and add the sep alias
so the boot loader reserves the SEP firmware as it does on the Airs.

Signed-off-by: Ryan <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Looks good; approve once a J504 probe row is on this head.

The node layout matches the Airs (t8122-j613-j615.dtsi:119-128): SPI2, the mesa child at 8 MHz (t8122.dtsi:606), 20 ns CS setup and hold, polled data-ready, and the sep alias. The power enable is the only wiring difference. Putting the calibration name in firmware-name is the right place for per-device data: sbio.rs:3761 reads it from the node and stops cleanly if the file is missing.

The row is needed before merge for two reasons:

  1. enable-gpios = <&pinctrl_ap 200 ...> (t8122-j504.dts:286) is a new GPIO number. The PR cites the J504 ADT but quotes neither the ADT line nor a run. With status = "okay", the sensor driver drives AP GPIO 200 high at probe on every J504. If the number is wrong, that switches an unrelated pad on a machine nobody has booted with this DT. Quote the ADT function-... entry the number comes from, or show the run.
  2. As the PR body says, Touch ID admission in drivers/soc/apple/profile.rs:697 is still keyed on apple,j613/apple,j615. Until the SoC-based profile lands, this DT change on its own delivers a powered sensor with matching off. That is fine as a draft, but the row below should be taken with that profile in place, so the GPIO, CS timing and calibration path are all proven together.

HW row: J504 (M3 MacBook Pro 14") on this head plus the SoC-based SEP profile.

  • The sensor probes and reads a non-zero identifier with power "was cycled".
  • apple/mesacal-j504.bin loads.
  • One enroll and five matches succeed.
  • Touch ID still works after one s2idle.
  • 0 AVC, 0 failed units, no new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Author

The Touch ID admission this change depends on is now #2631, which selects the SEP profile by SoC and so covers the J504 without a board entry. This branch still merges cleanly into integration/aurora and dt-checks passes. What is left before it leaves draft is one J504 boot on this head together with #2631: the sensor probes with AP GPIO 200 as its power enable, apple/mesacal-j504.bin loads, and one enroll and five matches succeed, also after one s2idle.

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.

1 participant