Skip to contentSkip to conversation

arm64: imx: imx8mp-debix-model-a: Migrate to OF_UPSTREAM

PATCH Applied Gilles Talis 3 participants 3 messages Oct 10, 2024 – Oct 13, 2024

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

PATCH 1/1 arm64: imx: imx8mp-debix-model-a: Migrate to OF_UPSTREAM

Device tree for this board can be deleted. Device tree location now points to the freescale/ directory.

Use absolute path to PMIC node entry and its regulators as device tree in kernel does not provide corresponding labels

---
 arch/arm/dts/Makefile                         |   1 -
 arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi |  16 +-
 arch/arm/dts/imx8mp-debix-model-a.dts         | 507 ------------------
 arch/arm/mach-imx/imx8m/Kconfig               |   1 +
 configs/imx8mp_debix_model_a_defconfig        |   2 +-
 5 files changed, 10 insertions(+), 517 deletions(-)
 delete mode 100644 arch/arm/dts/imx8mp-debix-model-a.dts
arch/arm/dts/Makefile +0 -1
index 65176c8fb8..73efdcf975 100644
@@ -967,7 +967,6 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mp-dhcom-som-overlay-eth1xfast.dtbo \
 	imx8mp-dhcom-som-overlay-eth2xfast.dtbo \
 	imx8mp-dhcom-pdk-overlay-eth2xfast.dtbo \
-	imx8mp-debix-model-a.dtb \
 	imx8mp-dhcom-drc02.dtb \
 	imx8mp-dhcom-pdk2.dtb \
 	imx8mp-dhcom-pdk3.dtb \
arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi +8 -8
index 33bd89a843..d5bd9f591e 100644
@@ -20,6 +20,14 @@
 	};
 };
 
+&{/soc@0/bus@30800000/i2c@30a20000/pmic@25} {
+	bootph-pre-ram;
+};
+
+&{/soc@0/bus@30800000/i2c@30a20000/pmic@25/regulators} {
+	bootph-pre-ram;
+};
+
 &crypto {
 	bootph-pre-ram;
 };
@@ -88,14 +96,6 @@
 	bootph-pre-ram;
 };
 
-&pmic {
-	bootph-pre-ram;
-
-	regulators {
-		bootph-pre-ram;
-	};
-};
-
 &reg_usdhc2_vmmc {
 	u-boot,off-on-delay-us = <20000>;
 };
arch/arm/dts/imx8mp-debix-model-a.dts deleted +0 -507

507 lines not on this page · raw message

arch/arm/mach-imx/imx8m/Kconfig +1 -0
index d1fdaec704..9d1fabe91c 100644
@@ -197,6 +197,7 @@ config TARGET_IMX8MP_DEBIX_MODEL_A
 	select IMX8MP
 	select IMX8M_LPDDR4
 	select SUPPORT_SPL
+	imply OF_UPSTREAM
 
 config TARGET_IMX8MP_DH_DHCOM_PDK2
 	bool "DH electronics DHCOM Premium Developer Kit (2) i.MX8M Plus"
configs/imx8mp_debix_model_a_defconfig +1 -1
index dcc529f9fc..9f75ab1477 100644
@@ -8,7 +8,7 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_ENV_SIZE=0x1000
 CONFIG_ENV_OFFSET=0x400000
 CONFIG_DM_GPIO=y
-CONFIG_DEFAULT_DEVICE_TREE="imx8mp-debix-model-a"
+CONFIG_DEFAULT_DEVICE_TREE="freescale/imx8mp-debix-model-a"
 CONFIG_SPL_TEXT_BASE=0x920000
 CONFIG_TARGET_IMX8MP_DEBIX_MODEL_A=y
 CONFIG_SYS_MONITOR_LEN=524288

base-commit: 93b9cd792089e536f2bfa85d9903fd4798209f76

Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines

Subject: [PATCH] arm64: imx: imx8mp-debix-model-a: Migrate to OF_UPSTREAM

Device tree for this board can be deleted. Device tree location now points to the freescale/ directory.

Use absolute path to PMIC node entry and its regulators as device tree in kernel does not provide corresponding labels

reviewer Applied
#2 lore raw
In reply to Gilles Talis
Quoted 8 lines · Gilles Talis

Device tree for this board can be deleted. Device tree location now points to the freescale/ directory.

Use absolute path to PMIC node entry and its regulators as device tree in kernel does not provide corresponding labels

Applied, thanks.