How to enable the OTG 2 and set device mode on i.MX6 UL/ULL

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

How to enable the OTG 2 and set device mode on i.MX6 UL/ULL

Jump to solution
1,044 Views
viking_yuan
Contributor II
For OTG 1, both device and host modes work fine. OTG 2 host mode works, too. But I can't see the USB mass storage if OTG 2 is set as a device.
0 Kudos
Reply
1 Solution
1,039 Views
igorpadykov
NXP Employee
NXP Employee

Hi viking_yuan

 

one can check if usb mode is configured properly in dts using

sect.4.9.9 Changing the Controller Operation Mode   i.MX Linux Reference Manual​

 

Best regards
igor

View solution in original post

3 Replies
1,033 Views
viking_yuan
Contributor II

Thanks igor!

So, if I want to use both device and host mode, I should configure it as below, correct?

dr_mode = "otg" /* Set controller as otg mode */

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

right.

 

Best regards
igor

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

Hi viking_yuan

 

one can check if usb mode is configured properly in dts using

sect.4.9.9 Changing the Controller Operation Mode   i.MX Linux Reference Manual​

 

Best regards
igor