Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Christian Lamparter <chunkeey@gmail.com>
Cc: linux-arm-msm@vger.kernel.org,
	Pavel Kubelun <be.dissent@gmail.com>,
	Andy Gross <agross@kernel.org>
Subject: Re: [PATCH] ARM: dts: qcom: ipq4019: fix sleep clock
Date: Wed, 17 Nov 2021 19:27:28 -0600	[thread overview]
Message-ID: <YZWsAN+bWkmiHkM6@builder.lan> (raw)
In-Reply-To: <20211031155650.487158-1-chunkeey@gmail.com>

On Sun 31 Oct 10:56 CDT 2021, Christian Lamparter wrote:

> From: Pavel Kubelun <be.dissent@gmail.com>
> 
> It seems like sleep_clk was copied from ipq806x.
> Fix ipq40xx sleep_clk to the value QSDK defines.
> 
> Also rename the sleep clock node like the GCC driver names it.
> 
> Link: https://source.codeaurora.org/quic/qsdk/oss/kernel/linux-msm/commit/?id=d92ec59973484acc86dd24b67f10f8911b4b4b7d
> Link: https://patchwork.kernel.org/comment/22721613/
> Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (resend)
> ---
>  arch/arm/boot/dts/qcom-ipq4019.dtsi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi
> index 7a181352b306..ed40bef91e45 100644
> --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
> +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
> @@ -144,9 +144,9 @@ pmu {
>  	};
>  
>  	clocks {
> -		sleep_clk: sleep_clk {
> +		sleep_clk: gcc_sleep_clk_src {

Underscore is not a valid character in node names, so it should named
something like sleep-clk.

It would be nice if the clock driver was converted to using parent_data
and fw_name and a clocks reference in the gcc node to &sleep_clk, but if
you need something that works with the current implementation then

  clock-output-names = "gcc_sleep_clk_src";

is your friend.


But please do consider converting the gcc-ipq4019.c to acquire "xo" and
"sleep_clk" using parent_data instead.

Regards,
Bjorn

>  			compatible = "fixed-clock";
> -			clock-frequency = <32768>;
> +			clock-frequency = <32000>;
>  			#clock-cells = <0>;
>  		};
>  
> -- 
> 2.33.1
> 

  reply	other threads:[~2021-11-18  1:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-31 15:56 [PATCH] ARM: dts: qcom: ipq4019: fix sleep clock Christian Lamparter
2021-11-18  1:27 ` Bjorn Andersson [this message]
2021-11-20 22:11   ` Christian Lamparter
2021-11-20 22:48     ` 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=YZWsAN+bWkmiHkM6@builder.lan \
    --to=bjorn.andersson@linaro.org \
    --cc=agross@kernel.org \
    --cc=be.dissent@gmail.com \
    --cc=chunkeey@gmail.com \
    --cc=linux-arm-msm@vger.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