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=1796508352; b=qDBNa/Hs9QyC6JUDuP7zbMsWNzkCVgQ4OiZuueRQKx+H8Jpn/LiJAMk/8bwZN58LNgFE zaUeoCHPnREeiYUuYUI4N3KlDHCfb+TF0txE9jLGPRBTJuDpVwtvwOixkfaMcsvykHiAX 7NJV5DHvSY9OYZ04hvycS5Ik9/K96vDncODtGThMe825+XgX0/sq4Durhq85qBwhOrMgA e98N67NtVUj5kXrJSAThK/5hFFi8akMz6PdcskicoMqgTtSLfk6Rpm+ALiTN4rGVSh0oj 2M979P/C5Jho0O93wNRvWBn1cG7LChMLd6dgP2J1DkjUG6tTM9M1bhU9/4roI8uXnbQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796508352; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=uqij1xM4zL0qx7d/oUDdESlfwNWvc1trlWBws5Ud7DA=; b=FPDtW1mjIXuz/y9cEmtikstJiVjkGSDb5Um7ZOsK9rdnqusuxgMOYUH7nrr65POBSrwQ 8f4lewgsZfHuYTT3gpWO9NtLhVCavFGRxSIu2rAiZ8LC1MSIfNHxpEt3kVq+Pp128aiZt ygsMF2f2yPK1TB+/WBYfhKOFgMQHW7QI8cBn3aPpHlL75oHH8mx/ptRU1Q6zn01Sfbe0W rZU0/IN9ocJg76c71ppAl7SaQnyl20Qk8nY/BAf9f6o6raCW0y4ihqgXuP8F9/nEfcc1R LMHct7wdpfXz6JLVk0WCiKNE1EJGsFvANFCWGnPuAls0BFq5V5EBx2+xMhwiibP3xXw== 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=meBJEBGo; 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 DE926606A31F for ; Sat, 5 Dec 2026 22:05:52 +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=meBJEBGo Received: by smtp.kernel.org (Postfix) with ESMTPSA id 965C41F0092B; Sat, 5 Dec 2026 22:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796508352; bh=uqij1xM4zL0qx7d/oUDdESlfwNWvc1trlWBws5Ud7DA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=meBJEBGo7z6MXj944Jggy67yswyCOP1AXTAs43r52oGK/nkuDxnsRhnFu4b44/j3K X0mKPEj+X6P3SLbzoFq2UNFe8WDwn0ztQ4sWOxMHQc8WGu/VGpMKirsZPC5a7wOLc1 fJcGwFF9Nb9ievvDlcuBYahcwZvuwWQuYPTXNgFBfEO2W71Mk6rNYSthvtepyfN8QL lSxr/DrFQzpNX5lJa3MvK6ksDgStAal3CWqBhTTidgIOKhi77XSvtu1mw8aaeGT/Vj cNPD2GpYn2HtyVrzS/YwzGyCzmGVINRJ+0XUtAar6WlFou7L3ryyIFS9afHVFn+6x3 MELHrucYZbSGQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] arm64: dts: rockchip: Fix the microSD's default sample phase on NanoPi Zero2 Reply-To: sashiko-reviews@lists.linux.dev To: "Sylvain LE FLOCH" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261205-zero2-dts-v1-2-eb08c4eb5ab3@protonmail.ch> References: <20261205-zero2-dts-v1-0-eb08c4eb5ab3@protonmail.ch> <20261205-zero2-dts-v1-2-eb08c4eb5ab3@protonmail.ch> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 22:05:52 +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 1 potential issue to consider: - [Medium] arm64: dts: rockchip: 270-deg default-sample-phase alters untuned SD modes -- commit 1f9d87cc05591da7243391787e9fd6f0de113011 Author: Sylvain LE FLOCH 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 { > }; > }; > =20 > +&sdmmc { > + rockchip,default-sample-phase =3D <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(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205-zero2-dts-= v1-0-eb08c4eb5ab3@protonmail.ch?part=3D2