arm64: dts: qcom: qcs404: Add PSCI cpuidle low power states
authorNiklas Cassel <niklas.cassel@linaro.org>
Tue, 21 May 2019 09:35:15 +0000 (15:05 +0530)
committerAndy Gross <agross@kernel.org>
Thu, 30 May 2019 02:37:31 +0000 (21:37 -0500)
Add device bindings for cpuidle states for cpu devices.

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
[amit: rename the idle-states to more generic names and fixups]
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <agross@kernel.org>
arch/arm64/boot/dts/qcom/qcs404.dtsi

index ffedf96..5e17254 100644 (file)
@@ -30,6 +30,7 @@
                        compatible = "arm,cortex-a53";
                        reg = <0x100>;
                        enable-method = "psci";
+                       cpu-idle-states = <&CPU_SLEEP_0>;
                        next-level-cache = <&L2_0>;
                };
 
@@ -38,6 +39,7 @@
                        compatible = "arm,cortex-a53";
                        reg = <0x101>;
                        enable-method = "psci";
+                       cpu-idle-states = <&CPU_SLEEP_0>;
                        next-level-cache = <&L2_0>;
                };
 
@@ -46,6 +48,7 @@
                        compatible = "arm,cortex-a53";
                        reg = <0x102>;
                        enable-method = "psci";
+                       cpu-idle-states = <&CPU_SLEEP_0>;
                        next-level-cache = <&L2_0>;
                };
 
@@ -54,6 +57,7 @@
                        compatible = "arm,cortex-a53";
                        reg = <0x103>;
                        enable-method = "psci";
+                       cpu-idle-states = <&CPU_SLEEP_0>;
                        next-level-cache = <&L2_0>;
                };
 
                        compatible = "cache";
                        cache-level = <2>;
                };
+
+               idle-states {
+                       entry-method = "psci";
+
+                       CPU_SLEEP_0: cpu-sleep-0 {
+                               compatible = "arm,idle-state";
+                               idle-state-name = "standalone-power-collapse";
+                               arm,psci-suspend-param = <0x40000003>;
+                               entry-latency-us = <125>;
+                               exit-latency-us = <180>;
+                               min-residency-us = <595>;
+                               local-timer-stop;
+                       };
+               };
        };
 
        firmware {