Changes Required for USB Type-C to Type-A Port Conversion on i.MX8MP Custom Board

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

Changes Required for USB Type-C to Type-A Port Conversion on i.MX8MP Custom Board

706件の閲覧回数
MJD
Contributor III

Hello i.MX Community,

We are working with the i.MX8MP processor on our custom board, and our schematic closely resembles the EVK board. However, as per our requirements, we have replaced the USB Type-C port (J13) with a USB Type-A port.

We would like to know:

  1. Are there any necessary changes required in the device tree (DTS) configuration to accommodate this modification?
  2. Are there any additional software or hardware considerations we need to address to ensure the USB functionality works flawlessly?
  3. Do we need to modify any power delivery configurations or role-switching settings due to the shift from Type-C to Type-A?

Your insights and recommendations would be highly appreciated.

Thank you

MJD_0-1737767782147.png

 

@usb

 

0 件の賞賛
返信
2 返答(返信)

673件の閲覧回数
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

For software and hardware changes in USB Type-A, please take a look in the next post:

i.MX8MM & i.MX8MQ USB2.0 Design Without USB TYPE-C - NXP Community

Best regards.

0 件の賞賛
返信

639件の閲覧回数
MJD
Contributor III

Hi @JorgeCas 
With the suggestion given in the link, we have removed the USB-PD chip and CC-logic chip on our custom board

and also we have changed the required configuration mentioned in the link as bellow , But still we are not able to detect the device connected to usb A-type port.

669 ptn5110: tcpc@50 {
670 compatible = "nxp,ptn5110";
671 pinctrl-names = "default";
672 pinctrl-0 = <&pinctrl_typec>;
673 reg = <0x50>;
674 interrupt-parent = <&gpio4>;
675 interrupts = <19 8>;
676
677 port {
678 typec_dr_sw: endpoint {
679 remote-endpoint = <&usb3_drd_sw>;
680 };
681 };
682
683 usb_con: connector {
684 compatible = "usb-c-connector";
685 label = "USB-A";
686 power-role = "dual";
687 data-role = "dual";
688 try-power-role = "sink";
689 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
690 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
691 PDO_VAR(5000, 20000, 3000)>;
692 op-sink-microwatt = <15000000>;
693 self-powered;
694 status = "disabled"; ///status disabled.
695
696 ports {
697 #address-cells = <1>;
698 #size-cells = <0>;
699
700 port@1 {
701 reg = <1>;
702 typec_con_ss: endpoint {
703 remote-endpoint = <&usb3_data_ss>;
704 };
705 };
706 };
707 };
708 };

1023 &usb3_phy0 {
1024 fsl,phy-tx-vref-tune = <0xe>;
1025 fsl,phy-tx-preemp-amp-tune = <3>;
1026 fsl,phy-tx-vboost-level = <5>;
1027 fsl,phy-comp-dis-tune = <7>;
1028 fsl,pcs-tx-deemph-3p5db = <0x21>;
1029 fsl,phy-pcs-tx-swing-full = <0x7f>;
1030 status = "okay";
1031 };
1032
1033 &usb3_0 {
1034 status = "okay";
1035 };
1036
1037 &usb_dwc3_0 {
1038 /* dr_mode = "otg";*/
1039 dr_mode = "host";
1040 hnp-disable;
1041 srp-disable;
1042 adp-disable;
1043 usb-role-switch;
1044 role-switch-default-mode = "none";
1045 snps,dis-u1-entry-quirk;
1046 snps,dis-u2-entry-quirk;
1047 status = "okay";
1048
1049 port {
1050 usb3_drd_sw: endpoint {
1051 remote-endpoint = <&typec_dr_sw>;
1052 };
1053 };
1054 };
1055
1056 &usb3_phy1 {
1057 fsl,phy-tx-preemp-amp-tune = <3>;
1058 fsl,phy-tx-vref-tune = <0xb>;
1059 status = "okay";
1060 };
1061
1062 &usb3_1 {
1063 status = "okay";
1064 };
1065
1066 &usb_dwc3_1 {
1067 vbus-supply = <&reg_usb_vbus>;
1068 dr_mode = "host";
1069 status = "okay";
1070 };

pinctrl_usb1_vbus: usb1grp {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x10
>;
};


we see the bellow logs when device connected.

root@imx8mp-lpddr4-evk:~# [ 2662.022231] usb 1-1: new high-speed USB device number 50 using xhci-hcd
[ 2662.154260] usb 1-1: device descriptor read/64, error -71
[ 2662.398256] usb 1-1: device descriptor read/64, error -71
[ 2662.638224] usb 1-1: new high-speed USB device number 51 using xhci-hcd
[ 2662.770259] usb 1-1: device descriptor read/64, error -71
[ 2663.010272] usb 1-1: device descriptor read/64, error -71
[ 2663.122365] usb usb1-port1: attempt power cycle
[ 2663.538212] usb 1-1: new high-speed USB device number 52 using xhci-hcd
[ 2663.544888] usb 1-1: Device not responding to setup address.
[ 2663.758233] usb 1-1: Device not responding to setup address.
[ 2663.970218] usb 1-1: device not accepting address 52, error -71
[ 2664.102216] usb 1-1: new high-speed USB device number 53 using xhci-hcd
[ 2664.108889] usb 1-1: Device not responding to setup address.
[ 2664.322233] usb 1-1: Device not responding to setup address.
[ 2664.534210] usb 1-1: device not accepting address 53, error -71
[ 2664.540279] usb usb1-port1: unable to enumerate USB device

root@imx8mp-lpddr4-evk:~#

 

0 件の賞賛
返信