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.
Can anyone help why this issue?
Regards,
Shivani
Hi,
No problem is not solved yet.
Regards,
Shivani
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";
};