I'm using the iMX93 EVK board porting USB 2.0 device tree, the original source code is porting fort type-C.
I'd tried to post the code below in u-boot dts (imx93-11x11-evk.dts) but it doesn't work.
reg_usb0_host_vbus: regulator-usb0-vbus {
compatible = "regulator-fixed";
regulator-name = "usb0_host_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
regulator-always-on;
};
Also, I tried to modify the usb node for switching to host mode as below. It seems not a correct way to port USB as host.
&usbotg1 {
dr_mode = "host";
status = "okay";
};
And then modifying the configuration in imx93-11x11_evk_defconfig.
# CONFIG_USB_TCPC is not set
CONFIG_IMX_HAB=y
How can I modify the code for USB 2.0 ?
Could you please provide a complete sample code
Thanks