aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordawei.chien@mediatek.com <dawei.chien@mediatek.com>2016-03-15 04:10:36 -0400
committerMatthias Brugger <matthias.bgg@gmail.com>2016-04-21 09:55:11 -0400
commit962f5143b30568bf67be97365d0616b0050ddaa5 (patch)
tree1d383f7d93c93610b1c93f23d528b3dec20ef6b1
parent748c7d4de46a18818b2736dce55becad9ca6c691 (diff)
arm64: dts: mt8173: Add thermal zone node.
This adds thermal zone node to Mediatek MT8173 dtsi file. Signed-off-by: Dawei Chien <dawei.chien@mediatek.com> Acked-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
-rw-r--r--arch/arm64/boot/dts/mediatek/mt8173.dtsi43
1 files changed, 43 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
index 3bebe29ab192..05f89c4a5413 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
@@ -125,6 +125,49 @@
125 clock-output-names = "cpum_ck"; 125 clock-output-names = "cpum_ck";
126 }; 126 };
127 127
128 thermal-zones {
129 cpu_thermal: cpu_thermal {
130 polling-delay-passive = <1000>; /* milliseconds */
131 polling-delay = <1000>; /* milliseconds */
132
133 thermal-sensors = <&thermal>;
134 sustainable-power = <1500>; /* milliwatts */
135
136 trips {
137 threshold: trip-point@0 {
138 temperature = <68000>;
139 hysteresis = <2000>;
140 type = "passive";
141 };
142
143 target: trip-point@1 {
144 temperature = <85000>;
145 hysteresis = <2000>;
146 type = "passive";
147 };
148
149 cpu_crit: cpu_crit@0 {
150 temperature = <115000>;
151 hysteresis = <2000>;
152 type = "critical";
153 };
154 };
155
156 cooling-maps {
157 map@0 {
158 trip = <&target>;
159 cooling-device = <&cpu0 0 0>;
160 contribution = <1024>;
161 };
162 map@1 {
163 trip = <&target>;
164 cooling-device = <&cpu2 0 0>;
165 contribution = <2048>;
166 };
167 };
168 };
169 };
170
128 timer { 171 timer {
129 compatible = "arm,armv8-timer"; 172 compatible = "arm,armv8-timer";
130 interrupt-parent = <&gic>; 173 interrupt-parent = <&gic>;