TI中文支持网
TI专业的中文技术问题搜集分享网站

AM5708客製化板子的USB進HLOS後USB插拔沒有反應

Hi Expert

sdk version:ti-processor-sdk-linux-am57xx-evm-05.03.00.07

在公版試過功能是正常

但AM5708客製化的板子在uboot階段功能是正常

可是進HLOS後USB插拔沒有反應

硬體設計如下:

AM5718 EVM USB1 is USB host and with no connection to USBVus , and USB2 is USB client and USBVbus is with connection to PMIC.

Our AM5708 custom board USB1 is USB client and USBVbus is with connection  to GPIO, and USB2 is USB host and USBVbus is with connection to GPIO.

請問有建議該怎麼解決這個問題嗎?

謝謝

Daniel

Shine:

请问devicetree dts文件有把extcon改成GPIO管脚控制吗?类似下面IDK dts的配置。
extcon_usb2:{compatible = "linux,extcon-usb-gpio";
id-gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
vbus-gpio = <&gpio7 22 GPIO_ACTIVE_HIGH>;
};
&omap_dwc3_2 {
extcon = <&extcon_usb2>;
};

可以参考下面usb驱动的培训视频和pdf。
training.ti.com/usb-system-design-sitara-devices-using-linux-configure-dwc3-linux-kernel

Daniel Cheng1:

回复 Shine:

Hi Shine

USB2當作host

usb2_drvvbus在dts中該怎麼設定?

有範例可以參考嗎?

謝謝

Daniel

Daniel Cheng1:

回复 Daniel Cheng1:

Hi Shine

查了資料USB2當作host時

usb2_drvvbus是由硬體所控制

請教一下

硬體是藉由甚麼機制來偵測是否有u盤之類的東西插入把usb2_drvvbus拉high?

當u盤移除的時候藉由甚麼機制把usb2_drvvbus拉low?

謝謝

Daniel

Shine:

回复 Daniel Cheng1:

USBx_DRVVBUS and USBx_VBUS are hardware related to each other. In Host mode the USB PHY drives DRVVBUS high, and then expects a valid VBUS voltage on VBUS input. The PHY detects an error conditons on VBUS and swithches off DRVVBUS. This is done by hardware in the USB PHY and cannot be controlled by software.

Daniel Cheng1:

回复 Shine:

Hi Shine

執行chkusb.sh但看不出軟體部分有甚麼問題

chkusb.sh Version 0.2.7

Linux buildroot 4.14.79 #7 SMP PREEMPT Tue Jun 30 17:33:46 CST 2020 armv7l GNU/Linux

USB is initialized

usb@48890000: peripheral, okay

usb@488d0000: host, okay

The gadget driver is built-in

Gadget Kernel Config: g_zero is enabled

Gadget Kernel Config: g_audio is enabled

Gadget Kernel Config: g_ether is enabled

Gadget Kernel Config: g_ncm is enabled

Gadget Kernel Config: g_mass_storage is enabled

Gadget Kernel Config: g_serial is enabled

Gadget Kernel Config: g_printer is enabled

gadget driver loaded: (none)

參閱usb驱动的培训视频和pdf我看不出硬體設計上有甚麼問題麻煩協助確認線路設計

usb schematic.docx

謝謝

Daniel

赞(0)
未经允许不得转载:TI中文支持网 » AM5708客製化板子的USB進HLOS後USB插拔沒有反應
分享到: 更多 (0)