# Connectcore Imx6UL Micro AB OTG enable

**URL:** <https://forums.digi.com/t/connectcore-imx6ul-micro-ab-otg-enable/20033>\
**Category:** Linux\
**Tags:** imx6ul-otg-microab\
**Created:** [November 15, 2018, 11:57am UTC](https://forums.digi.com/t/connectcore-imx6ul-micro-ab-otg-enable/20033 "2018-11-15T11:57:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nag13arjun](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@Nag13arjun](https://forums.digi.com/u/Nag13arjun)\
**Post date:** [November 15, 2018, 11:57am UTC](https://forums.digi.com/t/connectcore-imx6ul-micro-ab-otg-enable/20033/1 "2018-11-15T11:57:17Z")

</div>

Hi,

I am new to DIGI community, I want to enable OTG support on the micro AB. I have used the following setup in order to enable OTG for the Micro AB:

&usbotg1 {  
dr\_mode = “host”;  
fsl,power-line-polarity-active-high;  
disable-over-current;  
};

&usbotg2 {  
dr\_mode = “host”;  
fsl,power-line-polarity-active-high;  
disable-over-current;  
};

But, Unfortunately I am not able to enable OTG on the micro USB. When I try drmode = `otg` @usbotg1, USB1 in host turns off and no longer reads.

Kindly, let me know for any suggestions.

Thank you.

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [November 16, 2018, 11:00am UTC](https://forums.digi.com/t/connectcore-imx6ul-micro-ab-otg-enable/20033/2 "2018-11-16T11:00:05Z")

</div>

You are not enabling otg support, you are  
e configuring both ports as host only.  
Which board are you using? SBC pro or SBC express?  
dfor SBC PRO  
[https://www.digi.com/resources/documentation/digidocs/90002285/#reference/bsp/v4-9\_6ul/r\_usb\_6ul.htm](https://www.digi.com/resources/documentation/digidocs/90002285/#reference/bsp/v4-9_6ul/r_usb_6ul.htm)  
ConnectCore 6UL SBC Pro device tree  
&usbotg1 {  
dr\_mode = “otg”;  
vbus-supply = \<&reg\_usb\_otg1\_vbus\>;  
pinctrl-0 = \<&pinctrl\_usbotg1\>;  
digi,power-line-active-high;  
};

&usbotg2 {  
dr\_mode = “host”;  
digi,power-line-active-high;  
disable-over-current;  
};

&iomuxc {  
imx6ul-ccimx6ul {

```
    pinctrl_usbotg1: usbotg1grp {
        fsl,pins = &lt;
            MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059
            MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x17059 /* USBOTG1 PWR */
            MX6UL_PAD_GPIO1_IO01__USB_OTG1_OC 0x17059
        &gt;;
    };
};

```

};

Please note:  
dr\_mode = “otg”;

---

<div class="post-metadata">

**Author:** ![Nag13arjun](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@Nag13arjun](https://forums.digi.com/u/Nag13arjun)\
**Post date:** [November 16, 2018, 1:29pm UTC](https://forums.digi.com/t/connectcore-imx6ul-micro-ab-otg-enable/20033/3 "2018-11-16T13:29:33Z")

</div>

Hi,

I am using SBC express. As, I mentioned I did try drmode = “otg”. But, when I do that that particular USB host gets disabled and I can no longer access sda. But, I haven’t used pinctrl-0 = \<&pinctrl\_usbotg1\>;. I will try that and check.

---

<div class="post-metadata">

**Author:** ![Nag13arjun](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@Nag13arjun](https://forums.digi.com/u/Nag13arjun)\
**Post date:** [November 19, 2018, 2:35pm UTC](https://forums.digi.com/t/connectcore-imx6ul-micro-ab-otg-enable/20033/4 "2018-11-19T14:35:23Z")

</div>

Tried and still not working. As I said, USB1 is getting disabled when I try in OTG mode.
