I am using a TI/Mistral AM3715 / 3430 EVM. In menuconfig I have enabled
EHCI HCDRoot Hub Transaction TranslatorImproved Transaction TranslatorInventra Highspeed Dual ROle Controller - Omap 343xUSB Mass Storage supportUSB Modem (CDC ACM) supportUSB Serial converter supportUSB GenericUSB FTDIUSB Prolific 2303
This all builds and runs fine. Using the ECHI-Host USB port on the EVM:
If I plug in a USB to Serial lead - an FTDI device or Prolific 2303 device - I get the message "hub1-0:1.0: Cannot enable port 2. Maybe the USB cable is bad?"
If I plug in a USB Flash stick it get enumerated and works OK.
If I plug in a USB Hub that gets recognised fine.
If I plug the FTDI and Prolific USB To Serial devices into the hub, they are are both recognised OK and their respective drivers are loaded.
So why don't they work when plugged in directly? It's puzzling!
The EHCI port is HS only. You need a HS hub to be able to use LS/FS devices. Mostly likely your USB Serial device is FS so direct connection did not work. Most likely your USB Flash stick is HS so it did work directly connected.
Thanks for the reply Steve. This may well be the issue. What makes it HS only? The processor datasheet talks about the USB Host ports supporting all speeds, the ULPI connections supporting HS & FS.
In the USB spec Hosts must be able to switch from EHCI to OHCI if the peripheral requires it. Is the Linux driver the limiting factor?
If it's hardware, our new boards may be stuffed!
I also noticed an incompatibility in the pin function between the TI and the SMSC3320 PHY. When switching to FS/LS mode, 3pin or 6pin serial; the TI has TX_EN on usb Data, DATA on Data & SE0 on Data. The SMSC has TX_EN on Data, Data on Data & SE0 on Data.
So that won't be able to switch to FS/LS.
Is the TI chip compatible with any other PHY chips out there? ( TI's own TUSB1210 PHY doesn't match)
And also, to really put the nail in the coffin; from the AM3715 Errata:
USB HOST: Impossible To Attach a FS Device To An EHCI Port - Handoff To OHCI
Is Not Functional
1.2, 1.1 and 1.0
It is not possible to perform USB transactions with an FS device on port USB_B1/B2.
EHCI is able to detect the device, reset it, and find that it is a FS device. SW will then
hand off the port to OHCI by setting the PORTSC:PO (PORT OWNER) bit.
OHCI is able to detect the connection, but then cannot communicate with the device.
When the PHY switches to FsLsSerialMode, the ULPI DIR signal will go to 1 forever. In
HS mode, if DIR is 1, then the ULPI DATA switches to input only mode. This input only
configuration is wrongly kept after switching to FsLsSerialMode, so USB transactions
Attaching a FS device directly to an OHCI port is working fine.
Only attach FS devices to OHCI ports or use an HS hub to interface between EHCI ports
and LS/FS/HS devices."
So I guess that's our boards wiped then.
If we are to do a quick and dirty mod, can the TUSB1210 be used? It seems to imply that it can do HS, FS and LS comms in ULPI mode. Would the AM3715 be able to support this? Or do we have to use a hub chip so the Host is in HS mode and the hub handles transaction translation?
For others researching this issue there other important threads below:
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.