arm64: Add cpu idle information to the fast model DT
authorMark Brown <broonie@linaro.org>
Fri, 13 Jun 2014 16:43:12 +0000 (17:43 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 13 Jun 2014 18:06:21 +0000 (19:06 +0100)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/boot/dts/fvp-base-gicv2-psci.dts

index a46be6148b3a055cefaf4662267fee127798c712..ed55571e06dd0b039f3a9bb3fe563d58e65040d5 100644 (file)
@@ -54,7 +54,7 @@
        psci {
                compatible = "arm,psci";
                method = "smc";
-               cpu_suspend = <0xc4000001>;
+               cpu_suspend = <0x84000001>;
                cpu_off = <0x84000002>;
                cpu_on = <0xc4000003>;
        };
                #address-cells = <2>;
                #size-cells = <0>;
 
+               idle-states {
+                       entry-method = "arm,psci";
+
+                       CPU_SLEEP_0: cpu-sleep-0 {
+                               compatible = "arm,idle-state";
+                               entry-method-param = <0x0010000>;
+                               entry-latency-us = <40>;
+                               exit-latency-us = <100>;
+                               min-residency-us = <150>;
+                       };
+
+                       CLUSTER_SLEEP_0: cluster-sleep-0 {
+                               compatible = "arm,idle-state";
+                               entry-method-param = <0x1010000>;
+                               entry-latency-us = <500>;
+                               exit-latency-us = <1000>;
+                               min-residency-us = <2500>;
+                       };
+               };
+
                big0: cpu@0 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a57", "arm,armv8";
                        reg = <0x0 0x0>;
                        enable-method = "psci";
                        clock-frequency = <1000000>;
+                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
                };
                big1: cpu@1 {
                        device_type = "cpu";
@@ -76,6 +97,7 @@
                        reg = <0x0 0x1>;
                        enable-method = "psci";
                        clock-frequency = <1000000>;
+                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
                };
                big2: cpu@2 {
                        device_type = "cpu";
                        reg = <0x0 0x2>;
                        enable-method = "psci";
                        clock-frequency = <1000000>;
+                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
                };
                big3: cpu@3 {
                        device_type = "cpu";
                        reg = <0x0 0x3>;
                        enable-method = "psci";
                        clock-frequency = <1000000>;
+                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
                };
                little0: cpu@100 {
                        device_type = "cpu";
                        reg = <0x0 0x100>;
                        enable-method = "psci";
                        clock-frequency = <1000000>;
+                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
                };
                little1: cpu@101 {
                        device_type = "cpu";
                        reg = <0x0 0x101>;
                        enable-method = "psci";
                        clock-frequency = <1000000>;
+                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
                };
                little2: cpu@102 {
                        device_type = "cpu";
                        reg = <0x0 0x102>;
                        enable-method = "psci";
                        clock-frequency = <1000000>;
+                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
                };
                little3: cpu@103 {
                        device_type = "cpu";
                        reg = <0x0 0x103>;
                        enable-method = "psci";
                        clock-frequency = <1000000>;
+                       cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
                };
 
                cpu-map {