Relation between USB_OTG_ID and /sys/kernel/debug/ci_hdrc.0/role

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

Relation between USB_OTG_ID and /sys/kernel/debug/ci_hdrc.0/role

跳至解决方案
1,553 次查看
yangao
Contributor III

Hi,

We are using iMX6 DL. On OTG port, we detected USB_OTG_ID is low but 

~# cat /sys/kernel/debug/ci_hdrc.0/role
gadget

Is there something wrong?

I am thinking USB_OTG_ID being low means OTG port works as host and I can connect some USB device to it; while /sys/kernel/debug/ci_hdrc.0/role being "gadget" means the OTG port is working as gadget mode so I can only connect a host to it, right?

 

Regards,

Winston

标签 (1)
0 项奖励
回复
1 解答
1,543 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Yes, your reasoning is correct, while the USB OTG ID pin is high/floating USB should be working as a device/gadget and when it is low it is working as a host.

Please check that you have configured correctly in your device tree this pin, you may refer to the following post:
https://community.nxp.com/t5/i-MX-Processors/USB-OTG-on-IMX6DL-detection-problem/m-p/766307

Best regards,
Aldo.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,532 次查看
yangao
Contributor III

Thanks for the reply. There are some HW issue and HW re-design make the two match.

Regards,

Winston

0 项奖励
回复
1,544 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Yes, your reasoning is correct, while the USB OTG ID pin is high/floating USB should be working as a device/gadget and when it is low it is working as a host.

Please check that you have configured correctly in your device tree this pin, you may refer to the following post:
https://community.nxp.com/t5/i-MX-Processors/USB-OTG-on-IMX6DL-detection-problem/m-p/766307

Best regards,
Aldo.

0 项奖励
回复