From 0376d2551c4ee0b12d2af5bb870643df93354691 Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Thu, 1 Aug 2019 16:08:06 +0200 Subject: ARM64: hisilicon: hi6220: DT: Add trip point and idle cooling device Add a trip point above the one mitigated by cpufreq and the associated idle cooling device. That allows to catch situation where the cpufreq does not succeed to mitigate the temperature and where the idle injection takes over to force CPU power down. Signed-off-by: Daniel Lezcano --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 108e2a4227f6..e327c9c1742b 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -67,6 +67,7 @@ entry-latency-us = <700>; exit-latency-us = <250>; min-residency-us = <1000>; + #cooling-cells = <2>; /* min followed by max */ }; CLUSTER_SLEEP: cluster-sleep { @@ -77,6 +78,7 @@ exit-latency-us = <700>; min-residency-us = <2700>; wakeup-latency-us = <1500>; + #cooling-cells = <2>; /* min followed by max */ }; }; @@ -890,6 +892,13 @@ hysteresis = <0>; type = "passive"; }; + + hot: trip-point@2 { + temperature = <85000>; + hysteresis = <0>; + type = "passive"; + }; + }; cooling-maps { @@ -904,6 +913,10 @@ <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + map1 { + trip = <&hot>; + cooling-device = <&CPU_SLEEP THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; }; }; }; -- cgit v1.2.3