Imx7D USBC inerface doesn't work

I am working with imx7D colibri SOM.
I have the Colibri evaluation board and a custom carry board.
In our carry board we have 2 usb ports, one connected to USB_H and another connected to USB_C.
The usb port connected to USB_H works fine but the another doesn’t work.
In dts file I changed the followe setting:

@@ -687,7 +687,7 @@
 &usbotg1 {
-	dr_mode = "otg";
+	dr_mode = "host";
 &usdhc1 {

I changed usbotg1 dr_mode to “host” but It doesn’t work.
Which is the setting in dts that a Ihave to made for this, I read in the IMX7 Datasheet that maybe I have to generate the 5V USB supply, is this ok?


To be clear, PORT USB_C in the Col Eval board I could use it to connect it with my PC, but in my carry board when I connect a USB device (pendrive) It doesn’t detect It.

Please check if the USB circuits of your custom carrier board meets the requirements of our Currier Board Design Guide.

HI Alex,
Thanks for you reply,
Yes I find my problem, for some reason I had not extcon usb detection, so I added:

+	extcon_usbc_det: usbc_det {
+		compatible = "linux,extcon-usb-gpio";
+		debounce = <25>;
+		id-gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_usbc_det>;
+	};
 	gpio-keys {
 		compatible = "gpio-keys";
@@ -167,8 +175,9 @@
 &usbotg1 {
+	extcon = <&extcon_usbc_det>, <&extcon_usbc_det>;
 	vbus-supply = <&reg_usbh_vbus>;
-	status = "disabled";
+	status = "okay";
 /* The define SD_1_8 allows to use the SD interface at a higher speed mode
diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi
index 1be5babe1719..81b7751fe70c 100644
--- a/arch/arm/boot/dts/imx7-colibri.dtsi
+++ b/arch/arm/boot/dts/imx7-colibri.dtsi
@@ -687,7 +687,7 @@
 &usbotg1 {
-	dr_mode = "otg";
+	dr_mode = "host";

There port usb works fine.
Can I use this port without ext con usb detection? If not, can I use this gpio pin (gpio7.IO14) as external input gpio at the same time that I using as usb detection?