NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
TI81XX PSP USB Driver User Guide
TI81XX refers to TI816X, TI814X and TI813X.
Introduction[edit]
The TI81XX USBSS consists of two instance of mentor usb controller (musb controller). Each controller supports USB2.0 standards supporting HS/FS/LS speed. Each musb controller uses CPPI4.1 (Communication programming port interface 4.1 compliance) based DMA controller to transfer of data to/from between the external memory and endpoint FIFO. There are 15 Tx/Rx endpoints for each controller and each Tx/Rx endpoint uses dedicated Tx/Rx CPPI4.1 DMA channel for transfer of data. The endpoint-0 used for control transfer. For more information please refer to Technical reference manual at here
References[edit]
- The USB2.0 specification standard at USB 2.0 spec
- Refer corresponding TI81XX Technical Reference Manual at here
- Refer approved usb class specification documents here
Acronyms & Definitions[edit]
Acronym | Definition |
---|---|
USB | Universal Serial Bus |
OTG | On The Go |
HS/FS/LS | Highspeed/Fullspeed/LowSpeed |
UAC | USB Audio Class |
UVC | USB Video Class |
HID | Human Interface Devices |
CDC | Communication Device Class |
RNDIS | Remote Network Device Interface Specification |
DTM | Driver Test Manager |
CPPI | Communication programming port interface |
USBSS | USB subsystem |
Software Architecture [edit]
Mentor graphics usb otg controller driver (or MUSB driver) [edit]
The MUSB driver is implemented on top of Mentor controller IP which supports all the speeds (High, Full and Low). TI81XX USBOTG subsytem uses CPPI 4.1 DMA for all the transfers. The musb driver confirms to linux usb framework support both in PIO/DMA mode of operation. The musb host controller driver (HCD) binds the controller hardware and linux usb core stack. The musb device/gadget controller driver binds the controller hardware and specific gadget driver (filestorage, cdc/rndis etc).
Linux USB Stack Architecture [edit]
As shown in the figure, linux usb stack is an layered architecture, musb controller being the lowest layer, the musb host/device controller driver binds the musb controller hardware to linux usb stack frame work. The CPPI4.1 DMA controller driver is responsible for transmission/reception of packets over the musb endpoints.
Features[edit]
- The Mentor USB driver can be built as module or built-in to kernel
- Support both PIO and DMA mode (The DMA mode not applicable for control endpoint)
- Support two instances musb controller in host mode (both usb0 and usb1 controller in host mode).
- Support USB gadget/device mode only (In this gadget only mode, only USB0 controller can be configured as Gadget and USB1 cannot be configured as gadget mode)
- Dual role support : Concurrent usage of one port as USB host and other port as USB device (refer USB Userguide for details)
USB Host Features (TI816X/TI814X/TI813X)[edit]
Host Mode Feature | TI816x PG1.X | TI816x PG2.X | TI814x | TI813x |
---|---|---|---|---|
HUB class support | No | Yes | Yes | Yes |
Human Interface Class (HID) | Yes | Yes | Yes | Yes |
Mass Storage Class (MSC) | Yes | Yes | Yes | Yes |
USB Video Class (UVC) | Yes | Yes | Yes | Yes |
USB Audio Class (UAC) | Yes | Yes | Yes | Yes |
USB CDC Host | Yes | Yes | Yes | No |
USB Gadget Features (TI816X/TI814X/TI813X)[edit]
Gadget Mode Feature | TI816x | TI814x | TI813x |
---|---|---|---|
Mass Storage Class (MSC) | Yes | Yes | Yes |
USB Networking - RNDIS | Yes | Yes | Yes |
USB Networking - CDC | Yes | Yes | Yes |
Dual mode features (TI816X/TI814X/TI813X)[edit]
In dual mode feature, each port (usb0 or usb1) can be configured as host or device mode. Based on the USB_ID pin on connector or cable type, the musb controller can take the role of host (if USB_ID is grounded) and device (if USB_ID is open).
Dual Mode Feature | TI816x | TI814x | TI813x |
---|---|---|---|
USB0 as host, USB1 as gadget | Yes | Yes | Yes |
USB0 as gadget, USB1 as host | Yes | Yes | Yes |
USB0 as host, USB1 as host | Yes | Yes | Yes |
Note: This feature not supported for TI814X PG1.x silicon version (refer known issues at release notes)
Connector type details [edit]
Note: To support dual mode, the usb ports on board should have mini/micro-AB connector in order to connect both host cable (mini/micro-A to A receptacle) or device cable (mini/micro-B to standard A cable). The host only port will have standard host A-receptacle (or mini/micro-A recepactle) and device only port will have standard-B connector (or mini/micro-B connector).
OTG support (TI816X/TI814X/TI813X)[edit]
TI816x | TI814x | TI813x | |
---|---|---|---|
OTG support | No | No | No |
Configuration[edit]
The Mentor USB driver can be built as module or built into kernel. For more information refer to linux-usb configuration Page
USB Host Configuration[edit]
Host Mass storage class[edit]
For USB Host MSC configuration refer to Mass Storage Class (MSC)
Host HID class[edit]
For USB HID configuration refer to Human Interface Class (HID)
Host Audio class[edit]
For USB Host Audio configuration refer to USB Audio Class (UAC)
Host Video class[edit]
For USB Host Video configuration USB Video Class (UVC)
Host CDC class[edit]
refer to CDC-Host configuration at USB CDC Host
USB Device Configuration[edit]
Device CDC/RNDIS class [edit]
- For USB gadget RNDIS configuration refer to USB Networking - RNDIS
- For USB gadget CDC configuration refer to USB Networking - CDC
Device Mass storage class [edit]
For USB gadget Mass storage FSG configuration refer to Mass Storage Class (MSC)
Dual mode Configuration[edit]
In dual mode configuration, user has option to configure one port as host and other as device and vice versa. For more info, refer to USB0 as host, USB1 as gadget