Skip to content

arm64: dts: apple: t8142-j815: enable both USB4 ports - #3642

Merged
RyanTheTide merged 2 commits into
aurora-silicon:mainfrom
m0d16l14n1:feat/t8142-j815-usb4
Dec 1, 2026
Merged

RyanTheTide merged 2 commits into
aurora-silicon:mainfrom
m0d16l14n1:feat/t8142-j815-usb4

Conversation

@m0d16l14n1

@m0d16l14n1 m0d16l14n1 commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable USB4 (and so USB4/PCIe storage enclosures) on both USB-C ports of the J815 (MacBook Air 15" M5) by including the J813's t8142-j813-usb4.dtsi (#2142 rear, #2238 front), as the J815 already includes t8142-j813-usb.dtsi. The J815 has the same routers, PCIe-C tunnels and power states as the J813; the driver side (#2142) and aura's tunable copy (aura#302, #435) have no board gate, so no driver change is needed.
Tested: J815: booted eff37e74a14c unchanged in the J815 candidate j815/nightly6 (main 37a19f9 + open PRs, merged as 001bc1317d57). Both ACIOs bind to thunderbolt-apple-acio and register as the Type-C muxes of their ports; no ACIO or Type-C errors at boot. DP alt mode (HDMI TV behind a USB-C hub) worked on both ports with this DTB (#3641, #3692). No USB4 device was at hand, so no USB4 link was brought up. checkpatch --strict clean; apple-dt-check.sh: 141 DTBs, 0 new warnings. Head 4b1090484495 is that commit with current main (42169a0) merged in, with no conflicts and no change to t8142-j815.dts from main, so the row stands (merge policy: update onto a newer main).
Risk: two-way · J815 only. No J813 or J704 file changes, so their DTBs are the same as on main. Without aura's router tunables the router probe refuses, as on the J813.
Not yet: a USB4 link on the J815: a USB4 NVMe enclosure or dock on each port (checksum, replug, deep sleep with the disk open). Asked J815 owners to test.

Details
  • One line in arch/arm64/boot/dts/apple/t8142-j815.dts: #include "t8142-j813-usb4.dtsi" after t8142-j813-usb.dtsi, whose typec0/typec1 connectors it extends with the USB4 endpoints.
  • Besides those connectors, the fragment refers only to labels from t8142.dtsi (aic, pmgr) and t8142-j813-usb.dtsi (ps_atc0/1_common, ps_atc0/1_usb_aon), both already in the J815's tree.
  • aura fills usb4-0/1-acio, -pcie-adapter, -nhi and -pcie from /arm-io/acio0/1 and /arm-io/apciec0/1 of the board's own ADT.
  • This and arm64: dts: apple: t8142-j815: add DisplayPort audio on dcpext0 and dcpext1 #3641 (J815 DP audio) change different lines of t8142-j815.dts. Both apply on main together, and that combined DTB also compiles.
Evidence
  • 27.0 device trees, J813 vs J815: under acio0/1, apciec0/1 (with pcic0/1-bridge), acio-cpu0/1 and their DARTs, every differing property is a phandle (interrupt-parent, iommu-parent, acio-cpu, atc-phy-parent, the function-* references).
    • Each differing value is the J813's phandle +2, the same offset as in the rest of the tree.
    • reg, interrupts and the tunables are identical.
  • DTB node set (J815 at this head vs J813 on main): acio@401ac0000/acio@409ac0000 (+ iommu@a80000, nhi@f00000), pcie-tunnel-0/1, reset-controller@380780000, pinctrl@390824000 (acio0/1-lstx-pins), power-controller@3c8/3d0/3d8/3e0: the same nodes, status and compatibles.
  • Hardware row (J815, no USB4 device): 401ac0000.acio and 409ac0000.acio bound to thunderbolt-apple-acio, each a supplier of its typec:portN; /sys/bus/thunderbolt/devices empty with nothing USB4 attached (the domain is added only after USB4 is negotiated); DP alt mode through a USB-C hub on both ports; 0 failed units, 0 new kernel errors, no SELinux on this install.

The J815 has the J813's two USB-C ports with the same ACIO0 (front) and
ACIO1 (rear) routers, PCIe-C tunnels, DARTs, CIO reset, LSTX pins and
ATC power states: in the 27.0 device trees the J815's acio0/1,
apciec0/1 and their DARTs differ from the J813's only in their phandle
numbers. Include the J813's USB4 fragment, as the J815 already includes
its USB fragment, so USB4 devices (storage enclosures among them) work on
both ports. The boot loader copies the router and PCIe-C tunables from
the board's own device tree into the same aliases.

Signed-off-by: Nick <nekreshen@yandex.ru>
@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

Out of draft. On my J815 the DT side checks out: both ACIOs bind and register as the Type-C muxes of their ports, and DP alt mode still works on both ports. But I don't have a USB4 enclosure or dock, so the USB4 link itself has not been brought up on a J815 yet.

@scottjones, @GameOverStudios71: you both run a J815. If either of you has a USB4 (or Thunderbolt 3/4) NVMe enclosure or dock at hand, a quick try would help a lot. No pressure if not. You need this PR on top of a current integration/aurora kernel, and aura main (it carries the router tunables, aura#302 and #435).

# plug the enclosure into one port, then:
ls /sys/bus/thunderbolt/devices            # expect domainN, its host router N-0 and the device N-1
journalctl -k -b | grep -iE 'acio|thunderbolt|nvme'
lsblk -o NAME,SIZE,TRAN,MODEL              # the enclosure's disk, e.g. nvme1n1
# read-only: the same hash twice, and again after a replug
sudo dd if=/dev/nvme1n1 bs=1M count=2048 status=none | sha256sum
# unplug, plug into the other port, repeat

Optional: systemctl suspend with the disk mounted, wake, and hash again. A hardware row with the enclosure model, which port, the hashes and anything odd in dmesg would be enough to land this. Thanks!

@m0d16l14n1
m0d16l14n1 marked this pull request as ready for review November 30, 2026 09:03
@m0d16l14n1
m0d16l14n1 requested review from a team as code owners November 30, 2026 09:03
@github-actions github-actions Bot added 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) 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 4b109048: not ready yet

Check Detail
CI at head no failing: dt-checks, host-tests, pr-text / pr-text, pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 4b109048
Conflicts ok not computed yet
PR text ok Risk: two-way · J815 only. No J813 or J704 file changes, so their DTBs are the same as on main. Without aura's router tunables the router probe refuses, as on the J813.

Areas: area:bringup

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

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

Blockers:

  • Host tests (46288675028) is failing at eff37e74 on stale-base failures unrelated to this DTS change (apple-scaler-recovery-tests and g17-output-fence-tests); rebase or merge current main (or re-run against current main) so all required CI checks pass green.
  • Needs a J815 hardware row referencing the current head SHA (eff37e74) that exercises an actual USB4 link on both ports (as noted in the PR body and comment, only ACIO bind + DP alt mode without a USB4 device has been tested so far).

Checked:

  • arch/arm64/boot/dts/apple/t8142-j815.dts (+1/-0 including t8142-j813-usb4.dtsi immediately after t8142-j813-usb.dtsi), arch/arm64/boot/dts/apple/t8142-j813-usb4.dtsi on main, dt-checks (46288675116), and pr-text (46288675508).
  • Verified the one-line include is strictly scoped to J815, leaves J813/J704 DTBs unchanged, and passed dt-checks cleanly (141 DTBs, 0 new warnings).
Evidence
  • Host tests run 46288675028 failed strictly on pre-existing base tests (FAIL apple-scaler-recovery-tests, FAIL g17-output-fence-tests: AssertionError: ' fn member_done(': 2 matches), unrelated to arch/arm64/boot/dts/apple/t8142-j815.dts.
  • Ready to approve once host-tests is green on current main and a J815 USB4 link hardware row is posted at the PR head.

Signed-off-by: Nick <nekreshen@yandex.ru>
@github-actions github-actions Bot removed ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) labels 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.

Verdict: HOLD at 4b109048

Blockers:

  • Hosted pull_request CI workflows (Device tree checks, Host tests, and pr-text) are completed/action_required awaiting maintainer workflow approval for this fork PR; only pr-readiness has executed at 4b109048.
  • Still needs a J815 hardware row exercising an actual USB4 link on both ports (as noted in the PR body and comment, only ACIO bind and DP alt mode without a USB4 device have been verified so far).

Checked:

  • Clean merge of main (42169a041546) into eff37e74a14c; diff in arch/arm64/boot/dts/apple/t8142-j815.dts (+1/-0 including t8142-j813-usb4.dtsi) is unchanged.
Evidence
  • Workflow runs at 4b10904844950e18c2db638d2129e20432aa3693: pr-readiness (pull_request_target) succeeded; Device tree checks, Host tests, and pr-text (pull_request) are completed/action_required.
  • Ready to approve once fork CI workflows pass green at 4b109048 and a J815 USB4 link hardware row is posted.

@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

Merged current main (42169a0) as 4b1090484495, a normal merge with no conflicts, so host-tests runs on a current base (the failures were the stale-base apple-scaler-recovery-tests and g17-output-fence-tests). main has not changed t8142-j815.dts; the body's Tested line names this head and the J815 candidate the commit booted in.

@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 4b1090484495

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: - Clean merge of main (42169a041546) into eff37e74a14c; diff in arch/arm64/boot/dts/apple/t8142-j815.dts (+1/-0 including t8142-j813-usb4.dtsi) is unchanged.

Follow-ups (not blocking): fork CI approval; J815 USB4 link row on both ports

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Dec 1, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 4b1090484495 (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot]. Row: the hardware row at 4b10904 that the readiness check found (PR body or comment). CI: linux train L4 = main (after L3) + 34 approved PRs (#3419 dropped: conflicts): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit ane-boot/clpc/ane-pm/dcp-fabric/dcp-topology/dcp-display/macaudio/asahi/sep all pass, host tests apple-dcp + apple-scaler-recovery pass (the red host-tests on some heads were base failures since fixed on main). The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 322e675 into aurora-silicon:main Dec 1, 2026
4 of 8 checks passed
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) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants