From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796405343; b=t6opQRL/LBQV1L0kJ88X0K1JWTj6mC0S1SNhQ88tfdqPa/qDslxJh44Rfsy0bbcrBorm 0KQfqbZcmziJwAIWL3RyrYDPA+PAUKLocQrkUHWL5SB8IXQdmP56WlkAHsgi/uii2I4x2 xkvO+jWVKIRsWC/jEwgg0k7UKTYUb5MG51Gm12nsJ02JEQ/VvWkB+TEPEW2Rjej/Ldy5C UWKcUAGjdJeJihWcxyeFVBwVdvEPc109pp8z9GfPN+GnaycF560oZ9LYoU067ICDf7nVD kTbyL3HJ/HttNWjJ8gpqT66AIrkeh/gfl0vXZmqycBXupY5Pbtg60cp+BaaSvBVbrmw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796405343; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=NhkUwT0X6hUjuh8ynUBT+k5RlZACVh4HeiWbpqIvVEE=; b=yzIl2uP8nzg+Pk+UtRZEBFxzapReC6J1z7GXCXuNH3Zy1xkxKpfk5VXdM+hdsjAxSYAU WLfBxgtHz1JxV4sNUfCudTZn5JTA5r2Xy29Gbo1uZGy792AMRNVAHA4924F+GaiKvp06c wEtZ8hkQKDPXzk1YU9jhmlqyd4XOAsDAmXjoIOAGakZflI7A9a54avaOL1Rz3Sqh+4/UU qYnf65TAd1qQGIGUF4bBe5n1A+XzOjELemo7tdEyeFxAm8yObfXrGnto+x2FxNbajyorL NFwhBphY9ogDkgjvFYoUH8At9zCWYhkCYbBvd8i8QzhIOVLajo1+v1TU91SkoOvaduA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="na0TYT/E"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E893606A330 for ; Fri, 4 Dec 2026 17:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=na0TYT/E Received: by smtp.kernel.org (Postfix) with ESMTPSA id F19F31F00A12; Fri, 4 Dec 2026 17:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796405343; bh=NhkUwT0X6hUjuh8ynUBT+k5RlZACVh4HeiWbpqIvVEE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=na0TYT/E9xxaBk6eLiadAhVC1BbJqVyFe5aOGqCV96XmSNyXKnLnLg6O2YP1aYOZ9 SZBlk5JbMSpvYcyLVv+V0dEbhSDSmGPCb2D+lOxUzIV/rV/mapNEXvOErF5MTT3lwz lLZapN8M56gxdbX4IwiLHOyedPWfoLRNnjNkHpdDn4DM5vvWV00kb7FYFxXlEOJaxI yUB81RdRseNO+dmm/b1/fWzr+J9eR8dhdXcSgZhN3g8ORB2G7FH9rrEW3Npqbyff94 LJWxrwNMMe53BjWCucfBiEefU1hhkBlWzAWIFb+1LTRinxn4CEOVSIkN899tP8SyPe seLe7h0HnlK+g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v8 2/5] arm: dts: st: add bootph properties for STM32MP15 boards Reply-To: sashiko-reviews@lists.linux.dev To: "Patrice Chotard" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-upstream_uboot_properties-v8-2-d6d1e68661cc@foss.st.com> References: <20261204-upstream_uboot_properties-v8-0-d6d1e68661cc@foss.st.com> <20261204-upstream_uboot_properties-v8-2-d6d1e68661cc@foss.st.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 17:29:02 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 =3D "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/boo= t/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 =3D <&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 =3D "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 =3D "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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-upstream_u= boot_properties-v8-0-d6d1e68661cc@foss.st.com?part=3D2