USB_OTG works as USB host

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

USB_OTG works as USB host

跳至解决方案
2,466 次查看
wangtsungli
Contributor IV

Hi Community,

I'm working on i.MX6 Quad sabre-SD and build Android 6.0 as my OS system.

I'm trying to designed OTG not only device mode but also a HOST mode.

The condition now is my OTG could burn image via MFGTOOL by connecting OTG.(Means my OTG could be device mode)

But my mouse cannot work if I plugin OTG.(Means my OTG could not be host mode)

Is that anything I need to be mentioned in DTS settings or driver settings or fstab.freescale?

Or my hardware designed issued?

Thanks in Advanced!

标签 (4)
0 项奖励
1 解答
2,053 次查看
igorpadykov
NXP Employee
NXP Employee
0 项奖励
5 回复数
2,053 次查看
igorpadykov
NXP Employee
NXP Employee

Hi tsung

USB_OTG_ID should be low in host mode, one can check this signal.

Various usb tests can be found in unit test package:

https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_usb_test?h=imx_4.9.88_2.0.0_ga 

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

0 项奖励
2,053 次查看
wangtsungli
Contributor IV

igorpadykov

igorpadykov 留言:

Hi tsung

 

USB_OTG_ID should be low in host mode, one can check this signal.

Various usb tests can be found in unit test package:

https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_usb_test?h=imx_4.9.88_2.0.0_ga 

 

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

I've check when I want to be the host mode ID ping will not change to low.

It will still high.

Is there any settings I need to set?

Below is my DTS settings for ID pin

&usbotg {
vbus-supply = <&reg_usb_otg_vbus>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbotg>;
disable-over-current;
srp-disable;
hnp-disable;
adp-disable;
status = "okay";
};

pinctrl_usbotg: usbotggrp {
fsl,pins = <
MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059
>;
};

For hardware designed my ID pin will pull high, is this design correct?

0 项奖励
2,054 次查看
igorpadykov
NXP Employee
NXP Employee

Hi tsung

dts example can be found on

imx6qdl-sabresd.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

Best regards
igor

0 项奖励
2,053 次查看
wangtsungli
Contributor IV

igorpadykov 留言:

Hi tsung

 

dts example can be found on

imx6qdl-sabresd.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

 

Best regards
igor

igorpadykov

Thanks for your reference.

Now my OTG can be device and host.

But there is coming new issue.

Below is my hardware design for ID.

pastedImage_2.png

If I did not plugin otg, ID would be high because of the pull high design.

At this condition, my EIM_D22 USB power pin are not stable at low.

It changed low to high and high to low.

How can I fix this problem? 

Is there anything I need to mentioned?

0 项奖励
2,053 次查看
igorpadykov
NXP Employee
NXP Employee

Hi tsung

for new porblems please create new threads.

Best regards
igor

0 项奖励