Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: ipq9650: Set PCIe RCHNG clock to 100 MHz
@ 2026-12-03  4:53 Kathiravan Thirumoorthy
  2026-12-03  4:58 ` Varadarajan Narayanan
  0 siblings, 1 reply; 2+ messages in thread
From: Kathiravan Thirumoorthy @ 2026-12-03  4:53 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
	Dmitry Baryshkov
  Cc: Konrad Dybcio, linux-arm-msm, devicetree, Kathiravan Thirumoorthy

PCIe RCHNG clock runs at 24 MHz instead of the expected 100 MHz.
Sometimes the PCIe link becomes unstable due to this mismatch.
Fix it by setting the rate to 100 MHz to align with the frequency plan.

Fixes: d6aeb78f093f ("arm64: dts: qcom: ipq9650: add the PCIe support")
Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
---
Bjorn,

Commit d6aeb78f093f landed in v7.4-rc1, so can this be picked up as a
fix for v7.4?
---
 arch/arm64/boot/dts/qcom/ipq9650.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/ipq9650.dtsi b/arch/arm64/boot/dts/qcom/ipq9650.dtsi
index 9ace638e43e2..59993621b86e 100644
--- a/arch/arm64/boot/dts/qcom/ipq9650.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq9650.dtsi
@@ -591,6 +591,9 @@ pcie3: pcie@30000000 {
 				      "ahb",
 				      "aux";
 
+			assigned-clocks = <&gcc GCC_PCIE3_RCHNG_CLK>;
+			assigned-clock-rates = <100000000>;
+
 			resets = <&gcc GCC_PCIE3_PIPE_CLK_ARES>,
 				 <&gcc GCC_PCIE3_CORE_STICKY_RESET>,
 				 <&gcc GCC_PCIE3_AXI_S_STICKY_RESET>,
@@ -691,6 +694,9 @@ pcie2: pcie@40000000 {
 				      "ahb",
 				      "aux";
 
+			assigned-clocks = <&gcc GCC_PCIE2_RCHNG_CLK>;
+			assigned-clock-rates = <100000000>;
+
 			resets = <&gcc GCC_PCIE2_PIPE_CLK_ARES>,
 				 <&gcc GCC_PCIE2_CORE_STICKY_RESET>,
 				 <&gcc GCC_PCIE2_AXI_S_STICKY_RESET>,
@@ -791,6 +797,9 @@ pcie1: pcie@50000000 {
 				      "ahb",
 				      "aux";
 
+			assigned-clocks = <&gcc GCC_PCIE1_RCHNG_CLK>;
+			assigned-clock-rates = <100000000>;
+
 			resets = <&gcc GCC_PCIE1_PIPE_CLK_ARES>,
 				 <&gcc GCC_PCIE1_CORE_STICKY_RESET>,
 				 <&gcc GCC_PCIE1_AXI_S_STICKY_RESET>,
@@ -891,6 +900,9 @@ pcie4: pcie@60000000 {
 				      "ahb",
 				      "aux";
 
+			assigned-clocks = <&gcc GCC_PCIE4_RCHNG_CLK>;
+			assigned-clock-rates = <100000000>;
+
 			resets = <&gcc GCC_PCIE4_PIPE_CLK_ARES>,
 				 <&gcc GCC_PCIE4_CORE_STICKY_RESET>,
 				 <&gcc GCC_PCIE4_AXI_S_STICKY_RESET>,
@@ -991,6 +1003,9 @@ pcie0: pcie@70000000 {
 				      "ahb",
 				      "aux";
 
+			assigned-clocks = <&gcc GCC_PCIE0_RCHNG_CLK>;
+			assigned-clock-rates = <100000000>;
+
 			resets = <&gcc GCC_PCIE0_PIPE_CLK_ARES>,
 				 <&gcc GCC_PCIE0_CORE_STICKY_RESET>,
 				 <&gcc GCC_PCIE0_AXI_S_STICKY_RESET>,

---
base-commit: 799dd936553182df5770dde7f38d94c8337df75a
change-id: 20261203-ipq9650_pcie_rchng_rate-5046d0455180

Best regards,
--  
Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>


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

* Re: [PATCH] arm64: dts: qcom: ipq9650: Set PCIe RCHNG clock to 100 MHz
  2026-12-03  4:53 [PATCH] arm64: dts: qcom: ipq9650: Set PCIe RCHNG clock to 100 MHz Kathiravan Thirumoorthy
@ 2026-12-03  4:58 ` Varadarajan Narayanan
  0 siblings, 0 replies; 2+ messages in thread
From: Varadarajan Narayanan @ 2026-12-03  4:58 UTC (permalink / raw)
  To: Kathiravan Thirumoorthy
  Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
	Dmitry Baryshkov, Konrad Dybcio, linux-arm-msm, devicetree

On Thu, Dec 03, 2026 at 10:23:39AM +0530, Kathiravan Thirumoorthy wrote:
> PCIe RCHNG clock runs at 24 MHz instead of the expected 100 MHz.
> Sometimes the PCIe link becomes unstable due to this mismatch.
> Fix it by setting the rate to 100 MHz to align with the frequency plan.
>
> Fixes: d6aeb78f093f ("arm64: dts: qcom: ipq9650: add the PCIe support")
> Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>

Reviewed-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>

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

end of thread, other threads:[~2026-12-03  4:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  4:53 [PATCH] arm64: dts: qcom: ipq9650: Set PCIe RCHNG clock to 100 MHz Kathiravan Thirumoorthy
2026-12-03  4:58 ` Varadarajan Narayanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox