Other Parts Discussed in Thread: AM62A7
Tool/software:
Subject: Issue with USB Peripheral Mode on [Your Target Board] - UDC Driver Binding Failure
Hello,
I am experiencing an issue with the USB peripheral mode on my target board [Your Target Board Model]. The USB device is not being recognized, and I receive the following kernel errors:
[ 68.736750] udc driver binding ret:-19
[ 68.740569] udc 31000000.usb: failed to start g: -19
Here are the details of my current setup:
- Device Tree Configuration:
&usbss0 {
status = "okay";
};
&usb0 {
dr_mode = "peripheral";
pinctrl-names = "default";
pinctrl-0 = <&main_usb0_pins_default>;
};
main_usb0_pins_default: main_usb0_pins_default {
pinctrl-single,pins = <
AM62AX_IOPAD(0x0254, PIN_INPUT, 0) /* (C20) USB0_DRVVBUS */
>;
};
I have verified the following:
- Device tree configuration appears to be correct.
- Kernel configuration includes the necessary options for USB gadget support.
- UDC driver modules (
dwc3anddwc3-gadget) are loaded. - Hardware connections are properly made.
Despite these checks, the USB peripheral mode is not working, although it functions correctly in host mode.
Could you please provide guidance on resolving this issue? Are there any additional configurations or steps required to get the USB peripheral mode working correctly?
Thank you for your assistance.
Best regards,
Laxman