Skip to content

arm64: dts: apple: t6050-j716s: Touch ID, fan control and the left-front USB4 router - #3696

Merged
RyanTheTide merged 4 commits into
aurora-silicon:mainfrom
rolotrealanis98:feat/t6050-j716s-touchid-fans-usb4-main
Dec 1, 2026
Merged

RyanTheTide merged 4 commits into
aurora-silicon:mainfrom
rolotrealanis98:feat/t6050-j716s-touchid-fans-usb4-main

Conversation

@rolotrealanis98

Copy link
Copy Markdown
Contributor

What: describe three more blocks of the J716s (16" MacBook Pro, M5 Pro), each as the J714s/J716c/K114s already do: Touch ID (the SEP hand-off and the spi2/mesa sensor, through the shared t6050-touchid.dtsi), userspace fan targets (apple,fan-manual-control), and the left-front port's USB4/Thunderbolt router with its PCIe tunnel (t6050-j714s-left-usb4.dtsi under T6050_ATC1_USB4_ROUTER). Supersedes #3281, rebuilt on current main so that the earlier commits carrying the RX_TOP tuning literals never reach main's history (no force push of a branch under review).
Tested: J716s (macOS 27.3 beta stub), a DTB whose nodes for this change equal this head's (below): Touch ID matched an enrolled finger; a CalDigit Element Hub (Thunderbolt 4) on the left-front port trains at 20 Gb/s × 2, its PCIe tunnel enumerates (5 TB4 downstream bridges behind apciec1), and it detaches and re-attaches by hand with the tunnel and its USB devices back; fans follow a 2000 rpm target and return to the SMC on 0; 0 DART/ACIO faults, 0 SError, 0 failed units. dt-checks steps and checkpatch --strict pass (Evidence).
Risk: two-way door · J716s only (its board file).
Not yet: a USB4 PCIe endpoint beyond the hub's bridges; DisplayPort over USB4 on this port (main keeps the DP-in tunnel in t6050-atc1-dp-tunnel.dtsi; it is not included here).

Details
  1. add Touch ID: the J716sAP ADT's SEP and Mesa sensor are wired as on the J714s and J716c (spi2 at 8 MHz, chip select 0, NUB GPIO 21 power, data ready on AP GPIO 138). The board defines its calibration and root-key names and includes t6050-touchid.dtsi, which brings the SEP hand-off. AP pin 138 leaves the reserved ranges (<0 80>, <81 57>, <139 82>); pin 112 stays reserved.
  2. let userspace set the fans: the J716s SMC takes a manual target for either fan within its own minimum and maximum and hands the fan back on 0.
  3. add the left-front port's USB4 router: acio1, acio-cpu1, dart-acio1, apciec1 and dart-apciec1 equal the J714s's (addresses, interrupts, LSTX pin, tunables, host DROM), so the board includes the shared file as the K114s/K114c do and defines T6050_ATC1_USB4_ROUTER, which leaves the tunnel as the only apciec1_dart provider for the PIO DMA node. atc-phy1's CIO RX_TOP tunables are this board's own, not the J714s's: the board deletes the two properties (no literal values), leaving them to a boot-loader hand-off; the PHY driver skips an absent CIO tunable. The ADT coverage manifest maps the router, its DART and mailbox, the tunnel and dart-apciec1's new path.

What changed against #3281 (d1551b6): rebased onto main e6c7b03; Touch ID through the shared t6050-touchid.dtsi instead of t6050-j716c-sep.dtsi + a local node (main shares it now); the T6050_ATC1_USB4_ROUTER selector instead of a J716s case in t6050-peripherals.dtsi (erikwb's blocker 1); no interrupt-names deletion (main dropped the name from the shared file in 64ef1fc).

Evidence
  • dt-checks steps, base e6c7b03, head this branch: 141 Apple DTBs build with CHECK_DTBS=y at base and head, 0 new and 0 removed warnings; ADT coverage pass (J716s MISSING 696 -> 691, broken 0); DART power domains 0 new; sibling drift 0 new. checkpatch --strict: 0/0/0.
  • The J716s row uses the J716s kernel tree (7.3.0-g0f96ca644485) with this change's board description; its acio1, acio1 mailbox, pcie-tunnel-1, apciec1 DART and PIO DMA, SEP, spi2/fingerprint and fan nodes decompile identical to this head's DTB apart from phandle numbers and the tree's own DisplayPort-in properties. Main's full J716s DTB is not booted on its own because main's J716s tree lacks the display and GPU hand-off the Mac needs.
  • Touch ID: the SEP logs verify: enclave matched identity …, then unlock policy after the match: satisfied true.
  • USB4: thunderbolt 1-1 CalDigit Element Hub, rx 20.0 Gb/s on 2 lanes; lspci: 0002:00:00.0 root port, 0002:01:00.0 TB4 upstream bridge [8086:0b26], 0002:02:00.0-04.0 downstream bridges. Unplug: router, tunnel and its USB devices gone within 1 s; replug: router back after ~9 s, tunnel re-enumerated (Link up on /pcie-tunnel-1/pcie@1c60000000/pci@0,0, PCIe-C populated after USB4 PCIe tunnel adapter enable), USB SuperSpeed devices back within 6 s. The router firmware logged three Timeout for at_rt command response expired syslog lines during the re-attach; no driver error followed.
  • Fans: fan1/fan2 targets 2000 → 2056/2043 rpm; 0 → back to SMC control (0 rpm idle).

The J716sAP ADT describes the SEP and the Mesa fingerprint sensor
(spi2/mesa) as on the J714s and the J716c: spi2 at 8 MHz on chip select
0, the sensor powered by NUB GPIO 21 and its data-ready line on AP GPIO
138. Take the shared description (t6050-touchid.dtsi, which brings the
SEP hand-off with it) with this board's calibration and root key names,
and expose AP pin 138; pin 112 stays reserved.

Signed-off-by: Rolando Trevino <[email protected]>
The J716s SMC takes a manual fan target as the J714s's does: F0Tg/F1Tg
are writable with F0md/F1md, the fan follows a target between its own
minimum and maximum, and a target of 0 hands it back to the SMC. Mark
both fans apple,fan-manual-control so fan*_target is writable.

Signed-off-by: Rolando Trevino <[email protected]>
The J716sAP ADT's acio1, acio-cpu1, dart-acio1, apciec1 and dart-apciec1
have the J714s's addresses, interrupts, LSTX pin (AOP 79), tunables and
host DROM, so the board takes t6050-j714s-left-usb4.dtsi as the K114s and
K114c do, and selects T6050_ATC1_USB4_ROUTER so that the tunnel provides
the only apciec1_dart and the PIO DMA node resolves it.

The PHY's CIO RX_TOP tunables in the shared file are the J714s's; this
board's differ, so they are left out until the boot loader supplies them.
The PHY driver skips the RX_TOP CIO step when they are absent.

The J716s ADT coverage manifest names the router, its DART and mailbox,
the tunnel, and dart-apciec1's new path.

Signed-off-by: Rolando Trevino <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T12:44:42.842830Z f803ec5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) door:two-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 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Merge readiness at 386d3228: not ready yet

Check Detail
CI at head no failing: host-tests
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head ok comment at 386d3228
Conflicts ok none
PR text ok Risk: two-way · J716s only (its board file).

Areas: area:bringup

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

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f803ec59b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

* interrupts, LSTX pin (AOP 79) and tunables, and the same host DROM (UID 1), so the J714s's
* description is taken as it is, except for the PHY's CIO RX_TOP tunables.
*/
#include "t6050-j714s-left-usb4.dtsi"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Enable the shared suppliers required by the ATC1 router

When booting the J716s DTB from this tree, pinctrl_aop, cio_reconfig0 and ps_auss remain disabled in t6050-die0.dtsi. The included router description requires all three for LSTX, its reset and the parent of ps_atc1_cio_auss, respectively, but does not enable them. Its existing J714s/K114 users obtain those enables through t6050-max-atc2-router.dtsi, which this board does not include; preprocessing the three boards confirms the difference. Consequently, the ACIO probe and CIO_AUSS power domain cannot resolve their suppliers, so the newly added USB4 router and PCIe tunnel cannot operate with this board's DTB. Enable these common providers in the J716s path, with AOP GPIO 79 available.

Useful? React with 👍 / 👎.

@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 f803ec59 — Touch ID, fan control, and ADT coverage look clean, but t6050-j716s.dts leaves three required ATC1 USB4 router suppliers disabled (ps_auss, cio_reconfig0, pinctrl_aop), plus fork CI is action_required and needs-hw-row awaits an exact-head / hwok row.

Blockers:

  • Missing supplier enables for the ATC1 USB4 router in arch/arm64/boot/dts/apple/t6050-j716s.dts (or t6050-j714s-left-usb4.dtsi): t6050-j714s-left-usb4.dtsi depends on &ps_auss (parent of ps_atc1_cio_auss), &cio_reconfig0 (resets = <&cio_reconfig0 1>), and &pinctrl_aop (lstx-gpios = <&pinctrl_aop 79 GPIO_ACTIVE_HIGH>), all three of which are status = "disabled" in t6050-die0.dtsi (lines 89, 320, 766). Unlike J714s and K114s/K114c (which get those three enables from t6050-max-atc2-router.dtsi), t6050-j716s.dts does not include t6050-max-atc2-router.dtsi and never enables &ps_auss, &cio_reconfig0, or &pinctrl_aop, so booting this tree's t6050-j716s.dtb leaves all three suppliers disabled and prevents acio1 from probing. Enable them in t6050-j714s-left-usb4.dtsi (or t6050-j716s.dts).
  • Fork CI has not run at f803ec59: Device tree checks, Host tests, and pr-text are action_required awaiting maintainer approval.
  • Readiness needs-hw-row: after fixing the supplier enables, verify and record the exact-head hardware row (or maintainer hwok carry-forward if booted on a matching J716s tree).

Checked:

  • arch/arm64/boot/dts/apple/t6050-j716s.dts:
    • &pinctrl_ap gpio-reserved-ranges split from <0 80>, <81 140> to <0 80>, <81 57>, <139 82> exposes only pins 80 and 138 (total span stays 221, 0..220), keeping pin 112 (SError on read) safely reserved inside <81 57>.
    • fan-F0Ac and fan-F1Ac add apple,fan-manual-control; matching t6050-j714s.dts alongside existing F0md/F1md mode keys.
    • #define T6050_ATC1_USB4_ROUTER placed before #include "t6050-peripherals.dtsi", #include "t6050-j714s-left-usb4.dtsi", and &atc1_phy deletes both J714s apple,tunable-lane{0,1}-rx-top-cio properties so no J714s RX_TOP tuning literals are carried.
    • #define T6050_TOUCHID_FIRMWARE "apple/mesacal-j716s.bin", "apple/msrk-j716s.bin" followed by #include "t6050-touchid.dtsi" matches t6050-touchid.dtsi's macro contract (SEP + spi2/mesa at 8 MHz, NUB GPIO 21 power, AP GPIO 138 IRQ).
  • arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt: updates /arm-io/spi2/mesa, apciec1, dart-apciec1, acio1, dart-acio1, and acio-cpu1 to match the added nodes.
Evidence
  • Verified against live main:
    • arch/arm64/boot/dts/apple/t6050-die0.dtsi: pinctrl_aop (status = "disabled" at line 89), cio_reconfig0 (status = "disabled" at line 320), ps_auss (status = "disabled" at line 766).
    • arch/arm64/boot/dts/apple/t6050-max-atc2-router.dtsi enables all three (lines 16–34), while neither t6050-j714s-left-usb4.dtsi nor t6050-j716s.dts (or any file it includes: t6050-max.dtsi, t6050-peripherals.dtsi, t6050-media.dtsi, t6050-touchid.dtsi, t6050-sep.dtsi, t6050-isp.dtsi) sets status = "okay" on them.
  • Checked gh api repos/aurora-silicon/linux/actions/runs?head_sha=f803ec59b539a06024a6d5342b297e777452f6bb: Device tree checks, Host tests, and pr-text are completed / action_required.

t6050-j714s-left-usb4.dtsi takes ps_auss (the other parent of
ps_atc1_cio_auss), cio_reconfig0 (the router's reset) and pinctrl_aop
(its LSTX pin), which t6050-die0.dtsi leaves disabled. The J714s and
the K114s/K114c enable them through their ATC2 router include; the
J716s has no such include, so the router could not resolve them. Enable
all three on this board and expose only AOP GPIO 79, the router's LSTX
pin.

Signed-off-by: Rolando Trevino <[email protected]>
@rolotrealanis98

Copy link
Copy Markdown
Contributor Author

Right, thanks: fixed in 386d322 (new commit, normal push). The J716s board now enables ps_auss, cio_reconfig0 and pinctrl_aop itself, as the J714s/K114s get them from t6050-max-atc2-router.dtsi, and exposes only AOP GPIO 79 (the router's LSTX pin; <0 79>, <80 5> of 85). The DTB diff against f803ec5 is exactly those three status changes plus the reserved range.

On the row: the J716s DTB the row in the description was taken on comes from the J716s kernel tree, where those three suppliers were already enabled (the reset controller 280620000.reset-controller probed, the AOP pin controller bound, and the auss, atc1-cio-auss genpds on), which is why the router probed there. Its acio1, mailbox, tunnel, DART, PIO DMA, SEP, fingerprint and fan nodes match this head apart from phandles, and the three supplier nodes are now enabled at this head as they were there. dt-checks at 386d322: 141 DTBs, 0 new CHECK_DTBS warnings, ADT coverage J716s MISSING 696 → 691 (0 broken), DART power domains and sibling drift 0 new; checkpatch --strict 0/0/0.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 30, 2026

@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.

HOLD at 386d322 for hosted fork checks and hardware equivalence. The delta enables ps_auss, cio_reconfig0 and pinctrl_aop on J716s, addressing the ATC1 supplier finding. The reserved ranges expose only GPIO 79, the router LSTX pin. The exact-head Actions runs for Device tree checks, Host tests and pr-text report action_required. The local dt-checks result is recorded in the PR. For the booted-tree carry-forward, please include the three newly enabled suppliers and the GPIO reservation in the normalized comparison or obtain maintainer disposition.

@rolotrealanis98

Copy link
Copy Markdown
Contributor Author

Normalized comparison including the three suppliers, the tested J716s DTB (J716s kernel tree, booted for the row) against this head's t6050-j716s.dtb at 386d322, phandle values ignored:

Node Tested DTB 386d322
power-controller@248 (ps_auss) okay okay
reset-controller@280620000 (cio_reconfig0, apple,t6050-cio-reset) okay, same reg okay, same reg
pinctrl@290824000 (pinctrl_aop) okay, gpio-reserved-ranges = <0 79>, <80 1>, <82 3> (79 and 81 exposed) okay, <0 79>, <80 5> (79 exposed)
power-controller@360 (ps_atc1_cio_auss) okay okay
acio1, its mailbox, pcie-tunnel-1, apciec1 DART, PIO DMA, SEP, spi2/fingerprint, fans as in the description identical

The one difference among them is AOP GPIO 81, which the tested tree also exposes because that tree carries the right port's ATC2 router (its LSTX pin; ps_atc2_cio_auss is likewise okay there and disabled here). This PR does not describe ATC2, so 81 stays reserved; the left-front router's LSTX pin 79 is exposed in both, and on the booted machine the reset controller probed, the AOP pin controller bound, and the auss and atc1-cio-auss domains were on while the router trained, tunnelled PCIe and survived an unplug/replug.

@rolotrealanis98

Copy link
Copy Markdown
Contributor Author

Could a maintainer approve the fork workflow runs at 386d322 (Device tree checks, Host tests, pr-text show action_required)? The local dt-checks result is in the comments above.

@RyanTheTide RyanTheTide 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.

Reviewed at 386d322. The change only touches the J716s board file. T6050_ATC1_USB4_ROUTER is defined before t6050-peripherals.dtsi is included, so the SoC-level apciec1 DART is compiled out and the tunnel include's copy replaces it (the adt-coverage moves agree). The new AP gpio-reserved-ranges expose only pin 138 (81-137 and 139-220 still reserved, same 221-pin total); the AOP ranges expose only pin 79 of 85, as on the other T6050 boards. The CIO RX_TOP tunables taken from the J714s are deleted, so the PHY skips that step until the loader supplies this board's own. The Touch ID include and fan-manual-control match the J714s/J716c. Your J716s row (Touch ID match, TB4 hub at 20 Gb/s x2 with re-attach, fan target and handback, 0 DART/ACIO faults) covers it. Better than before and nothing outside J716s changes. Merge waits on CI.

@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 386d3228f985

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: Code reviewed in the earlier App review at this head (6112777755).

Follow-ups (not blocking): fork checks; include new suppliers + GPIO reservation in booted-tree comparison or maintainer disposition

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 386d3228f985 (B2 merge train, 12-01 merge bar). Approval at this head: RyanTheTide,aurora-silicon-review[bot]. Row: J716s row at 386d322 (board DT only). CI: linux train L1 = main 595e754 + #3503 #3499 #3240 #3208 #3696 #731 #2634 #2110 #3325 #3441 #3650 (candidate ef98b31c): Apple driver compile (defconfig + asahi.config, LLVM=1, Rust) pass, Apple DTBs W=1 pass, planned KUnit clpc/dcp-fabric/dcp-topology/dcp-display/pmgr-pwrstate/mt7932/asahi all pass; host-tests green (or path-skipped) at this head. The rest of the hosted run is queued behind the ~19 h backlog. Revert: git revert -m 1 <merge commit>.

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) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants