AnsweredAssumed Answered

USB OTG Serial on i.MX6 Android kk4.4.3_2.0.0

Question asked by Luke Marvin on Mar 30, 2016
Latest reply on Apr 8, 2016 by Luke Marvin

Hi, I'm having some trouble getting the USB OTG port to appear as a usb serial port when connected to a PC.

 

- I.MX6DL custom board based on the SabreSD

- Android kk4.4.3_2.0.0 bsp

- USB OTG works for ADB with CONFIG_USB_G_ANDROID=y in my kernel config.

 

My understanding is that removing CONFIG_USB_G_ANDROID and setting CONFIG_USB_G_SERIAL=y should enable the serial mode. The device /dev/ttyGS0 appears in my device's file system but no computer sees the device when I plug in the usb otg port. What else should I be doing?

 

Device Tree Settings

Regulator

reg_usb_otg_vbus: usb_otg_vbus {
        compatible = "regulator-fixed";
        regulator-name = "usb_otg_vbus";
        regulator-min-microvolt = <5000000>;
        regulator-max-microvolt = <5000000>;
        gpio = <&gpio3 22 0>;
        enable-active-high;
};

 

USB OTG

&usbotg {
        vbus-supply = <&reg_usb_otg_vbus>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usbotg_2>;
        disable-over-current;
        status = "okay";
};

Outcomes