From c01b156f029b52a9d31d97306c97137f4a284ff2 Mon Sep 17 00:00:00 2001 From: Rocky Hao Date: Tue, 16 May 2017 11:07:06 +0800 Subject: [PATCH] ARM: dts: rockchip: rk322x: update thermal config and add cpu's parameters add cpu's dynamic power coefficient and add gpu as a cooling device in the thermal zone. rename the thermal zone's config and make it more readable. Change-Id: Iac935a6dde5e079667b6712224b32e786ccebc1e Signed-off-by: Rocky Hao --- arch/arm/boot/dts/rk322x.dtsi | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index 128b9186ef59..d526760370bf 100644 --- a/arch/arm/boot/dts/rk322x.dtsi +++ b/arch/arm/boot/dts/rk322x.dtsi @@ -67,6 +67,7 @@ resets = <&cru SRST_CORE0>; operating-points-v2 = <&cpu0_opp_table>; #cooling-cells = <2>; /* min followed by max */ + dynamic-power-coefficient = <122>; clock-latency = <40000>; clocks = <&cru ARMCLK>; }; @@ -480,25 +481,26 @@ <75000000>; }; - thermal-zones { - cpu_thermal: cpu-thermal { + thermal_zones: thermal-zones { + soc_thermal: soc-thermal { polling-delay-passive = <100>; /* milliseconds */ polling-delay = <5000>; /* milliseconds */ + sustainable-power = <1200>; /* milliwatts */ thermal-sensors = <&tsadc 0>; trips { - cpu_alert0: cpu_alert0 { + threshold: trip-point@0 { temperature = <70000>; /* millicelsius */ hysteresis = <2000>; /* millicelsius */ type = "passive"; }; - cpu_alert1: cpu_alert1 { - temperature = <75000>; /* millicelsius */ + target: trip-point@1 { + temperature = <85000>; /* millicelsius */ hysteresis = <2000>; /* millicelsius */ type = "passive"; }; - cpu_crit: cpu_crit { + soc_crit: soc-crit { temperature = <90000>; /* millicelsius */ hysteresis = <2000>; /* millicelsius */ type = "critical"; @@ -507,14 +509,16 @@ cooling-maps { map0 { - trip = <&cpu_alert0>; + trip = <&target>; cooling-device = - <&cpu0 THERMAL_NO_LIMIT 6>; + <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + contribution = <1024>; }; map1 { - trip = <&cpu_alert1>; + trip = <&target>; cooling-device = - <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + contribution = <1024>; }; }; }; @@ -582,6 +586,7 @@ "Mali_PP1_IRQ", "Mali_PP1_MMU_IRQ"; clocks = <&cru ACLK_GPU>; + #cooling-cells = <2>; /* min followed by max */ clock-names = "clk_mali"; operating-points-v2 = <&gpu_opp_table>; status = "disabled"; -- 2.34.1