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.

Linux/AM4377: USB 2.0 Host compliance test

Part Number: AM4377

Tool/software: Linux

Hi sir,


Our board has an AM4377 processor with one USB host , we need to implement USB 2.0 compliance test for the host.
We followed the procedure showed in http://processors.wiki.ti.com/index.php/USB_Test_Mode_on_DWC3.
But we want to do more test,I wonder if thare are any other compliance testing mode,such as suspend/resume.


please help us confirm it.


Looking forward to your early reply.


Best regard.
beata.

  • Hello Beata,
    No testing modes beyond what is documented at the link above are provided (or needed). All remaining tests required for USB-IF Compliance are tested in functional mode, many of which are outlined in the USB-IF test specification(s).
  • Hello DK,
    I've known about two ways to make usb suspend and resume.one is directly manipulate the PORTSC(0x48390420) registers ,the bit [8-5] specifies port link state,3 is suspend state,and 15 is resume state.
    Another is "echo on/auto > /sys/devices/platform/44000000.ocp/48380000.omap_dwc3/power/control" .I tried both methods but I didn't detect the signal on the oscilloscope.Please help me confirm whether these two methods are correct,if not,could you please give me some advice to suspend /resume usb port.Thanks.

    Best Regard.
  • Hi Beata,
    I prefer to do this particular test in a functional manner. I suspend the Host via the OS with a wake-capable USB device attached and then just capture the USB_SUSPEND and USB_WAKE (via mouse click) waveforms.

    Unfortunately it appears that the current SDK has an issue with USB wake, so we are looking at it internally.
  • Hi Sir 

    We also met the same request to do USB suspend/resume compliance test.

    Do you have any update for this issue or do we have other methods to do the test?

    thanks for your reply.

    BR

    Yimin

  • Yimin,

    Below is an usb bus suspend/resume question and I have answered it there. Please let me know if this answers your question too.

    The usb bus suspend/resume can also be driven by usb device attach/detach. After Linux is booted, the usb bus goes to suspend state automatically if there is no usb device attached. The bus resumes when a device is attached, and suspended again when the device is detached.