No, I want to use OTG USB0 but I do not need OTG mode, I’d like to force it to Host only mode in software and free the pin 21 that is normally used for OTG Host/Device selection to GPIO use.
At this point I assume it is not possible, but would like to confirm.
On arch/arm/mach-mx28/mx28_ccardxmx28_pins.c pin 21 of the ConnectCard for i.MX28 is configured as USB0_ID if CONFIG_USB_OTG is enabled. Disabling CONFIG_USB_OTG is all you need to free the GPIO for other purpose. This configuration switch however is not Freescale specific, but a common kernel switch, so it may disable other desired support.
That said, the USB0 is an On-The-Go port. On DEL-5.9 the driver is located at arch/arm/mach-mx28/usb_dr.c. Apparently it is prepared to be built for host-only support. You could disable CONFIG_USB_GADGET_ARC to build only for host (CONFIG_USB_EHCI_ARC_OTG enabled).
This however never been verified if this is a valid configuration. It might require additional changes (if at all possible).
I have disabled the configuration parameters CONFIG_USB_OTG and CONFIG_MXC_OTG, and I have selected the configuration parameter CONFIG_USB_GADGET_DUMMY_HCD instead of CONFIG_USB_GADGET_ARC.
That works perfectly. Thanks a lot for your answer.