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.

[FAQ] AM6412: USB compliance test pattern generation

Part Number: AM6412

Hi TI,

How to generate USB compliance test from CPU In Linux kernel 5.10 on AM64xx.

I followed the instructions below.

TDA4VM: USB 2.0 host test mode

Set dr_mode to host.

# cat /proc/device-tree/bus\@f4000/cdns-usb\@f900000/usb\@f400000/dr_mode
host

# cat /proc/device-tree/bus\@f4000/cdns-usb\@f900000/usb\@f400000/compatible
cdns,usb3

Unbind the usb 2.0 hub befind CPU.

# echo '1-1' > /sys/bus/usb/drivers/usb/unbind

# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M

And, type the command to generate the test pattern.

# echo compliance > /sys/kernel/debug/usb/xhci/xhci-hcd.1.auto/ports/port01/portsc

# cat /sys/kernel/debug/usb/xhci/xhci-hcd.1.auto/ports/port01/portsc
PORTSC = 0xc000e63
Powered Connected Enabled Link:U3 PortSpeed:3 Change: Wake: WDE WOE

However, The CPU doesn't seem to generate any signals.

What are we missing here?

Or, is there any other way to generate test patterns?

Thanks,
Sean