Hi Qiang,
人为地控制它,是做不到的,因为不符合OTG设计的协议。
Have a great day,
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
You can use a dtb file with dr_mode of peripheral for mfg tool usb device mode
Please check the device tree binding guide
kernel_imx/Documentation/devicetree/bindings/usb/fsl-usb.txt
24 - dr_mode : indicates the working mode for "fsl-usb2-dr" compatible
25 controllers. Can be "host", "peripheral", or "otg". Default to
26 "host" if not defined for backward compatibility.
Hi Qiang,
OTG的工作方式,不是这样的。应该是:根据外面接入的USB 设备类型,自动检测,并转换状态的。
Have a great day,
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------