How to configure usb OTG as a device (slave).

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure usb OTG as a device (slave).

4,892 Views
nitigupta
Contributor I

Hi,

I am currently working on freescale i.mx6ulevk board. It contains two ports one is micro & another is mini. I have to configure mini usb as a usb slave so it can be detected as a device on host PC.

But currently I am unable to find appropriate approach to do this. Where do I start looking to configure usb port?

Thanks,

Niti Gupta

0 Kudos
7 Replies

813 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Niti

one can change dts file

&usbotg2 {dr_mode = "host"; to "peripheral"

linux-2.6-imx.git - Freescale i.MX Linux Tree

also note that on EVK J1101 USB_TYPE_A is used

as Standard-A host connector, refer to attached document.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

813 Views
nitigupta
Contributor I

Thanks igorpadykov

Currently I am using pre-built linux demos images ( I have downloaded them from freescale site). 

As per attached manual of i.mx6ulevk board, it contains two usb ports one is "USB HOST" and another is "USB OTG". I want to configure "USB OTG" as a slave, but is not detected at all in my host linux PC ( Desktop Ubuntu) using usb cable or my desktop PC doesn't detect it as a device.

Will you please help me in this regard? Or give me directions to build linux image for i.mx6ulevk.

Thanks,

Niti Gupta

0 Kudos

813 Views
vongocson
Contributor III

hi everyone

i want to do it too. 

can you tell me howw to do that?

best regard.

0 Kudos

813 Views
nitigupta
Contributor I

Hello,

I have done this work for freescale i.mx6ulevk board. I have to add USB over ethernet device driver in kernel inorder to use "USB OTG" as a ethernet port . "USB OTG " is configured as a slave in device tree by default.

0 Kudos

813 Views
mrizwanghuman
Contributor I

Can you post your solution?

0 Kudos

813 Views
vongocson
Contributor III

hello,

can you share it with me, i want to do that too.

0 Kudos

813 Views
chandiniindavar
Contributor IV

Hi niti gupta

any luck in your case ?

even i am trying to configure USB_OTG as slave so that i can connect to USB_HOST.

Could you please update your status ?

BR

Chandini

0 Kudos