]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: ipq5332: Add icc provider ability to gcc
authorVaradarajan Narayanan <quic_varada@quicinc.com>
Tue, 30 Jul 2024 05:48:17 +0000 (11:18 +0530)
committerBjorn Andersson <andersson@kernel.org>
Thu, 15 Aug 2024 22:06:55 +0000 (17:06 -0500)
IPQ SoCs dont involve RPM in managing NoC related clocks and
there is no NoC scaling. Linux itself handles these clocks.
However, these should not be exposed as just clocks and align
with other Qualcomm SoCs that handle these clocks from a
interconnect provider.

Hence include icc provider capability to the gcc node so that
peripherals can use the interconnect facility to enable these
clocks. Change USB to use the icc-clk framework for the iface
clock.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
Link: https://lore.kernel.org/r/20240730054817.1915652-6-quic_varada@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/ipq5332.dtsi

index 0a74ed4f72cc77659f0362764dea1f1d4646ec24..71328b22353114f21404450fcf54e2767fa50cd9 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <dt-bindings/clock/qcom,apss-ipq.h>
 #include <dt-bindings/clock/qcom,ipq5332-gcc.h>
+#include <dt-bindings/interconnect/qcom,ipq5332.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 
 / {
                        reg = <0x01800000 0x80000>;
                        #clock-cells = <1>;
                        #reset-cells = <1>;
+                       #interconnect-cells = <1>;
                        clocks = <&xo_board>,
                                 <&sleep_clk>,
                                 <0>,
                                          "dm_hs_phy_irq";
 
                        clocks = <&gcc GCC_USB0_MASTER_CLK>,
-                                <&gcc GCC_SNOC_USB_CLK>,
                                 <&gcc GCC_USB0_SLEEP_CLK>,
                                 <&gcc GCC_USB0_MOCK_UTMI_CLK>;
                        clock-names = "core",
-                                     "iface",
                                      "sleep",
                                      "mock_utmi";
 
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges;
+                       interconnects = <&gcc MASTER_SNOC_USB &gcc SLAVE_SNOC_USB>,
+                                       <&gcc MASTER_SNOC_USB &gcc SLAVE_SNOC_USB>;
+                       interconnect-names = "usb-ddr", "apps-usb";
 
                        status = "disabled";