[openwrt/openwrt] qualcommbe: ipq95xx: add bus clock for NSSCC

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 12 01:39:04 PDT 2025


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/baf7be6705b5a097bacf765516918af94a9d98e2

commit baf7be6705b5a097bacf765516918af94a9d98e2
Author: Mantas Pucka <mantas at 8devices.com>
AuthorDate: Fri Apr 11 17:38:28 2025 +0300

    qualcommbe: ipq95xx: add bus clock for NSSCC
    
    Missing bus clock prevent access to NSSCC registers and thus it is
    impossible change clock configuration, when ethernet connection speed
    changes.
    
    Signed-off-by: Mantas Pucka <mantas at 8devices.com>
    Link: https://github.com/openwrt/openwrt/pull/18459
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 ...9-clk-qcom-nsscc-ipq9574-enable-bus-clock.patch | 46 ++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/target/linux/qualcommbe/patches-6.6/309-clk-qcom-nsscc-ipq9574-enable-bus-clock.patch b/target/linux/qualcommbe/patches-6.6/309-clk-qcom-nsscc-ipq9574-enable-bus-clock.patch
new file mode 100644
index 0000000000..b8bc466fa1
--- /dev/null
+++ b/target/linux/qualcommbe/patches-6.6/309-clk-qcom-nsscc-ipq9574-enable-bus-clock.patch
@@ -0,0 +1,46 @@
+From 145aa2977a42b97d052ed0984fb305a853f55d49 Mon Sep 17 00:00:00 2001
+From: Mantas Pucka <mantas at 8devices.com>
+Date: Wed, 11 Apr 2025 15:14:19 +0300
+Subject: [PATCH] clk: qcom: nsscc-ipq9574: enable bus clock
+
+Enable bus clock, otherwise nsscc registers are unaccessible.
+
+Signed-off-by: Mantas Pucka <mantas at 8devices.com>
+---
+ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 3 +-
+ drivers/clk/qcom/nsscc-ipq9574.c      | 5 +
+ 2 file changed, 7 insertions(+), 1 deletion(-)
+
+--- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi
++++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
+@@ -1252,7 +1252,8 @@
+ 				 <&pcsuniphy2 UNIPHY_NSS_TX_CLK>,
+ 				 <&gcc GCC_NSSNOC_NSSCC_CLK>,
+ 				 <&gcc GCC_NSSNOC_SNOC_CLK>,
+-				 <&gcc GCC_NSSNOC_SNOC_1_CLK>;
++				 <&gcc GCC_NSSNOC_SNOC_1_CLK>,
++				 <&gcc GCC_NSSCC_CLK>;
+ 			#clock-cells = <1>;
+ 			#reset-cells = <1>;
+ 			#power-domain-cells = <1>;
+--- a/drivers/clk/qcom/nsscc-ipq9574.c
++++ b/drivers/clk/qcom/nsscc-ipq9574.c
+@@ -46,6 +46,7 @@ enum {
+ 	DT_GCC_NSSNOC_NSSCC_CLK,
+ 	DT_GCC_NSSNOC_SNOC_CLK,
+ 	DT_GCC_NSSNOC_SNOC_1_CLK,
++	DT_GCC_NSS_BUS_CLK,
+ };
+ 
+ enum {
+@@ -3075,6 +3076,10 @@ static int nss_cc_ipq9574_probe(struct p
+ 	if (ret)
+ 		return ret;
+ 
++	ret = of_pm_clk_add_clk_index(dev, DT_GCC_NSS_BUS_CLK);
++	if (ret)
++		return dev_err_probe(&pdev->dev, ret, "Fail to add bus clock\n");
++
+ 	ret = of_pm_clk_add_clk_index(dev, DT_GCC_NSSNOC_NSSCC_CLK);
+ 	if (ret)
+ 		return dev_err_probe(dev, ret,"failed to acquire nssnoc clock\n");




More information about the lede-commits mailing list