arm64: dts: rockchip: add gpu in thermal control for rk3328
authorRocky Hao <rocky.hao@rock-chips.com>
Tue, 27 Jun 2017 06:47:26 +0000 (14:47 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 5 Jul 2017 06:06:28 +0000 (14:06 +0800)
add gpu as a cooling device in thermal control

Change-Id: Ia9db5df7b2d5d9ed19672f64f8924877016732c2
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3328.dtsi

index f8f0dffe59adb5ab7e769b404312f4338066cdfe..48655ef0b71549480456b341973d6836174cc257 100644 (file)
                                        cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
                                        contribution = <4096>;
                                };
+                               map1 {
+                                       trip = <&target>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                                       contribution = <4096>;
+                               };
                        };
                };
 
                                  "Mali_PP1_MMU_IRQ";
                clocks = <&cru ACLK_GPU>;
                clock-names = "clk_mali";
+               #cooling-cells = <2>; /* min followed by max */
                operating-points-v2 = <&gpu_opp_table>;
                status = "disabled";