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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

988 次查看
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 项奖励
回复
5 回复数

953 次查看
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 项奖励
回复

887 次查看
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 项奖励
回复

813 次查看
radhak4x
Contributor II
Hi joseph,

Could you please elaborate the same ?

thanks
Radha
0 项奖励
回复

789 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi @radhak4x,

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

Regards,

0 项奖励
回复

986 次查看
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 项奖励
回复