From: "NG, TZE YEE" <tze.yee.ng@altera.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Tanmay Kathpalia <tanmay.kathpalia@altera.com>,
Adrian Hunter <adrian.hunter@intel.com>,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 3/4] dt-bindings: mmc: cdns,sd6hc: add SD6HC DDR50 read-path tuning
Date: Thu, 29 Oct 2026 14:21:04 +0800 [thread overview]
Message-ID: <80fd1113-88a0-444c-ab2c-6ea880e39c87@altera.com> (raw)
In-Reply-To: <20261012-futuristic-worm-of-camouflage-cc2e3e@quoll>
Hi Krzysztof,
On 12/10/2026 4:48 pm, Krzysztof Kozlowski wrote:
>
> Why aren't you using b4 to send patches? Why making it difficult for us?
>
Sorry for the friction, that was my mistake. I'll switch to b4 for v3 so
the series carries a stable change-id and the cover letter links back to
the earlier versions, and b4 diff works for you.
>> ---
>> .../devicetree/bindings/mmc/cdns,sd6hc.yaml | 30 +++++++++++++++++++
>> 1 file changed, 30 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/mmc/cdns,sd6hc.yaml b/Documentation/devicetree/bindings/mmc/cdns,sd6hc.yaml
>> index d5ea2717904b..911ce58f8dab 100644
>> --- a/Documentation/devicetree/bindings/mmc/cdns,sd6hc.yaml
>> +++ b/Documentation/devicetree/bindings/mmc/cdns,sd6hc.yaml
>> @@ -74,6 +74,36 @@ properties:
>> maximum: 1000
>> default: 24
>>
>> + cdns,ddr-read-dqs-delay-ps:
>> + description: >
>> + Read-DQS delay (DLL_SLAVE[7:0]) in picoseconds that centres the read
>> + eye in the extended-read DDR modes (SD DDR50, eMMC DDR52), which have
>> + no CMD19 tuning. The PHY runs the DLL bypassed in these modes, so the
>> + driver converts this to delay elements (divided by
>> + cdns,delay-element-ps). The 8-bit field holds at most 255 elements;
>> + larger values are clamped to that limit.
>> + minimum: 0
>
> Drop, 0 is the default.
>
Will drop it in v3.
> Where is the maximum value?
>
The value is in ps, but the register (DLL_SLAVE[7:0]) counts delay
elements, so the driver divides by cdns,delay-element-ps and clamps to
the 8-bit field. There is therefore no fixed ps maximum, the real limit
is 255 * cdns,delay-element-ps, which varies with that property.
Rather than pick an arbitrary ps cap, I'd prefer to express this
property directly as the delay-element count the field holds:
cdns,ddr-read-dqs-delay: 0..255 (DLL delay elements, each element
cdns,delay-element-ps wide)
That maps 1:1 to the hardware field, gives a clean maximum: 255, and the
element size is already described by cdns,delay-element-ps. Would that
be acceptable, or would you rather keep picoseconds with a fixed cap
(e.g. ~one DDR50 bit period, 50MHz = 20ns = 20000 ps)?
>> + default: 0
>> +
>> + cdns,ddr-no-lpbk-dqs:
>> + description: >
>
> Drop > everywhere
>
Will drop > in v3. I'll use plain "description:" on all three new
properties.
> Best regards,
> Krzysztof
Thanks,
Tze Yee
next prev parent reply other threads:[~2026-10-29 6:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 2:14 [PATCH v2 0/4] mmc: sdhci-cadence: SD6HC DDR50/DDR52 read-path tuning and fixes tze.yee.ng
2026-10-09 2:14 ` [PATCH v2 1/4] mmc: sdhci-cadence: add PHY settle after tuning for SD6HC tze.yee.ng
2026-10-25 20:17 ` Kathpalia, Tanmay
2026-10-09 2:14 ` [PATCH v2 2/4] mmc: sdhci-cadence6: program PHONY_DQS_TIMING for extended-read DDR tze.yee.ng
2026-10-09 2:14 ` [PATCH v2 3/4] dt-bindings: mmc: cdns,sd6hc: add SD6HC DDR50 read-path tuning tze.yee.ng
2026-10-12 8:48 ` Krzysztof Kozlowski
2026-10-29 6:21 ` NG, TZE YEE [this message]
2026-10-09 2:14 ` [PATCH v2 4/4] mmc: sdhci-cadence6: read SD6HC DDR50 tuning from device tree tze.yee.ng
2026-10-18 21:19 ` [PATCH v2 0/4] mmc: sdhci-cadence: SD6HC DDR50/DDR52 read-path tuning and fixes Kathpalia, Tanmay
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=80fd1113-88a0-444c-ab2c-6ea880e39c87@altera.com \
--to=tze.yee.ng@altera.com \
--cc=adrian.hunter@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=robh@kernel.org \
--cc=tanmay.kathpalia@altera.com \
/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
all inboxes | Powered by JetHome®