Hello Haochengdong Haochengdong,
The Reference Design available is the i.MX8MQ EVK (for which Design Files are provided on the NXP website). The recommendations for DDR4 design with the i.MX8MQ can be found on the i.MX8QM Hardware Design Guide (link below, please note that you may need to login to download this document.
https://www.nxp.com/webapp/Download?colCode=IMX8MDQLQHDG
There is also an Application Note that may be useful (AN5097, link below, you may need to login to download this document) that covers hardware and layout considerations for DDR4 designs albeit not for i.MX8QM specifically.
https://www.nxp.com/webapp/Download?colCode=AN5097
I hope this helps!
Regards,