Repository navigation
arm64: dts: apple: t6040-j616s: Describe the USB3 path of the Type-C ports - #1074
Conversation
…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
left a comment
There was a problem hiding this comment.
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 usedtohotplug. - The dock's hubs went from
fixedtoremovable. - The USB2/USB3 peers are unchanged (usb1<->usb2, usb3<->usb4).
- The T7 SSD behind the dock shows
HOTPLUG 1and 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
connectorsymlink 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.
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.lsblkthen 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,atcphyandsnps,dwc3-commonbindings describe and the other Apple SoCs do. The root ports become hotplug ports. atcphy0..2 havemode-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)
lsblkshowsHOTPLUG 1for it. Without the change it showed 0.068dfce19780,t6040-j616s.dtbbuilds.🤖 Generated with Claude Code