devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add XO clocks for MSM8226
@ 2023-01-19 19:05 Rayyan Ansari
  2023-01-19 19:05 ` [PATCH v2 2/2] ARM: dts: qcom: msm8226: add clocks and clock-names to gcc node Rayyan Ansari
  0 siblings, 1 reply; 4+ messages in thread
From: Rayyan Ansari @ 2023-01-19 19:05 UTC (permalink / raw)
  To: linux-arm-msm
  Cc: ~postmarketos/upstreaming, Rayyan Ansari, devicetree,
	Konrad Dybcio, linux-clk, linux-kernel

Rayyan Ansari (2):
  clk: qcom: smd: Add XO RPM clocks for MSM8226/MSM8974
  ARM: dts: qcom: msm8226: add clocks and clock-names to gcc node

 arch/arm/boot/dts/qcom-msm8226.dtsi | 6 ++++++
 drivers/clk/qcom/clk-smd-rpm.c      | 2 ++
 2 files changed, 8 insertions(+)

-- 
2.39.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] ARM: dts: qcom: msm8226: add clocks and clock-names to gcc node
  2023-01-19 19:05 [PATCH v2 0/2] Add XO clocks for MSM8226 Rayyan Ansari
@ 2023-01-19 19:05 ` Rayyan Ansari
  2023-01-19 21:42   ` Alexey Minnekhanov
  0 siblings, 1 reply; 4+ messages in thread
From: Rayyan Ansari @ 2023-01-19 19:05 UTC (permalink / raw)
  To: linux-arm-msm
  Cc: ~postmarketos/upstreaming, Rayyan Ansari, Andy Gross,
	Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	devicetree, linux-kernel

Add the XO and Sleep Clock sources to the GCC node.

Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
---
 arch/arm/boot/dts/qcom-msm8226.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi
index c373081bc21b..42acb9ddb8cc 100644
--- a/arch/arm/boot/dts/qcom-msm8226.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8226.dtsi
@@ -8,6 +8,7 @@
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/qcom,gcc-msm8974.h>
 #include <dt-bindings/clock/qcom,mmcc-msm8974.h>
+#include <dt-bindings/clock/qcom,rpmcc.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/power/qcom-rpmpd.h>
 #include <dt-bindings/reset/qcom,gcc-msm8974.h>
@@ -377,6 +378,11 @@ gcc: clock-controller@fc400000 {
 			#clock-cells = <1>;
 			#reset-cells = <1>;
 			#power-domain-cells = <1>;
+
+			clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>,
+				 <&sleep_clk>;
+			clock-names = "xo",
+				      "sleep_clk";
 		};
 
 		mmcc: clock-controller@fd8c0000 {
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 2/2] ARM: dts: qcom: msm8226: add clocks and clock-names to gcc node
  2023-01-19 19:05 ` [PATCH v2 2/2] ARM: dts: qcom: msm8226: add clocks and clock-names to gcc node Rayyan Ansari
@ 2023-01-19 21:42   ` Alexey Minnekhanov
  2023-01-20 15:07     ` Konrad Dybcio
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Minnekhanov @ 2023-01-19 21:42 UTC (permalink / raw)
  To: Rayyan Ansari, linux-arm-msm
  Cc: ~postmarketos/upstreaming, Andy Gross, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, devicetree,
	linux-kernel

Hi!

On 2023-01-19 22:05, Rayyan Ansari wrote:
> Add the XO and Sleep Clock sources to the GCC node.
> 
> Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
> ---
>   arch/arm/boot/dts/qcom-msm8226.dtsi | 6 ++++++

Should the same be done for msm8974 dtsi as well?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 2/2] ARM: dts: qcom: msm8226: add clocks and clock-names to gcc node
  2023-01-19 21:42   ` Alexey Minnekhanov
@ 2023-01-20 15:07     ` Konrad Dybcio
  0 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2023-01-20 15:07 UTC (permalink / raw)
  To: Alexey Minnekhanov, Rayyan Ansari, linux-arm-msm
  Cc: ~postmarketos/upstreaming, Andy Gross, Bjorn Andersson,
	Rob Herring, Krzysztof Kozlowski, devicetree, linux-kernel



On 19.01.2023 22:42, Alexey Minnekhanov wrote:
> Hi!
> 
> On 2023-01-19 22:05, Rayyan Ansari wrote:
>> Add the XO and Sleep Clock sources to the GCC node.
>>
>> Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
>> ---
>>   arch/arm/boot/dts/qcom-msm8226.dtsi | 6 ++++++
> 
> Should the same be done for msm8974 dtsi as well?
yes

Konrad

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-20 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 19:05 [PATCH v2 0/2] Add XO clocks for MSM8226 Rayyan Ansari
2023-01-19 19:05 ` [PATCH v2 2/2] ARM: dts: qcom: msm8226: add clocks and clock-names to gcc node Rayyan Ansari
2023-01-19 21:42   ` Alexey Minnekhanov
2023-01-20 15:07     ` Konrad Dybcio

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).