[PATCH v8 5/5] arm64: dts: st: add bootph properties for STM32MP25 boards
From: Patrice Chotard
Date: Fri Dec 04 2026 - 11:39:10 EST
The bootph-all flag was introduced in dt-schema
(dtschema/schemas/bootph.yaml) to define node usage across
different boot phases.
Mirror the bootph-* phase flags that U-Boot currently sets in its
arch/arm/dts/*-u-boot.dtsi overlays for these boards. This describes
the nodes needed by early boot stages (timer, gpio, syscfg, clock,
uart, ...) in the upstream device tree, so U-Boot no longer needs to
add them in its overlays.
Signed-off-by: Patrice Chotard <patrice.chotard@xxxxxxxxxxx>
---
arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 101 +++++++++++++++++++++++++++++
arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 101 +++++++++++++++++++++++++++++
2 files changed, 202 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
index 00210a2052af..8bd1e8666d7d 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
@@ -150,6 +150,24 @@ fw@80000000 {
no-map;
};
};
+
+ firmware {
+ optee {
+ bootph-all;
+ };
+
+ scmi {
+ bootph-all;
+ };
+ };
+
+ psci {
+ bootph-all;
+ };
+
+ soc@0 {
+ bootph-all;
+ };
};
&arm_wdt {
@@ -157,6 +175,10 @@ &arm_wdt {
status = "okay";
};
+&bsec {
+ bootph-all;
+};
+
&csi {
vdd-supply = <&scmi_vddcore>;
vdda18-supply = <&scmi_v1v8>;
@@ -215,8 +237,13 @@ phy1_eth1: ethernet-phy@1 {
};
};
+&gpioa {
+ bootph-all;
+};
+
&gpiob {
/* Enable the IMX335 power line */
+ bootph-all;
imx335-en-hog {
gpio-hog;
gpios = <11 GPIO_ACTIVE_HIGH>;
@@ -225,6 +252,46 @@ imx335-en-hog {
};
};
+&gpioc {
+ bootph-all;
+};
+
+&gpiod {
+ bootph-all;
+};
+
+&gpioe {
+ bootph-all;
+};
+
+&gpiof {
+ bootph-all;
+};
+
+&gpiog {
+ bootph-all;
+};
+
+&gpioh {
+ bootph-all;
+};
+
+&gpioi {
+ bootph-all;
+};
+
+&gpioj {
+ bootph-all;
+};
+
+&gpiok {
+ bootph-all;
+};
+
+&gpioz {
+ bootph-all;
+};
+
&i2c2 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c2_pins_b>;
@@ -285,6 +352,7 @@ &iwdg2 {
};
<dc {
+ bootph-all;
status = "okay";
port {
ltdc_ep0_out: endpoint {
@@ -315,6 +383,22 @@ lvds_out0: endpoint {
};
};
+&pinctrl {
+ bootph-all;
+};
+
+&rcc {
+ bootph-all;
+};
+
+&rifsc {
+ bootph-all;
+};
+
+&scmi_clk {
+ bootph-all;
+};
+
&scmi_regu {
scmi_vddio1: regulator@0 {
regulator-min-microvolt = <1800000>;
@@ -385,6 +469,10 @@ &sdmmc2 {
status = "okay";
};
+&syscfg {
+ bootph-all;
+};
+
&usart2 {
pinctrl-names = "default", "idle", "sleep";
pinctrl-0 = <&usart2_pins_a>;
@@ -392,5 +480,18 @@ &usart2 {
pinctrl-2 = <&usart2_sleep_pins_a>;
/delete-property/dmas;
/delete-property/dma-names;
+ bootph-all;
status = "okay";
};
+
+&usart2_pins_a {
+
+ bootph-all;
+ pins1 {
+ bootph-all;
+ };
+
+ pins2 {
+ bootph-all;
+ };
+};
diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
index 181f07421649..3c4e2f50d57c 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
@@ -76,6 +76,16 @@ ddr_channel: sdram-channel-0 {
io-width = <32>;
};
+ firmware {
+ optee {
+ bootph-all;
+ };
+
+ scmi {
+ bootph-all;
+ };
+ };
+
imx335_reset_delay: imx335-reset-delay {
compatible = "gpio-delay";
#gpio-cells = <3>;
@@ -131,6 +141,10 @@ panel_lvds_backlight: backlight {
status = "okay";
};
+ psci {
+ bootph-all;
+ };
+
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
@@ -155,6 +169,10 @@ vdiv_ana0: voltage-divider-ana0 {
full-ohms = <1030000>;
status = "disabled";
};
+
+ soc@0 {
+ bootph-all;
+ };
};
&adc_12 {
@@ -176,6 +194,10 @@ &arm_wdt {
status = "okay";
};
+&bsec {
+ bootph-all;
+};
+
&combophy {
clocks = <&rcc CK_BUS_USB3PCIEPHY>, <&rcc CK_KER_USB3PCIEPHY>, <&pad_clk>;
clock-names = "apb", "ker", "pad";
@@ -262,8 +284,41 @@ phy0_eth2: ethernet-phy@1 {
};
};
+&gpioa {
+ bootph-all;
+};
+
+&gpiob {
+ bootph-all;
+};
+
+&gpioc {
+ bootph-all;
+};
+
+&gpiod {
+ bootph-all;
+};
+
+&gpioe {
+ bootph-all;
+};
+
+&gpiof {
+ bootph-all;
+};
+
+&gpiog {
+ bootph-all;
+};
+
+&gpioh {
+ bootph-all;
+};
+
&gpioi {
/* Enable the IMX335 power line */
+ bootph-all;
imx335-en-hog {
gpio-hog;
gpios = <0 GPIO_ACTIVE_HIGH>;
@@ -272,6 +327,18 @@ imx335-en-hog {
};
};
+&gpioj {
+ bootph-all;
+};
+
+&gpiok {
+ bootph-all;
+};
+
+&gpioz {
+ bootph-all;
+};
+
&i2c2 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c2_pins_a>;
@@ -340,6 +407,7 @@ timer {
};
<dc {
+ bootph-all;
status = "okay";
port {
ltdc_ep0_out: endpoint {
@@ -419,10 +487,26 @@ pcie@0,0 {
};
};
+&pinctrl {
+ bootph-all;
+};
+
+&rcc {
+ bootph-all;
+};
+
+&rifsc {
+ bootph-all;
+};
+
&rtc {
status = "okay";
};
+&scmi_clk {
+ bootph-all;
+};
+
&scmi_regu {
scmi_vddio1: regulator@0 {
regulator-min-microvolt = <1800000>;
@@ -499,6 +583,10 @@ &spi8 {
status = "disabled";
};
+&syscfg {
+ bootph-all;
+};
+
&timers3 {
status = "disabled";
counter {
@@ -564,9 +652,22 @@ &usart2 {
pinctrl-2 = <&usart2_sleep_pins_a>;
/delete-property/dmas;
/delete-property/dma-names;
+ bootph-all;
status = "okay";
};
+&usart2_pins_a {
+
+ bootph-all;
+ pins1 {
+ bootph-all;
+ };
+
+ pins2 {
+ bootph-all;
+ };
+};
+
&usart6 {
pinctrl-names = "default", "idle", "sleep";
pinctrl-0 = <&usart6_pins_a>;
--
2.43.0