Custom Board Serial Download Mode For I.MX8MP

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

Custom Board Serial Download Mode For I.MX8MP

Jump to solution
750 Views
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 Kudos
Reply
1 Solution
726 Views
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

View solution in original post

1 Reply
727 Views
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