Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: dts: TQMa7: modify for use in bootloaders
@ 2026-02-18 13:54 Alexander Feilke
  2026-02-18 13:54 ` [PATCH 1/3] ARM: dts: imx7s: add boot phase properties Alexander Feilke
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alexander Feilke @ 2026-02-18 13:54 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: linux, Alexander Feilke, devicetree, imx, linux-arm-kernel,
	linux-kernel

This series contains modifications for using Linux device trees
in bootloaders. Changes from U-Boot bootloader are incorporated
directly into the Linux device trees.


Alexander Feilke (3):
  ARM: dts: imx7s: add boot phase properties
  ARM: dts: tqma7: add boot phase properties
  ARM: dts: imx7-mba7: disable boot_cfg pins after boot

 arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi  | 13 +++++++++++++
 arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi |  2 ++
 arch/arm/boot/dts/nxp/imx/imx7s.dtsi      |  5 +++++
 3 files changed, 20 insertions(+)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/3] ARM: dts: imx7s: add boot phase properties
  2026-02-18 13:54 [PATCH 0/3] ARM: dts: TQMa7: modify for use in bootloaders Alexander Feilke
@ 2026-02-18 13:54 ` Alexander Feilke
  2026-02-18 13:54 ` [PATCH 2/3] ARM: dts: tqma7: " Alexander Feilke
  2026-02-18 13:54 ` [PATCH 3/3] ARM: dts: imx7-mba7: disable boot_cfg pins after boot Alexander Feilke
  2 siblings, 0 replies; 7+ messages in thread
From: Alexander Feilke @ 2026-02-18 13:54 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: linux, Alexander Feilke, devicetree, imx, linux-arm-kernel,
	linux-kernel

Adds boot phase properties to essential resources in imx7s device trees.

Signed-off-by: Alexander Feilke <Alexander.Feilke@ew.tq-group.com>
---
 arch/arm/boot/dts/nxp/imx/imx7s.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi
index 9235dd7e93bb..5c9be24ba7c5 100644
--- a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi
@@ -209,6 +209,7 @@ soc: soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&gpc>;
 		ranges;
+		bootph-pre-ram;
 
 		ocram: sram@900000 {
 			compatible = "mmio-sram";
@@ -371,6 +372,7 @@ aips1: bus@30000000 {
 			#size-cells = <1>;
 			reg = <0x30000000 0x400000>;
 			ranges;
+			bootph-pre-ram;
 
 			gpio1: gpio@30200000 {
 				compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
@@ -543,6 +545,7 @@ kpp: keypad@30320000 {
 			iomuxc: pinctrl@30330000 {
 				compatible = "fsl,imx7d-iomuxc";
 				reg = <0x30330000 0x10000>;
+				bootph-pre-ram;
 			};
 
 			gpr: iomuxc-gpr@30340000 {
@@ -712,6 +715,7 @@ aips2: bus@30400000 {
 			#size-cells = <1>;
 			reg = <0x30400000 0x400000>;
 			ranges;
+			bootph-pre-ram;
 
 			adc1: adc@30610000 {
 				compatible = "fsl,imx7d-adc";
@@ -902,6 +906,7 @@ aips3: bus@30800000 {
 			#size-cells = <1>;
 			reg = <0x30800000 0x400000>;
 			ranges;
+			bootph-pre-ram;
 
 			spba-bus@30800000 {
 				compatible = "fsl,spba-bus", "simple-bus";
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/3] ARM: dts: tqma7: add boot phase properties
  2026-02-18 13:54 [PATCH 0/3] ARM: dts: TQMa7: modify for use in bootloaders Alexander Feilke
  2026-02-18 13:54 ` [PATCH 1/3] ARM: dts: imx7s: add boot phase properties Alexander Feilke
@ 2026-02-18 13:54 ` Alexander Feilke
  2026-02-18 13:54 ` [PATCH 3/3] ARM: dts: imx7-mba7: disable boot_cfg pins after boot Alexander Feilke
  2 siblings, 0 replies; 7+ messages in thread
From: Alexander Feilke @ 2026-02-18 13:54 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: linux, Alexander Feilke, devicetree, imx, linux-arm-kernel,
	linux-kernel

Adds boot phase properties to essential resources in
tqma7 device trees.

Signed-off-by: Alexander Feilke <Alexander.Feilke@ew.tq-group.com>
---
 arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi  | 4 ++++
 arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
index 4d948a9757f9..03f2f2cbdfbc 100644
--- a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
@@ -477,6 +477,7 @@ pinctrl_uart5: uart5grp {
 	};
 
 	pinctrl_uart6: uart6grp {
+		bootph-pre-ram;
 		fsl,pins =
 			<MX7D_PAD_EPDC_DATA08__UART6_DCE_RX	0x7d>,
 			<MX7D_PAD_EPDC_DATA09__UART6_DCE_TX	0x75>,
@@ -511,6 +512,7 @@ pinctrl_usdhc1: usdhc1grp {
 			<MX7D_PAD_SD1_DATA1__SD1_DATA1		0x5e>,
 			<MX7D_PAD_SD1_DATA2__SD1_DATA2		0x5e>,
 			<MX7D_PAD_SD1_DATA3__SD1_DATA3		0x5e>;
+		bootph-pre-ram;
 	};
 
 	pinctrl_usdhc1_100mhz: usdhc1_100mhzgrp {
@@ -602,6 +604,7 @@ &uart6 {
 	pinctrl-0 = <&pinctrl_uart6>;
 	assigned-clocks = <&clks IMX7D_UART6_ROOT_SRC>;
 	assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
+	bootph-pre-ram;
 	status = "okay";
 };
 
@@ -646,6 +649,7 @@ &usdhc1 {
 	no-1-8-v;
 	no-sdio;
 	no-mmc;
+	bootph-pre-ram;
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi
index 2966a33bc528..3a01b1cfb5fa 100644
--- a/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi
@@ -214,6 +214,7 @@ pinctrl_usdhc3: usdhc3grp {
 			<MX7D_PAD_SD3_DATA6__SD3_DATA6		0x59>,
 			<MX7D_PAD_SD3_DATA7__SD3_DATA7		0x59>,
 			<MX7D_PAD_SD3_STROBE__SD3_STROBE	0x19>;
+		bootph-pre-ram;
 	};
 
 	pinctrl_usdhc3_100mhz: usdhc3_100mhzgrp {
@@ -288,6 +289,7 @@ &usdhc3 {
 	no-sdio;
 	vmmc-supply = <&vgen4_reg>;
 	vqmmc-supply = <&sw2_reg>;
+	bootph-pre-ram;
 	status = "okay";
 };
 
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/3] ARM: dts: imx7-mba7: disable boot_cfg pins after boot
  2026-02-18 13:54 [PATCH 0/3] ARM: dts: TQMa7: modify for use in bootloaders Alexander Feilke
  2026-02-18 13:54 ` [PATCH 1/3] ARM: dts: imx7s: add boot phase properties Alexander Feilke
  2026-02-18 13:54 ` [PATCH 2/3] ARM: dts: tqma7: " Alexander Feilke
@ 2026-02-18 13:54 ` Alexander Feilke
  2026-02-18 16:42   ` Frank Li
  2026-02-18 17:17   ` [PATCH 3/3 v2] ARM: dts: imx7-mba7: separate BOOT_CFG circuits " alexander.feilke
  2 siblings, 2 replies; 7+ messages in thread
From: Alexander Feilke @ 2026-02-18 13:54 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: linux, Alexander Feilke, devicetree, imx, linux-arm-kernel,
	linux-kernel

The BOOT_CFG pins are located on the LCD bus on our starterkit.
Disable them after boot to separate those signals.

Signed-off-by: Alexander Feilke <Alexander.Feilke@ew.tq-group.com>
---
 arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
index 03f2f2cbdfbc..4192adb27223 100644
--- a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
@@ -287,6 +287,15 @@ &flexcan2 {
 	status = "okay";
 };
 
+&gpio4 {
+	/* Deassert BOOT_EN after boot to separate BOOT_CFG circuits from LCD signals */
+	boot-en-hog {
+		gpio-hog;
+		gpios = <3 GPIO_ACTIVE_LOW>;
+		output-low;
+	};
+};
+
 &i2c1 {
 	lm75: temperature-sensor@49 {
 		compatible = "national,lm75a";
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 3/3] ARM: dts: imx7-mba7: disable boot_cfg pins after boot
  2026-02-18 13:54 ` [PATCH 3/3] ARM: dts: imx7-mba7: disable boot_cfg pins after boot Alexander Feilke
@ 2026-02-18 16:42   ` Frank Li
  2026-02-18 16:55     ` alexander.feilke
  2026-02-18 17:17   ` [PATCH 3/3 v2] ARM: dts: imx7-mba7: separate BOOT_CFG circuits " alexander.feilke
  1 sibling, 1 reply; 7+ messages in thread
From: Frank Li @ 2026-02-18 16:42 UTC (permalink / raw)
  To: Alexander Feilke
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, linux, devicetree, imx,
	linux-arm-kernel, linux-kernel

On Wed, Feb 18, 2026 at 02:54:14PM +0100, Alexander Feilke wrote:
> The BOOT_CFG pins are located on the LCD bus on our starterkit.
> Disable them after boot to separate those signals.

Your comments is more clear.  Is below commit massage better?

ARM: dts: imx7-mba7: Deassert BOOT_EN to separate BOOT_CFG circuits after boot

Deassert BOOT_EN after boot to separate BOOT_CFG circuits from LCD signals.

Frank
>
> Signed-off-by: Alexander Feilke <Alexander.Feilke@ew.tq-group.com>
> ---
>  arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
> index 03f2f2cbdfbc..4192adb27223 100644
> --- a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
> +++ b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
> @@ -287,6 +287,15 @@ &flexcan2 {
>  	status = "okay";
>  };
>
> +&gpio4 {
> +	/* Deassert BOOT_EN after boot to separate BOOT_CFG circuits from LCD signals */
> +	boot-en-hog {
> +		gpio-hog;
> +		gpios = <3 GPIO_ACTIVE_LOW>;
> +		output-low;
> +	};
> +};
> +
>  &i2c1 {
>  	lm75: temperature-sensor@49 {
>  		compatible = "national,lm75a";
> --
> 2.43.0
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 3/3] ARM: dts: imx7-mba7: disable boot_cfg pins after boot
  2026-02-18 16:42   ` Frank Li
@ 2026-02-18 16:55     ` alexander.feilke
  0 siblings, 0 replies; 7+ messages in thread
From: alexander.feilke @ 2026-02-18 16:55 UTC (permalink / raw)
  To: Frank Li
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, linux, devicetree, imx,
	linux-arm-kernel, linux-kernel

On Wednesday, February 18, 2026 17:42 CET, Frank Li <Frank.li@nxp.com> wrote:

> On Wed, Feb 18, 2026 at 02:54:14PM +0100, Alexander Feilke wrote:
> > The BOOT_CFG pins are located on the LCD bus on our starterkit.
> > Disable them after boot to separate those signals.
> 
> Your comments is more clear.  Is below commit massage better?
> 
> ARM: dts: imx7-mba7: Deassert BOOT_EN to separate BOOT_CFG circuits after boot
> 
> Deassert BOOT_EN after boot to separate BOOT_CFG circuits from LCD signals.
> 
> Frank

Agreed. I can send an updated patch if the rest seems ok



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 3/3 v2] ARM: dts: imx7-mba7: separate BOOT_CFG circuits after  boot
  2026-02-18 13:54 ` [PATCH 3/3] ARM: dts: imx7-mba7: disable boot_cfg pins after boot Alexander Feilke
  2026-02-18 16:42   ` Frank Li
@ 2026-02-18 17:17   ` alexander.feilke
  1 sibling, 0 replies; 7+ messages in thread
From: alexander.feilke @ 2026-02-18 17:17 UTC (permalink / raw)
  To: Alexander Feilke
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, linux,
	devicetree, imx, linux-arm-kernel, linux-kernel

Deassert BOOT_EN after boot to separate BOOT_CFG
circuits from LCD signals.

Signed-off-by: Alexander Feilke <Alexander.Feilke@ew.tq-group.com>
---
V1 -> V2: Updated Commit Message

 arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
index 03f2f2cbdfbc..4192adb27223 100644
--- a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
@@ -287,6 +287,15 @@ &flexcan2 {
 	status = "okay";
 };
 
+&gpio4 {
+	/* Deassert BOOT_EN after boot to separate BOOT_CFG circuits from LCD signals */
+	boot-en-hog {
+		gpio-hog;
+		gpios = <3 GPIO_ACTIVE_LOW>;
+		output-low;
+	};
+};
+
 &i2c1 {
 	lm75: temperature-sensor@49 {
 		compatible = "national,lm75a";
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-02-18 17:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-18 13:54 [PATCH 0/3] ARM: dts: TQMa7: modify for use in bootloaders Alexander Feilke
2026-02-18 13:54 ` [PATCH 1/3] ARM: dts: imx7s: add boot phase properties Alexander Feilke
2026-02-18 13:54 ` [PATCH 2/3] ARM: dts: tqma7: " Alexander Feilke
2026-02-18 13:54 ` [PATCH 3/3] ARM: dts: imx7-mba7: disable boot_cfg pins after boot Alexander Feilke
2026-02-18 16:42   ` Frank Li
2026-02-18 16:55     ` alexander.feilke
2026-02-18 17:17   ` [PATCH 3/3 v2] ARM: dts: imx7-mba7: separate BOOT_CFG circuits " alexander.feilke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox