How to resolve error related to "usb usb2-port0: Cannot enable. Maybe the USB cable is bad?"

Hi Nvidia Team,

We are working on a Jetson AGX Orin (using JetPack 6.x / Kernel 5.15 / Ubuntu 22.04 Jammy) with our custom carrier board. We are attempting to configure the physical USB port mapped to usb2-0 to function in OTG (Dual-Role / Data) mode.

On our hardware configuration, this port physically uses a **standard Type-A port.
**
After modifying the device tree to change usb2-0 from host to otg, the port sometimes works when plugging in standard USB devices or works after some delay. We consistently receive the following error in dmesg:

"usb usb2-port0: Cannot enable. Maybe the USB cable is bad?"

We have applied the following modifications across our hardware and kernel DTS/DTSI files to enable the role switch:

usb_patch.txt (2.1 KB)

Please guide me on how to use usb2-0 in otg mode and resolve this error.

Regards,

Vrushti

On our hardware configuration, this port physically uses a **standard Type-A port.

Type A does not work with OTG function by its hardware nature… please change the design.

Hi @WayneWWW , the error related to ““usb usb2-port0: Cannot enable. Maybe the USB cable is bad?”” was resolved after changing the usb hub, but the recovery port usb only works during power on, hotpluging the same during runtime doesnt work

As I already told… type A port could not be a fully working OTG port… it is hardware nature defined by USB. Not a NVIDIA product only rule.

You should not discuss a unstable behavior when your hardware is not correct.