I am using a custom PCB which is very similar to the CM3 IO PCB. The OTG is wired in the same way.
I can’t seem to find the correct device to echo to the UDC libcomposite/configfs gadget setup.
I have setup an overlay to force the OTG to be a peripheral :
fragment@0 {
target = <&usbdrd_dwc3>;
__overlay__ {
dr_mode = "peripheral";
status = "okay";
};
};
I can see the setting on the dwc3@fcc00000 node :
# cat /sys/firmware/devicetree/base/usbdrd/dwc3@fcc00000/dr_mode
peripheral
What should I echo to UDC when trying to enable the phy ? Where can I find available UDCs ?