arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed

Resolve USB 3.0 gadget failure for QM and QXPB0 in super speed mode with
single IN and OUT endpoints, like mass storage devices, due to incorrect
ACTUAL_MEM_SIZE in ep_cap2 (32k instead of actual 18k). Implement dt
property cdns,on-chip-buff-size to override ep_cap2 and set it to 18k for
imx8QM and imx8QXP chips. No adverse effects for 8QXP C0.

Fixes: dce49449e04f ("usb: cdns3: allocate TX FIFO size according to composite EP number")
Signed-off-by: Frank Li <>
Signed-off-by: Shawn Guo <>

[ upstream commit: 0f554e37dad416f445cd3ec5935f5aec1b0e7ba5 ]
1 file changed
tree: f85a7f5f62a7374c84b337d5f7039338eee2dd9c
  1. Bindings/
  2. include/
  3. src/