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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,832 次查看
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 项奖励
回复
1 解答
1,827 次查看
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

在原帖中查看解决方案

3 回复数
1,821 次查看
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 项奖励
回复
1,819 次查看
igorpadykov
NXP Employee
NXP Employee

right.

 

Best regards
igor

0 项奖励
回复
1,828 次查看
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