From: Conor Dooley <conor@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Bhupesh Sharma <bhupesh.sharma@linaro.org>,
linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] dt-bindings: mmc: sdhci-msm: allow flexible order of optional clocks
Date: Fri, 25 Aug 2023 16:29:53 +0100 [thread overview]
Message-ID: <20230825-oversight-dense-8dcf05e38f75@spud> (raw)
In-Reply-To: <20230825135503.282135-2-krzysztof.kozlowski@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 2040 bytes --]
On Fri, Aug 25, 2023 at 03:55:03PM +0200, Krzysztof Kozlowski wrote:
> The Qualcomm SDHCI controller lists optional clocks, but still expects
> fixed order of them and does not allow to skip such clocks if further
> one in the list is needed. These optional clocks are truly optional,
> so we need to allow the list to have different orders. The clocks are:
> - ice: used for Inline Crypto Engine, which is actually separate block
> and merging it with SDHCI is not a requirement,
> - bus: clock for SDCC bus frequency voting,
> - cal and sleep: used for RCLK delay calibration and required for
> certain platforms for such calibration (as expressed in original
> commit 4946b3af5e8e ("mmc: sdhci-msm: Enable delay circuit
> calibration clocks")). Only MSM8974pro has these clocks.
>
> Relaxing the order fixes dtbs_check warnings:
>
> qcom-msm8974pro-fairphone-fp2.dtb: mmc@f9824900: clock-names:3: 'ice' was expected
> qcom-msm8974pro-fairphone-fp2.dtb: mmc@f9824900: clock-names:4: 'bus' was expected
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Thanks,
Conor.
> ---
> Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
> index 10f34aa8ba8a..69a213965089 100644
> --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
> +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
> @@ -85,10 +85,10 @@ properties:
> - const: iface
> - const: core
> - const: xo
> - - const: ice
> - - const: bus
> - - const: cal
> - - const: sleep
> + - enum: [ice, bus, cal, sleep]
> + - enum: [ice, bus, cal, sleep]
> + - enum: [ice, bus, cal, sleep]
> + - enum: [ice, bus, cal, sleep]
>
> dma-coherent: true
>
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-08-25 15:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-25 13:55 [PATCH 1/2] dt-bindings: mmc: sdhci-msm: correct minimum number of clocks Krzysztof Kozlowski
2023-08-25 13:55 ` [PATCH 2/2] dt-bindings: mmc: sdhci-msm: allow flexible order of optional clocks Krzysztof Kozlowski
2023-08-25 15:29 ` Conor Dooley [this message]
2023-09-14 13:02 ` Ulf Hansson
2023-08-25 15:21 ` [PATCH 1/2] dt-bindings: mmc: sdhci-msm: correct minimum number of clocks Conor Dooley
2023-09-14 13:02 ` Ulf Hansson
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=20230825-oversight-dense-8dcf05e38f75@spud \
--to=conor@kernel.org \
--cc=bhupesh.sharma@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=robh+dt@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