arm64: dts: mt8183: Enable CPU idle-states
authorJames Liao <jamesjj.liao@mediatek.com>
Wed, 15 Jan 2020 05:42:35 +0000 (13:42 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 11 Feb 2020 11:56:58 +0000 (12:56 +0100)
Enable mcdi-cpu and mcdi-cluster on MT8183 CPUs.

Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183.dtsi

index 124f9d3e09f532cf05bbefc42fd4e8e54e470060..504891d2b97bb5a1a6c53c6f86449c15487c3d46 100644 (file)
@@ -74,6 +74,7 @@
                        reg = <0x000>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <741>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                };
 
                cpu1: cpu@1 {
@@ -82,6 +83,7 @@
                        reg = <0x001>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <741>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                };
 
                cpu2: cpu@2 {
@@ -90,6 +92,7 @@
                        reg = <0x002>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <741>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                };
 
                cpu3: cpu@3 {
                        reg = <0x003>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <741>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                };
 
                cpu4: cpu@100 {
                        reg = <0x100>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <1024>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                };
 
                cpu5: cpu@101 {
                        reg = <0x101>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <1024>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                };
 
                cpu6: cpu@102 {
                        reg = <0x102>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <1024>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                };
 
                cpu7: cpu@103 {
                        reg = <0x103>;
                        enable-method = "psci";
                        capacity-dmips-mhz = <1024>;
+                       cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+               };
+
+               idle-states {
+                       entry-method = "psci";
+
+                       CPU_SLEEP: cpu-sleep {
+                               compatible = "arm,idle-state";
+                               local-timer-stop;
+                               arm,psci-suspend-param = <0x00010001>;
+                               entry-latency-us = <200>;
+                               exit-latency-us = <200>;
+                               min-residency-us = <800>;
+                       };
+
+                       CLUSTER_SLEEP: cluster-sleep {
+                               compatible = "arm,idle-state";
+                               local-timer-stop;
+                               arm,psci-suspend-param = <0x01010001>;
+                               entry-latency-us = <250>;
+                               exit-latency-us = <400>;
+                               min-residency-us = <1300>;
+                       };
                };
        };