Hello Nvidia Team,
I am using AGX Orin NX with custom carrier board. I am trying attain super-speed on usb3.0 port.
The XUDC enumerates on the host PC and the gadget works, but the link always negotiates USB 2.0 High-Speed (480 Mbps) instead of USB 3.0 SuperSpeed (5 Gbps).
Logs:
$ cat /sys/kernel/config/usb_gadget/l4t/max_speed
super-speed
$ cat /sys/kernel/config/usb_gadget/l4t/UDC
3550000.usb
$ cat /sys/class/udc/3550000.usb/maximum_speed
super-speed
$ cat /sys/class/udc/3550000.usb/current_speed
high-speed
$ cat /sys/class/udc/3550000.usb/state
configured
So the controller reports SuperSpeed capability but the negotiated link stays at High-Speed.
We have verified with multiple known-good USB 3.x cables and USB 3 host ports. The issue persists.
Hardware design notes
- Device port is routed to SoC lane pair
usb2-1(D+/D−) +usb3-0(SuperSpeed TX/RX). - Host ports (
usb2-0/usb3-1,usb2-2/usb3-2) remain enabled for keyboard and other USB peripherals via XHCI.
Device tree changes:
dts
usb2-0 {
status = "okay";
mode = "host"; /* was peripheral + usb-role-switch */
vbus-supply = <&vdd_5v0_sys>;
};
usb2-1 {
status = "okay";
mode = "peripheral"; /* was host — our device port */
vbus-supply = <&vdd_5v0_hdmi>;
};
usb3-0 {
status = "okay";
nvidia,usb2-companion = <1>; /* SS companion of usb2-1 */
maximum-speed = "super-speed";
};
usb3-1 {
status = "okay";
nvidia,usb2-companion = <0>; /* SS companion of usb2-0 (host) */
};
XUDC — device controller (usb@3550000)
dts
usb@3550000 {
compatible = "nvidia,tegra234-xudc";
dr_mode = "peripheral";
status = "okay";
phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>,
<&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>;
phy-names = "usb2-0", "usb3-0";
};
sh
usb@3610000 {
status = "okay";
phys = <&.../lanes/usb2-0>,
<&.../lanes/usb2-2>,
<&.../lanes/usb3-1>,
<&.../lanes/usb3-2>;
phy-names = "usb2-0", "usb2-2", "usb3-1", "usb3-2";
/* usb2-1 + usb3-0 intentionally excluded — reserved for XUDC */
};
Ouput logs after configuration:
sh
# On Jetson — bind gadget
echo "" | sudo tee /sys/kernel/config/usb_gadget/l4t/UDC
echo 3550000.usb | sudo tee /sys/kernel/config/usb_gadget/l4t/UDC
# Connect Type-A cable to host PC, then check speed
cat /sys/class/udc/3550000.usb/current_speed
# high-speed (expected: super-speed)
sh
# Gadget already at max allowed speed
$ cat /sys/kernel/config/usb_gadget/l4t/max_speed
super-speed
Questions for NVIDIA
-
Is SuperSpeed USB gadget (XUDC) mode officially supported on the `
usb2-1``usb3-0`ane pair, or is device mode restricted to a specific pair (e.g. default `usb2-0``usb3-1`) -
For a custom Type-A device port on `
usb2-1``usb3-0`,is our `nvidia,usb2-companion = <1>`n `usb3-0`and XUDC `phys`/phy-names`configuration correct as per the tegra-xudc and tegra234-xusb-padctl bindings? -
What conditions cause `
maximum_speed: super-speed`while `current_speed: high-speed`?Which driver layer (padctl PHY, XUDC PORTSC, host PC) should we debug first? -
Are any extra properties required for SuperSpeed gadget on a direct Type-A design (e.g. `
avddio-usb-supply`,`vdd-usb-supply`,padctl port settings, or disabling specific xhci phys)? -
Are there known BSP or `
tegra-xudc`limitations on Orin NX / AGX Orin for SuperSpeed gadget mode in recent L4T releases? -
What is NVIDIA’s recommended procedure to confirm whether the USB3 PHY (`
usb3-0`)is powering on and SS training is attempted (e.g. dynamic debug for `tegra-xudc`,padctl register dumps, PORTSC decode)?
Guidance on whether our device tree and lane assignment are correct for SuperSpeed gadget on a custom Type-A port (`usb2-1` `usb3-0`) and what additional software or hardware checks NVIDIA recommends when 'maximum_speed` shows `super-speed` the link negotiates only 'high-speed`.