Other Parts Discussed in Thread: AM4372
Hi Team,
We could not get USB mass storage device enumerated successfully with following dts and kernel config.
Please let us know if any issues with DTS and kernel config changes.
DTS:
usb2_pins: usb2_pins {
pinctrl-single,pins = <
AM4372_IOPAD(0xac4, PIN_OUTPUT | MUX_MODE0) /* usb0_drvvbus.usb0_drvvbus */
>;
};
&usb2_phy1 {
status = "okay";
};
&usb1 {
dr_mode = "peripheral";
status = "okay";
};
&usb2_phy2 {
status = "okay";
};
&usb2 {
dr_mode = "host";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&usb2_pins>;
};
Kernel Config:
CONFIG_USB_HID=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_DEFAULT_PERSIST=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_PLATFORM=y
CONFIG_USB_STORAGE=y
CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_DUAL_ROLE=y
CONFIG_USB_DWC3_OMAP=y
CONFIG_USB_PHY=y
CONFIG_NOP_USB_XCEIV=y
CONFIG_AM335X_CONTROL_USB=y
CONFIG_AM335X_PHY_USB=y
CONFIG_USB_ULPI=y
CONFIG_USB_ULPI_VIEWPORT=y
CONFIG_USB_GADGET=y
CONFIG_USB_LIBCOMPOSITE=y
CONFIG_USB_U_ETHER=y
CONFIG_USB_F_ECM=y
CONFIG_USB_F_MASS_STORAGE=y
CONFIG_USB_F_FS=y
CONFIG_USB_F_HID=y
CONFIG_USB_CONFIGFS=y
CONFIG_USB_CONFIGFS_ECM=y
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
CONFIG_USB_CONFIGFS_F_FS=y
CONFIG_USB_CONFIGFS_F_HID=y
CONFIG_EXTCON_USB_GPIO=y
CONFIG_OMAP_USB2=y
Console log:
# [ 1798.721857] usb 1-1: new low-speed USB device number 6 using xhci-hcd
[ 1798.871871] usb 1-1: device descriptor read/64, error -71
[ 1799.141874] usb 1-1: device descriptor read/64, error -71
[ 1799.411843] usb 1-1: new low-speed USB device number 7 using xhci-hcd
[ 1799.561863] usb 1-1: device descriptor read/64, error -71
[ 1799.831874] usb 1-1: device descriptor read/64, error -71
[ 1799.951891] usb usb1-port1: attempt power cycle
[ 1800.661851] usb 1-1: new low-speed USB device number 8 using xhci-hcd
[ 1800.668678] usb 1-1: Device not responding to setup address.
[ 1800.892173] usb 1-1: Device not responding to setup address.
[ 1801.111837] usb 1-1: device not accepting address 8, error -71
[ 1801.261840] usb 1-1: new low-speed USB device number 9 using xhci-hcd
[ 1801.268652] usb 1-1: Device not responding to setup address.
[ 1801.492185] usb 1-1: Device not responding to setup address.
[ 1801.711850] usb 1-1: device not accepting address 9, error -71
[ 1801.717758] usb usb1-port1: unable to enumerate USB device