arm64: dts: mt8192: Change idle states names to reflect actual function
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 26 Jan 2023 10:35:26 +0000 (11:35 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 31 Jan 2023 11:40:51 +0000 (12:40 +0100)
The names of the idle states are misleading being this a single cluster
SoC, a cluster-sleep idle state is impossible!

After some research in ATF, it emerged that the cpu-sleep state is in
reality putting CPUs in retention state, while the cluster-sleep one
is turning off the CPUs.

Summarizing renaming:
 - cpu-sleep -> cpu-retention
 - cluster-sleep -> cpu-off

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230126103526.417039-7-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8192.dtsi

index eb46cba..87b91c8 100644 (file)
@@ -62,7 +62,7 @@
                        reg = <0x000>;
                        enable-method = "psci";
                        clock-frequency = <1701000000>;
-                       cpu-idle-states = <&cpu_sleep_l &cluster_sleep_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
@@ -79,7 +79,7 @@
                        reg = <0x100>;
                        enable-method = "psci";
                        clock-frequency = <1701000000>;
-                       cpu-idle-states = <&cpu_sleep_l &cluster_sleep_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
@@ -96,7 +96,7 @@
                        reg = <0x200>;
                        enable-method = "psci";
                        clock-frequency = <1701000000>;
-                       cpu-idle-states = <&cpu_sleep_l &cluster_sleep_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
                        reg = <0x300>;
                        enable-method = "psci";
                        clock-frequency = <1701000000>;
-                       cpu-idle-states = <&cpu_sleep_l &cluster_sleep_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
                        reg = <0x400>;
                        enable-method = "psci";
                        clock-frequency = <2171000000>;
-                       cpu-idle-states = <&cpu_sleep_b &cluster_sleep_b>;
+                       cpu-idle-states = <&cpu_ret_b &cpu_off_b>;
                        i-cache-size = <65536>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <256>;
                        reg = <0x500>;
                        enable-method = "psci";
                        clock-frequency = <2171000000>;
-                       cpu-idle-states = <&cpu_sleep_b &cluster_sleep_b>;
+                       cpu-idle-states = <&cpu_ret_b &cpu_off_b>;
                        i-cache-size = <65536>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <256>;
                        reg = <0x600>;
                        enable-method = "psci";
                        clock-frequency = <2171000000>;
-                       cpu-idle-states = <&cpu_sleep_b &cluster_sleep_b>;
+                       cpu-idle-states = <&cpu_ret_b &cpu_off_b>;
                        i-cache-size = <65536>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <256>;
                        reg = <0x700>;
                        enable-method = "psci";
                        clock-frequency = <2171000000>;
-                       cpu-idle-states = <&cpu_sleep_b &cluster_sleep_b>;
+                       cpu-idle-states = <&cpu_ret_b &cpu_off_b>;
                        i-cache-size = <65536>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <256>;
 
                idle-states {
                        entry-method = "psci";
-                       cpu_sleep_l: cpu-sleep-l {
+                       cpu_ret_l: cpu-retention-l {
                                compatible = "arm,idle-state";
                                arm,psci-suspend-param = <0x00010001>;
                                local-timer-stop;
                                exit-latency-us = <140>;
                                min-residency-us = <780>;
                        };
-                       cpu_sleep_b: cpu-sleep-b {
+                       cpu_ret_b: cpu-retention-b {
                                compatible = "arm,idle-state";
                                arm,psci-suspend-param = <0x00010001>;
                                local-timer-stop;
                                exit-latency-us = <145>;
                                min-residency-us = <720>;
                        };
-                       cluster_sleep_l: cluster-sleep-l {
+                       cpu_off_l: cpu-off-l {
                                compatible = "arm,idle-state";
                                arm,psci-suspend-param = <0x01010002>;
                                local-timer-stop;
                                exit-latency-us = <155>;
                                min-residency-us = <860>;
                        };
-                       cluster_sleep_b: cluster-sleep-b {
+                       cpu_off_b: cpu-off-b {
                                compatible = "arm,idle-state";
                                arm,psci-suspend-param = <0x01010002>;
                                local-timer-stop;