Skip to content

arm64: dts: apple: t8132-j604: add the ATC PHY CIO calibration - #1932

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
IronsideXXVI:j604-atcphy-cio
Nov 16, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
IronsideXXVI:j604-atcphy-cio

Conversation

@IronsideXXVI

Copy link
Copy Markdown
Contributor

The J604's (MacBook Pro 14" M4, T8132) ATC PHYs get no CIO calibration. On the running J604 the live device tree's atcphy0/1/3 carry only apple,tunable-usb3-*: the boot chain copies the SuperSpeed calibration, but there is no T8132 CIO table to copy. Without it the ATC PHY driver serves any USB4 or Thunderbolt partner on these ports as USB2 only ("USB4/Thunderbolt is not available on this port"), and CIO modes return -EOPNOTSUPP.

This adds t8132-j604-atcphy-tunables.dtsi with the ten apple,tunable-cio-* properties for each of the three Type-C PHYs, included from t8132-j604.dts, in the same layout as the J713's file.

Where the values come from: the J604's own ADT (atc-phy0/1/3, 44 tunables each), converted into the J713 file's properties.

  • The register offsets match the J713 file entry for entry, on all ten properties of both shared PHYs.
  • The values differ only in the per-PHY PLL and common-block calibration words.
  • The J604 lane EQ lists carry two more entries, kept in ADT order.

Every offset fits its register bank. Nothing on the boot path changes: CIO runs only when the USB-PD controller reports a USB4/Thunderbolt partner.

Checked on top of integration/aurora be8d4cd:

  • checkpatch --strict: 0 errors, 0 checks. Its one warning is the MAINTAINERS question for a new file; arch/arm64/boot/dts/apple/ is already covered.
  • CHECK_DTBS=y apple/t8132-j604.dtb adds nothing; the existing aliases/chosen messages are already on be8d4cd. The built DTB carries the 30 new properties.
  • The cherry-pick needed one context fix in t8132-j604.dts (our tree has a lab include next to it). Only the new include line is added.

Tested on the J604 only (our linux-aurora-next 1.916, which carries this file): it boots with no failed units and 0 deferred devices. No USB4 or Thunderbolt device has been plugged in yet, so whether a USB4 link comes up is still to verify.

Values are per machine, so a later boot-loader change could copy them from each machine's ADT, as it already does for SuperSpeed; this file would then be the fallback.

Without the CIO calibration the ATC PHY driver serves a USB4 or
Thunderbolt connection on these ports as USB2 only. The boot chain passes
the SuperSpeed calibration on, but not the CIO one, so describe it here as
the J713 does.

The values are the J604's own, converted from its ADT for the three Type-C
PHYs in the J713 file's layout. The register offsets match the J713 file
entry for entry. The values differ in the per-PHY PLL and common-block
words, and the J604 lane EQ list carries two more entries, which are
kept in ADT order.

Signed-off-by: Dylan Ironside <[email protected]>
Assisted-by: LLM
IronsideXXVI added a commit to IronsideXXVI/omarchy-j604 that referenced this pull request Nov 14, 2026
kernel/: the 4 patches 1.916 adds (601 in all), same Aurora base: the
boot record moves into PMU scratch the J604 keeps, an idle external
display coprocessor with nothing attached stays powered (the fix
candidate for the early-boot stall), the G16 performance selectors carry
the value macOS publishes, and the J604 device tree describes the CIO
calibration of its three Type-C PHYs. The recipe is the
linux-aurora-next package.

STATUS.md: 1.916 is the default as linux-aurora-next with 1.915 beside
it as linux-aurora. Early-boot stall: 3 of 3 boots on 1.916 clean so
far, not yet proof (6 of 22 before). Deep sleep: pm_test at the core
level comes back, and probe marks put the stop between the start of the
sleep driver's enter step and its first coprocessor stop. Also measured
on 1.916: boot CPU registers same as a later-started core's, a scheduler
utilization floor A/B (not shipped), JPEG encode at 130-142 % of macOS
and H.264 encode at 83-87 % in steady state.

UPSTREAM.md: aurora-silicon/linux#1932 (ATC PHY CIO calibration) and
#1933 (G16 performance selectors) opened.
@RyanTheTide
RyanTheTide merged commit 25aabbc into aurora-silicon:integration/aurora Nov 16, 2026
2 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