diff options
| author | James Liao <jamesjj.liao@mediatek.com> | 2017-10-06 04:09:53 -0400 |
|---|---|---|
| committer | Matthias Brugger <matthias.bgg@gmail.com> | 2017-10-10 13:04:08 -0400 |
| commit | f5a3d7837aa5fe619042694a3b0911243b8acc7f (patch) | |
| tree | 3c61c8caa0922d00b8dfab9ce103ddb3bf430141 | |
| parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) | |
arm64: dts: mediatek: Add cpuidle support for MT2712
Add CPU idle state nodes to enable C1/C2 idle states.
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
| -rw-r--r-- | arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 57d0396b7faa..5d4e406bb35d 100644 --- a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi | |||
| @@ -39,6 +39,7 @@ | |||
| 39 | device_type = "cpu"; | 39 | device_type = "cpu"; |
| 40 | compatible = "arm,cortex-a35"; | 40 | compatible = "arm,cortex-a35"; |
| 41 | reg = <0x000>; | 41 | reg = <0x000>; |
| 42 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; | ||
| 42 | }; | 43 | }; |
| 43 | 44 | ||
| 44 | cpu1: cpu@1 { | 45 | cpu1: cpu@1 { |
| @@ -46,6 +47,7 @@ | |||
| 46 | compatible = "arm,cortex-a35"; | 47 | compatible = "arm,cortex-a35"; |
| 47 | reg = <0x001>; | 48 | reg = <0x001>; |
| 48 | enable-method = "psci"; | 49 | enable-method = "psci"; |
| 50 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; | ||
| 49 | }; | 51 | }; |
| 50 | 52 | ||
| 51 | cpu2: cpu@200 { | 53 | cpu2: cpu@200 { |
| @@ -53,6 +55,29 @@ | |||
| 53 | compatible = "arm,cortex-a72"; | 55 | compatible = "arm,cortex-a72"; |
| 54 | reg = <0x200>; | 56 | reg = <0x200>; |
| 55 | enable-method = "psci"; | 57 | enable-method = "psci"; |
| 58 | cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; | ||
| 59 | }; | ||
| 60 | |||
| 61 | idle-states { | ||
| 62 | entry-method = "arm,psci"; | ||
| 63 | |||
| 64 | CPU_SLEEP_0: cpu-sleep-0 { | ||
| 65 | compatible = "arm,idle-state"; | ||
| 66 | local-timer-stop; | ||
| 67 | entry-latency-us = <100>; | ||
| 68 | exit-latency-us = <80>; | ||
| 69 | min-residency-us = <2000>; | ||
| 70 | arm,psci-suspend-param = <0x0010000>; | ||
| 71 | }; | ||
| 72 | |||
| 73 | CLUSTER_SLEEP_0: cluster-sleep-0 { | ||
| 74 | compatible = "arm,idle-state"; | ||
| 75 | local-timer-stop; | ||
| 76 | entry-latency-us = <350>; | ||
| 77 | exit-latency-us = <80>; | ||
| 78 | min-residency-us = <3000>; | ||
| 79 | arm,psci-suspend-param = <0x1010000>; | ||
| 80 | }; | ||
| 56 | }; | 81 | }; |
| 57 | }; | 82 | }; |
| 58 | 83 | ||
