From a6916b160d26c9c8127d9116e8eefb87daa1e1db Mon Sep 17 00:00:00 2001 From: pxiao Date: Tue, 13 Apr 2021 10:02:01 +0800 Subject: [PATCH] ARM: dts: qcom: Update fan cooling thermal config for HHG Update venus sensor thermal config threshold to enable fan cooling work as per latest recommendation. Change-Id: I6734ad190b07f2ce5fad2fa2aa77b1db43353a3f --- qcom/lahaina-hhg.dtsi | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/qcom/lahaina-hhg.dtsi b/qcom/lahaina-hhg.dtsi index 823c48c0e189..d2ba7eb32f1b 100644 --- a/qcom/lahaina-hhg.dtsi +++ b/qcom/lahaina-hhg.dtsi @@ -133,7 +133,7 @@ fan_cpu16_config2: fan-cpu16-config2 { temperature = <95000>; - hysteresis = <0>; + hysteresis = <5000>; type = "passive"; }; }; @@ -172,7 +172,7 @@ fan_cpu17_config2: fan-cpu17-config2 { temperature = <95000>; - hysteresis = <0>; + hysteresis = <5000>; type = "passive"; }; }; @@ -273,6 +273,38 @@ }; }; + video-step { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "step_wise"; + thermal-sensors = <&tsens1 6>; + trips { + fan_video_config0: fan-video-config0 { + temperature = <50000>; + hysteresis = <2000>; + type = "passive"; + }; + + fan_video_config1: fan-video-config1 { + temperature = <60000>; + hysteresis = <2000>; + type = "passive"; + }; + }; + + cooling-maps { + fan_cdev_0 { + trip = <&fan_video_config0>; + cooling-device = <&fancontroller 1 1>; + }; + + fan_cdev_1 { + trip = <&fan_video_config1>; + cooling-device = <&fancontroller 2 2>; + }; + }; + }; + gpu-skin-avg-step { disable-thermal-zone; };