How to Enable DMA for USB for IMX8M Plus based on Linux kernel 6.6.54

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

How to Enable DMA for USB for IMX8M Plus based on Linux kernel 6.6.54

997 Views
radhak4x
Contributor II

Hi 

 

I am trying to enable DMA for USB based on linux kernel 6.6.54. what are the required changes that are needed as part of dtb's along with driver changes? 

also what is the maximum hardware buffer that is used in transfer by default for 2.0 and 3.0

 

appreciate your support here 

i am referring to ehci-hcd.c - drivers/usb/host/ehci-hcd.c - Linux source code v6.6.54 - Bootlin Elixir Cross Referenc... source code

DTB changes as per my understanding:

&usb1 {
status = "okay";
dr_mode = "host";
dma-coherent;
#address-cells = <1>;
#size-cells = <0>;
};

is this correct ? what are the driver changes needed  to enable DMA for USB 

0 Kudos
Reply
5 Replies

962 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

It has an embedded DMA controller in each core. DMA doesn't need to be enabled and you can reference your nodes in EVK nodes.

For TX, the USB DMA source is system memory and the destination is the USB module internal FIFO. For RX, the source is the USB controller FIFO and destination is system memory.

The DMA is used to transfer the data between Tx/RxBuffer and the controller in summary and there you can also find the DMA range.

Doc for DWC3.

Regards

0 Kudos
Reply

896 Views
radhak4x
Contributor II

Hi Joseph,

Could you please elaborate what is meant by EVK nodes?

In reference manual, could you please point - where that USB already has Embedded DMA in it.

as we don't see / not found that part in IMX8 Ref Manual?

0 Kudos
Reply

822 Views
radhak4x
Contributor II
Hi joseph,

Could you please elaborate the same ?

thanks
Radha
0 Kudos
Reply

798 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi @radhak4x,

I'm still researching this issue, I will clarify it, thank you for your patience.

Regards,

0 Kudos
Reply

995 Views
radhak4x
Contributor II

What is the maximum hardware buffer defined for this ? i have referred to Reference manual - i.MX 8M Plus Applications Processor Reference Manual chapter 11 and i hardly found this data.

0 Kudos
Reply