Repository navigation
arm64: dts: apple: t8142-j815: enable both USB4 ports - #3642
Conversation
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>
|
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 # 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, repeatOptional: |
|
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.
Verdict: HOLD at eff37e74
Blockers:
Host tests(46288675028) is failing ateff37e74on stale-base failures unrelated to this DTS change (apple-scaler-recovery-testsandg17-output-fence-tests); rebase or merge currentmain(or re-run against currentmain) 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/-0includingt8142-j813-usb4.dtsiimmediately aftert8142-j813-usb.dtsi),arch/arm64/boot/dts/apple/t8142-j813-usb4.dtsionmain,dt-checks(46288675116), andpr-text(46288675508).- Verified the one-line include is strictly scoped to J815, leaves J813/J704 DTBs unchanged, and passed
dt-checkscleanly (141 DTBs, 0 new warnings).
Evidence
Host testsrun46288675028failed strictly on pre-existing base tests (FAIL apple-scaler-recovery-tests,FAIL g17-output-fence-tests:AssertionError: ' fn member_done(': 2 matches), unrelated toarch/arm64/boot/dts/apple/t8142-j815.dts.- Ready to approve once
host-testsis green on currentmainand a J815 USB4 link hardware row is posted at the PR head.
Signed-off-by: Nick <nekreshen@yandex.ru>
There was a problem hiding this comment.
Verdict: HOLD at 4b109048
Blockers:
- Hosted
pull_requestCI workflows (Device tree checks,Host tests, andpr-text) arecompleted/action_requiredawaiting maintainer workflow approval for this fork PR; onlypr-readinesshas executed at4b109048. - 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) intoeff37e74a14c; diff inarch/arm64/boot/dts/apple/t8142-j815.dts(+1/-0includingt8142-j813-usb4.dtsi) is unchanged.
Evidence
- Workflow runs at
4b10904844950e18c2db638d2129e20432aa3693:pr-readiness(pull_request_target) succeeded;Device tree checks,Host tests, andpr-text(pull_request) arecompleted/action_required. - Ready to approve once fork CI workflows pass green at
4b109048and a J815 USB4 link hardware row is posted.
|
Merged current |
There was a problem hiding this comment.
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
|
Merging at |
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 includest8142-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
eff37e74a14cunchanged in the J815 candidatej815/nightly6(main 37a19f9 + open PRs, merged as 001bc1317d57). Both ACIOs bind tothunderbolt-apple-acioand 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. Head4b1090484495is that commit with currentmain(42169a0) merged in, with no conflicts and no change tot8142-j815.dtsfrommain, so the row stands (merge policy: update onto a newermain).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
arch/arm64/boot/dts/apple/t8142-j815.dts:#include "t8142-j813-usb4.dtsi"aftert8142-j813-usb.dtsi, whosetypec0/typec1connectors it extends with the USB4 endpoints.t8142.dtsi(aic,pmgr) andt8142-j813-usb.dtsi(ps_atc0/1_common,ps_atc0/1_usb_aon), both already in the J815's tree.usb4-0/1-acio,-pcie-adapter,-nhiand-pciefrom/arm-io/acio0/1and/arm-io/apciec0/1of the board's own ADT.t8142-j815.dts. Both apply onmaintogether, and that combined DTB also compiles.Evidence
acio0/1,apciec0/1(withpcic0/1-bridge),acio-cpu0/1and their DARTs, every differing property is a phandle (interrupt-parent,iommu-parent,acio-cpu,atc-phy-parent, thefunction-*references).reg,interruptsand the tunables are identical.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.401ac0000.acioand409ac0000.aciobound tothunderbolt-apple-acio, each a supplier of itstypec:portN;/sys/bus/thunderbolt/devicesempty 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.