This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3356: USB OTG does not work after sleep&wakeup

Part Number: AM3356

Hi, Expert.

In normal mode, OTG on usb0 works well.
But after sleeping and waking-up, it does not work.

Please help me!


There are no messages in dmesg.
Host mode on usb1 also works well, even after waking-up.

  • Contidions
    USB device: LAN / Mass storage
    SDK version: 08_02_00_24
    Kernel version: 5.10.100+
    Board: custom board
    device-tree:
    usb0_pins_default: usb0_pins_default {
    pinctrl-single,pins = <
      AM33XX_IOPAD(0xa1c, PIN_OUTPUT | MUX_MODE0) /* F16 USB0_DRVVBUS.USB0_DRVVBUS */
      >;
    };
    usb0_pins_sleep: usb0_pins_sleep {
    pinctrl-single,pins = <
      AM33XX_IOPAD(0xa1c, PIN_OUTPUT | MUX_MODE7) /* (F16) USB0_DRVVBUS.gpio0_18 */
      >;
    };
    ...
    &usb0 {
      pinctrl-names = "default", "sleep";
      pinctrl-0 = <&usb0_pins_default>;
      pinctrl-1 = <&usb0_pins_sleep>;
      status = "okay";
      dr_mode = "otg";
    };
    &usb1 {
      pinctrl-names = "default", "sleep";
      pinctrl-0 = <&usb1_pins_default>;
      pinctrl-1 = <&usb1_pins_sleep>;
      status = "okay";
      dr_mode = "host";
    };