OSDN Git Service

arm64: dts: qcom: sm8450: Supply clock from cpufreq node to CPUs
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 17 Nov 2022 05:31:43 +0000 (11:01 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 Dec 2022 17:05:31 +0000 (11:05 -0600)
Qualcomm platforms making use of CPUFreq HW Engine (EPSS/OSM) supply clocks
to the CPU cores. But this relationship is not represented in DTS so far.

So let's make cpufreq node as the clock provider and CPU nodes as the
consumers. The clock index for each CPU node is based on the frequency
domain index.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221117053145.10409-3-manivannan.sadhasivam@linaro.org
arch/arm64/boot/dts/qcom/sm8450.dtsi

index 09135ed..b3f826e 100644 (file)
@@ -52,6 +52,7 @@
                        power-domain-names = "psci";
                        qcom,freq-domain = <&cpufreq_hw 0>;
                        #cooling-cells = <2>;
+                       clocks = <&cpufreq_hw 0>;
                        L2_0: l2-cache {
                              compatible = "cache";
                              next-level-cache = <&L3_0>;
@@ -71,6 +72,7 @@
                        power-domain-names = "psci";
                        qcom,freq-domain = <&cpufreq_hw 0>;
                        #cooling-cells = <2>;
+                       clocks = <&cpufreq_hw 0>;
                        L2_100: l2-cache {
                              compatible = "cache";
                              next-level-cache = <&L3_0>;
@@ -87,6 +89,7 @@
                        power-domain-names = "psci";
                        qcom,freq-domain = <&cpufreq_hw 0>;
                        #cooling-cells = <2>;
+                       clocks = <&cpufreq_hw 0>;
                        L2_200: l2-cache {
                              compatible = "cache";
                              next-level-cache = <&L3_0>;
                        power-domain-names = "psci";
                        qcom,freq-domain = <&cpufreq_hw 0>;
                        #cooling-cells = <2>;
+                       clocks = <&cpufreq_hw 0>;
                        L2_300: l2-cache {
                              compatible = "cache";
                              next-level-cache = <&L3_0>;
                        power-domain-names = "psci";
                        qcom,freq-domain = <&cpufreq_hw 1>;
                        #cooling-cells = <2>;
+                       clocks = <&cpufreq_hw 1>;
                        L2_400: l2-cache {
                              compatible = "cache";
                              next-level-cache = <&L3_0>;
                        power-domain-names = "psci";
                        qcom,freq-domain = <&cpufreq_hw 1>;
                        #cooling-cells = <2>;
+                       clocks = <&cpufreq_hw 1>;
                        L2_500: l2-cache {
                              compatible = "cache";
                              next-level-cache = <&L3_0>;
                        power-domain-names = "psci";
                        qcom,freq-domain = <&cpufreq_hw 1>;
                        #cooling-cells = <2>;
+                       clocks = <&cpufreq_hw 1>;
                        L2_600: l2-cache {
                              compatible = "cache";
                              next-level-cache = <&L3_0>;
                        power-domain-names = "psci";
                        qcom,freq-domain = <&cpufreq_hw 2>;
                        #cooling-cells = <2>;
+                       clocks = <&cpufreq_hw 2>;
                        L2_700: l2-cache {
                              compatible = "cache";
                              next-level-cache = <&L3_0>;
                                     <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
                        interrupt-names = "dcvsh-irq-0", "dcvsh-irq-1", "dcvsh-irq-2";
                        #freq-domain-cells = <1>;
+                       #clock-cells = <1>;
                };
 
                gem_noc: interconnect@19100000 {