]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mt8183: adjust cpuidle target residency
authorIkjoon Jang <ikjn@chromium.org>
Tue, 25 Feb 2020 08:07:53 +0000 (16:07 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 13 Apr 2020 16:56:49 +0000 (18:56 +0200)
Split a cluster level cpuidle state into two, so mt8183 variant
boards can adjust parameters for each cluster, and reduce cluster0's
default target residency to 1000us as power measurements showed that
its minimum residency is slightly less than cluster1's 1300us.

Signed-off-by: Ikjoon Jang <ikjn@chromium.org>
Link: https://lore.kernel.org/r/20200225080752.200952-1-ikjn@chromium.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183.dtsi

index 97863adb7bc02b4b052e1e90456e11008bdacd79..d946c1466c122548a4be3d3482c2fc82187af682 100644 (file)
@@ -74,7 +74,7 @@
                        reg = <0x000>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <741>;
-                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP0>;
                        dynamic-power-coefficient = <84>;
                        #cooling-cells = <2>;
                };
@@ -85,7 +85,7 @@
                        reg = <0x001>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <741>;
-                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP0>;
                        dynamic-power-coefficient = <84>;
                        #cooling-cells = <2>;
                };
@@ -96,7 +96,7 @@
                        reg = <0x002>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <741>;
-                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP0>;
                        dynamic-power-coefficient = <84>;
                        #cooling-cells = <2>;
                };
                        reg = <0x003>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <741>;
-                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP0>;
                        dynamic-power-coefficient = <84>;
                        #cooling-cells = <2>;
                };
                        reg = <0x100>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <1024>;
-                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP1>;
                        dynamic-power-coefficient = <211>;
                        #cooling-cells = <2>;
                };
                        reg = <0x101>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <1024>;
-                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP1>;
                        dynamic-power-coefficient = <211>;
                        #cooling-cells = <2>;
                };
                        reg = <0x102>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <1024>;
-                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP1>;
                        dynamic-power-coefficient = <211>;
                        #cooling-cells = <2>;
                };
                        reg = <0x103>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <1024>;
-                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP1>;
                        dynamic-power-coefficient = <211>;
                        #cooling-cells = <2>;
                };
                                min-residency-us = <800>;
                        };
 
-                       CLUSTER_SLEEP: cluster-sleep {
+                       CLUSTER_SLEEP0: cluster-sleep@0 {
+                               compatible = "arm,idle-state";
+                               local-timer-stop;
+                               arm,psci-suspend-param = <0x01010001>;
+                               entry-latency-us = <250>;
+                               exit-latency-us = <400>;
+                               min-residency-us = <1000>;
+                       };
+                       CLUSTER_SLEEP1: cluster-sleep@1 {
                                compatible = "arm,idle-state";
                                local-timer-stop;
                                arm,psci-suspend-param = <0x01010001>;