I have a LS1046ARDB EVK and the kernel version is 4.19.68.
I tried to work USB 3.0 Type-A as peripheral mode to simulate as USB device to connect to PC
The device tree is set as below:
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";
};
However, I find it work at USB2.0 high-speed (Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M) instead of super-speed even I set the device tree as above.
I am sure of the host port and USB cable are support USB-3.0 super-speed (5Gpbs).
Does it support usb super-speed when usb as peripheral mode ?
Compare your setting and the setting from the Section 7.2.16.1 from LSDK 1909 User Guide:
https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev19.09.pdf.
Find the ".Device mode (Gadget driver)" in this section.
Is there "maximum-speed = “super-speed”;" setting in your .dtb file.
Have a great day,
Pavel Chubakov
Thank you for helping
Test your connection using a USB 3 hub between the LS1043ARDB and your USB host.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Pavel,
Thank you for answering my question.
I connect a USB 3 hub between the USB 1 (setting as peripheral mode) on LS1046ARDB and my USB Host (computer and LS1046ARDB).
I get USB message using command lsusb -t
message:
Port 1: Dev 10, If 0, Class=Mass Storage, Driver=usb-storage, 480M
Unfortunately, the speed doesn't support USB 3.0 ( 5Gpbs)