From 3d7db740335e9d41adc369257fb8a5ccf0e272f1 Mon Sep 17 00:00:00 2001 From: Minghao Zhang Date: Tue, 9 Jul 2024 14:23:57 +0800 Subject: [PATCH] ARM: dts: qcom: Add fan thermal mitigation rules for SunP HDK Add cpu0-0-0 zone's trip to make fan run at level 50. Change-Id: Id3f38d165e513ec633f3a289cfddfc60284f8f7c Signed-off-by: Minghao Zhang --- qcom/sunp-hdk.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/qcom/sunp-hdk.dtsi b/qcom/sunp-hdk.dtsi index d7fa4e61..1e1bb10a 100644 --- a/qcom/sunp-hdk.dtsi +++ b/qcom/sunp-hdk.dtsi @@ -99,3 +99,22 @@ /* Tx pre-emphasis tuning */ 0x5 0x57>; }; + +&thermal_zones { + cpu-0-0-0 { + trips { + fan_cpu000_config0: fan-cpu000-config0 { + temperature = <95000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + + cooling-maps { + fan_cdev_0 { + trip = <&fan_cpu000_config0>; + cooling-device = <&fancontroller 50 50>; + }; + }; + }; +};