On our custom board with the IMX8MP, we want to configure the USB as OTG without using the PTN5110 IC.
For the ID function, we intend to use GPIO1_10. Below are the code modifications we have made in the DTS.
- Are these modifications correct, or do we need to make any further changes to enable USB OTG functionality?
- Can we use the OTG_ID pin from the processor instead of using this GPIO? If so, what modifications are necessary to enable OTG functionality?
Your suggestions are appreciated.
&usb3_phy0 {
fsl,phy-tx-vref-tune = <6>;
fsl,phy-tx-rise-tune = <0>;
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 {
status = "okay";
};
&usb_dwc3_0 {
dr_mode = "otg";
hnp-disable;
srp-disable;
adp-disable;
extcon = <&extcon_usb0>;
status = "okay";
};
extcon_usb0: extcon-usb0 {
compatible = "linux,extcon-usb-gpio";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb0_extcon>;
id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
};