kernel: bump 6.1 to 6.1.83
[openwrt/staging/pepe2k.git] / target / linux / mediatek / patches-6.1 / 017-v6.5-arm64-dts-mt7986-add-thermal-zones.patch
1 From bb78d0cf5117517f1ed296ae71048945d9107675 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Tue, 30 May 2023 22:12:34 +0200
4 Subject: [PATCH 17/19] arm64: dts: mt7986: add thermal-zones
5
6 Add thermal-zones to mt7986 devicetree.
7
8 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
10 Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
11 Link: https://lore.kernel.org/r/20230530201235.22330-4-linux@fw-web.de
12 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
13 ---
14 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 28 +++++++++++++++++++++++
15 1 file changed, 28 insertions(+)
16
17 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
18 +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
19 @@ -603,4 +603,32 @@
20 memory-region = <&wmcpu_emi>;
21 };
22 };
23 +
24 + thermal-zones {
25 + cpu_thermal: cpu-thermal {
26 + polling-delay-passive = <1000>;
27 + polling-delay = <1000>;
28 + thermal-sensors = <&thermal 0>;
29 +
30 + trips {
31 + cpu_trip_active_high: active-high {
32 + temperature = <115000>;
33 + hysteresis = <2000>;
34 + type = "active";
35 + };
36 +
37 + cpu_trip_active_low: active-low {
38 + temperature = <85000>;
39 + hysteresis = <2000>;
40 + type = "active";
41 + };
42 +
43 + cpu_trip_passive: passive {
44 + temperature = <40000>;
45 + hysteresis = <2000>;
46 + type = "passive";
47 + };
48 + };
49 + };
50 + };
51 };