Skip to content

kboot: copy the T8132 USB3 calibration on the J604 too - #154

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
aeries0x:j604-usb3
Nov 11, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
aeries0x:j604-usb3

Conversation

@aeries0x

Copy link
Copy Markdown
Contributor

Summary

On the J604 (base M4 MacBook Pro 14") all three USB-C ports run at USB2 only: the kernel reports "T8132 calibration
incomplete, USB2 only" because aura copies the T8132 USB3 calibration only on apple,j713. The J604 has the same T8132
ATC PHYs, its tree already describes them with apple,t8132-atcphy and their SuperSpeed banks (t8132-jxxx.dtsi,
t8132-atc23.dtsi), and every calibration group comes from the port's own ADT node, so the J713 path applies
unchanged. A port whose ADT lacks a required group still keeps its USB2 fallback.

This adds apple,j604 to the board check in dt_copy_atc_tunables().

Notes:

  • aura also copies the bundle for atc-phy2, the HDMI port's PHY. The J604 tree keeps atcphy2 disabled, so it stays
    unused.
  • The right port (ATC3) needs phy: apple: atc: enable the dummy PHY on T8132 SuperSpeed ports linux#1492: without it its first USB3 start fails ("Pipehandler lock
    not acked") and the port is left without USB until reboot, where it used to run at USB2. Please merge that one first
    or together with this.
  • The PHY refuses the device role while in USB3 mode on T8132 (atcphy_usb3_set_mode(), as on the J713), so a port
    connected to another host as a USB device stays off ("USB3 PHY setup failed, err=-95"). Unchanged by this PR.

Testing

J604 (Mac16,1), chainloaded aura main bd9f3e8 + this + #149 + the camera PR, integration/aurora dc8f6f7 + #1483 + the
ATC3 fix, tethered RAM-only boots, a UGREEN USB-C hub (Genesys USB3.1 hub, AX88179A, card reader) with an Intenso USB3
stick, read-only dd if=/dev/sdX bs=4M count=256 iflag=direct:

  • aura: "FDT: Copied T8132 USB3 calibration" for all four ATC PHYs.
  • All three ports enumerate the hub, the NIC and the stick at 5000 Mbit/s in both orientations; reads 96-112 MB/s
    (stick-limited).
  • s2idle with the hub attached: suspend, keyboard wake, the hub comes back at 5000 Mbit/s.

tests/ has no case for the board gate (test_j713_atc_usb3.py covers the copy itself), so it's unchanged.

Assisted-by: LLM

The J604 (MacBook Pro 14" M4) uses the same T8132 ATC PHYs as the J713,
and its tree describes them with the same apple,t8132-atcphy nodes and
SuperSpeed banks. The calibration groups come from each port's ADT
node, so the J713 path applies unchanged: a port whose ADT lacks a
required group still keeps only its USB2 fallback. Without this the
J604's ports never get the USB3 bundle and stay at USB2.

Assisted-by: LLM
Signed-off-by: Friedrich <261542475+aeries0x@users.noreply.github.com>
@aeries0x

Copy link
Copy Markdown
Contributor Author

Correction to the last note in the description: I wrote that the device role is unchanged by this PR, but I had not
tested that. Now tested on the J604 (main 4a4810b + the tree from the description, without this PR, so all ports USB2
only): on the port cabled to a PC host, the PHY sets up the device route, dwc3 registers its UDC, and a configfs ACM
gadget enumerates on the host at high speed (descriptors read), but the host's SET_CONFIGURATION then times out
(-110), and a UDC rebind ends in "wait for SETUP phase timed out" without a new enumeration.

With this PR the PHY refuses the device role in USB3 mode (atcphy_usb3_set_mode(), err=-95) and the controller does
not start. So the device role was not usable before either, but the PR does change it: from a gadget that half
enumerates at USB2 to none. Happy to look at the device role separately if that is wanted; I don't think it should
hold this PR, but that is your call.

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

No blocking findings now that Linux1492 is merged. This extends the existing T8132 USB3-calibration handoff to J604 without inventing foreign calibration. Posted J604 host-mode both-orientation/all-port USB3/s2idle evidence covers the companion fix; the gadget-role change is documented as explicit refusal instead of incomplete USB2 enumeration. All exact-head policy/build/format/Python/native-start checks pass. This source merge does not install or replace a loader.

@DjDeveloperr
DjDeveloperr merged commit 84d53ba into aurora-silicon:main Nov 11, 2026
9 checks passed
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.

2 participants