P2020 USB device mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

P2020 USB device mode

跳至解决方案
815 次查看
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

标签 (1)
标记 (4)
0 项奖励
1 解答
554 次查看
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 项奖励
2 回复数
555 次查看
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 项奖励
554 次查看
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 项奖励