Repository navigation
arm64: dts: apple: t6050-j716s: Touch ID, fan control and the left-front USB4 router - #3696
Conversation
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]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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.
💡 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" |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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(ort6050-j714s-left-usb4.dtsi):t6050-j714s-left-usb4.dtsidepends on&ps_auss(parent ofps_atc1_cio_auss),&cio_reconfig0(resets = <&cio_reconfig0 1>), and&pinctrl_aop(lstx-gpios = <&pinctrl_aop 79 GPIO_ACTIVE_HIGH>), all three of which arestatus = "disabled"int6050-die0.dtsi(lines 89, 320, 766). Unlike J714s and K114s/K114c (which get those three enables fromt6050-max-atc2-router.dtsi),t6050-j716s.dtsdoes not includet6050-max-atc2-router.dtsiand never enables&ps_auss,&cio_reconfig0, or&pinctrl_aop, so booting this tree'st6050-j716s.dtbleaves all three suppliers disabled and preventsacio1from probing. Enable them int6050-j714s-left-usb4.dtsi(ort6050-j716s.dts). - Fork CI has not run at
f803ec59:Device tree checks,Host tests, andpr-textareaction_requiredawaiting maintainer approval. - Readiness
needs-hw-row: after fixing the supplier enables, verify and record the exact-head hardware row (or maintainerhwokcarry-forward if booted on a matching J716s tree).
Checked:
arch/arm64/boot/dts/apple/t6050-j716s.dts:&pinctrl_apgpio-reserved-rangessplit from<0 80>, <81 140>to<0 80>, <81 57>, <139 82>exposes only pins80and138(total span stays221,0..220), keeping pin112(SError on read) safely reserved inside<81 57>.fan-F0Acandfan-F1Acaddapple,fan-manual-control;matchingt6050-j714s.dtsalongside existingF0md/F1mdmode keys.#define T6050_ATC1_USB4_ROUTERplaced before#include "t6050-peripherals.dtsi",#include "t6050-j714s-left-usb4.dtsi", and&atc1_phydeletes both J714sapple,tunable-lane{0,1}-rx-top-cioproperties 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"matchest6050-touchid.dtsi's macro contract (SEP +spi2/mesaat 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, andacio-cpu1to 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.dtsienables all three (lines 16–34), while neithert6050-j714s-left-usb4.dtsinort6050-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) setsstatus = "okay"on them.
- Checked
gh api repos/aurora-silicon/linux/actions/runs?head_sha=f803ec59b539a06024a6d5342b297e777452f6bb:Device tree checks,Host tests, andpr-textarecompleted / 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]>
|
Right, thanks: fixed in 386d322 (new commit, normal push). The J716s board now enables 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 |
There was a problem hiding this comment.
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.
|
Normalized comparison including the three suppliers, the tested J716s DTB (J716s kernel tree, booted for the row) against this head's
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; |
|
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
left a comment
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
|
Merging at |
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.dtsiunderT6050_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
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 includest6050-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.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.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 definesT6050_ATC1_USB4_ROUTER, which leaves the tunnel as the onlyapciec1_dartprovider 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.dtsiinstead oft6050-j716c-sep.dtsi+ a local node (main shares it now); theT6050_ATC1_USB4_ROUTERselector instead of a J716s case int6050-peripherals.dtsi(erikwb's blocker 1); nointerrupt-namesdeletion (main dropped the name from the shared file in 64ef1fc).Evidence
verify: enclave matched identity …, thenunlock policy after the match: satisfied true.thunderbolt1-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 threeTimeout for at_rt command response expiredsyslog lines during the re-attach; no driver error followed.