The i.MX8QXP universal serial bus (USB) 2.0 driver implements a standard Linux driver interface to the CHIPIDEA USB-HS On-The-Go (OTG) controller. The CHIPIDEA USB 2.0 controller is Enhanced Host Controller Interface (EHCI) compliant.

The ConnectCore 8X system-on-module has one USB 2.0 OTG controller and one USB 3.0 controller that can work as USB 2.0 OTG. Refer to Universal Serial Bus (USB) for information on the naming of the USB controllers.

On the ConnectCore 8X SBC Pro:

  • USB_OTG1 can only be used as USB host.

  • USB_OTG2 can only be used as USB host.

Kernel configuration

You can manage the USB 2.0 OTG support through the kernel configuration options:

  • Support for Host-side USB (CONFIG_USB)

  • EHCI HCD (USB 2.0) support (CONFIG_USB_EHCI_HCD)

  • ChipIdea Highspeed Dual Role Controller (CONFIG_USB_CHIPIDEA)

  • ChipIdea device controller (CONFIG_USB_CHIPIDEA_UDC)

  • ChipIdea host controller (CONFIG_USB_CHIPIDEA_HOST)

  • Freescale MXS USB PHY support (CONFIG_USB_MXS_PHY)

  • OTG support (CONFIG_USB_OTG)

All of these kernel configuration options are enabled as built-in on the default ConnectCore 8X kernel configuration file.

The USB 2.0 device driver provides the functionality upon which the USB gadget drivers work. The USB 2.0 gadget drivers implement one or more "functions", each providing a different capability.

The following gadget drivers are supported and enabled as loadable modules on the default ConnectCore 8X kernel configuration file.

  • Mass Storage Gadget (CONFIG_USB_MASS_STORAGE)

  • Ethernet Gadget with CDC Ethernet support (CONFIG_USB_ETH)

  • Serial Gadget with ACM and CDC OBEX support (CONFIG_USB_G_SERIAL)

Gadget drivers are enabled as loadable modules because only one gadget function can be used at a time. Before using a gadget driver, you must first make sure no other gadget driver is loaded.

Kernel driver

The i.MX8QXP USB 2.0 OTG driver is located at drivers/usb/.

File Description


Chipidea IP core driver


Chipidea peripheral driver


Chipidea host driver


i.MX glue layer


Chipidea OTG driver


Chipidea OTG HNP and SRP driver


i.MX SoC abstract layer


i.MX USB physical driver

Device tree bindings and customization

The i.MX8QXP USB 2.0 OTG controller device tree binding is documented at Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt.

ConnectCore 8X SBC Pro example

One USB 2.0 OTG controller is configured by default to work as host. The one connected to USB Type-C or USB microAB is configured by default to work as otg functionality. This is selected via the dr_mode property on the device tree:

ConnectCore 8X SBC Pro device tree
/* USB_OTG1 connected to usb hub */
&usbotg1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_usbotg1>;

	vbus-supply = <&reg_3v3_usb_hub>;
	fsl,reset-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>;
	dr_mode = "host";
	status = "okay";

/* USB_OTG2/USB_SS3 */
&usbotg3 {
	dr_mode = "otg";
	extcon = <&typec_ptn5110>;
	status = "okay;

With this default configuration, the first controller is accessible as USB host on the stackable dual USB Type-A connector on the top side of the board. You can find the second USB controller on either the USB Type-C connector on the top side of the board, or the USB microAB connector on the bottom of the board. This connector is not populated on the board by default.