P2020 USB device mode

cancel
Showing results for 
Search instead for 
Did you mean: 

P2020 USB device mode

Jump to solution
613 Views
t_herbrecher
Contributor II

Hello.

We designed a custom board with the P2020 processor. One feature of this board is that it could be connected to a host PC via USB as device. For that the dual role USB controller is connected to a standard USB-B connector through a Microchip USB3317 ULPI-compliant USB-PHY.

We tried to get that USB connection working under linux (USB gadget drivers in ported 3.12 linux kernel from kernel.org) but we did not succeed. The board is not recognized on the host PC. A beagle USB tracer shows that the connection directly goes back to disconnected state when the board is plugged in. The hardware should be OK because when I configure the USB controller to work as host for testing, the USB port works as it should when communicating with a USB mass-storage device (USB memory stick).

Has anybody used the P2020 dual role USB controller as USB device under linux? Can someone help me to get that working?

Thank you and best regards

Timo

Labels (1)
Tags (4)
0 Kudos
1 Solution
352 Views
Pavel
NXP Employee
NXP Employee

Look at the following pages:

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F2646868.html

and

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F3114243.html.

These pages contain information for using High speed Dual-Role(DR) USB controller as USB gadget.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
353 Views
Pavel
NXP Employee
NXP Employee

Look at the following pages:

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F2646868.html

and

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F3114243.html.

These pages contain information for using High speed Dual-Role(DR) USB controller as USB gadget.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
352 Views
t_herbrecher
Contributor II

Hello Pavel.

Thank you for the quick reply. I checked the USB peripheral function with the SDK 1.7 source code from the Freescale git. With that version of the linux kernel the USB works correctly in peripheral mode. So I've to find the differences between the kernel.org and the freescale implementation and create apropriate patches.

Thank you again and best regards,

Timo

0 Kudos