This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM368 as usb pheripheral with high speed

Hi all,

 

I am using dm368 with dvsdk-4 kernel . My plan is use DM368 as a pheripheral device. I compiled the kernel and i am able to enumerate dm365 as gadget zero device in host but in full speed. I want to use DM368 as a High speed device. What are the changes required in usb driver to work it as High speed device. I am adding my log after loading gadget zero driver.

 

ON DM368 Side:-

 

insmod g_zero.ko 

zero gadget: Gadget Zero, version: Cinco de Mayo 2008

zero gadget: zero ready

drivers/usb/musb/davinci.c musb_platform_enable: dma not reactivated

root@dm368-evm:/module_mt9p# zero gadget: full speed config #3: source/sink

ON Linux Host Side:-
May 26 14:35:10  kernel: [70128.824070] usb 6-1: new full speed USB device using uhci_hcd and address 45
May 26 14:35:10  kernel: [70128.966088] usb 6-1: not running at top speed; connect to a high speed hub
May 26 14:35:10  kernel: [70129.003228] usb 6-1: configuration #3 chosen from 2 choices
May 26 14:35:10  kernel: [70129.015161] usbtest 6-1:3.0: Linux gadget zero
May 26 14:35:10  kernel: [70129.015167] usbtest 6-1:3.0: full speed {control in/out bulk-in bulk-out} tests (+alt)
can any help to solve this problem
Thanks in advance

 

  • The Linux musb code is setup for high speed by default. Actually, I couldn't find an easy way to force full-speed in the driver code. The USB protocol will initialily connect at full speed and then negotiates to high speed. Implies that the high-speed negotiation failed. Double check that all your HW is high-speed capable, ie. hubs, PC MB/card, cable, etc.

     

  • Hai Norman Wong ,

     

    Thanks for ur reply, after changing the cable it is working with high speed. The problem is with usb cable.