Microchip USB5807c hub usb enumeration failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Microchip USB5807c hub usb enumeration failed

741件の閲覧回数
anshul27
Contributor II

Have been stuck for quite a while with bringing up a Microchip USB5807c 7 port USB 3.2 SmartHub on the IMX8Plus SOM running kernel 5.1(kirkstone). In order to rule out any issues related to the hub and connection we hooked the hub up to an Nvidia Jetson AGX Orin running Ubuntu and observed that the hub enumerates as two separate devices. The first (USB5807) handles the USB3.0+ devices and the other (USB2807) for the USB 2.0- devices. All devices connected to the hub work flawlessly, and we have confirmed that all necessary drivers for the peripherals on the hub are present on both the Jetson and the IMX. On the IMX we observe that the USB5807 node is created, and the connected USB3 peripherals (just a RTL8153 based USB-GBE adapter) are reachable. However the USB2807 node which we observed was created on the Jetson is not seen on the IMX as well as any USB2 peripherals. There is no obvious error/failure messages in dmesg/journal which have made this difficult to debug

タグ(3)
0 件の賞賛
返信
4 返答(返信)

655件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @anshul27 

 

I hope you are doing very well.

 

Could you please share your device tree related to this USB test?

Also, Have you tried with another USB port on i.MX8MP?

 

Best regards,

Salas.

0 件の賞賛
返信

635件の閲覧回数
anshul27
Contributor II

Thank you for your attention.

 

/* USB */
&usb3_phy0 {
vbus-supply = <&reg_vcc_5v_sw>;
status = "okay";
};

&usb3_0 {
status = "okay";
};

&usb_dwc3_0 {
dr_mode = "host";
status = "okay";
};

&usb3_phy1 {
vbus-supply = <&reg_vcc_5v_sw>;
status = "okay";
};

&usb3_1 {
status = "okay";
};



I am using default device tree given with phytec pollux devkit. FYI if I connect FTDI based serial device or a flash drive everything works fine.  I'm wondering if there's a specific driver or udev rule I'm missing, or if I need to add or change the product/vendor ID to ensure the correct driver gets triggered.

0 件の賞賛
返信

616件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @anshul27 

 

Please try changing this node on your device tree:

 

&usb_dwc3_0 {
    dr_mode = "host";
    snps,xhci-port-route = <0x1>;
    status = "okay";
};

 

Let me know if it is working for you.

 

Best regards,

Salas.

0 件の賞賛
返信

565件の閲覧回数
anshul27
Contributor II

Thank you for your reply!


Unfortunately adding below as you suggested didn't work.

diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
index c1114a1aed83..ef38d6ffa1e4 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
@@ -360,6 +360,7 @@ &usb3_0 {

 &usb_dwc3_0 {
        dr_mode = "host";
+       snps,xhci-port-route = <0x1>;
        status = "okay";
 };

 

 

This is my kconfig and dmesg for your reference

CONFIG_R8188EU=m
CONFIG_USB_G_WEBCAM=m
CONFIG_MXC_GPU_VIV=y
CONFIG_SERIAL_MAX310X=y
CONFIG_MAX1363=y
CONFIG_IIO_ST_SENSORS_CORE=y
CONFIG_IIO_TRIGGERED_BUFFER=y
CONFIG_IIO_ST_ACCEL_3AXIS=y
CONFIG_IIO_ST_ACCEL_I2C_3AXIS=y
CONFIG_SENSORS_SHT4x=y
CONFIG_CRC8=y
CONFIG_HWMON=y
CONFIG_VIDEO_ADV7393=y
CONFIG_USB_GADGET=y
CONFIG_USB_F_SERIAL=y
CONFIG_USB_CONFIGFS=y
CONFIG_USB_CONFIGFS_SERIAL=y
CONFIG_TYPEC_TPS6598X=y
CONFIG_USB_STORAGE=y
CONFIG_USB_ROLE_SWITCH=y
CONFIG_USB_OTG=y
CONFIG_USB_OTG_FSM=y
CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_HOST=y
CONFIG_USB_DWC3_GADGET=y
CONFIG_USB_DWC3_DUAL_ROLE=y
CONFIG_USB_UAS=y
CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_PHY=y
CONFIG_DRM_NOUVEAU=y
CONFIG_DRM_IMX=y
CONFIG_DRM_IMX_DCSS=y
CONFIG_DRM_IMX8MP=y
CONFIG_USB_SERIAL_CH341 =y
CONFIG_USB_SERIAL_BELKIN=y

 

# [ 3910.565381] usb 4-1.1: new SuperSpeed USB device number 5 using xhci-hcd
[ 3910.617358] hub 4-1.1:1.0: USB hub found
[ 3910.621383] hub 4-1.1:1.0: 7 ports detected
[ 3911.354016] usb 4-1.1.1: new SuperSpeed USB device number 6 using xhci-hcd
[ 3911.561861] usb 4-1.1.1: reset SuperSpeed USB device number 6 using xhci-hcd
[ 3911.671534] r8152 4-1.1.1:1.0: load rtl8153a-4 v2 02/07/20 successfully
[ 3911.722817] r8152 4-1.1.1:1.0 eth2: v1.12.13
[ 3914.426138] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
[ 3914.432756] r8152 4-1.1.1:1.0 eth2: carrier on


Thank you for your support.

0 件の賞賛
返信