1cfb53d6208918dc7f833168b9fbee2954396bf7
[openwrt/staging/jow.git] / target / linux / mediatek / patches-5.15 / 193-dts-mt7623-thermal_zone_fix.patch
1 From 824d56e753a588fcfd650db1822e34a02a48bb77 Mon Sep 17 00:00:00 2001
2 From: Bruno Umuarama <anonimou_eu@hotmail.com>
3 Date: Thu, 13 Oct 2022 21:18:21 +0000
4 Subject: [PATCH] mediatek: mt7623: fix thermal zone
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Raising the temperatures for passive and active trips. @VA1DER
10 proposed at issue 9396 to remove passive trip. This commit relates to
11 his suggestion.
12
13 Without this patch. the CPU will be throttled all the way down to 98MHz
14 if the temperature rises even a degree above the trip point, and it was
15 further discovered that if the internal temperature of the device is
16 above the first trip point temperature when it boots then it will start
17 in a throttled state and even
18 $ echo disabled > /sys/class/thermal/thermal_zone0/mode
19 will have no effect.
20
21 The patch increases the passive trip point and active cooling map. The
22 throttling temperature will then be at 77°C and 82°C, which is still a
23 low enough temperature for ARM devices to not be in the real danger
24 zone, and gives some operational headroom.
25
26 Signed-off-by: Bruno Umuarama <anonimou_eu@hotmail.com>
27 ---
28 arch/arm/boot/dts/mt7623.dtsi | 4 ++--
29 1 file changed, 2 insertions(+), 2 deletions(-)
30
31 --- a/arch/arm/boot/dts/mt7623.dtsi
32 +++ b/arch/arm/boot/dts/mt7623.dtsi
33 @@ -160,13 +160,13 @@
34
35 trips {
36 cpu_passive: cpu-passive {
37 - temperature = <57000>;
38 + temperature = <77000>;
39 hysteresis = <2000>;
40 type = "passive";
41 };
42
43 cpu_active: cpu-active {
44 - temperature = <67000>;
45 + temperature = <82000>;
46 hysteresis = <2000>;
47 type = "active";
48 };