Skip to contentSkip to conversation

arm64: dts: imx: Switch Data Modul i.MX8M eDM SBC to OF_UPSTREAM

PATCH In review Marek Vasut 2 participants 6 messages Sep 2 – Nov 10

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: imx: Switch Data Modul i.MX8M eDM SBC to OF_UPSTREAM

Convert the Data Modul i.MX8M Mini/Plus eDM SBC to OF_UPSTREAM. This is almost straightforward, except for the handling of legacy variants of the board, which is implemented programatically in the board code and requires imx8mm-data-modul-edm-sbc-u-boot.dtsi to re-enabled the old Atheros PHY usage by default.

---
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]

---
 arch/arm/dts/Makefile                         |   2 -
 .../dts/imx8mm-data-modul-edm-sbc-u-boot.dtsi |  12 +
 arch/arm/dts/imx8mm-data-modul-edm-sbc.dts    | 997 ------------------
 .../dts/imx8mp-data-modul-edm-sbc-u-boot.dtsi |   2 +-
 arch/arm/dts/imx8mp-data-modul-edm-sbc.dts    | 972 -----------------
 configs/imx8m_data_modul.config               |   1 +
 configs/imx8mm_data_modul_edm_sbc_defconfig   |   2 +-
 configs/imx8mp_data_modul_edm_sbc_defconfig   |   2 +-
 8 files changed, 16 insertions(+), 1974 deletions(-)
 delete mode 100644 arch/arm/dts/imx8mm-data-modul-edm-sbc.dts
 delete mode 100644 arch/arm/dts/imx8mp-data-modul-edm-sbc.dts
arch/arm/dts/Makefile +0 -2
index a02dad22f27..90e435d939d 100644
@@ -850,10 +850,8 @@ dtb-$(CONFIG_ARCH_IMX8) += \
 	imx8-capricorn-cxg3.dtb \
 
 dtb-$(CONFIG_ARCH_IMX8M) += \
-	imx8mm-data-modul-edm-sbc.dtb \
 	imx8mm-mx8menlo.dtb \
 	imx8mq-cm.dtb \
-	imx8mp-data-modul-edm-sbc.dtb \
 	imx8mp-dhcom-som-overlay-rev100.dtbo \
 	imx8mp-dhcom-som-overlay-eth1xfast.dtbo \
 	imx8mp-dhcom-som-overlay-eth2xfast.dtbo \
arch/arm/dts/imx8mm-data-modul-edm-sbc-u-boot.dtsi +12 -0
index 3a4f7d01b9e..07725de43ac 100644
@@ -86,6 +86,18 @@
 	};
 };
 
+&fec1 {
+	phy-handle = <&fec1_phy_ath>;
+};
+
+&fec1_phy_ath {
+	status = "okay";
+};
+
+&fec1_phy_bcm {
+	status = "disabled";
+};
+
 &gpio1 {
 	bootph-pre-ram;
 };
arch/arm/dts/imx8mm-data-modul-edm-sbc.dts deleted +0 -997

997 lines not on this page · raw message

arch/arm/dts/imx8mp-data-modul-edm-sbc-u-boot.dtsi +1 -1
index 1e82e718b8f..a4d5ed1649f 100644
@@ -8,7 +8,7 @@
 
 / {
 	aliases {
-		eeprom0 = &eeprom;
+		eeprom0 = &eeprom902;
 		mmc0 = &usdhc3;	/* eMMC */
 		mmc1 = &usdhc2;	/* MicroSD */
 		spi0 = &ecspi1;
arch/arm/dts/imx8mp-data-modul-edm-sbc.dts deleted +0 -972

972 lines not on this page · raw message

configs/imx8m_data_modul.config +1 -0
index 92940ddb947..468a3a77824 100644
@@ -141,6 +141,7 @@ CONFIG_NR_DRAM_BANKS=2
 CONFIG_OF_CONTROL=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_OF_SYSTEM_SETUP=y
+CONFIG_OF_UPSTREAM=y
 CONFIG_PARTITION_TYPE_GUID=y
 CONFIG_PHY_ANEG_TIMEOUT=20000
 CONFIG_PHY_ATHEROS=y
configs/imx8mm_data_modul_edm_sbc_defconfig +1 -1
index 47f0d3cc050..70dad87f3ff 100644
@@ -6,7 +6,7 @@ CONFIG_TARGET_IMX8MM_DATA_MODUL_EDM_SBC=y
 CONFIG_CI_UDC=y
 CONFIG_CLK_IMX8MM=y
 CONFIG_CMD_PCI=y
-CONFIG_DEFAULT_DEVICE_TREE="imx8mm-data-modul-edm-sbc"
+CONFIG_DEFAULT_DEVICE_TREE="freescale/imx8mm-data-modul-edm-sbc"
 CONFIG_DEFAULT_FDT_FILE="imx8mm-data-modul-edm-sbc.dtb"
 CONFIG_DM_PMIC_BD71837=y
 CONFIG_DM_REGULATOR_BD71837=y
configs/imx8mp_data_modul_edm_sbc_defconfig +1 -1
index a30aaa57109..129bed9c2ff 100644
@@ -4,7 +4,7 @@ CONFIG_ARM=y
 CONFIG_ARCH_IMX8M=y
 CONFIG_TARGET_IMX8MP_DATA_MODUL_EDM_SBC=y
 CONFIG_CLK_IMX8MP=y
-CONFIG_DEFAULT_DEVICE_TREE="imx8mp-data-modul-edm-sbc"
+CONFIG_DEFAULT_DEVICE_TREE="freescale/imx8mp-data-modul-edm-sbc"
 CONFIG_DEFAULT_FDT_FILE="imx8mp-data-modul-edm-sbc.dtb"
 CONFIG_DM_PMIC_PCA9450=y
 CONFIG_DM_REGULATOR_PCA9450=y
Signature · 1 line
2.53.0
#1 lore raw
Quoted 24 lines · Marek Vasut

Convert the Data Modul i.MX8M Mini/Plus eDM SBC to OF_UPSTREAM. This is almost straightforward, except for the handling of legacy variants of the board, which is implemented programatically in the board code and requires imx8mm-data-modul-edm-sbc-u-boot.dtsi to re-enabled the old Atheros PHY usage by default.

---
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]

---
  arch/arm/dts/Makefile                         |   2 -
  .../dts/imx8mm-data-modul-edm-sbc-u-boot.dtsi |  12 +
  arch/arm/dts/imx8mm-data-modul-edm-sbc.dts    | 997 ------------------
  .../dts/imx8mp-data-modul-edm-sbc-u-boot.dtsi |   2 +-
  arch/arm/dts/imx8mp-data-modul-edm-sbc.dts    | 972 -----------------
  configs/imx8m_data_modul.config               |   1 +
  configs/imx8mm_data_modul_edm_sbc_defconfig   |   2 +-
  configs/imx8mp_data_modul_edm_sbc_defconfig   |   2 +-
  8 files changed, 16 insertions(+), 1974 deletions(-)
Quoted 2 lines

delete mode 100644 arch/arm/dts/imx8mm-data-modul-edm-sbc.dts delete mode 100644 arch/arm/dts/imx8mp-data-modul-edm-sbc.dts

Hello Fabio,

have you had a chance to pick this patch ?

Thank you for your help !

reviewer
#2 lore raw

Hi Marek,

Quoted 3 lines · Marek Vasut

Hello Fabio,

have you had a chance to pick this patch ?

For some reason, I didn't find it in Patchwork, but I have just downloaded it from the list, and it applies cleanly.

It will be part of my next pull request to Tom.

Sorry about that.

#3 lore raw

On 11/10/26 3:09 AM, Fabio Estevam wrote:

Hello Fabio,

Quoted 12 lines · Marek Vasut
Quoted 4 lines

Hello Fabio,

have you had a chance to pick this patch ?

For some reason, I didn't find it in Patchwork, but I have just downloaded it from the list, and it applies cleanly.

It will be part of my next pull request to Tom.

Sorry about that.

No worries. Thank you !

reviewer
#4 lore raw
In reply to Fabio Estevam

Hi Marek,

Quoted 3 lines · Fabio Estevam

It will be part of my next pull request to Tom.

Sorry about that.

This patch does not pass in CI:

$ ./scripts/check_maintainers_files.sh
error: board/data_modul/imx8mm_edm_sbc/MAINTAINERS references
non-existing file: arch/arm/dts/imx8mm-data-modul-edm-sbc.dts
error: board/data_modul/imx8mp_edm_sbc/MAINTAINERS references
non-existing file: arch/arm/dts/imx8mp-data-modul-edm-sbc.dts
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1

I'll fix it locally by removing these two lines.

#5 lore raw
Quoted 19 lines · Fabio Estevam

Hi Marek,

Quoted 3 lines · Fabio Estevam

It will be part of my next pull request to Tom.

Sorry about that.

This patch does not pass in CI:

$ ./scripts/check_maintainers_files.sh
error: board/data_modul/imx8mm_edm_sbc/MAINTAINERS references
non-existing file: arch/arm/dts/imx8mm-data-modul-edm-sbc.dts
error: board/data_modul/imx8mp_edm_sbc/MAINTAINERS references
non-existing file: arch/arm/dts/imx8mp-data-modul-edm-sbc.dts
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1
Quoted 1 line

I'll fix it locally by removing these two lines.

Thank you