* [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks
@ 2023-06-15 8:48 Devi Priya
2023-06-15 8:51 ` Konrad Dybcio
2023-07-22 5:17 ` Bjorn Andersson
0 siblings, 2 replies; 5+ messages in thread
From: Devi Priya @ 2023-06-15 8:48 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, linux-arm-msm, devicetree, linux-kernel
Cc: quic_srichara, quic_sjaganat, quic_kathirav, quic_anusha
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>
---
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";
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks
2023-06-15 8:48 [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks Devi Priya
@ 2023-06-15 8:51 ` Konrad Dybcio
2023-06-22 6:25 ` Devi Priya
2023-07-22 5:17 ` Bjorn Andersson
1 sibling, 1 reply; 5+ messages in thread
From: Konrad Dybcio @ 2023-06-15 8:51 UTC (permalink / raw)
To: Devi Priya, agross, andersson, robh+dt, krzysztof.kozlowski+dt,
conor+dt, linux-arm-msm, devicetree, linux-kernel
Cc: quic_srichara, quic_sjaganat, quic_kathirav, quic_anusha
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
> 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";
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks
2023-06-15 8:51 ` Konrad Dybcio
@ 2023-06-22 6:25 ` Devi Priya
2023-06-22 8:53 ` Konrad Dybcio
0 siblings, 1 reply; 5+ messages in thread
From: Devi Priya @ 2023-06-22 6:25 UTC (permalink / raw)
To: Konrad Dybcio, agross, andersson, robh+dt, krzysztof.kozlowski+dt,
conor+dt, linux-arm-msm, devicetree, linux-kernel
Cc: quic_srichara, quic_sjaganat, quic_kathirav, quic_anusha
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";
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks
2023-06-22 6:25 ` Devi Priya
@ 2023-06-22 8:53 ` Konrad Dybcio
0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2023-06-22 8:53 UTC (permalink / raw)
To: Devi Priya, agross, andersson, robh+dt, krzysztof.kozlowski+dt,
conor+dt, linux-arm-msm, devicetree, linux-kernel
Cc: quic_srichara, quic_sjaganat, quic_kathirav, quic_anusha
On 22.06.2023 08:25, Devi Priya wrote:
>
>
> 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.
OPP tables with a single entry are totally fine.
Konrad
>
> 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";
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks
2023-06-15 8:48 [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks Devi Priya
2023-06-15 8:51 ` Konrad Dybcio
@ 2023-07-22 5:17 ` Bjorn Andersson
1 sibling, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2023-07-22 5:17 UTC (permalink / raw)
To: agross, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt, conor+dt,
linux-arm-msm, devicetree, linux-kernel, Devi Priya
Cc: quic_srichara, quic_sjaganat, quic_kathirav, quic_anusha
On Thu, 15 Jun 2023 14:18:41 +0530, Devi Priya wrote:
> Use assigned-clock-rates property for configuring the QUP I2C core clocks
> to operate at nominal frequency.
>
>
Applied, thanks!
[1/1] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks
commit: 5229c1d6a0c7d7d8f51a27833e568909b8707c39
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-07-22 5:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-15 8:48 [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks Devi Priya
2023-06-15 8:51 ` Konrad Dybcio
2023-06-22 6:25 ` Devi Priya
2023-06-22 8:53 ` Konrad Dybcio
2023-07-22 5:17 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox