Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: mt8192: Add cpu-idle-states

Add idle states for cpu-off and cluster-off.

Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Link: https://lore.kernel.org/r/20201222045820.26355-1-jamesjj.liao@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>

authored by

James Liao and committed by
Matthias Brugger
9260918d 9e1b7d00

+44
+44
arch/arm64/boot/dts/mediatek/mt8192.dtsi
··· 39 39 reg = <0x000>; 40 40 enable-method = "psci"; 41 41 clock-frequency = <1701000000>; 42 + cpu-idle-states = <&cpuoff_l &clusteroff_l>; 42 43 next-level-cache = <&l2_0>; 43 44 capacity-dmips-mhz = <530>; 44 45 }; ··· 50 49 reg = <0x100>; 51 50 enable-method = "psci"; 52 51 clock-frequency = <1701000000>; 52 + cpu-idle-states = <&cpuoff_l &clusteroff_l>; 53 53 next-level-cache = <&l2_0>; 54 54 capacity-dmips-mhz = <530>; 55 55 }; ··· 61 59 reg = <0x200>; 62 60 enable-method = "psci"; 63 61 clock-frequency = <1701000000>; 62 + cpu-idle-states = <&cpuoff_l &clusteroff_l>; 64 63 next-level-cache = <&l2_0>; 65 64 capacity-dmips-mhz = <530>; 66 65 }; ··· 72 69 reg = <0x300>; 73 70 enable-method = "psci"; 74 71 clock-frequency = <1701000000>; 72 + cpu-idle-states = <&cpuoff_l &clusteroff_l>; 75 73 next-level-cache = <&l2_0>; 76 74 capacity-dmips-mhz = <530>; 77 75 }; ··· 83 79 reg = <0x400>; 84 80 enable-method = "psci"; 85 81 clock-frequency = <2171000000>; 82 + cpu-idle-states = <&cpuoff_b &clusteroff_b>; 86 83 next-level-cache = <&l2_1>; 87 84 capacity-dmips-mhz = <1024>; 88 85 }; ··· 94 89 reg = <0x500>; 95 90 enable-method = "psci"; 96 91 clock-frequency = <2171000000>; 92 + cpu-idle-states = <&cpuoff_b &clusteroff_b>; 97 93 next-level-cache = <&l2_1>; 98 94 capacity-dmips-mhz = <1024>; 99 95 }; ··· 105 99 reg = <0x600>; 106 100 enable-method = "psci"; 107 101 clock-frequency = <2171000000>; 102 + cpu-idle-states = <&cpuoff_b &clusteroff_b>; 108 103 next-level-cache = <&l2_1>; 109 104 capacity-dmips-mhz = <1024>; 110 105 }; ··· 116 109 reg = <0x700>; 117 110 enable-method = "psci"; 118 111 clock-frequency = <2171000000>; 112 + cpu-idle-states = <&cpuoff_b &clusteroff_b>; 119 113 next-level-cache = <&l2_1>; 120 114 capacity-dmips-mhz = <1024>; 121 115 }; ··· 165 157 166 158 l3_0: l3-cache { 167 159 compatible = "cache"; 160 + }; 161 + 162 + idle-states { 163 + entry-method = "arm,psci"; 164 + cpuoff_l: cpuoff_l { 165 + compatible = "arm,idle-state"; 166 + arm,psci-suspend-param = <0x00010001>; 167 + local-timer-stop; 168 + entry-latency-us = <55>; 169 + exit-latency-us = <140>; 170 + min-residency-us = <780>; 171 + }; 172 + cpuoff_b: cpuoff_b { 173 + compatible = "arm,idle-state"; 174 + arm,psci-suspend-param = <0x00010001>; 175 + local-timer-stop; 176 + entry-latency-us = <35>; 177 + exit-latency-us = <145>; 178 + min-residency-us = <720>; 179 + }; 180 + clusteroff_l: clusteroff_l { 181 + compatible = "arm,idle-state"; 182 + arm,psci-suspend-param = <0x01010002>; 183 + local-timer-stop; 184 + entry-latency-us = <60>; 185 + exit-latency-us = <155>; 186 + min-residency-us = <860>; 187 + }; 188 + clusteroff_b: clusteroff_b { 189 + compatible = "arm,idle-state"; 190 + arm,psci-suspend-param = <0x01010002>; 191 + local-timer-stop; 192 + entry-latency-us = <40>; 193 + exit-latency-us = <155>; 194 + min-residency-us = <780>; 195 + }; 168 196 }; 169 197 }; 170 198