]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: imx8mq: Enable gpu passive throttling
authorGuido Günther <agx@sigxcpu.org>
Thu, 12 Sep 2019 02:40:35 +0000 (19:40 -0700)
committerShawn Guo <shawnguo@kernel.org>
Sun, 6 Oct 2019 08:05:45 +0000 (16:05 +0800)
Temperature and hysteresis were picked after the CPU.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq.dtsi

index 04115ca6bfb528c40a7f7cf207c57d2377c1a1ba..cb11cec5719973df96e1f208ec530b9a4b3cb90c 100644 (file)
@@ -235,12 +235,26 @@ gpu-thermal {
                        thermal-sensors = <&tmu 1>;
 
                        trips {
+                               gpu_alert: gpu-alert {
+                                       temperature = <80000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+
                                gpu-crit {
                                        temperature = <90000>;
                                        hysteresis = <2000>;
                                        type = "critical";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu_alert>;
+                                       cooling-device =
+                                               <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
                };
 
                vpu-thermal {
@@ -949,6 +963,7 @@ gpu: gpu@38000000 {
                                 <&clk IMX8MQ_CLK_GPU_AXI>,
                                 <&clk IMX8MQ_CLK_GPU_AHB>;
                        clock-names = "core", "shader", "bus", "reg";
+                       #cooling-cells = <2>;
                        assigned-clocks = <&clk IMX8MQ_CLK_GPU_CORE_SRC>,
                                          <&clk IMX8MQ_CLK_GPU_SHADER_SRC>,
                                          <&clk IMX8MQ_CLK_GPU_AXI>,