Devicetree
 help / color / mirror / Atom feed
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: Frank Li <Frank.Li@nxp.com>
Cc: michael@amarulasolutions.com, linux-amarula@amarulasolutions.com,
	Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	Conor Dooley <conor+dt@kernel.org>,
	Fabio Estevam <festevam@gmail.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Rob Herring <robh@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	devicetree@vger.kernel.org, imx@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: dts: imx8mn-bsh-smm-s2/pro: add boot phase properties
Date: Fri, 20 Nov 2026 17:11:53 +0100	[thread overview]
Message-ID: <20261120161159.1944199-1-dario.binacchi@amarulasolutions.com> (raw)

Add boot phase properties to the resources needed during the boot
process.

The BSH SMM S2 and S2PRO need UART, watchdog, PMIC, GPIO and boot
device access.

Tested on BSH SMM S2PRO with U-Boot v2027.01-rc1.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

---

 .../freescale/imx8mn-bsh-smm-s2-common.dtsi   | 22 +++++++++++++++++++
 .../boot/dts/freescale/imx8mn-bsh-smm-s2.dts  |  2 ++
 .../dts/freescale/imx8mn-bsh-smm-s2pro.dts    |  2 ++
 3 files changed, 26 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi
index d20393c2d901..5515236d3c09 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi
@@ -77,10 +77,23 @@ ethphy0: ethernet-phy@0 {
 	};
 };
 
+&gpio1 {
+	bootph-pre-ram;
+};
+
+&gpio2 {
+	bootph-pre-ram;
+};
+
+&gpio4 {
+	bootph-pre-ram;
+};
+
 &i2c1 {
 	clock-frequency = <400000>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c1>;
+	bootph-pre-ram;
 	status = "okay";
 
 	bd71847: pmic@4b {
@@ -95,8 +108,11 @@ bd71847: pmic@4b {
 		#clock-cells = <0>;
 		clocks = <&osc_32k>;
 		clock-output-names = "clk-32k-out";
+		bootph-pre-ram;
 
 		regulators {
+			bootph-pre-ram;
+
 			buck1_reg: BUCK1 {
 				/* PMIC_BUCK1 - VDD_SOC */
 				regulator-name = "buck1";
@@ -244,6 +260,7 @@ bluetooth {
 &uart4 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart4>;
+	bootph-pre-ram;
 	status = "okay";
 };
 
@@ -280,6 +297,7 @@ &wdog1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_wdog>;
 	fsl,ext-reset-output;
+	bootph-pre-ram;
 	status = "okay";
 };
 
@@ -326,6 +344,7 @@ pinctrl_i2c1: i2c1grp {
 			MX8MN_IOMUXC_I2C1_SCL_I2C1_SCL			0x400000c2
 			MX8MN_IOMUXC_I2C1_SDA_I2C1_SDA			0x400000c2
 		>;
+		bootph-pre-ram;
 	};
 
 	pinctrl_i2c3: i2c3grp {
@@ -346,6 +365,7 @@ pinctrl_pmic: pmicirqgrp {
 		fsl,pins = <
 			MX8MN_IOMUXC_GPIO1_IO03_GPIO1_IO3		0x040
 		>;
+		bootph-pre-ram;
 	};
 
 	pinctrl_uart2: uart2grp {
@@ -369,6 +389,7 @@ pinctrl_uart4: uart4grp {
 			MX8MN_IOMUXC_UART4_RXD_UART4_DCE_RX		0x040
 			MX8MN_IOMUXC_UART4_TXD_UART4_DCE_TX		0x040
 		>;
+		bootph-pre-ram;
 	};
 
 	pinctrl_usdhc2: usdhc2grp {
@@ -414,6 +435,7 @@ pinctrl_wdog: wdoggrp {
 		fsl,pins = <
 			MX8MN_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B		0x046
 		>;
+		bootph-pre-ram;
 	};
 
 	pinctrl_wlan: wlangrp {
diff --git a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2.dts b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2.dts
index 11a1ba5bfdb7..5add6a8e1c59 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2.dts
@@ -21,6 +21,7 @@ memory@40000000 {
 &gpmi {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_gpmi_nand>;
+	bootph-pre-ram;
 	status = "okay";
 };
 
@@ -43,5 +44,6 @@ MX8MN_IOMUXC_NAND_READY_B_RAWNAND_READY_B	0x00000056
 			MX8MN_IOMUXC_NAND_WE_B_RAWNAND_WE_B		0x00000096
 			MX8MN_IOMUXC_NAND_WP_B_RAWNAND_WP_B		0x00000096
 		>;
+		bootph-pre-ram;
 	};
 };
diff --git a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts
index 475cbf9e0d1e..b48905a9b4dd 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2pro.dts
@@ -85,6 +85,7 @@ &usdhc1 {
 	pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
 	bus-width = <8>;
 	non-removable;
+	bootph-pre-ram;
 	status = "okay";
 };
 
@@ -133,6 +134,7 @@ MX8MN_IOMUXC_SD1_DATA6_USDHC1_DATA6		0x0d0
 			MX8MN_IOMUXC_SD1_DATA7_USDHC1_DATA7		0x0d0
 			MX8MN_IOMUXC_SD1_STROBE_USDHC1_STROBE		0x090
 		>;
+		bootph-pre-ram;
 	};
 
 	pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
---
base-commit: 65e4fd942f72a9dba0e4e257290c4fa1aa756854
branch: imx8mn-bsh-smm-s2-bootph

-- 
2.43.0


             reply	other threads:[~2026-11-20 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 16:11 Dario Binacchi [this message]
2026-11-25 17:40 ` [PATCH] arm64: dts: imx8mn-bsh-smm-s2/pro: add boot phase properties Frank.Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261120161159.1944199-1-dario.binacchi@amarulasolutions.com \
    --to=dario.binacchi@amarulasolutions.com \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=michael@amarulasolutions.com \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox