From 372bbae100ffe14908bfd8448143c6cdbea17e8d Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Thu, 30 Jan 2025 16:23:03 +0100
Subject: [PATCH] arm64: dts: qcom: ipq9574: add NSSNOC clock to nss node

Add NSSNOC clock to nss node to attach the clock with PM clock and fix
the boot stall after ICC sync_state.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Alex G: Do not remove GCC_NSSCC_CLK ("bus") clock
        Add clock-names for the new clocks
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
---
 arch/arm64/boot/dts/qcom/ipq9574.dtsi | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

--- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
@@ -1255,7 +1255,10 @@
 				 <&pcs1 1>,
 				 <&pcs2 0>,
 				 <&pcs2 1>,
-				 <&gcc GCC_NSSCC_CLK>;
+				 <&gcc GCC_NSSCC_CLK>,
+				 <&gcc GCC_NSSNOC_NSSCC_CLK>,
+				 <&gcc GCC_NSSNOC_SNOC_CLK>,
+				 <&gcc GCC_NSSNOC_SNOC_1_CLK>;
 			clock-names = "xo",
 				      "nss_1200",
 				      "ppe_353",
@@ -1266,7 +1269,10 @@
 				      "uniphy1_tx",
 				      "uniphy2_rx",
 				      "uniphy2_tx",
-				      "bus";
+				      "bus",
+				      "nssnoc",
+				      "snoc",
+				      "snoc_1";
 			#clock-cells = <1>;
 			#reset-cells = <1>;
 			#interconnect-cells = <1>;
