# How do I convert the USB on the Go to just plain USB for the 5722

**URL:** <https://forum.aim-linux.advantech.com/t/how-do-i-convert-the-usb-on-the-go-to-just-plain-usb-for-the-5722/577>\
**Category:** Technical Supports\
**Created:** [October 6, 2023, 11:39am UTC](https://forum.aim-linux.advantech.com/t/how-do-i-convert-the-usb-on-the-go-to-just-plain-usb-for-the-5722/577 "2023-10-06T11:39:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_garza1](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@Anthony\_garza1](https://forum.aim-linux.advantech.com/u/Anthony_garza1)\
**Post date:** [October 6, 2023, 11:39am UTC](https://forum.aim-linux.advantech.com/t/how-do-i-convert-the-usb-on-the-go-to-just-plain-usb-for-the-5722/577/1 "2023-10-06T11:39:35Z")

</div>

Our HW Engineers have routed all of the pins for the USB OTG to other pins, I am trying to modify the DTS to allow the USB OTG to just be a host and use those pins for other things.

---

<div class="post-metadata">

**Author:** ![Jems\_Cheng](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@Jems\_Cheng](https://forum.aim-linux.advantech.com/u/Jems_Cheng)\
**Post date:** [October 11, 2023, 4:22am UTC](https://forum.aim-linux.advantech.com/t/how-do-i-convert-the-usb-on-the-go-to-just-plain-usb-for-the-5722/577/2 "2023-10-11T04:22:33Z")

</div>

Hi~

Do you mean to config to USB OTG to the host mode?  
Below is document for the USB OTG:  
[https://www.kernel.org/doc/Documentation/devicetree/bindings/usb/generic.txt](https://www.kernel.org/doc/Documentation/devicetree/bindings/usb/generic.txt)

The default setting of the USB OTG in ROM-5722 device tree is config to “otg”  
[linux-imx/arch/arm64/boot/dts/freescale/imx8mp-rom5722-a1.dts at adv\_5.4.70\_2.3.0 · ADVANTECH-Corp/linux-imx (github.com)](https://github.com/ADVANTECH-Corp/linux-imx/blob/adv_5.4.70_2.3.0/arch/arm64/boot/dts/freescale/imx8mp-rom5722-a1.dts)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/aim_linux/original/1X/f23771fd719f84ebd5b7e9c1736f04f5d76ef3b0.png)

So,

1. It can connect a USB OTG cable that will grounded the USB\_OTG\_ID and the USB will operate as a host mode.  

2. Reference the document at the above link to set the dr\_mode from “otg” to “host” in ROM-5722 device tree.
