]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: qcom: qcs8300: Add cpufreq scaling node
authorImran Shaik <quic_imrashai@quicinc.com>
Wed, 30 Apr 2025 04:59:12 +0000 (10:29 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 May 2025 20:10:44 +0000 (13:10 -0700)
Add cpufreq-hw node to support cpufreq scaling on QCS8300.

Signed-off-by: Imran Shaik <quic_imrashai@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250430-qcs8300-cpufreq-scaling-v2-1-ee41566b8c56@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcs8300.dtsi

index 037cd366a09b4cf83a80264d9cad650698e7132d..9bc6cf9a3495a026cc5b51c2c3ba9f07cbcf5744 100644 (file)
@@ -52,6 +52,7 @@
                        power-domain-names = "psci";
                        capacity-dmips-mhz = <1946>;
                        dynamic-power-coefficient = <472>;
+                       qcom,freq-domain = <&cpufreq_hw 0>;
 
                        l2_0: l2-cache {
                                compatible = "cache";
@@ -71,6 +72,7 @@
                        power-domain-names = "psci";
                        capacity-dmips-mhz = <1946>;
                        dynamic-power-coefficient = <472>;
+                       qcom,freq-domain = <&cpufreq_hw 0>;
 
                        l2_1: l2-cache {
                                compatible = "cache";
@@ -90,6 +92,7 @@
                        power-domain-names = "psci";
                        capacity-dmips-mhz = <1946>;
                        dynamic-power-coefficient = <507>;
+                       qcom,freq-domain = <&cpufreq_hw 2>;
 
                        l2_2: l2-cache {
                                compatible = "cache";
                        power-domain-names = "psci";
                        capacity-dmips-mhz = <1946>;
                        dynamic-power-coefficient = <507>;
+                       qcom,freq-domain = <&cpufreq_hw 2>;
 
                        l2_3: l2-cache {
                                compatible = "cache";
                        power-domain-names = "psci";
                        capacity-dmips-mhz = <1024>;
                        dynamic-power-coefficient = <100>;
+                       qcom,freq-domain = <&cpufreq_hw 1>;
 
                        l2_4: l2-cache {
                                compatible = "cache";
                        power-domain-names = "psci";
                        capacity-dmips-mhz = <1024>;
                        dynamic-power-coefficient = <100>;
+                       qcom,freq-domain = <&cpufreq_hw 1>;
 
                        l2_5: l2-cache {
                                compatible = "cache";
                        power-domain-names = "psci";
                        capacity-dmips-mhz = <1024>;
                        dynamic-power-coefficient = <100>;
+                       qcom,freq-domain = <&cpufreq_hw 1>;
 
                        l2_6: l2-cache {
                                compatible = "cache";
                        power-domain-names = "psci";
                        capacity-dmips-mhz = <1024>;
                        dynamic-power-coefficient = <100>;
+                       qcom,freq-domain = <&cpufreq_hw 1>;
 
                        l2_7: l2-cache {
                                compatible = "cache";
                        };
                };
 
+               cpufreq_hw: cpufreq@18591000 {
+                       compatible = "qcom,qcs8300-cpufreq-epss", "qcom,cpufreq-epss";
+                       reg = <0x0 0x18591000 0x0 0x1000>,
+                             <0x0 0x18593000 0x0 0x1000>,
+                             <0x0 0x18594000 0x0 0x1000>;
+                       reg-names = "freq-domain0",
+                                   "freq-domain1",
+                                   "freq-domain2";
+
+                       interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "dcvsh-irq-0",
+                                         "dcvsh-irq-1",
+                                         "dcvsh-irq-2";
+
+                       clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_GPLL0>;
+                       clock-names = "xo", "alternate";
+
+                       #freq-domain-cells = <1>;
+               };
+
                remoteproc_gpdsp: remoteproc@20c00000 {
                        compatible = "qcom,qcs8300-gpdsp-pas", "qcom,sa8775p-gpdsp0-pas";
                        reg = <0x0 0x20c00000 0x0 0x10000>;