* [PATCH] arm64: dts: imx8mp-icore-mx8mp: add boot phase properties
@ 2026-11-29 15:07 Dario Binacchi
0 siblings, 0 replies; only message in thread
From: Dario Binacchi @ 2026-11-29 15:07 UTC (permalink / raw)
To: Frank Li
Cc: linux-amarula, michael, Dario Binacchi, Conor Dooley,
Fabio Estevam, Krzysztof Kozlowski, Pengutronix Kernel Team,
Rob Herring, Sascha Hauer, devicetree, imx, linux-arm-kernel,
linux-kernel
Add boot phase properties to the resources needed during the boot
process.
The i.Core MX8M Plus SoM and the C.TOUCH 2.0 carrier board need UART,
watchdog, PMIC, GPIO and boot device access.
Tested on i.Core MX8M Plus FE C.TOUCH 2.0 with U-Boot v2027.01-rc3.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
Based on imx/dt64, which includes the board device tree files.
.../dts/freescale/imx8mp-icore-mx8mp-ctouch2.dtsi | 11 +++++++++++
arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp.dtsi | 10 ++++++++++
2 files changed, 21 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-ctouch2.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-ctouch2.dtsi
index 5338aeb6ec92..5e96159cbd16 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-ctouch2.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-ctouch2.dtsi
@@ -40,6 +40,7 @@ reg_usdhc2_vmmc: regulator-usdhc2 {
regulator-max-microvolt = <3300000>;
gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
enable-active-high;
+ bootph-pre-ram;
};
};
@@ -49,6 +50,10 @@ &flexcan2 {
status = "okay";
};
+&gpio2 {
+ bootph-pre-ram;
+};
+
&i2c2 {
clock-frequency = <100000>;
pinctrl-names = "default";
@@ -71,6 +76,7 @@ &pwm2 {
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart2>;
+ bootph-pre-ram;
status = "okay";
};
@@ -109,6 +115,7 @@ &usdhc2 {
cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
bus-width = <4>;
vmmc-supply = <®_usdhc2_vmmc>;
+ bootph-pre-ram;
status = "okay";
};
@@ -137,6 +144,7 @@ pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
fsl,pins = <
MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x40
>;
+ bootph-pre-ram;
};
pinctrl_uart2: uart2grp {
@@ -144,6 +152,7 @@ pinctrl_uart2: uart2grp {
MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x40
MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x40
>;
+ bootph-pre-ram;
};
pinctrl_usdhc2: usdhc2grp {
@@ -156,11 +165,13 @@ MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d0
MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d0
MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0
>;
+ bootph-pre-ram;
};
pinctrl_usdhc2_gpio: usdhc2gpiogrp {
fsl,pins = <
MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0x1c4
>;
+ bootph-pre-ram;
};
};
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp.dtsi
index 33066247cd2c..6cc02780a0c3 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp.dtsi
@@ -29,6 +29,7 @@ &i2c1 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
+ bootph-pre-ram;
status = "okay";
pca9450: pmic@25 {
@@ -38,8 +39,11 @@ pca9450: pmic@25 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pmic>;
reg = <0x25>;
+ bootph-pre-ram;
regulators {
+ bootph-pre-ram;
+
buck1: BUCK1 {
regulator-always-on;
regulator-boot-on;
@@ -119,6 +123,7 @@ &usdhc3 {
pinctrl-0 = <&pinctrl_usdhc3>;
pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
+ bootph-pre-ram;
status = "okay";
};
@@ -126,6 +131,7 @@ &wdog1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wdog>;
fsl,ext-reset-output;
+ bootph-pre-ram;
status = "okay";
};
@@ -135,12 +141,14 @@ pinctrl_i2c1: i2c1grp {
MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x400001c3
MX8MP_IOMUXC_I2C1_SDA__I2C1_SDA 0x400001c3
>;
+ bootph-pre-ram;
};
pinctrl_pmic: pmicgrp {
fsl,pins = <
MX8MP_IOMUXC_NAND_CE0_B__GPIO3_IO01 0x1c0
>;
+ bootph-pre-ram;
};
pinctrl_usdhc3: usdhc3grp {
@@ -157,6 +165,7 @@ MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d0
MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d0
MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x190
>;
+ bootph-pre-ram;
};
pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
@@ -195,5 +204,6 @@ pinctrl_wdog: wdoggrp {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO02__WDOG1_WDOG_B 0xc6
>;
+ bootph-pre-ram;
};
};
---
base-commit: 8cfe8506008e75f27c7299715bf3ab75732ee18c
branch: engicam-imx8mp-icore-bootph
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-29 15:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 15:07 [PATCH] arm64: dts: imx8mp-icore-mx8mp: add boot phase properties Dario Binacchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®