OSDN Git Service

arm64: dts: qcom: sc7280: Add cpufreq hw node
authorTaniya Das <tdas@codeaurora.org>
Sat, 10 Apr 2021 02:04:39 +0000 (07:34 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 31 May 2021 18:11:41 +0000 (13:11 -0500)
Add cpufreq HW device node to scale 4-Silver/3-Gold/1-Gold+
cores on SC7280 SoCs.

Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lore.kernel.org/r/1618020280-5470-2-git-send-email-tdas@codeaurora.org
[bjorn: Dropped reg-names]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sc7280.dtsi

index 326f629..0cc7e10 100644 (file)
@@ -71,6 +71,7 @@
                                           &LITTLE_CPU_SLEEP_1
                                           &CLUSTER_SLEEP_0>;
                        next-level-cache = <&L2_0>;
+                       qcom,freq-domain = <&cpufreq_hw 0>;
                        #cooling-cells = <2>;
                        L2_0: l2-cache {
                                compatible = "cache";
@@ -90,6 +91,7 @@
                                           &LITTLE_CPU_SLEEP_1
                                           &CLUSTER_SLEEP_0>;
                        next-level-cache = <&L2_100>;
+                       qcom,freq-domain = <&cpufreq_hw 0>;
                        #cooling-cells = <2>;
                        L2_100: l2-cache {
                                compatible = "cache";
                                           &LITTLE_CPU_SLEEP_1
                                           &CLUSTER_SLEEP_0>;
                        next-level-cache = <&L2_200>;
+                       qcom,freq-domain = <&cpufreq_hw 0>;
                        #cooling-cells = <2>;
                        L2_200: l2-cache {
                                compatible = "cache";
                                           &LITTLE_CPU_SLEEP_1
                                           &CLUSTER_SLEEP_0>;
                        next-level-cache = <&L2_300>;
+                       qcom,freq-domain = <&cpufreq_hw 0>;
                        #cooling-cells = <2>;
                        L2_300: l2-cache {
                                compatible = "cache";
                                           &BIG_CPU_SLEEP_1
                                           &CLUSTER_SLEEP_0>;
                        next-level-cache = <&L2_400>;
+                       qcom,freq-domain = <&cpufreq_hw 1>;
                        #cooling-cells = <2>;
                        L2_400: l2-cache {
                                compatible = "cache";
                                           &BIG_CPU_SLEEP_1
                                           &CLUSTER_SLEEP_0>;
                        next-level-cache = <&L2_500>;
+                       qcom,freq-domain = <&cpufreq_hw 1>;
                        #cooling-cells = <2>;
                        L2_500: l2-cache {
                                compatible = "cache";
                                           &BIG_CPU_SLEEP_1
                                           &CLUSTER_SLEEP_0>;
                        next-level-cache = <&L2_600>;
+                       qcom,freq-domain = <&cpufreq_hw 1>;
                        #cooling-cells = <2>;
                        L2_600: l2-cache {
                                compatible = "cache";
                                           &BIG_CPU_SLEEP_1
                                           &CLUSTER_SLEEP_0>;
                        next-level-cache = <&L2_700>;
+                       qcom,freq-domain = <&cpufreq_hw 1>;
                        #cooling-cells = <2>;
                        L2_700: l2-cache {
                                compatible = "cache";
                                #clock-cells = <1>;
                        };
                };
+
+               cpufreq_hw: cpufreq@18591000 {
+                       compatible = "qcom,cpufreq-epss";
+                       reg = <0 0x18591000 0 0x1000>,
+                             <0 0x18592000 0 0x1000>,
+                             <0 0x18593000 0 0x1000>;
+                       clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_GPLL0>;
+                       clock-names = "xo", "alternate";
+                       #freq-domain-cells = <1>;
+               };
        };
 
        thermal_zones: thermal-zones {