arm64: dts: qcom: msm8916: Add CPU frequency scaling support
authorGeorgi Djakov <georgi.djakov@linaro.org>
Mon, 5 Feb 2018 14:46:51 +0000 (16:46 +0200)
committerAndy Gross <andy.gross@linaro.org>
Fri, 9 Mar 2018 00:31:15 +0000 (18:31 -0600)
Add a CPU OPP table to allow CPU frequency scaling on msm8916 platforms.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Tested-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/msm8916.dtsi

index 4539571a36b25d3f7c63f82441d519dd1f7cbc8a..e4682779eec7fb8b61d6b22062c1c45ecf9d0aaf 100644 (file)
                        next-level-cache = <&L2_0>;
                        enable-method = "psci";
                        cpu-idle-states = <&CPU_SPC>;
+                       clocks = <&apcs 0>;
+                       operating-points-v2 = <&cpu_opp_table>;
                };
 
                CPU1: cpu@1 {
                        next-level-cache = <&L2_0>;
                        enable-method = "psci";
                        cpu-idle-states = <&CPU_SPC>;
+                       clocks = <&apcs 0>;
+                       operating-points-v2 = <&cpu_opp_table>;
                };
 
                CPU2: cpu@2 {
                        next-level-cache = <&L2_0>;
                        enable-method = "psci";
                        cpu-idle-states = <&CPU_SPC>;
+                       clocks = <&apcs 0>;
+                       operating-points-v2 = <&cpu_opp_table>;
                };
 
                CPU3: cpu@3 {
                        next-level-cache = <&L2_0>;
                        enable-method = "psci";
                        cpu-idle-states = <&CPU_SPC>;
+                       clocks = <&apcs 0>;
+                       operating-points-v2 = <&cpu_opp_table>;
                };
 
                L2_0: l2-cache {
 
        };
 
+       cpu_opp_table: cpu_opp_table {
+               compatible = "operating-points-v2";
+               opp-shared;
+
+               opp-200000000 {
+                       opp-hz = /bits/ 64 <200000000>;
+               };
+               opp-400000000 {
+                       opp-hz = /bits/ 64 <400000000>;
+               };
+               opp-800000000 {
+                       opp-hz = /bits/ 64 <800000000>;
+               };
+               opp-998400000 {
+                       opp-hz = /bits/ 64 <998400000>;
+               };
+       };
+
        gpu_opp_table: opp_table {
                compatible = "operating-points-v2";