Custom Board Serial Download Mode For I.MX8MP

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Custom Board Serial Download Mode For I.MX8MP

跳至解决方案
750 次查看
Wobaffet
Senior Contributor I

Hello,

I we trying to bring-up our iMX8MP custom board. Our reference board is imx8mp-lpddr4-evk. We'll have only emmc as a flash, and our ram will be 512MB compared to the evk. For the first bring-up we have decided to disable every peripheral other than necessary ones  like pmic, usb, uart, ram and pmic.

Our question is, since mpu will be empty at first, it will directly go to serial download mode from usb3_0 with otg1. In the evk board, otg1 is type C  and our board has type A and we patched the device tree like below:

&usb3_phy0 {
        fsl,phy-tx-vref-tune = <0xb>; //taken from usb_1, from evk type A connector specs
        fsl,phy-tx-preemp-amp-tune = <3>;
        fsl,phy-tx-vboost-level = <5>;
        fsl,phy-comp-dis-tune = <7>;
        fsl,pcs-tx-deemph-3p5db = <0x21>;
        fsl,phy-pcs-tx-swing-full = <0x7f>;
        status = "okay";
};

&usb3_0 { /* PHYSICAL  PORT */
        status = "okay";
        dr_mode= "otg";
};

&usb_dwc3_0 { /* CONTROLLER*/
        dr_mode = "otg";
        hnp-disable;
        srp-disable;
        adp-disable;
        usb-role-switch;
        role-switch-default-mode = "none";
        snps,dis-u1-entry-quirk;
        snps,dis-u2-entry-quirk;
        status = "okay";
};

&usb3_phy1 {
        fsl,phy-tx-preemp-amp-tune = <3>;
        fsl,phy-tx-vref-tune = <0xb>;
        status = "disabled";
};

&usb3_1 {
        status = "disabled";
};

&usb_dwc3_1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usb1_vbus>;
        dr_mode = "host";
        status = "disabled";
};

Do we need to do any other configuration?

Thank you in advance. Best Regards!

0 项奖励
回复
1 解答
726 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport
Hi @Wobaffet ,

I hope you are doing well.

Device tree changes look correct.

Please comment out CONFIG_USB_TCPC=y in u-boot defconfig.
# CONFIG_USB_TCPC=y 
 
Additionally, one can refer to Table 9. USB recommendations and 3.7 USB connectivity and    i.MX 8M Plus Hardware Developer’s Guide.
 
Thanks & Regards,
Sanket Parekh

在原帖中查看解决方案

1 回复
727 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport
Hi @Wobaffet ,

I hope you are doing well.

Device tree changes look correct.

Please comment out CONFIG_USB_TCPC=y in u-boot defconfig.
# CONFIG_USB_TCPC=y 
 
Additionally, one can refer to Table 9. USB recommendations and 3.7 USB connectivity and    i.MX 8M Plus Hardware Developer’s Guide.
 
Thanks & Regards,
Sanket Parekh