I'm having problems configuring the USB-Port, assumingly the problem lies within the device tree. The USB is used as a host, but when I state dr_mode="host", the Port is only powered for a short time in the kernel boot, when I set it to "peripheral" or "otg", the power stays on.
In all cases I'm unable to see the device (USB Mass Storage) from the userspace with lsblk. Any suggestions?
reg_usb_b_vbus: regulator-usbotg2 {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_reg_usb_b_vbus>;
regulator-name = "USB_B_VBUS";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
&usbotg2 { /* USB B - Type A */
dr_mode = "host";
vbus-supply = <®_usb_b_vbus>;
over-current-active-high;
status = "okay";
};
pinctrl_reg_usb_b_vbus: reg_usbb_vbus {
fsl,pins = <
MX8MM_IOMUXC_GPIO1_IO14_USB2_OTG_PWR 0x41
>;
};