mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Devi Priya <quic_devipriy@quicinc.com>
To: Konrad Dybcio <konrad.dybcio@linaro.org>, <agross@kernel.org>,
	<andersson@kernel.org>, <robh+dt@kernel.org>,
	<krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>,
	<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Cc: <quic_srichara@quicinc.com>, <quic_sjaganat@quicinc.com>,
	<quic_kathirav@quicinc.com>, <quic_anusha@quicinc.com>
Subject: Re: [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks
Date: Thu, 22 Jun 2023 11:55:49 +0530	[thread overview]
Message-ID: <d05c7b0e-6edb-bc0f-5875-fc5cb8ea6b8a@quicinc.com> (raw)
In-Reply-To: <1ab63d4b-6358-ce08-818a-b5751f88cdde@linaro.org>



On 6/15/2023 2:21 PM, Konrad Dybcio wrote:
> On 15.06.2023 10:48, Devi Priya wrote:
>> Use assigned-clock-rates property for configuring the QUP I2C core clocks
>> to operate at nominal frequency.
>>
>> Signed-off-by: Devi Priya <quic_devipriy@quicinc.com>
>> ---
> There's probably some logic behind this, and it almost sounds like
> it'd be fitting to introduce an OPP table for I2C hosts, especially
> given the voltage requirements.
> 
> Konrad
The qup i2c core clocks are not scalable and operate at fixed frequency.
The assigned-clock-rates are used to configure the clock frequency
if it is not done by the bootloaders.

Thanks,
Devi Priya
>>   arch/arm64/boot/dts/qcom/ipq9574.dtsi | 8 ++++++++
>>   1 file changed, 8 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
>> index 0baeb10bbdae..78bf7f9c455a 100644
>> --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
>> @@ -361,6 +361,8 @@
>>   			clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>,
>>   				 <&gcc GCC_BLSP1_AHB_CLK>;
>>   			clock-names = "core", "iface";
>> +			assigned-clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>;
>> +			assigned-clock-rates = <50000000>;
>>   			dmas = <&blsp_dma 14>, <&blsp_dma 15>;
>>   			dma-names = "tx", "rx";
>>   			status = "disabled";
>> @@ -389,6 +391,8 @@
>>   			clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>,
>>   				 <&gcc GCC_BLSP1_AHB_CLK>;
>>   			clock-names = "core", "iface";
>> +			assigned-clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>;
>> +			assigned-clock-rates = <50000000>;
>>   			dmas = <&blsp_dma 16>, <&blsp_dma 17>;
>>   			dma-names = "tx", "rx";
>>   			status = "disabled";
>> @@ -417,6 +421,8 @@
>>   			clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>,
>>   				 <&gcc GCC_BLSP1_AHB_CLK>;
>>   			clock-names = "core", "iface";
>> +			assigned-clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>;
>> +			assigned-clock-rates = <50000000>;
>>   			dmas = <&blsp_dma 18>, <&blsp_dma 19>;
>>   			dma-names = "tx", "rx";
>>   			status = "disabled";
>> @@ -446,6 +452,8 @@
>>   			clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>,
>>   				 <&gcc GCC_BLSP1_AHB_CLK>;
>>   			clock-names = "core", "iface";
>> +			assigned-clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>;
>> +			assigned-clock-rates = <50000000>;
>>   			dmas = <&blsp_dma 20>, <&blsp_dma 21>;
>>   			dma-names = "tx", "rx";
>>   			status = "disabled";

  reply	other threads:[~2023-06-22  6:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15  8:48 Devi Priya
2023-06-15  8:51 ` Konrad Dybcio
2023-06-22  6:25   ` Devi Priya [this message]
2023-06-22  8:53     ` Konrad Dybcio
2023-07-22  5:17 ` 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=d05c7b0e-6edb-bc0f-5875-fc5cb8ea6b8a@quicinc.com \
    --to=quic_devipriy@quicinc.com \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@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-kernel@vger.kernel.org \
    --cc=quic_anusha@quicinc.com \
    --cc=quic_kathirav@quicinc.com \
    --cc=quic_sjaganat@quicinc.com \
    --cc=quic_srichara@quicinc.com \
    --cc=robh+dt@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

all inboxes | Powered by JetHome®