From 938602b807c7382f73ee8d8627f89b8b0791441a Mon Sep 17 00:00:00 2001 From: Rocky Hao Date: Tue, 10 Apr 2018 18:13:33 +0800 Subject: [PATCH] arm64: dts: rockchip: add cpu's thermal config for rk3308 Change-Id: Ie21e753ac46794bc8f3a56b1f0f2a894d1c65d19 Signed-off-by: Rocky Hao --- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi index 001e990245a7..bbdc461eeae4 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -46,6 +46,8 @@ reg = <0x0 0x0>; enable-method = "psci"; clocks = <&cru ARMCLK>; + #cooling-cells = <2>; + dynamic-power-coefficient = <90>; operating-points-v2 = <&cpu0_opp_table>; }; @@ -547,7 +549,7 @@ soc_thermal: soc-thermal { polling-delay-passive = <20>; polling-delay = <1000>; - sustainable-power = <750>; + sustainable-power = <300>; thermal-sensors = <&tsadc 0>; @@ -569,9 +571,17 @@ }; }; + cooling-maps { + map0 { + trip = <&target>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + contribution = <4096>; + }; + }; + }; - gpu_thermal: gpu-thermal { + logic_thermal: logic-thermal { polling-delay-passive = <100>; /* milliseconds */ polling-delay = <1000>; /* milliseconds */