IMX8MP : USB 3.0 (superspeed pendrive) not detected

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MP : USB 3.0 (superspeed pendrive) not detected

1,723 Views
shivani__p
Contributor II

Hello,

We have designed the custom board based on the i.MX8MP. We have interfaced the Type C (ptn5150) on USB bus-1 and USB Type A interface from USB hub (CYUSB3304-68LTXI) on USB bus-2.

When I set dr_mode property in device tree for both USB bus (type c & type a) to "host", then Super speed pendrive is being detected on USB Type A (USB bus - 2). But if I change the dr_mode property of Type C node (USB bus - 1) to "otg" then Superspeed pendrive is not detected on USB Type A (USB bus - 2).

So, why the behavior of detection for Superspeed device is depend on Type C device mode?

I am attaching the device tree nodes for both USB Bus.

  • USB Type C Device Tree Node (Working)

shivani__p_4-1647433568071.png

shivani__p_1-1647432930140.png

  • USB Type A Device Tree Node

shivani__p_2-1647433000943.png

  • USB Type C Device Tree Node (Not Working)

shivani__p_5-1647433902275.png

 

Can anyone help why this issue?

Regards,

Shivani

Tags (2)
0 Kudos
6 Replies

1,646 Views
aber
Contributor III

Hi Shivani

Has this problem been solved? Also encountered the same problem. Can you share it。

0 Kudos

1,629 Views
shivani__p
Contributor II

Hi, 

No problem is not solved yet.

 

Regards,

Shivani

0 Kudos

1,627 Views
aber
Contributor III

Hi shivani

    I have solved it here. Please pay attention to the 8-bit I2C Address 0x3A of the ptn5150 address on my side. You can configure it according to your own.

ptn5150: tcpc@1d {
compatible = "nxp,ptn5150";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_typec>;
reg = <0x1d>;
int-gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>;

usb_con: connector {
compatible = "usb-c-connector";
label = "USB-C";
power-role = "dual";
data-role = "dual";
try-power-role = "sink";
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
PDO_VAR(5000, 20000, 3000)>;
op-sink-microwatt = <15000000>;
self-powered;
};
};

 

&usb_dwc3_0 {
dr_mode = "otg";
hnp-disable;
srp-disable;
adp-disable;
usb-role-switch;
status = "okay";

};

0 Kudos

1,608 Views
shivani__p
Contributor II

Hi @aber ,

 

These changes are not working at my end? 

Can you share your usb_phy node changes as well?

 

Thanks,

Shivani

0 Kudos

1,623 Views
shivani__p
Contributor II

Hi @aber ,

 

Let me check these configurations at my end. 

I will update you.

Thanks,

Shivani

0 Kudos

1,602 Views
aber
Contributor III

hi shivani

   The kernel version on my side is 5.10 and there is no node usb_phy

Tags (1)
0 Kudos