Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6790b4fa authored by Gopala Krishna Nuthaki's avatar Gopala Krishna Nuthaki
Browse files

ARM: dts: msm: Add GPU thermal zone configuration for YUPIK

Add thermal zones for all GPU sensors individually to
achieve better thermal control.

Enable polling delay to one of the thermal zone to monitor
the TSENS hardware functionality.

Change-Id: I4174ca21744a89ede0d2e7e157d34dcae3a45d53
parent 38e3fe77
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
@@ -192,6 +192,10 @@
	};
};

&msm_gpu {
	#cooling-cells = <2>;
};

&thermal_zones {
	/delete-node/ modem-sdr-mmw-usr;
	/delete-node/ modem-ambient-usr;
@@ -1171,6 +1175,50 @@
		};
	};

	gpuss-0-step {
		polling-delay-passive = <10>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens1 1>;
		trips {
			gpuss0_config: active-config0 {
				temperature = <95000>;
				hysteresis = <0>;
				type = "passive";
			};
		};

		cooling-maps {
			gpu_cdev {
				trip = <&gpuss0_config>;
				cooling-device = <&msm_gpu THERMAL_NO_LIMIT
							THERMAL_NO_LIMIT>;
			};
		};
	};

	gpuss-1-step {
		polling-delay-passive = <10>;
		polling-delay = <100>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens1 2>;
		trips {
			gpuss1_config: active-config0 {
				temperature = <95000>;
				hysteresis = <0>;
				type = "passive";
			};
		};

		cooling-maps {
			gpu_cdev {
				trip = <&gpuss1_config>;
				cooling-device = <&msm_gpu THERMAL_NO_LIMIT
							THERMAL_NO_LIMIT>;
			};
		};
	};

	nspss-0-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
@@ -1191,6 +1239,12 @@
						THERMAL_MAX_LIMIT>;
			};

			gpu_cdev {
				trip = <&nspss0_trip>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			modem-pa-cdev {
				trip = <&nspss0_trip>;
				cooling-device = <&modem_pa 3 3>;
@@ -1218,6 +1272,12 @@
						THERMAL_MAX_LIMIT>;
			};

			gpu_cdev {
				trip = <&nspss1_trip>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			modem-pa-cdev {
				trip = <&nspss1_trip>;
				cooling-device = <&modem_pa 3 3>;
+1 −1
Original line number Diff line number Diff line
@@ -3681,7 +3681,6 @@
#include "yupik-pm.dtsi"
#include "ipcc-test-yupik.dtsi"
#include "yupik-regulators.dtsi"
#include "yupik-thermal.dtsi"

&gcc_ufs_phy_gdsc {
	qcom,support-hw-trigger;
@@ -3813,3 +3812,4 @@
#include "camera/yupik-camera.dtsi"
#include "msm-rdbg.dtsi"
#include "yupik-gpu.dtsi"
#include "yupik-thermal.dtsi"