From: Krzysztof Kozlowski <krzk@kernel.org>
To: Ram Prakash Gupta <quic_rampraka@quicinc.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>
Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
dmitry.baryshkov@oss.qualcomm.com
Subject: Re: [PATCH v6 1/5] dt-bindings: mmc: Add dll-presets values for HS400 and HS200 modes
Date: Tue, 16 Dec 2025 17:03:47 +0100 [thread overview]
Message-ID: <5c82a8d7-6632-4d3a-a6de-ad9b1641c074@kernel.org> (raw)
In-Reply-To: <00485066-d537-4f8f-a579-efa33e69a56f@quicinc.com>
On 16/12/2025 13:51, Ram Prakash Gupta wrote:
>
> On 12/15/2025 5:41 PM, Krzysztof Kozlowski wrote:
>> On 15/12/2025 13:06, Krzysztof Kozlowski wrote:
>>> On 15/12/2025 13:00, Ram Prakash Gupta wrote:
>>>> From: Sachin Gupta <quic_sachgupt@quicinc.com>
>>>>
>>>> Document the 'dll-presets' property for MMC device tree bindings.
>>>> The 'dll-presets' property defines the DLL configurations for HS400
>>>> and HS200 modes.
>>>>
>>>> QC SoCs can have 0 to 4 SDHCI instances, and each one may need
>>>> different tuning.
>>>>
>>>> Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
>>>> Signed-off-by: Ram Prakash Gupta <quic_rampraka@quicinc.com>
>>>> ---
>>>> Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 5 +++++
>>>> 1 file changed, 5 insertions(+)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
>>>> index 938be8228d66..a1a16e6e12ce 100644
>>>> --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
>>>> +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
>>>> @@ -140,6 +140,11 @@ properties:
>>>> $ref: /schemas/types.yaml#/definitions/uint32
>>>> description: platform specific settings for DLL_CONFIG reg.
>>>>
>>>> + qcom,dll-presets:
>>>> + maxItems: 10
>>>> + $ref: /schemas/types.yaml#/definitions/uint32-array
>>>> + description: platform specific settings for DLL registers.
>>>
>>> So look at your DTS - this is clearly incomplete now. So obvious. I
>>> don't understand why you were hiding the DTS change, you just make
>>> review more difficult.
>>>
>>> Anyway, your DTS says you replace some other DLL properties and nothing
>>> in the binding or commit msg explains that. Neither the reason nor the
>>> impact.
>
> Sorry dt change was not pushed earlier, will add dt change as well
> going forward.
>
> The existing qcom,dll-config or qcom-ddr-config are not deprecated,
> but certainly I will add below in commit regarding the issue as well
> which is observed without this change as below:
No.
You need schema for this. Actually for both cases - replacing properties
and defining the list.
>
> "Document the 'dll-presets' property for MMC device tree bindings.
> The 'dll-presets' property defines the DLL configurations for HS400
> and HS200 modes.
>
> It have 2 arrays of 5 elements each for HS400 and HS200 mode.
> The 5 elements are DLL_CONFIG, DLL_CONFIG_2,DLL_CONFIG_3, DLL_USER_CTRL
> and DDR_CONFIG.
>
> dll-presets fixes instances of CRC error observed with targets having
> artanis dll.
>
> QC SoCs can have 0 to 4 SDHCI instances, and each one may need
> different tuning using dll-presets."
>
>> Plus it looks like you are adding some meaning to the entries, judging
>> by the DTS. DTS suggested something here is e.g. DLL_CONFIG, so that
>> meaning - including different modes - needs description in the schema in
>> items.
Here I wrote it already. Don't ask for repeating.
>>
>> Best regards,
>> Krzysztof
>
> I will update the schema description as well with the 2 modes and 5 elements
I did not say description. I said you need schema.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-12-16 16:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-15 12:00 [PATCH v6 0/5] mmc: sdhci-msm: Rectify DLL programming sequence Ram Prakash Gupta
2025-12-15 12:00 ` [PATCH v6 1/5] dt-bindings: mmc: Add dll-presets values for HS400 and HS200 modes Ram Prakash Gupta
2025-12-15 12:06 ` Krzysztof Kozlowski
2025-12-15 12:11 ` Krzysztof Kozlowski
2025-12-16 12:51 ` Ram Prakash Gupta
2025-12-16 16:03 ` Krzysztof Kozlowski [this message]
2025-12-15 12:00 ` [PATCH v6 2/5] arm64: dts: qcom: Add sdhc dll-presets Ram Prakash Gupta
2025-12-15 12:05 ` Krzysztof Kozlowski
2025-12-15 12:07 ` Krzysztof Kozlowski
2025-12-16 12:41 ` Ram Prakash Gupta
2025-12-16 16:02 ` Krzysztof Kozlowski
2025-12-15 12:00 ` [PATCH v6 3/5] mmc: sdhci-msm: Add core_major, minor to msm_host structure Ram Prakash Gupta
2025-12-15 12:00 ` [PATCH v6 4/5] mmc: sdhci-msm: Add Device tree parsing logic for DLL settings Ram Prakash Gupta
2025-12-16 14:29 ` Konrad Dybcio
2025-12-18 11:32 ` Ram Prakash Gupta
2025-12-18 13:32 ` Bjorn Andersson
2026-01-22 13:37 ` Ram Prakash Gupta
2025-12-15 12:00 ` [PATCH v6 5/5] mmc: sdhci-msm: Rectify DLL programming sequence for SDCC Ram Prakash Gupta
2025-12-17 4:06 ` kernel test robot
2025-12-18 14:18 ` Bjorn Andersson
2026-01-22 13:29 ` Ram Prakash Gupta
2025-12-15 13:58 ` [PATCH v6 0/5] mmc: sdhci-msm: Rectify DLL programming sequence Krzysztof Kozlowski
2025-12-16 12:52 ` Ram Prakash Gupta
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=5c82a8d7-6632-4d3a-a6de-ad9b1641c074@kernel.org \
--to=krzk@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=quic_rampraka@quicinc.com \
--cc=robh@kernel.org \
--cc=ulf.hansson@linaro.org \
/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