From: Daniel Golle Date: Tue, 30 May 2023 20:12:34 +0000 (+0200) Subject: arm64: dts: mt7986: add thermal-zones X-Git-Tag: v6.6.17~4534^2~9^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f5be05132f38cdc2f11e12f9d0b6cf0f106d568;p=platform%2Fkernel%2Flinux-rpi.git arm64: dts: mt7986: add thermal-zones Add thermal-zones to mt7986 devicetree. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20230530201235.22330-4-linux@fw-web.de Signed-off-by: Matthias Brugger --- diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index ad4fd77..68539ea 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -602,4 +602,32 @@ memory-region = <&wmcpu_emi>; }; }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <1000>; + thermal-sensors = <&thermal 0>; + + trips { + cpu_trip_active_high: active-high { + temperature = <115000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_active_low: active-low { + temperature = <85000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_passive: passive { + temperature = <40000>; + hysteresis = <2000>; + type = "passive"; + }; + }; + }; + }; };