Failed to Configure USB3.0 OTG on ls1021a

cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to Configure USB3.0 OTG on ls1021a

334 Views
jiye
Contributor V

Hi,

I followed exactly what the lsdk1906 to tell me enable necessary modules and also in the device tree file my in my device it shows me this error when I use:

modprobe g_ether

pastedImage_1.png

Failed to get clk "ref:-2

Anyone knows why?

Labels (1)
3 Replies

114 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Elias Bitbaker,

Please refer to Linux Kernel definition

USB Gadget support --->
<M> USB Gadget functions configurable through
configfs

<M> USB Gadget precomposed configurations

<M> Ethernet Gadget (with CDC Ethernet support)

Please refer to the device tree definition

usb0: usb3@2f00000 {
compatible = "snps,dwc3";
reg = <0x0 0x2f00000 0x0 0x10000>;
interrupts = <0 60 0x4>;
dr_mode = "peripheral";
snps,quirk-frame-length-adjustment = <0x20>;
snps,dis_rxdet_inp3_quirk;
maximum-speed = “super-speed”;
};

Please insmod related ko modules as the following.

# insmod libcomposite.ko
# insmod u_ether.ko
# insmod usb_f_ecm.ko
# insmod usb_f_ecm_subset.ko
# insmod usb_f_rndis.ko

# insmod g_ether.ko

Thanks,

Yiping

114 Views
jiye
Contributor V

also my board has a male type C connector, does this still use the same modules in the Kconfig tool?

as I see there is an option for type-c

pastedImage_1.png

0 Kudos

114 Views
jiye
Contributor V

Hi Yiping,

I did all the steps but I see this

pastedImage_2.png

And my device tree file is like this below:

pastedImage_1.png

(1)Do you know what's wrong here, it seems like my PC does not detect the device.

(2)Also do I need to ensure the UDC USB controller?

(3) I believe the USB2.0 is back compatible with the USB3.0, if I just plug into a USB2.0 port am I suppose to use the same configuration in the device tree and kconfig? Please help this is really important to me.

0 Kudos