Hello,
Problem
I’m finding it difficult to get proper operation of USBC OTG. I believe it’s a configuration issue. Probably improper device-tree.
Hardware setup
SOM: Colibri iMX6ULL 512MB WB V1.1A
Development/Carrier Board: Colibri Evaluation Board
I’m using the Colibri Evaluation Board and Colibri Carrier Board Design Guide as a reference for a custom carrier board design.
Firmware setup
Based on Toradex release matrix, this is my firware setup. I’m using buildroot for board
bring-up and debugging kernel/drivers.
BSP: 6.4.0 (not using the rootfs; at this point I have a minimal rootfs generated with buildroot)
Kernel: mainline Linux Kernel (source v6.1.55 from kernel.org)
U-Boot: mainline based 2022.07 (binary from Toradex Tezi image)
Buildroot: Use for board bring-up and debugging drivers as I customize Kernel/Driver Configuration
Qustions
-
I’m using Mainline linux kernel v6.1.55 from Kernel.org. Is the device-tree in these sources correct for proper USBC OTG operation? I suspect not. What is the proper device-tree to support USBC OTG operation?
-
Without providing custom board schematic to follow PIN_137/USBC_CABLEDET logic,
this is what I observe when connecting a host computer and thumb drive to our board via USBC connector.
Host Plugged In:
USBC cable detect pin 137, 3.3V (device mode)
USB Load Switch, disabled
VBUS, 5.0V (from connected host)
Nothing Plugged In;
USBC cable detect pin 137, 0.0V (host mode)
USB Load Switch, disabled
VBUS, 0.0V
Device Plugged In;
USBC cable detect pin 137, 0.0V
USB Load Switch, enabled
VBUS, 5.0V (from carrier board)
I believe these results are consistent with Colibri Carrier Board Design Guide page 18. Can you confirm this is the proper behavior.
Also, another clue that hardware is properly designed is that when I Load Toradex Easy Installer, the USBC OTG port functions properly.
- Recovery mode is properly enumerated and Easy Installer gets loaded to imx6ull
- Insert/Remove thumb drive shows sda1 enumerating/disappearing
- Connecting to host enumerates NDIS ethernet over USB and works.
- Given this, can you provide the device-tree used for Easy Installer for my reference?
Thanks. Looking forward to a response.
MVE Biological Solutions
Robert Susnik
email: robert.susnik@mvebio.com
cell: 919-8896428