From: sashiko-bot@kernel.org
To: "Frank Obergfell" <frank.obergfell@bytesatwork.ch>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] arm64: dts: ti: k3-am62l-main: Fix sdhci0 clock parent and DDR52/HS200 properties
Date: Fri, 04 Dec 2026 08:11:20 +0000 [thread overview]
Message-ID: <sashiko-outbox-249373@kernel.org> (raw)
In-Reply-To: <20261204075104.335817-1-frank.obergfell@bytesatwork.ch>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] arm64: dts: ti: unverified DDR52 mode enabled on
ti,am62-sdhci sdhci0
- [Medium] arm64: dts: ti: sdhci0 clock reparenting risks
non-glitch-free mux switch
--
commit c1764e321366ef73142d6ff4b2003c2fdc9b94e3
Author: Frank Obergfell <frank.obergfell@bytesatwork.ch>
arm64: dts: ti: k3-am62l-main: Fix sdhci0 clock parent and DDR52/HS200 properties
This commit assigns <&scmi_clk 124> as the parent of sdhci0's clk_xin
clock and adds DDR52/HS200 capability flags and TAP delay properties to
sdhci0 in k3-am62l-main.dtsi.
> diff --git a/arch/arm64/boot/dts/ti/k3-am62l-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62l-main.dtsi
> index 80615ca1e01a2..cb894b571dd51 100644
> --- a/arch/arm64/boot/dts/ti/k3-am62l-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am62l-main.dtsi
> @@ -286,11 +286,16 @@ sdhci0: mmc@fa10000 {
> clocks = <&scmi_clk 122>, <&scmi_clk 125>;
> clock-names = "clk_ahb", "clk_xin";
> assigned-clocks = <&scmi_clk 125>;
> + assigned-clock-parents = <&scmi_clk 124>;
[Severity: Medium]
Is reparenting sdhci0's clk_xin via assigned-clock-parents glitch-free on
AM62L?
platform_probe() calls of_clk_set_defaults() before sdhci_am654_probe(),
and clk-scmi does not set CLK_SET_PARENT_GATE, so Linux requests SCMI
CLOCK_PARENT_SET without gating clk_xin. Since k3-am62l3-evm.dts marks
sdhci0 bootph-all, early boot can leave the clock running.
On sibling AM62-family SoCs, assigned-clock-parents was removed from
sdhci0 because the MMC clock mux is not glitch-free, as in commit
3a71cdfec944 ("arm64: dts: ti: k3-am62-main: Set eMMC clock parent to
default") and the matching AM62A/AM62P commits.
If AM62L shares that mux and TF-A does not quiesce clk_xin during
CLOCK_PARENT_SET, reparenting can glitch the eMMC clock and cause lockups
or I/O errors. The commit message also omits what scmi_clk 124 and the
default parent of scmi_clk 125 are, and whether TF-A switches them safely.
> bus-width = <8>;
> + mmc-ddr-1_8v;
> + mmc-hs200-1_8v;
> ti,clkbuf-sel = <0x7>;
> ti,otap-del-sel-legacy = <0x0>;
> ti,otap-del-sel-mmc-hs = <0x0>;
> + ti,otap-del-sel-ddr52 = <0x5>;
> ti,otap-del-sel-hs200 = <0x6>;
> + ti,itap-del-sel-ddr52 = <0x2>;
[Severity: Medium]
Does AM62L's ti,am62-sdhci controller support eMMC DDR52 mode with
mmc-ddr-1_8v and these DDR52 TAP delays?
No other ti,am62-sdhci node enables DDR52: AM62A omits it, and on AM62
commit 265f70af805f ("arm64: dts: ti: k3-am62-main: Remove eMMC High
Speed DDR support") removed mmc-ddr-1_8v because High Speed DDR is
unsupported on that controller.
Once both mmc-ddr-1_8v and ti,otap-del-sel-ddr52 are present,
sdhci_am654_get_otap_delay() keeps MMC_CAP_1_8V_DDR with no driver guard,
so the MMC core can select DDR52 on DDR52-only eMMC parts or HS200
fallback, risking initialization failures or data corruption.
Could the commit message cite the AM62L datasheet confirming DDR52
support and the 0x5/0x2 TAP values, and should the DDR52/HS200
enablement be split from the clock-parent timeout fix?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204075104.335817-1-frank.obergfell@bytesatwork.ch?part=1
prev parent reply other threads:[~2026-12-04 8:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 7:51 [PATCH] arm64: dts: ti: k3-am62l-main: Fix sdhci0 clock parent and DDR52/HS200 properties Frank Obergfell
2026-12-04 8:11 ` sashiko-bot [this message]
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-249373@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frank.obergfell@bytesatwork.ch \
--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