diff options
author | Usama Arif <usama.arif@arm.com> | 2020-08-12 17:14:37 +0100 |
---|---|---|
committer | Usama Arif <usama.arif@arm.com> | 2020-08-27 11:52:21 +0100 |
commit | 8ea4f80a7cb49b1cbdb81561224916173c317b13 (patch) | |
tree | 61b631d08451c5fa13626a92169fdabedda086c6 /fdts | |
parent | a41973a9dae17d38980b2062f5452353e38855cc (diff) | |
download | arm-trusted-firmware-8ea4f80a7cb49b1cbdb81561224916173c317b13.tar.gz |
fdts: tc0: add support for cpu-idle-states
This includes both cpu and cluster sleep parameters.
Change-Id: I6a9e90b88508d6d2acd2538007cbbdd1cf976442
Signed-off-by: Usama Arif <usama.arif@arm.com>
Diffstat (limited to 'fdts')
-rw-r--r-- | fdts/tc0.dts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/fdts/tc0.dts b/fdts/tc0.dts index 140f47f82..cab39a770 100644 --- a/fdts/tc0.dts +++ b/fdts/tc0.dts @@ -41,12 +41,38 @@ }; }; + /* + * The timings below are just to demonstrate working cpuidle. + * These values may be inaccurate. + */ + idle-states { + entry-method = "arm,psci"; + + CPU_SLEEP_0: cpu-sleep-0 { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0010000>; + local-timer-stop; + entry-latency-us = <300>; + exit-latency-us = <1200>; + min-residency-us = <2000>; + }; + CLUSTER_SLEEP_0: cluster-sleep-0 { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x1010000>; + local-timer-stop; + entry-latency-us = <400>; + exit-latency-us = <1200>; + min-residency-us = <2500>; + }; + }; + CPU0:cpu@0 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0>; enable-method = "psci"; clocks = <&scmi_dvfs 0>; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; CPU1:cpu@100 { @@ -55,6 +81,7 @@ reg = <0x100>; enable-method = "psci"; clocks = <&scmi_dvfs 0>; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; CPU2:cpu@200 { @@ -63,6 +90,7 @@ reg = <0x200>; enable-method = "psci"; clocks = <&scmi_dvfs 0>; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; CPU3:cpu@300 { @@ -71,6 +99,7 @@ reg = <0x300>; enable-method = "psci"; clocks = <&scmi_dvfs 0>; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; }; |