Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/TUSB8041: uboot usb start up fails while enumerating TUSB8041

$
0
0

Part Number:TUSB8041

Tool/software: Linux

We are developing a product based on the TI AM5728 EVM.  The product has a TUSB8041 USB HUB on the AM5728 USB host port for additional USB ports.

The hub works without any problems in Linux kernel, but causes uboot to restart when it is probed during usb start.

We are working with the 4.03.00.05 SDK.  We can run usb start in uboot if we leave the TUSB8041 disabled.  Not useful though as we cannot communicate with any of our product ports because they are on the hub.

usb start fails when ever the hub is enabled:

=> usb start
starting USB...
USB0:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... ERROR: Configure Endpoint command returned completion code 8.
Failed to configure xHCI endpoint
failed to set default configuration len 25, status 80000000
BUG: failure at drivers/usb/host/xhci.c:503/_xhci_alloc_device()!
BUG!
resetting ...

We are using the hub with all default settings except PWRCTL polarity is active high and disable the custom battery charging feature.  We configure and enable the hubs via I2C in board.c of uboot, here is an example:

Configure TUSB8041:

palmas_i2c_write_u8(TUSB8041_HUB_1, 0xA, 0x20);

Exit TUSB8041 configuration mode and activate:

palmas_i2c_write_u8(TUSB8041_HUB_1, 0xF8, 0x1);

and uboot resets when usb start is requested.

No issues if the hub is not activated:

=> usb start
starting USB...
USB0: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

=> usb tree
USB device tree:
1 Hub (5 Gb/s, 0mA)
U-Boot XHCI Host Controller


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>