arm64: dts: mt8186: Change idle states names to reflect actual function
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 26 Jan 2023 10:35:25 +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-off idle state is impossible!

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

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

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

index 9e8daaa044dc77b8a178e5c66c3e8690a37c32f9..50fdb88bdc3dd75d879f957cbd0dca43224ffc29 100644 (file)
@@ -66,7 +66,7 @@
                        enable-method = "psci";
                        clock-frequency = <2000000000>;
                        capacity-dmips-mhz = <382>;
-                       cpu-idle-states = <&cpu_off_l &cluster_off_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
@@ -84,7 +84,7 @@
                        enable-method = "psci";
                        clock-frequency = <2000000000>;
                        capacity-dmips-mhz = <382>;
-                       cpu-idle-states = <&cpu_off_l &cluster_off_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
                        enable-method = "psci";
                        clock-frequency = <2000000000>;
                        capacity-dmips-mhz = <382>;
-                       cpu-idle-states = <&cpu_off_l &cluster_off_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
                        enable-method = "psci";
                        clock-frequency = <2000000000>;
                        capacity-dmips-mhz = <382>;
-                       cpu-idle-states = <&cpu_off_l &cluster_off_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
                        enable-method = "psci";
                        clock-frequency = <2000000000>;
                        capacity-dmips-mhz = <382>;
-                       cpu-idle-states = <&cpu_off_l &cluster_off_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
                        enable-method = "psci";
                        clock-frequency = <2000000000>;
                        capacity-dmips-mhz = <382>;
-                       cpu-idle-states = <&cpu_off_l &cluster_off_l>;
+                       cpu-idle-states = <&cpu_ret_l &cpu_off_l>;
                        i-cache-size = <32768>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <128>;
                        enable-method = "psci";
                        clock-frequency = <2050000000>;
                        capacity-dmips-mhz = <1024>;
-                       cpu-idle-states = <&cpu_off_b &cluster_off_b>;
+                       cpu-idle-states = <&cpu_ret_b &cpu_off_b>;
                        i-cache-size = <65536>;
                        i-cache-line-size = <64>;
                        i-cache-sets = <256>;
                        enable-method = "psci";
                        clock-frequency = <2050000000>;
                        capacity-dmips-mhz = <1024>;
-                       cpu-idle-states = <&cpu_off_b &cluster_off_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_off_l: cpu-off-l {
+                       cpu_ret_l: cpu-retention-l {
                                compatible = "arm,idle-state";
                                arm,psci-suspend-param = <0x00010001>;
                                local-timer-stop;
                                min-residency-us = <1600>;
                        };
 
-                       cpu_off_b: cpu-off-b {
+                       cpu_ret_b: cpu-retention-b {
                                compatible = "arm,idle-state";
                                arm,psci-suspend-param = <0x00010001>;
                                local-timer-stop;
                                min-residency-us = <1400>;
                        };
 
-                       cluster_off_l: cluster-off-l {
+                       cpu_off_l: cpu-off-l {
                                compatible = "arm,idle-state";
                                arm,psci-suspend-param = <0x01010001>;
                                local-timer-stop;
                                min-residency-us = <2100>;
                        };
 
-                       cluster_off_b: cluster-off-b {
+                       cpu_off_b: cpu-off-b {
                                compatible = "arm,idle-state";
                                arm,psci-suspend-param = <0x01010001>;
                                local-timer-stop;