From ee2e2fbf2b7ef1cb39eb5f9a18e08419af646603 Mon Sep 17 00:00:00 2001 From: Liang Chen Date: Wed, 27 Feb 2019 16:41:45 +0800 Subject: [PATCH] arm64: dts: rockchip: rk3328: add thermal control for rkvdec add power model for rkvdec and add rkvdec as a cooling device in thermal control Change-Id: I4560f9b2a6b395d565652549a8f0dbcc1903da6f Signed-off-by: Rocky Hao --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index 8d7051cefcfc..9f8636b29162 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -494,6 +494,11 @@ cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; contribution = <4096>; }; + map2 { + trip = <&target>; + cooling-device = <&rkvdec THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + contribution = <1024>; + }; }; }; @@ -719,7 +724,16 @@ allocator = <1>; power-domains = <&power RK3328_PD_VIDEO>; operating-points-v2 = <&rkvdec_opp_table>; + #cooling-cells = <2>; status = "disabled"; + + vcodec_power_model: vcodec_power_model { + compatible = "vcodec_power_model"; + dynamic-power-coefficient = <120>; + static-power-coefficient = <200>; + ts = <32000 4700 (-80) 2>; + thermal-zone = "soc-thermal"; + }; }; rkvdec_opp_table: rkvdec-opp-table {