Configure USB HID Device in Full Speed mode in iMX6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configure USB HID Device in Full Speed mode in iMX6

1,974 Views
krunalk
Contributor II

Hello,

I am interested to run my iMX6UL board as an USB HID device (gadget) in full speed mode.
For that I am using hid.c example from \drivers\usb\gadget\legacy\

But device is enumrating in high speed mode only.

My configurations:

static struct usb_composite_driver hidg_driver = {
.name = "g_hid",
.dev = &device_desc,
.strings = dev_strings,
.max_speed = USB_SPEED_FULL,
.bind = hid_bind,
.unbind = hid_unbind,
};

What are the other configurations to enumerate device in full speed mode only?

Please guide.

Labels (4)
0 Kudos
4 Replies

1,294 Views
krunalk
Contributor II

Hi Igor

Unable to find register USB_nPORTSC1, could you please send location.

Currently I am using kernel version 4.1.15-2.0.1+gb63f3f5

0 Kudos

1,294 Views
igorpadykov
NXP Employee
NXP Employee

Hi Krunal

please check sect.54.6.31 Port Status & Control (USB_nPORTSC1)

i.MX6UL Reference Manual

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf

Best regards
igor

0 Kudos

1,294 Views
krunalk
Contributor II

Hi Igor,

Thanks for the link but could you please tell, where to modify it in Linux source? Currently I am using 4.1.15-2.0.1+gb63f3f5.

Thanks,

Krunal

0 Kudos

1,294 Views
igorpadykov
NXP Employee
NXP Employee

Hi Krunal

full speed is forced setting bit PFSC in register USB_nPORTSC1

so one can connect jtag debugger or add printf to check if dts settings

took effect.

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

0 Kudos