From: sashiko-bot@kernel.org
To: "Sylvain LE FLOCH" <vantom@protonmail.ch>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: rockchip: Fix the microSD's default sample phase on NanoPi Zero2
Date: Sat, 05 Dec 2026 22:05:52 +0000 [thread overview]
Message-ID: <sashiko-outbox-251940@kernel.org> (raw)
In-Reply-To: <20261205-zero2-dts-v1-2-eb08c4eb5ab3@protonmail.ch>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: rockchip: 270-deg default-sample-phase alters
untuned SD modes
--
commit 1f9d87cc05591da7243391787e9fd6f0de113011
Author: Sylvain LE FLOCH <vantom@protonmail.ch>
arm64: dts: rockchip: Fix the microSD's default sample phase on NanoPi Zero2
This commit overrides rockchip,default-sample-phase on the sdmmc node of
the FriendlyElec NanoPi Zero2 from the 90 degrees inherited from
rk3528.dtsi to 270 degrees.
> diff --git a/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts b/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
> index 2e43f1f4c2f36..eea46b07368ed 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
> @@ -71,6 +71,10 @@ usb20_host1_pwren: usb20-host1-pwren {
> };
> };
>
> +&sdmmc {
> + rockchip,default-sample-phase = <270>;
> +};
[Severity: Medium]
Can changing rockchip,default-sample-phase to 270 degrees break untuned
non-UHS SD cards?
Without clk-phase-* properties in rk3528-nanopi.dtsi,
dw_mci_rk3288_set_ios() applies default_sample_phase to untuned DS/HS
modes and leaves it set for SDR12/SDR25. UHS-I cards stay at 400 kHz
until SDR50/SDR104 tuning, so 25 MHz DS and 50 MHz HS were not tested.
Because the phase is a fraction of the clock period rather than a fixed
delay, 270 degrees samples 10 ns after the falling edge at 25 MHz DS
and 15 ns after the rising edge at 50 MHz HS. With SD card output
delays up to 14 ns, that can cause CRC errors or failed reads.
Adding clk-phase-legacy, clk-phase-mmc-hs, clk-phase-sd-hs,
clk-phase-uhs-sdr12 and clk-phase-uhs-sdr25 properties to keep the
90-degree sample phase would isolate the 270-degree fallback to
dw_mci_rk3288_execute_tuning().
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-zero2-dts-v1-0-eb08c4eb5ab3@protonmail.ch?part=2
prev parent reply other threads:[~2026-12-05 22:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 21:45 [PATCH 0/2] arm64: dts: rockchip: NanoPi Zero2: enable PCIe, fix the microSD sample phase Sylvain LE FLOCH
2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45 ` [PATCH 1/2] arm64: dts: rockchip: Enable PCIe for the M.2 slot on NanoPi Zero2 Sylvain LE FLOCH
2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay
2026-12-05 22:00 ` sashiko-bot
2026-12-05 21:45 ` [PATCH 2/2] arm64: dts: rockchip: Fix the microSD's default sample phase " Sylvain LE FLOCH
2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay
2026-12-05 22:05 ` 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-251940@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vantom@protonmail.ch \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.