From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Robert Marko <robert.marko@sartura.hr>
Cc: andersson@kernel.org, agross@kernel.org,
konrad.dybcio@linaro.org, mturquette@baylibre.com,
sboyd@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, luka.perkov@sartura.hr
Subject: Re: [PATCH 1/7] dt-bindings: clock: split qcom,gcc-ipq4019 to separate file
Date: Thu, 16 Feb 2023 11:43:14 +0100 [thread overview]
Message-ID: <dff2c160-faab-96c9-e37a-182cb47dc01c@linaro.org> (raw)
In-Reply-To: <CA+HBbNHmDeBBBc31OayTjegi4KrAgqOiRLQscorENjqg3dEa3Q@mail.gmail.com>
On 16/02/2023 11:41, Robert Marko wrote:
> On Thu, Feb 16, 2023 at 11:16 AM Krzysztof Kozlowski
> <krzysztof.kozlowski@linaro.org> wrote:
>>
>> On 14/02/2023 17:23, Robert Marko wrote:
>>> Move schema for the GCC on IPQ4019 platform to a separate file to be able
>>> to allow passing XO and sleep clks directly to GCC.
>>>
>>> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
>>> ---
>>> .../bindings/clock/qcom,gcc-ipq4019.yaml | 53 +++++++++++++++++++
>>> .../bindings/clock/qcom,gcc-other.yaml | 2 -
>>> 2 files changed, 53 insertions(+), 2 deletions(-)
>>> create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-ipq4019.yaml
>>>
>>> diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-ipq4019.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-ipq4019.yaml
>>> new file mode 100644
>>> index 0000000000000..6ebaef2288fa3
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-ipq4019.yaml
>>> @@ -0,0 +1,53 @@
>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>>> +%YAML 1.2
>>> +---
>>> +$id: http://devicetree.org/schemas/clock/qcom,gcc-ipq4019.yaml#
>>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>>> +
>>> +title: Qualcomm Global Clock & Reset Controller on IPQ4019
>>> +
>>> +maintainers:
>>> + - Stephen Boyd <sboyd@kernel.org>
>>> + - Taniya Das <tdas@codeaurora.org>
>>> + - Robert Marko <robert.markoo@sartura.hr>
>>> +
>>> +description: |
>>> + Qualcomm global clock control module provides the clocks, resets and power
>>> + domains on IPQ4019.
>>> +
>>> + See also:: include/dt-bindings/clock/qcom,gcc-ipq4019.h
>>> +
>>> +allOf:
>>> + - $ref: qcom,gcc.yaml#
>>> +
>>> +properties:
>>> + compatible:
>>> + const: qcom,gcc-ipq4019
>>> +
>>> + clocks:
>>> + items:
>>> + - description: board XO clock
>>> + - description: sleep clock
>>> +
>>> + clock-names:
>>> + items:
>>> + - const: xo
>>> + - const: sleep_clk
>>> +
>>> +required:
>>> + - compatible
>>
>> Aren't the clocks now required? Will it keep working without them?
>
> There are not required, this just allows passing them but the driver is
> still using global matching until in patch 2 XO and sleep clocks are converted
> to use parent data and in patch 3 they are passed via phandles to GCC,
> however, even then global matching by name is preserved in the driver
> as a fallback
> to keep backward compatibility.
>
> However, I see your point, after parent data conversion they should be
> required by
> schema as that is preferred over global matching.
Yes. Especially that these clock inputs must be there for the device to
operate, so regardless of how Linux implements this, the hardware
requires them, I think.
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-02-16 10:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 16:23 [PATCH 1/7] dt-bindings: clock: split qcom,gcc-ipq4019 to separate file Robert Marko
2023-02-14 16:23 ` [PATCH 2/7] clk: qcom: gcc-ipq4019: convert XO and sleep clk to parent_data Robert Marko
2023-02-16 10:42 ` Konrad Dybcio
2023-02-16 10:43 ` Konrad Dybcio
2023-02-14 16:23 ` [PATCH 3/7] ARM: dts: qcom: ipq4019: pass XO and sleep clocks to GCC Robert Marko
2023-02-14 16:23 ` [PATCH 4/7] ARM: dts: qcom: ipq4019: remove clk-output-names for sleep clock Robert Marko
2023-02-14 16:23 ` [PATCH 5/7] clk: qcom: gcc-ipq4019: move PLL clocks up Robert Marko
2023-02-14 16:23 ` [PATCH 6/7] clk: qcom: gcc-ipq4019: move pcnoc " Robert Marko
2023-02-16 10:41 ` Konrad Dybcio
2023-02-14 16:23 ` [PATCH 7/7] clk: qcom: gcc-ipq4019: convert to parent data Robert Marko
2023-02-16 10:16 ` [PATCH 1/7] dt-bindings: clock: split qcom,gcc-ipq4019 to separate file Krzysztof Kozlowski
2023-02-16 10:41 ` Robert Marko
2023-02-16 10:43 ` Krzysztof Kozlowski [this message]
2023-03-15 23:35 ` (subset) " Bjorn Andersson
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=dff2c160-faab-96c9-e37a-182cb47dc01c@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luka.perkov@sartura.hr \
--cc=mturquette@baylibre.com \
--cc=robert.marko@sartura.hr \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.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;
as well as URLs for NNTP newsgroup(s).