Use usbc on colibri-vf50

Hello,
I want to use an LM820 (rtlwifi) at the USB_C Port on the colibri-vf50.
Unfortunately I found no example of the device tree configuration to use that usb port. I see only configuration for the USB_H port.
Can someone offer me a quick device tree configuration for USB_C?
Thanks and regards,
Tobias Bystricky

Which image version do you have on the module?

Exactly what device tree configuration are you looking for? Currently the USB_C port is configured as OTG.

http://git.toradex.com/cgit/linux-toradex.git/tree/arch/arm/boot/dts/vf-colibri.dtsi?h=toradex_vf_4.1-next#n141

If you would like this to be permanently configured as host, change dr_mode to host in the device tree.

  &usbdev0 {
	disable-over-current;
	dr_mode = "host";
	status = "okay";
};

Our article on Device Tree customisation

http://developer.toradex.com/device-tree-customization#NXPsup®supFreescale_Vybrid_SoC

Thanks,
do I need any changes to the vbus-supply?
On USB_H it looks like:

&usbh1 {
	vbus-supply = <&usbh_vbus_reg>;
};

with

/* USBH_PEN */
		usbh_vbus_reg: regulator@1 {
			compatible = "regulator-fixed";
			pinctrl-names = "default";
			pinctrl-0 = <&pinctrl_usbh1_reg>;
			reg = <1>;
			regulator-name = "usbh_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			gpio = <&gpio2 19 GPIO_ACTIVE_LOW>;
			vin-supply = <&sys_5v0_reg>;
		};

Do I need something like that for USB_C, too?
And btw can you explain me what the GPIO is for?
Now I got the following errors

[  241.252451] usb 1-1: new full-speed USB device number 2 using ci_hdrc
[  241.472462] usb 1-1: device descriptor read/64, error -71
[  241.792495] usb 1-1: device descriptor read/64, error -71
[  242.022504] usb 1-1: new full-speed USB device number 3 using ci_hdrc
[  242.242511] usb 1-1: device descriptor read/64, error -71
[  242.562555] usb 1-1: device descriptor read/64, error -71
[  242.792572] usb 1-1: new full-speed USB device number 4 using ci_hdrc
[  243.272581] usb 1-1: device not accepting address 4, error -71
[  243.392594] usb 1-1: new full-speed USB device number 5 using ci_hdrc
[  243.872662] usb 1-1: device not accepting address 5, error -71
[  243.878725] usb usb1-port1: unable to enumerate USB device

Do you have an idea what it is?

Thanks and regards!

Sorry I forgot about to add image information.
I’m using LinuxImageV2.5 image

Found the problem! It has been an hardware problem with the lines on our carrier board.
Thanks for your support!

Glad it worked!

Note that the OTG mode should actually automatically switch to host mode when you are using the circuit as we use it on our Colibri Evaluation Carrier board.