Skip to contentSkip to conversation

OTG Device mode on i.MX51

DISCUSSION Alexander Shiyan 2 participants 6 messages Apr 26, 2013 – May 7, 2013

lore
Share & tools
lore
#2 lore raw
Quoted 6 lines · Alexander Shiyan
Quoted 4 lines

Hello.

Is anyone have successful works OTG in device mode on iMX51? Thanks!.

ping

I have the driver working in devicemode on several boards, but not on an i.MX51 I think. I have no indication though that the UDC core itself is in any way different to the ones on other i.MXs.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
Quoted 9 lines · Alexander Shiyan
Quoted 4 lines
Quoted 4 lines

Hello.

Is anyone have successful works OTG in device mode on iMX51? Thanks!.

I have the driver working in devicemode on several boards, but not on an i.MX51 I think. I have no indication though that the UDC core itself is in any way different to the ones on other i.MXs.

I have tested usage device mode on i.MX27. It works (Patch for PCM-038 will be sent), but driver(?) does not work for me on i.MX51... Executing is freeze at dr_controller_setup (drivers/usb/gadget/fsl_udc.c). Now I trying to check for missing clocks, but not sure about this since we enable all clocks at start...
So, if anyone can test this feature on i.MX51 it will be helpful. Thanks.

---
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#4 lore raw
Quoted 10 lines · Alexander Shiyan
Quoted 9 lines · Alexander Shiyan
Quoted 4 lines
Quoted 4 lines

Hello.

Is anyone have successful works OTG in device mode on iMX51? Thanks!.

I have the driver working in devicemode on several boards, but not on an i.MX51 I think. I have no indication though that the UDC core itself is in any way different to the ones on other i.MXs.

Quoted 6 lines

I have tested usage device mode on i.MX27. It works (Patch for PCM-038 will be sent), but driver(?) does not work for me on i.MX51... Executing is freeze at dr_controller_setup (drivers/usb/gadget/fsl_udc.c). Now I trying to check for missing clocks, but not sure about this since we enable all clocks at start...
So, if anyone can test this feature on i.MX51 it will be helpful.

If there's a problem it's more likely that the usbmisc registers are not correctly initialized, so it probably won't help to test on another board

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw
Quoted 17 lines
Quoted 10 lines
Quoted 9 lines · Alexander Shiyan
Quoted 4 lines
Quoted 4 lines

Hello.

Is anyone have successful works OTG in device mode on iMX51? Thanks!.

I have the driver working in devicemode on several boards, but not on an i.MX51 I think. I have no indication though that the UDC core itself is in any way different to the ones on other i.MXs.

Quoted 6 lines

I have tested usage device mode on i.MX27. It works (Patch for PCM-038 will be sent), but driver(?) does not work for me on i.MX51... Executing is freeze at dr_controller_setup (drivers/usb/gadget/fsl_udc.c). Now I trying to check for missing clocks, but not sure about this since we enable all clocks at start...
So, if anyone can test this feature on i.MX51 it will be helpful.

Quoted 3 lines

If there's a problem it's more likely that the usbmisc registers are not correctly initialized, so it probably won't help to test on another board

First sucessful work is done.
It is neccesary to set an additional bit in MX5_UTMI_PHY_CTRL_0. #define MX5_OTG_PHYCTRL_OTG_XCVR_BIT (1 << 7)
...
v |= MX5_OTG_PHYCTRL_OTG_XCVR_BIT;
...

But now it still works only with "fsl-udc" driver, not with "chipidea". I will continue work on it.

---
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox