Hi @cmw ,
Q1&A:The imx8mm.dtsi is for the i.MX8MM chip, and imx8mm-evk.dtsi is for NXP i.MX8MM EVK board.
Q2&A: I think you can try, but do not recommend you to do that. Please following our RM.
Q3&A:Yes, for the 4GB LPDDR4 you using, you need to run the DDR tool to generate the proper configration for the new LPDDR4.
I see your setting:
You also need to add the :
git a/include/configs/imx8mm_evk.h b/include/configs/imx8mm_evk.h
index d01ce0c6a0..198d911a76 100644
--- a/include/configs/imx8mm_evk.h
+++ b/include/configs/imx8mm_evk.h
@@ -213,6 +213,14 @@
#define PHYS_SDRAM 0x40000000
#define PHYS_SDRAM_SIZE 0x80000000 /* 2GB DDR */
+#ifdef CONFIG_IMX8M_4G_LPDDR4
+#undef PHYS_SDRAM_SIZE
+#define PHYS_SDRAM_SIZE 0xC0000000 /* 3GB */
+#define PHYS_SDRAM_2 0x100000000
+#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1GB */
+#endif
+
+
#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (PHYS_SDRAM_SIZE >> 1))
For ddr tool:
Hope this can do help for you
Wish you have a nice day
Best Regards
Rita