Skip to content

arm64: dts: apple: t6030-j514s: describe the Touch ID data-ready line - #3794

Merged
RyanTheTide merged 1 commit into
mainfrom
dts/j514s-touchid-irq
Dec 2, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
dts/j514s-touchid-irq

Conversation

@maralcbr

@maralcbr maralcbr commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Problem

arch/arm64/boot/dts/apple/t6030-j514s.dts enables &mesa (apple,mesa-fingerprint) on &spi2 without its data-ready interrupt line (AP GPIO 200, noted in the file's own ADT comment). On current main, drivers/soc/apple/sbio.rs requires the data-ready IRQ rather than falling back to polling, so sensor bring-up fails without it.

Change

  • Add interrupt-parent = <&pinctrl_ap>; and interrupts = <200 IRQ_TYPE_EDGE_RISING>; to &mesa in arch/arm64/boot/dts/apple/t6030-j514s.dts (matching the J514s ADT /arm-io/spi2/mesa encoding and arm64: dts: apple: t8122-j613-j615: describe the Touch ID data-ready line #2678 for J613/J615).
  • Update tools/aurora-sep/tests/test_t6030_sep.py to assert both the resolved /soc/pinctrl@347100000 phandle and [200, IRQ_TYPE_EDGE_RISING].

Tested: J514S (t6030-j514s.dts) at 1523875: checkpatch.pl clean, compiled t6030-j514s.dtb passes all 4 assertions in tools/aurora-sep/tests/test_t6030_sep.py (Stage 2 boot.bin DTB swap and fingered Touch ID enrollment on J514S still pending; requires hands at the machine).

Risk: two-way · J514S (T6030) &mesa Touch ID sensor node only.

@maralcbr
maralcbr requested review from a team as code owners December 1, 2026 14:29
@maralcbr
maralcbr requested review from Acelogic and malik-na and a balanced review from Copilot December 1, 2026 14:29
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Merge readiness at b3ae85bf: ready to merge

Check Detail
CI at head ok 9 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok the PR body at 15238753; the changed files are byte-identical at b3ae85bf
Conflicts ok none
PR text ok Risk: two-way · J514S (T6030) &mesa Touch ID sensor node only.

Areas: area:platform
Merge: gh pr merge 3794 --merge (Owners and Core through the bypass: add --admin).

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

Copilot AI 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.

🔵 Needs a closer look

J514S on-device validation remains outstanding to confirm data-ready IRQ delivery and enrollment/matching with the updated Stage 2 DTB, which static inspection cannot establish.

No open issues 🎉

What changed in this PR

This PR describes the J514s Touch ID sensor’s data-ready interrupt, supplying the IRQ required by the current SEP driver for sensor initialization.

Changes:

  • Configure AP GPIO 200 as a rising-edge interrupt on the J514s &mesa node.
  • Update device-tree tests to verify the interrupt controller and interrupt cells.

Hardware Touch ID bring-up and fingered enrollment remain unverified.

File Description
tools/​aurora-sep/​tests/​test_t6030_sep.py Assert the AP interrupt-controller phandle and GPIO 200 rising-edge configuration.
arch/​arm64/​boot/​dts/​apple/​t6030-j514s.dts Add the data-ready IRQ properties and update the sensor comment.

Review effort: Balanced

@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 1, 2026
The J514S Touch ID sensor (/arm-io/spi2/mesa) has its data-ready line on
AP GPIO 200 (rising edge), matching the ADT encoding used on J613/J615
(AP GPIO 199) and J713. Without the interrupt described in the device
tree, apple-sep sensor bring-up fails because sbio requires a data-ready
IRQ rather than falling back to polling.

Describe the interrupt line on &mesa in t6030-j514s.dts and update
tools/aurora-sep/tests/test_t6030_sep.py to verify both the resolved
pinctrl_ap phandle and the <200 IRQ_TYPE_EDGE_RISING> cells.

Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
@maralcbr
maralcbr force-pushed the dts/j514s-touchid-irq branch from 1523875 to b3ae85b Compare December 2, 2026 00:05
@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Dec 2, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Correct: same encoding as J613/J615 (#2678), and the test now pins the parent and the cells.

One gate remains before merge: a J514s boot with this DTB showing the sensor probes and its data-ready IRQ fires (the count in /proc/interrupts goes up on a touch, or enrollment works). The compiled-DTB check doesn't cover that.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Merge status: one item left, a J514s boot with this DTB.

The change is approved, and its merge into current main passes the device-tree checks and the T6030 SEP DTB test (below). Those show the interrupt is described correctly. The gate is a boot showing the sensor using it.

To close it, please boot the J514s with a DTB built from this PR (a lab run keeps the old boot.bin, so install the new DTBs with update-m1n1 first) and post one line naming the head SHA, the Mac and the result: the Touch ID sensor probes with its data-ready interrupt, and that interrupt's count in /proc/interrupts rises on a touch (or enrollment works), with no new kernel errors.

One boot of a DTB that carries this PR and #3793 unchanged counts for both.

Local checks on the merge result (hosted CI stand-in)
  • Head b3ae85bfcf03 merged into main 5a870d0f0b3f (merge tree 5fb301dd4861); arm64, LLVM=1, dtschema 2026.9.
  • scripts/dtc/apple-dt-check.sh: all 141 Apple DTBs build at base and merge; only t6030-j514s.dtb changes. CHECK_DTBS on it: 59 warning lines at both, 0 new, 0 removed. dtc warnings: 0 at both.
  • ADT coverage and DART power-domain checks: pass, nothing new.
  • python3 -m unittest tools/aurora-sep/tests/test_t6030_sep.py on the merge tree: 4/4 pass. With main's t6030-j514s.dts swapped in, the J514s case fails, so the test does check the new interrupt.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at b3ae85bfcf03 (B2 merge train, 12-01 merge bar). Approval at this head: DjDeveloperr. Row: PR body at 1523875 (changed files byte-identical at b3ae85b). CI: linux train L24 (candidate fdfedd05e955 on main a76093e): Apple driver build pass + touched objs pass (kernel/sched/psi.o verified with CONFIG_PSI=y) + DTBs pass + 12/12 relevant KUnit suites pass (ane-boot 333, clpc 22, ane-pm 20, dcp-fabric 117, dcp-topology 235/236, dcp-display 220/221, ave 57, apple-dart 40, jpeg 15, isp 61, mt7932 98/99, asahi 567/571; avd-pm-test.c pre-existing Clang 22 warning on main) + host tests pass (apple-dcp 1/1, dcp 96/96, g17 329/329). Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 998d455 into main Dec 2, 2026
11 checks passed
@RyanTheTide
RyanTheTide deleted the dts/j514s-touchid-irq branch December 2, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants