mediatek: 6.6: drop backport patches
[openwrt/openwrt.git] / target / linux / mediatek / patches-6.6 / 021-v6.7-arm64-dts-mt7986-change-cooling-trips.patch
1 From aa3d6df9803c267725dc72286bb91602b7579882 Mon Sep 17 00:00:00 2001
2 From: Frank Wunderlich <frank-w@public-files.de>
3 Date: Sun, 20 Aug 2023 17:31:34 +0200
4 Subject: [PATCH 21/22] arm64: dts: mt7986: change cooling trips
5
6 Add Critical and hot trips for emergency system shutdown and limiting
7 system load.
8
9 Change passive trip to active to make sure fan is activated on the
10 lowest trip.
11
12 Fixes: 1f5be05132f3 ("arm64: dts: mt7986: add thermal-zones")
13 Suggested-by: Daniel Golle <daniel@makrotopia.org>
14 Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
15 ---
16 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 20 ++++++++++++++++----
17 1 file changed, 16 insertions(+), 4 deletions(-)
18
19 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
20 +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
21 @@ -610,22 +610,34 @@
22 thermal-sensors = <&thermal 0>;
23
24 trips {
25 + cpu_trip_crit: crit {
26 + temperature = <125000>;
27 + hysteresis = <2000>;
28 + type = "critical";
29 + };
30 +
31 + cpu_trip_hot: hot {
32 + temperature = <120000>;
33 + hysteresis = <2000>;
34 + type = "hot";
35 + };
36 +
37 cpu_trip_active_high: active-high {
38 temperature = <115000>;
39 hysteresis = <2000>;
40 type = "active";
41 };
42
43 - cpu_trip_active_low: active-low {
44 + cpu_trip_active_med: active-med {
45 temperature = <85000>;
46 hysteresis = <2000>;
47 type = "active";
48 };
49
50 - cpu_trip_passive: passive {
51 - temperature = <40000>;
52 + cpu_trip_active_low: active-low {
53 + temperature = <60000>;
54 hysteresis = <2000>;
55 - type = "passive";
56 + type = "active";
57 };
58 };
59 };