Other Parts Discussed in Thread: TUSB320,
Tool/software: Linux
Hi,
On IDK57x, when connecting a Win7/10 PC to Micro USB port, an RNDIS interface (Ethernet over USB) is detected. Then I start ethernet gadget ("modprobe g_ether, ifconfig usb0 <ip4 address>") and communication works.
On our custom AM5748HW-based HW we have 2 identical USB-C ports. Schematics, s reviewed by TI:
In Device tree I set dr_mode = "peripheral" (or "otg", same behaviour) for both USB1 and USB2 port
I set TUSB320 to UFP mode:
i2cset -y -m 0x30 12 0x61 0xa 0x10 (TUSB320 is at I2C bus 12, slave address is 0x61)
When I connect Win7/10 PC via USB-C cable (I tried a native USB-C port and also USB-A via converter cable), TUSB320 ATTACHED_STATE reports ATTACHED_SNK.
Cable direction is also properly determined.
The problem is that the PC does not detect any USB device in the "Device Manager" dialog under Universal serial bus devices or under Network adapters.
What could be the issue here?
To make sure USB-C is working I also set dr_mode to host, set TUSB320 MODE_SELECT to DFP and attached a keyboard (TUSB320 ATTACHED_STATE reports ATTACHED_SRC). Everything is working fine: Keyboard gets power and keystrokes and seen with "cat /dev/input/by-id/usb-NOVATEK_USB_Keyboard-event-kbd"
Best regards, Chris