Skip to content

arm64: dts: apple: t6040-j616s: Describe the USB3 path of the Type-C ports - #1074

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:pr/j616s-usb3-typec-path
Nov 7, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:pr/j616s-usb3-typec-path

Conversation

@jgoyvaerts

Copy link
Copy Markdown
Contributor

The J616s USB controllers describe only their USB2 path in the OF graph. usb_of_get_connect_type() looks a root port's endpoint up by its raw number, which is 1 on the USB2 hub and 2 on the USB3 hub, falling back to logical port 1. Port 0 alone matches neither, so both root ports are reported as "not used" and everything plugged into them is marked fixed. lsblk then clears RM and HOTPLUG on external USB disks, which hides them from tools that look for removable drives.

This adds the SS endpoint on the three controllers and the matching endpoint on atcphy0..2, as the apple,atcphy and snps,dwc3-common bindings describe and the other Apple SoCs do. The root ports become hotplug ports. atcphy0..2 have mode-switch, so the root ports now also resolve to their Type-C connector and peer through it instead of by port number. The pairs themselves don't change.

Testing (J616s, M4 Pro)

  • This has been on our daily kernels since m4.100 (2026-11-01). On today's boot an external NVMe enclosure (XS1000) runs at 10 Gbps, and lsblk shows HOTPLUG 1 for it. Without the change it showed 0.
  • On this branch, a clean cherry-pick onto integration/aurora 068dfce19780, t6040-j616s.dtb builds.

🤖 Generated with Claude Code

…ports

The J616s USB controllers describe only their USB2 path in the OF
graph. usb_of_get_connect_type() looks up a root port's endpoint by its
raw number, 1 on the USB2 hub and 2 on the USB3 hub, falling back to
the logical port 1. Port 0 alone matches neither, so both root ports are
reported as "not used" and everything plugged into them is marked fixed.
lsblk then clears RM and HOTPLUG on external USB disks, which hides them
from tools that look for removable drives.

Add the SS endpoint on the controllers and the matching endpoint on
atcphy0..2, as the apple,atcphy and snps,dwc3-common bindings describe
and the other Apple SoCs do. The root ports become hotplug ports.

atcphy0..2 have mode-switch, so the root ports now also resolve to their
Type-C connector and peer through it rather than by port number. The
pairs themselves do not change.

Signed-off-by: Jonathan Goyvaerts <[email protected]>
Assisted-by: LLM

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

Merge-train review (MTR-J, 11-07): approved, merging.

The endpoints match the apple,atcphy binding (port@0 to the connector's SS, port@1 from the USB3 controller) and the snps,dwc3-common port@1 SS convention, as on t600x. Labels and pairs are unchanged.

Hardware: J616s. This was a one-shot of integration b8ae494f + linux PRs 1073-1076, under a one-shot trial Stage 2: the live J616s Stage 2 with only its DTB swapped for this tree's t6040-j616s.dtb. Its DTB diff against fleet19's is only these six endpoints, plus phandle renumbering. The production Stage 2 was untouched and restored afterwards.

  • All four xHCI root ports went from not used to hotplug.
  • The dock's hubs went from fixed to removable.
  • The USB2/USB3 peers are unchanged (usb1<->usb2, usb3<->usb4).
  • The T7 SSD behind the dock shows HOTPLUG 1 and runs at 10 Gbps (uas, 855 MB/s direct read).
  • The external display through the dock (DP-2) still comes up. The typec ports gain device links to dwc3/atcphy.
  • Small note: the root ports do not get a connector symlink in sysfs on this boot, so the "resolve to their Type-C connector" part of the description isn't visible there. That's harmless.
  • The boot is clean: err 0, 0 AVC (Enforcing), 0 failed units. The only extra warning line is an unrelated apple-admac interrupt-flag message.

W=1: t6040-j616s.dtb and t6040-j614s.dtb give 26 warnings, the same 26 as base b8ae494f.

The J616s DT reaches the hardware only through a Stage 2 refresh, so the J616s will pick this up with the next Stage 2 DTB refresh.

@RyanTheTide
RyanTheTide merged commit 7206da7 into aurora-silicon:integration/aurora Nov 7, 2026
1 check 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