From: sashiko-bot@kernel.org
To: "Patrice Chotard" <patrice.chotard@foss.st.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v8 2/5] arm: dts: st: add bootph properties for STM32MP15 boards
Date: Fri, 04 Dec 2026 17:29:02 +0000 [thread overview]
Message-ID: <sashiko-outbox-250319@kernel.org> (raw)
In-Reply-To: <20261204-upstream_uboot_properties-v8-2-d6d1e68661cc@foss.st.com>
Thank you for your contribution! Sashiko AI review found 6 potential
issues to consider:
- [Medium] arm: dts: st: missing bootph-pre-ram on usbotg_hs_pins_a pins
child node
- [Medium] arm: dts: st: SCMI boards silently inherit non-SCMI bootph
properties
- [Medium] ARM: dts: st: missing bootph tags on scmi_clk and scmi_reset
on STM32MP15
- [Low] arm: dts: st: bootph properties added to unused or disabled
board nodes
- [Low] arm: dts: st: root bootph-all and inconsistent DHCOR pmic bootph
tags
- [Low] arm: dts: st: duplicated bootph properties across board and
included DTS
--
commit 9a2b75e649d59825a505ba419de4590d694ec1c4
Author: Patrice Chotard <patrice.chotard@foss.st.com>
arm: dts: st: add bootph properties for STM32MP15 boards
This commit adds bootph-* properties to 19 STM32MP15 board device tree
files, mirroring the early boot-phase tags previously carried in U-Boot
*-u-boot.dtsi overlays.
> diff --git a/arch/arm/boot/dts/st/stm32mp151a-dhcor-testbench.dts b/arch/arm/boot/dts/st/stm32mp151a-dhcor-testbench.dts
> index e0f828ecc2faf..31f82f4444651 100644
> --- a/arch/arm/boot/dts/st/stm32mp151a-dhcor-testbench.dts
> +++ b/arch/arm/boot/dts/st/stm32mp151a-dhcor-testbench.dts
> @@ -14,4 +14,263 @@ / {
> compatible = "dh,stm32mp151a-dhcor-testbench",
> "dh,stm32mp151a-dhcor-som",
> "st,stm32mp151";
> +
> + bootph-all;
> + clocks {
> + bootph-all;
> + };
[Severity: Low]
Should bootph-all be set on the root node /? The root node is always
present in every boot phase, and none of the other 16 boards in this patch
set it (it is also added on / in stm32mp153c-dhcor-drc-compact.dts and
stm32mp157a-dhcor-avenger96.dts).
In addition, &pmic and &pwr_regulators are tagged bootph-all here, whereas
stm32mp153c-dhcor-drc-compact.dts and stm32mp157a-dhcor-avenger96.dts tag
the same DHCOR SoM nodes from stm32mp15xx-dhcor-som.dtsi with
bootph-pre-ram.
[ ... ]
> +&usbotg_hs {
> + bootph-pre-ram;
> +};
> +
> +&usbotg_hs_pins_a {
> + bootph-pre-ram;
> +};
[Severity: Medium]
Does &usbotg_hs_pins_a also need bootph-pre-ram on its pins child node?
In arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi, usbotg_hs_pins_a defines
its pinmux property inside a pins subnode. Because bootph-* properties
propagate upward to ancestors and not downward to children, pre-RAM DTB
filtering (such as U-Boot SPL fdtgrep) strips the untagged pins subnode
and leaves usbotg-hs-0 without the PA10 OTG_ID pinmux configuration.
The same omission appears in stm32mp153c-dhcom-drc02.dts,
stm32mp153c-dhcor-drc-compact.dts, stm32mp157a-dhcor-avenger96.dts,
stm32mp157c-dhcom-pdk2.dts, and stm32mp157c-dhcom-picoitx.dts. Adding
pins { bootph-pre-ram; }; inside &usbotg_hs_pins_a matches the other
pinctrl nodes in these files.
> diff --git a/arch/arm/boot/dts/st/stm32mp153c-dhcom-drc02.dts b/arch/arm/boot/dts/st/stm32mp153c-dhcom-drc02.dts
> index b4e504f026ce7..9d9e4b4635c50 100644
> --- a/arch/arm/boot/dts/st/stm32mp153c-dhcom-drc02.dts
> +++ b/arch/arm/boot/dts/st/stm32mp153c-dhcom-drc02.dts
[ ... ]
> +&usbotg_hs {
> + bootph-pre-ram;
> +};
> +
> +&usbotg_hs_pins_a {
> + bootph-pre-ram;
> +};
[Severity: Low]
Should bootph-pre-ram be added to &usbotg_hs and &usbotg_hs_pins_a here
when usbotg_hs is disabled and usbotg_hs_pins_a is unreferenced on DHCOM
DRC02? Because stm32mp153c-dhcom-drc02.dtb is built with dtc -@ as an
overlay base, the unreferenced usbotg_hs_pins_a node is retained in the
compiled DTB with bootph-pre-ram.
There are a few similar dead tags in this patch: &sdmmc1_dir_pins_b in
stm32mp153c-dhcor-drc-compact.dts is never referenced by
stm32mp15xx-dhcor-drc-compact.dtsi, &gpioj and &gpiok are tagged
bootph-all on AC-package boards using stm32mp15xxac-pinctrl.dtsi where
those banks do not exist, and <dc is tagged bootph-some-ram on boards
that leave it disabled.
> diff --git a/arch/arm/boot/dts/st/stm32mp157a-dk1-scmi.dts b/arch/arm/boot/dts/st/stm32mp157a-dk1-scmi.dts
> index 2f4d212de3e9c..90b6b7d909f50 100644
> --- a/arch/arm/boot/dts/st/stm32mp157a-dk1-scmi.dts
> +++ b/arch/arm/boot/dts/st/stm32mp157a-dk1-scmi.dts
[ ... ]
> @@ -94,3 +165,22 @@ &rng1 {
> &rtc {
> clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
> };
> +
> +&scmi {
> + bootph-some-ram;
> +};
[Severity: Medium]
Do the scmi_clk (protocol@14) and scmi_reset (protocol@16) child nodes
under &scmi also need bootph tags?
In arch/arm/boot/dts/st/stm32mp15-scmi.dtsi, scmi_clk and scmi_reset are
child nodes of scmi with no bootph-* properties, and bootph-* does not
propagate downward. Early-boot consumers tagged bootph-all (&rcc, &gpioz,
and the inherited &i2c4 and &iwdg2) directly reference scmi_clk and
scmi_reset, so DTB filtering or strict boot-phase binding can omit those
providers and break clock or reset resolution.
There is also a phase mismatch between the bootph-all consumers and the
bootph-some-ram tags on &optee and &scmi. This affects all four SCMI
boards (dk1-scmi, dk2-scmi, ed1-scmi, and ev1-scmi).
> diff --git a/arch/arm/boot/dts/st/stm32mp157a-dk1.dts b/arch/arm/boot/dts/st/stm32mp157a-dk1.dts
> index 0da3667ab1e0e..1b314bc71ce0c 100644
> --- a/arch/arm/boot/dts/st/stm32mp157a-dk1.dts
> +++ b/arch/arm/boot/dts/st/stm32mp157a-dk1.dts
> @@ -22,4 +22,161 @@ aliases {
> chosen {
> stdout-path = "serial0:115200n8";
> };
> +
> + clocks {
> + bootph-all;
> + };
[Severity: Medium]
Does adding non-SCMI bootph-* properties directly to stm32mp157a-dk1.dts
leak them into stm32mp157a-dk1-scmi.dtb?
stm32mp157a-dk1-scmi.dts includes stm32mp157a-dk1.dts and
stm32mp15-scmi.dtsi, and neither deletes any inherited bootph-*
properties. As a result, stm32mp157a-dk1-scmi.dtb ends up with an empty
/clocks node tagged bootph-all (after stm32mp15-scmi.dtsi deletes the
five fixed clocks), along with bootph-all on &etzpc, &i2c4, &i2c4_pins_a,
&iwdg2, &pmic, &pwr_regulators, and bootph-pre-ram on &sdmmc1 and its pin
groups despite the SCMI board omitting them.
The same inheritance issue affects stm32mp157c-dk2-scmi.dtb,
stm32mp157c-ed1-scmi.dtb, and stm32mp157c-ev1-scmi.dtb. Non-SCMI-only
bootph-* properties should either be kept out of files included by the
SCMI boards or removed with /delete-property/ in the SCMI files.
> diff --git a/arch/arm/boot/dts/st/stm32mp157c-ev1.dts b/arch/arm/boot/dts/st/stm32mp157c-ev1.dts
> index beba90ab1a2a5..45b8f59ec6d98 100644
> --- a/arch/arm/boot/dts/st/stm32mp157c-ev1.dts
> +++ b/arch/arm/boot/dts/st/stm32mp157c-ev1.dts
[ ... ]
> @@ -73,6 +74,18 @@ panel_backlight: panel-backlight {
> default-on;
> status = "okay";
> };
> +
> + psci {
> + bootph-some-ram;
> + };
> +
> + soc {
> + bootph-all;
> + };
> +};
> +
> +&bsec {
> + bootph-all;
> };
[Severity: Low]
This isn't a bug, but stm32mp157c-ev1.dts includes stm32mp157c-ed1.dts and
repeats most of the identical bootph-* annotations already added there.
The four *-scmi.dts files likewise repeat the shared tags from their
included base .dts files, with stm32mp157c-ev1-scmi.dts declaring them a
third time and duplicating &qspi and its pin groups.
More broadly, factoring the SoC-wide and SoM-wide bootph-* properties into
the shared .dtsi files (such as stm32mp151.dtsi,
stm32mp15xx-dhcom-som.dtsi, and stm32mp15xx-dhcor-som.dtsi) would avoid
duplicating them across all 19 leaf boards and prevent sibling boards like
stm32mp157a-icore-stm32mp1-ctouch2-of10.dts from missing them.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-upstream_uboot_properties-v8-0-d6d1e68661cc@foss.st.com?part=2
next prev parent reply other threads:[~2026-12-04 17:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 16:38 [PATCH v8 0/5] Add boot phase tags for STMicroelectronics boards Patrice Chotard
2026-12-04 16:38 ` [PATCH v8 1/5] arm: dts: st: add bootph properties for STM32MP13 boards Patrice Chotard
2026-12-04 17:05 ` sashiko-bot
2026-12-04 16:38 ` [PATCH v8 2/5] arm: dts: st: add bootph properties for STM32MP15 boards Patrice Chotard
2026-12-04 17:29 ` sashiko-bot [this message]
2026-12-04 16:38 ` [PATCH v8 3/5] arm64: dts: st: add bootph properties for STM32MP21 boards Patrice Chotard
2026-12-04 17:37 ` sashiko-bot
2026-12-04 16:38 ` [PATCH v8 4/5] arm64: dts: st: add bootph properties for STM32MP23 boards Patrice Chotard
2026-12-04 17:51 ` sashiko-bot
2026-12-04 16:38 ` [PATCH v8 5/5] arm64: dts: st: add bootph properties for STM32MP25 boards Patrice Chotard
2026-12-04 18:07 ` sashiko-bot
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=sashiko-outbox-250319@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=patrice.chotard@foss.st.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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