Skip to contentSkip to conversation

bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2D board

PATCH In review Andrea Calabrese 2 participants 4 messages Nov 5, 2025 – Nov 29, 2025 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH v5 3/3 bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2D board

Introduce the BSH SystemMaster (SMM) M2D board. Notably, the M2D is designed to leverage the existing device tree of its predecessors, the M2B and the M2.
The primary distinction arises from memory incompatibilities with the M2B and M2.
To address this, we've implemented a configuration system that allows for selective inclusion of the desired memory components.

board/bsh/imx6ulz_smm_m2/Kconfig +6 -0
index 20971aa4fe1..6c4321c3b5e 100644
@@ -28,6 +28,12 @@ config BSH_M2B_MEMORY
 	  If this option is enabled, U-Boot will be configured to support
 	  imx6ulz bsh m2b revision memories.
 
+config BSH_M2D_MEMORY
+	bool "Enable for bsh m2d variant"
+	help
+	  If this option is enabled, U-Boot will be configured to support
+	  imx6ulz bsh m2d revision memories.
+
 endchoice
 
 endif
board/bsh/imx6ulz_smm_m2/MAINTAINERS +1 -0
index a75cddd72f8..098b992b07a 100644
@@ -5,3 +5,4 @@ F:	board/bsh/imx6ulz_smm_m2/
 F:	include/configs/imx6ulz_smm_m2.h
 F:	configs/imx6ulz_smm_m2_defconfig
 F:	configs/imx6ulz_smm_m2b_defconfig
+F:	configs/imx6ulz_smm_m2d_defconfig
board/bsh/imx6ulz_smm_m2/Makefile +1 -0
index 5ab00a5ea75..81e47e3735e 100644
@@ -5,3 +5,4 @@ obj-y  := imx6ulz_smm_m2.o
 obj-$(CONFIG_XPL_BUILD) += spl.o
 obj-$(CONFIG_BSH_M2_MEMORY) += ddr3l_timing_512m.o ddr3l_timing_256m.o ddr3l_timing_128m.o
 obj-$(CONFIG_BSH_M2B_MEMORY) += ddr3l_timing_512m_m2b.o ddr3l_timing_256m_m2b.o ddr3l_timing_128m_m2b.o
+obj-$(CONFIG_BSH_M2D_MEMORY) += ddr3l_timing_512m_m2d.o ddr3l_timing_256m_m2d.o ddr3l_timing_128m_m2d.o
\ No newline at end of file
board/bsh/imx6ulz_smm_m2/ddr3l_timing_128m_m2d.c new file +121 -0

121 lines not on this page · raw message

board/bsh/imx6ulz_smm_m2/ddr3l_timing_256m_m2d.c new file +122 -0

122 lines not on this page · raw message

board/bsh/imx6ulz_smm_m2/ddr3l_timing_512m_m2d.c new file +127 -0

127 lines not on this page · raw message

configs/imx6ulz_smm_m2.config new file +81 -0

81 lines not on this page · raw message

configs/imx6ulz_smm_m2_defconfig +1 -81

82 lines not on this page · raw message

configs/imx6ulz_smm_m2b_defconfig +1 -81

83 lines not on this page · raw message

configs/imx6ulz_smm_m2d_defconfig new file +2 -0
new file mode 100644
index 00000000000..b3f9efa4941
@@ -0,0 +1,2 @@
+#include <configs/imx6ulz_smm_m2.config>
+CONFIG_BSH_M2D_MEMORY=y
doc/board/bsh/imx6ulz_bsh_smm_m2.rst +10 -2
index 0f391a17ade..0af41c09d20 100644
@@ -1,7 +1,7 @@
 .. SPDX-License-Identifier: GPL-2.0+
 
-How to Update U-Boot on imx6ulz_smm_m2 and imx6ulz_smm_m2b boards
-=================================================================
+How to Update U-Boot on imx6ulz_smm_m2, imx6ulz_smm_m2b and imx6ulz_smm_m2d boards
+==================================================================================
 
 Required software on the host PC:
 
@@ -23,6 +23,14 @@ Build U-Boot for m2b:
    $ make imx6ulz_smm_m2b_defconfig
    $ make
 
+Build U-Boot for m2d:
+
+.. code-block:: bash
+
+   $ make mrproper
+   $ make imx6ulz_smm_m2d_defconfig
+   $ make
+
 This generates the SPL and u-boot-dtb.img binaries.
 
 Loading U-Boot via USB Serial Download Protocol
Signature · 1 line
2.48.1
reviewer
#1 lore raw
Quoted 10 lines · Andrea Calabrese

Introduce the BSH SystemMaster (SMM) M2D board. Notably, the M2D is designed to leverage the existing device tree of its predecessors, the M2B and the M2.
The primary distinction arises from memory incompatibilities with the M2B and M2.
To address this, we've implemented a configuration system that allows for selective inclusion of the desired memory components.

Nit: the 3/3 in the Subject is incorrect as you are sending a single patch.

diff --git a/configs/imx6ulz_smm_m2.config b/configs/imx6ulz_smm_m2.config

configs/imx6ulz_smm_m2.config

Quoted 5 lines

new file mode 100644
index 00000000000..67c1ca33074

configs/imx6ulz_smm_m2.config new file +0 -0
@@ -0,0 +1,81 @@

Please do as I suggested before:

1. PATCH 1/2: Send one patch that introduces configs/imx6ulz_smm_m2.config and converts the existing configs/imx6ulz_smm_m2b_defconfig and configs/imx6ulz_smm_m2_defconfig to use it. Please write in the commit log that the reason for doing this is to make maintainance easier, avoid duplication, and simplify the introduction of new board variants in the future.

2. PATCH 2/2: Add M2D support using configs/imx6ulz_smm_m2.config.

#2 lore raw

Hello, sorry for being late, but I wanted to make sure everything builds properly now after the previous mistake.

Thank you for your reviews!

Il 05/11/25 15:14, Fabio Estevam ha scritto:

Quoted 29 lines
Quoted 9 lines · Andrea Calabrese

Introduce the BSH SystemMaster (SMM) M2D board. Notably, the M2D is designed to leverage the existing device tree of its predecessors, the M2B and the M2.
The primary distinction arises from memory incompatibilities with the M2B and M2.
To address this, we've implemented a configuration system that allows for selective inclusion of the desired memory components.

Nit: the 3/3 in the Subject is incorrect as you are sending a single patch.

diff --git a/configs/imx6ulz_smm_m2.config b/configs/imx6ulz_smm_m2.config

configs/imx6ulz_smm_m2.config

Quoted 5 lines

new file mode 100644
index 00000000000..67c1ca33074

configs/imx6ulz_smm_m2.config new file +0 -0
@@ -0,0 +1,81 @@

Please do as I suggested before:

1. PATCH 1/2: Send one patch that introduces configs/imx6ulz_smm_m2.config and converts the existing configs/imx6ulz_smm_m2b_defconfig and configs/imx6ulz_smm_m2_defconfig to use it. Please write in the commit log that the reason for doing this is to make maintainance easier, avoid duplication, and simplify the introduction of new board variants in the future.

2. PATCH 2/2: Add M2D support using configs/imx6ulz_smm_m2.config.

Signature · 16 lines
Andrea Calabrese
Embedded Software Developer
M. +39 339 394 4747
[email protected]

__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9170
[email protected]
www.amarulasolutions.com

__________________________________
This message and any file transmitted with it may contain privileged or confidential information. In case you were not listed in the addressed recipient, please notify the sender immediately and delete the message.
Any other use of this email, including copying it and the disclosure of its content, is prohibited.
reviewer
#3 lore raw
Quoted 3 lines · Andrea Calabrese

Hello, sorry for being late, but I wanted to make sure everything builds properly now after the previous mistake.

Series applied to u-boot-imx/next, thanks.