This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5716: USB2 用作gadget-驱动,无法被检测

Part Number: AM5716
Other Parts Discussed in Thread: TPS65916, TPS659037

在AM5716上,使用USB2,以设备模式,作为WINDOWS端的RNDIS网络接口,但在dts中配置模式和在menucofig勾选dwc3和rnds部分驱动并进行编译后,USB线接入后,无法在D+或D-上产生脉冲,WINDOWS端也没有反应。

以下是为配置USB2作的准备工作:

1.dts

1)模式配置

dr_mode = peripheral

2)USB供电

phy-supply = <&ldo4_reg> //3.3v

添加always-on语句

2.menuconfig驱动配置

根据以下链接,完成SDK文档配置dwc3驱动和gadget驱动

https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Foundational_Components/Kernel/Kernel_Drivers/USB/DWC3.html

3.日志打印内容与route部分

动态插入模块内容:

route查看接口:

4.硬件原理图

其中R90与R91已去掉