Commit c0a7259f authored by Alex Bee's avatar Alex Bee Committed by Heiko Stuebner
Browse files

arm64: dts: rockchip: add cooling map and trip points for gpu to rk356x



RK356x SoCs have a second thermal sensor for the GPU. This adds the
cooling map and trip points for it to make use of its contribution as
a cooling device.

Signed-off-by: default avatarAlex Bee <knaerzche@gmail.com>
Signed-off-by: default avatarMichael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220209215549.94524-4-michael.riesch@wolfvision.net


Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 81002866
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -1093,6 +1093,32 @@
			polling-delay = <1000>; /* milliseconds */

			thermal-sensors = <&tsadc 1>;

			trips {
				gpu_threshold: gpu-threshold {
					temperature = <70000>;
					hysteresis = <2000>;
					type = "passive";
				};
				gpu_target: gpu-target {
					temperature = <75000>;
					hysteresis = <2000>;
					type = "passive";
				};
				gpu_crit: gpu-crit {
					temperature = <95000>;
					hysteresis = <2000>;
					type = "critical";
				};
			};

			cooling-maps {
				map0 {
					trip = <&gpu_target>;
					cooling-device =
						<&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
				};
			};
		};
	};