Enumerating iMX-8M USB in Peripheral(Device) Mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enumerating iMX-8M USB in Peripheral(Device) Mode

1,167 Views
bharatkumarbach
Contributor III

I got the USB working under host mode. 

For device mode, I have modified the device tree

&usb_dwc3_1 {

   status = "okay";

   dr_mode = "peripheral";

};

How / where do I configure the descriptors (device, Interface, Config, Endpoint, String),  so that the device gets enumerated as vendor specific device at the boot time. 

Using yocto build on iMX-8M.

Thanks

Bharat

Labels (1)
0 Kudos
1 Reply

909 Views
igorpadykov
NXP Employee
NXP Employee

Hi Bharat

one can try to change usb driver on

dwc3-of-simple.c\dwc3\usb\drivers - linux-imx - i.MX Linux kernel 

fsl-imx8mq.dtsi\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel 

Linux manual and porting guide can be found in linux documentation on

i.MX Software|NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos