How to use a OTG as a Host mode

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

How to use a OTG as a Host mode

Jump to solution
1,257 Views
ko-hey
Senior Contributor II

Hi all,

I want to use OTG as a USB host I/F with i.MX6SL and have some question about it.

1.

According to P9 of the EVK schematic, USB_TYPE_A connector (J10) is using as a Host mode.

Can I use EVK's driver without any customize when I use USB_OTG2 port as a Host mode ?

2

In my understanding, I need to set a ID pin to LOW when I use a OTG port as a Host mode.

However, EVK doesn't do anything.

Do I need any HW cutomeization when I use as a Host I/F ?

Ko-hey

Labels (2)
Tags (2)
0 Kudos
Reply
1 Solution
1,139 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ko-hey

1. please try units tests (imx-test) (for example 045-Device-Host-Only-Test.txt):

.../test/mxc_usb_test/,  read guidelines in /DOC folder

http://repository.timesys.com/buildsources/i/imx-test/imx-test-3.14.28-1.0.0/

2. ID pin is absent in USB_TYPE_A connector, no need to set ID pin low

For description and usage ID pin please read usb2.0 specification on usb.org

Best regards

igor

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

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

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

View solution in original post

0 Kudos
Reply
4 Replies
1,140 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ko-hey

1. please try units tests (imx-test) (for example 045-Device-Host-Only-Test.txt):

.../test/mxc_usb_test/,  read guidelines in /DOC folder

http://repository.timesys.com/buildsources/i/imx-test/imx-test-3.14.28-1.0.0/

2. ID pin is absent in USB_TYPE_A connector, no need to set ID pin low

For description and usage ID pin please read usb2.0 specification on usb.org

Best regards

igor

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

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

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

0 Kudos
Reply
1,139 Views
ko-hey
Senior Contributor II

Hi Igor

1.

Where can I get unit_tests ?

2.

Okey, Thanks.

Ko-hey

0 Kudos
Reply
1,139 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ko-hey

I believe you can find it in Demo image, probably using find

Tips For Linux - How to find files in Linux using 'find'

Best regards

igor

1,139 Views
ko-hey
Senior Contributor II

Hi Igor

Okey, Thanks !

Ko-hey

0 Kudos
Reply