Repository navigation
arm64: dts: apple: t8142-j704: Enable Touch ID sensor - #3823
Conversation
Add the SPI2 controller (ps_spi2, spi@3a5108000) and Mesa Touch ID fingerprint sensor node (apple,mesa-fingerprint, NUB GPIO 36 power, AP GPIO 200 data-ready IRQ, per-device apple/mesacal-j704.bin and apple/msrk-j704.bin) to t8142-j704.dts, matching t8142-j813.dts and t8142-j815.dts. Expose AP GPIO 200 and NUB GPIO 36 in pinctrl_ap and pinctrl_nub gpio-reserved-ranges alongside the existing audio pins. Verified on MacBook Pro 14-inch (M5 / J704) with SEP enabled (aurora-silicon#3791): apple-mesa binds on spi0.0 at 8 MHz, aurora-touchid-setup builds mesacal-j704.bin and msrk-j704.bin from factory data, aurora-sep-ready activates Touch ID, and fprintd-enroll + fprintd-verify succeed with enclave identity match and persisted template update. Signed-off-by: WJW <rjianwei@gmail.com>
|
Note on Deep S2R interaction: on J704 with #3782 + #3791 + this commit, |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Update after A/B DTB isolation on J704: this PR does not break Deep S2R. The failed wake was caused by building the test DTB without |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Reviewed 5685684. The SPI2 power domain, controller and sensor node match J813/J815, and the new reserved ranges expose exactly AP GPIO 200 and NUB GPIO 36 next to the audio pins from t8142-j813-audio.dtsi. The exact-head J704 row covers bind, enroll/verify and, with #1847 present, a clean deep-sleep wake.
In dcp_s2r_restart_done(), dcp_fabric_hdmi_reinit() was gated on dcp->external_native (apple,t6030-dcpext). On fixed-HDMI external pipelines that are not external_native (such as T8142 J704 dcpext1 driving atcphy2 and dpxbar2), deep sleep drops the PHY common power domain and crossbar state behind genpd's back, causing atcphy_resume_noirq() to mark pd_was_off so the next mux update restores the PHY. Because dcp_s2r_restart_done() only re-asserted the converter power GPIOs without calling dcp_fabric_hdmi_reinit(), atcphy2 and dpxbar2 stayed unconfigured after deep sleep and dcp_fixed_hdmi_reconnect() timed out with firmware link fault 22/24 (-110). Allow dcp_fixed_hdmi_reinit_locked() whenever dcp->fixed_phy and dcp->hdmi_hpd are present, and call dcp_fabric_hdmi_reinit() from dcp_s2r_restart_done() for any fixed-PHY HDMI pipeline. Leave the non-S2R dcp_resume() caller gated on dcp->external_native so s2idle behavior on other platforms is unchanged. Tested on MacBook Pro (14-inch, M5, 24 GB, apple,j704) running macOS 27.2 stub with #1847 + #3782 + #3791 + #3823: - Before: HDMI (3aae00000.dcp, 3840x2160@60) worked on cold boot, but failed after deep sleep with DPTXPort link fault 22/24 and 'HDMI DPTX connect failed: -110'. - After: 'HDMI: setting up the output again (after deep sleep)' runs on wake; 3aae00000.dcp reconnects immediately with 0 link faults and restores 3840x2160@60 alongside eDP-1. Signed-off-by: WJW <rjianwei@gmail.com>
What: Add the SPI2 controller (
ps_spi2,spi@3a5108000) and Mesa Touch ID fingerprint sensor node (apple,mesa-fingerprint, NUB GPIO 36 power, AP GPIO 200 data-ready IRQ,apple/mesacal-j704.binandapple/msrk-j704.bin) tot8142-j704.dts, exposing the two sensor GPIOs inpinctrl_apandpinctrl_nub.Tested: J704 MacBook Pro 14-inch M5 at
56856841: PASS —apple-mesa spi0.0binds at 8 MHz (CPOL=1 CPHA=0),aurora-touchid-setuprebuildsmesacal-j704.binandmsrk-j704.binfrom factory data,aurora-sep-readyactivates Touch ID,fprintd-enroll+fprintd-verifymatch enrolled identity in the Secure Enclave with persisted template update,checkpatch.pl --strict0 errors / 0 warnings / 0 checks.Risk: two-way · M5 J704 (T8142) only; zero impact on other Macs.
Not yet: Long-term Touch ID match verification across multiple deep sleep cycles on J704; requires SEP enabled (#3791) to activate
/dev/sep-bio.Details
t8142-j813.dtsandt8142-j815.dts:ps_spi2: power-controller@440under&pmgr(parent<&ps_spi_p>).spi2: spi@3a5108000(AIC_IRQ 1241,&clkref,&ps_spi2).mesa: fingerprint@0(apple,mesa-fingerprint, 8 MHz,spi-cpol, 20 ns CS setup/hold,enable-gpios = <&pinctrl_nub 36 GPIO_ACTIVE_HIGH>,interrupts = <200 IRQ_TYPE_EDGE_RISING>,firmware-name = "apple/mesacal-j704.bin", "apple/msrk-j704.bin").pinctrl_apandpinctrl_nubgpio-reserved-rangesto expose AP GPIO 200 and NUB GPIO 36 alongside the existing audio pins.Evidence
Tested on MacBook Pro (14-inch, M5, 24 GB,
apple,j704) running macOS 27.2 stub, Aura Stage 2 (1.0.0b17-g378497cf), and Arch Linux ARM (7.3.0-j704-s2r+with #3782 + #3791 + this commit):apple-mesa spi0.0: sep sensor: CS timing 20 ns programmed in hardwareapple-mesa spi0.0: sep sensor: bound, 8000000 Hz, mode 2 (CPOL=1 CPHA=0)aurora-sep-sensor-present: exit 0aurora-sep-ready: rebuiltapple/mesacal-j704.binandapple/msrk-j704.binviaaurora-touchid-setup.service, reportedTouch ID is restoredfprintd-enroll:user 1000 now has 1 enrolled identity in the enclavefprintd-verify:enclave matched identity ... (host index present),unlock policy after the match: satisfied true,template update persisted (user, then master)scripts/checkpatch.pl --strict --git upstream/main..HEAD: 0 errors, 0 warnings, 0 checks.