Commit f888da16 authored by Tony Xie's avatar Tony Xie Committed by Heiko Stuebner

arm64: dts: rockchip: Add idle-states to device tree for rk3399

Add idle-states for cpu and cluster sleep states.
Signed-off-by: default avatarTony Xie <tony.xie@rock-chips.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 99165b93
...@@ -74,6 +74,7 @@ cpu_l0: cpu@0 { ...@@ -74,6 +74,7 @@ cpu_l0: cpu@0 {
clocks = <&cru ARMCLKL>; clocks = <&cru ARMCLKL>;
#cooling-cells = <2>; /* min followed by max */ #cooling-cells = <2>; /* min followed by max */
dynamic-power-coefficient = <100>; dynamic-power-coefficient = <100>;
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
}; };
cpu_l1: cpu@1 { cpu_l1: cpu@1 {
...@@ -84,6 +85,7 @@ cpu_l1: cpu@1 { ...@@ -84,6 +85,7 @@ cpu_l1: cpu@1 {
clocks = <&cru ARMCLKL>; clocks = <&cru ARMCLKL>;
#cooling-cells = <2>; /* min followed by max */ #cooling-cells = <2>; /* min followed by max */
dynamic-power-coefficient = <100>; dynamic-power-coefficient = <100>;
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
}; };
cpu_l2: cpu@2 { cpu_l2: cpu@2 {
...@@ -94,6 +96,7 @@ cpu_l2: cpu@2 { ...@@ -94,6 +96,7 @@ cpu_l2: cpu@2 {
clocks = <&cru ARMCLKL>; clocks = <&cru ARMCLKL>;
#cooling-cells = <2>; /* min followed by max */ #cooling-cells = <2>; /* min followed by max */
dynamic-power-coefficient = <100>; dynamic-power-coefficient = <100>;
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
}; };
cpu_l3: cpu@3 { cpu_l3: cpu@3 {
...@@ -104,6 +107,7 @@ cpu_l3: cpu@3 { ...@@ -104,6 +107,7 @@ cpu_l3: cpu@3 {
clocks = <&cru ARMCLKL>; clocks = <&cru ARMCLKL>;
#cooling-cells = <2>; /* min followed by max */ #cooling-cells = <2>; /* min followed by max */
dynamic-power-coefficient = <100>; dynamic-power-coefficient = <100>;
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
}; };
cpu_b0: cpu@100 { cpu_b0: cpu@100 {
...@@ -114,6 +118,7 @@ cpu_b0: cpu@100 { ...@@ -114,6 +118,7 @@ cpu_b0: cpu@100 {
clocks = <&cru ARMCLKB>; clocks = <&cru ARMCLKB>;
#cooling-cells = <2>; /* min followed by max */ #cooling-cells = <2>; /* min followed by max */
dynamic-power-coefficient = <436>; dynamic-power-coefficient = <436>;
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
}; };
cpu_b1: cpu@101 { cpu_b1: cpu@101 {
...@@ -124,6 +129,29 @@ cpu_b1: cpu@101 { ...@@ -124,6 +129,29 @@ cpu_b1: cpu@101 {
clocks = <&cru ARMCLKB>; clocks = <&cru ARMCLKB>;
#cooling-cells = <2>; /* min followed by max */ #cooling-cells = <2>; /* min followed by max */
dynamic-power-coefficient = <436>; dynamic-power-coefficient = <436>;
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 = <0x0010000>;
entry-latency-us = <120>;
exit-latency-us = <250>;
min-residency-us = <900>;
};
CLUSTER_SLEEP: cluster-sleep {
compatible = "arm,idle-state";
local-timer-stop;
arm,psci-suspend-param = <0x1010000>;
entry-latency-us = <400>;
exit-latency-us = <500>;
min-residency-us = <2000>;
};
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment