Skip to content

arm64: dts: apple: t6040-j614s: enable USB4/Thunderbolt - #1588

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:integration/aurorafrom
petrskuta:j614s-usb4
Nov 12, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:integration/aurorafrom
petrskuta:j614s-usb4

Conversation

@petrskuta

Copy link
Copy Markdown
Contributor

Enables USB4/Thunderbolt on the MacBook Pro 14" M4 Pro (j614s) the way j616s already has it. This is the first step toward Thunderbolt displays on j614s. The display path itself is still blocked on T6040 (see the linked issue).

Change

The same block as t6040-j616s.dts: pmgr_cio, the CIO/PCIe power states of ATC0-2, and each router's mailbox, ACIO (without apple,pcie-tunnel), DART (with the j616s apple,dma-range) and NHI.

Why this matches the hardware:

  • The j614s ADT has the j616s's acio0-2 (acio,v2 at 0x381f00000/0x389f00000/0x391f00000), dart-acio0-2, acio-cpu0-2 and atc0-2-dpin0/1.
  • The loader already gives the j614s routers their tuning and DROM. The live tree has apple,tunable-rc, apple,tunable-pcie-adapter, apple,tunable-nhi and apple,thunderbolt-drom on the disabled nodes.
  • After the change, the status of every USB4-related node in the compiled j614s tree equals the j616s one. The remaining differences between the two boards are the camera, speakers, scaler, NFC, debug UART and internal PCIe power states.

Testing

On a MacBook Pro 14" M4 Pro (apple,j614s / apple,t6040), os-fw 26.6.2. Kernel built from this commit on top of #1551 and #1585, on f9f14be0f. The DTB was deployed through an aura-try Stage 2 trial, which aurora-stage2-commit committed.

thunderbolt-apple-acio 381ac0000.cio: firmware ready: LSTX 0x00000002, FW state 0x01000000, CPU ctrl 0x00000000, status 0x00000060
thunderbolt-apple-acio 381ac0000.cio: applying PCIe adapter tunable
thunderbolt 0-1: new device found, vendor=0x1 device=0x801f
thunderbolt 0-1: Apple Inc. Studio Display
thunderbolt-apple-nhi 381f00000.nhi: 0:5 <-> 1:10 (DP): not active, tearing down

Results:

  • Thunderbolt 3 device (Apple Studio Display) on typec0: pass. It enumerates as 0-1, generation 3, 20 Gb/s x 2 lanes, authorized.
  • Picture over the Thunderbolt DP tunnel: fails, as expected. DP is apple_dpin_disabled on T6040, so the tunnels are torn down as "not active". The missing T6040 tunnel pixel clock is described in the linked issue.
  • HDMI (arm64: dts: apple: t6040-j614s: HDMI through dcpext2 #1585) and the internal panel on the same boot: pass.
  • typec1 and typec2, USB4 devices, XDomain/thunderbolt-net, and sleep/resume with a Thunderbolt device attached: not tested.

The commit was cherry-picked onto 9ad7d0435 without the #1585 include, appending the block at the end of the file. The j614s DT was recompiled there. The kernel was not rebuilt on that base.

🤖 Generated with Claude Code

The J614s ADT has the J616s's three host routers (acio0-2 with their
DARTs and coprocessors), and the loader already hands each one its
router, adapter and NHI tuning and DROM, as the live tree shows. Enable
them as on the J616s: the CIO power states of ATC0-2, the PMGR CIO block,
and each router's mailbox, ACIO, DART and NHI. No PCIe tunnels, as on
the J616s.

Signed-off-by: Petr Škuta <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

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

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.

Reviewed 2cc60fb. All 25 J614s USB4 overrides match the existing J616s policy, including the three explicit PCIe-tunnel removals and DART allocation window. The board prefix, shared resources/port graph and ACIO driver match current integration and the author’s tested driver. Existing loader admission is ADT-indexed rather than J616s-only; this enablement does not require aura#166 or linux#1585.

RC/NHI tuning, CPU/MxWrap, bound-IOMMU, generation and DROM guards remain unchanged. Unsupported DP tunnels remain disabled, and this does not enable PCIe tunneling.

The hardware report establishes J614s firmware26.6.2 typec0 Thunderbolt3 device enumeration with internal/HDMI displays on the stated combined build. It does not qualify typec1/typec2, actual USB4 devices, XDomain/thunderbolt-net or attached-device suspend/resume. The Studio Display’s missing picture is the documented unsupported DP-tunnel path, not a passed display test.

Source approved pending the exact-head Host/Device-tree checks. No local kernel/DT build or hardware operation was performed.

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

Conditions of source approval5865169744 are satisfied. Exact-head Host43192174137/job131093970049 and DT43192174105/job131093970838 passed their actual host, CHECK_DTBS/binding and ADT steps. The earlier430952* runs still have zero jobs; no replay/cancel/retry is needed for those obsolete queue entries.

Head2cc60fbb is unchanged. Its one-file/25-override policy is already reviewed, and the merge preview combines it cleanly with current main92195659. This is independent of Aura166/Linux1585 and retains existing RC/NHI/DROM/IOMMU guards, explicit PCIe-tunnel removals and unsupported DP restrictions.

Proceeding with the expected-head normal source merge. The author establishes typec0 TB3 Studio Display enumeration on the stated combined J614s/firmware26.6.2 build. Typec1/typec2, actual USB4 devices, XDomain and attached-device sleep remain unqualified; no Thunderbolt picture pass or blanket Working claim is implied. No new hardware, loader installation, kernel build or image action was performed.

@DjDeveloperr
DjDeveloperr merged commit 9746918 into aurora-silicon:integration/aurora Nov 12, 2026
2 checks passed

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

Built every Apple DTB on integration/aurora 9219565 with this change. Only t6040-j614s.dtb changes, dtc reports no warnings, and the other 136 DTBs (t6040-j616s.dtb included) are byte-identical. In the compiled j614s tree the CIO power domain, the ATC0-2 CIO/PCIe power states, and the USB4 mailboxes, ACIOs, DARTs and NHIs have the same status and properties as on j616s, apart from phandle numbers. Thanks @petrskuta.

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.

3 participants