I'm confused about the correct way to wire and use the USB interfaces both OTG and host on the IMX6 on custom hardware.
Chapter 65 of the reference manual lists pins used for OTG controller.
• USB_OTG_CHD_B, see Universal Serial Bus 2.0 Integrated PHY (USB-PHY).
The following external signals are multiplexed with other pins. For the pin mapping, see
External Signals. For the IOMUXC register setting, see IOMUX Controller (IOMUXC)
Here are the IMX6 multiplexed cpu pad's I used.
In the kernel I've chosen the usb function for each of the multiplexed GPIO pins in my board-custom.h file.
Additionally, I've set bit 13 of GPR1.
However, I'm confused by the MX6Q sabresd dev kit. Why does the kernel code set it's USB power pins (for both OTG and H1) to the gpio function instead of the USBOH3 PWR function?
Specifically in board-mx6q_sabresd.h file:
/* USB power pin */
How do I edit my board-custom.c file to reflect my hardware using the the USB mux functions? Specifically, if I use the USB mux power I'm not sure how to write mx6_set_otghost_vbus_func
Here is my schematic showing the connections to the two USB connectors.