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

Commit 814ebb6c authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: msm: Define thermal zone for PM8937 temperature sensor



Add thermal zone definition for pm8937_tz temperature sensor.

Change-Id: Ic1362beac1c13b2e1ecdc44bdc2abaf999e67c8f
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 955992dc
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@
			qcom,channel-num = <8>;
			qcom,threshold-set = <0>;
			qcom,temp_alarm-vadc = <&pm8937_vadc>;
			#thermal-sensor-cells = <0>;
		};

		pm8937_coincell: qcom,coincell@2800 {
@@ -404,4 +405,29 @@
			};
		};
	};

	pm8937_tz {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm8937_temp_alarm>;

		trips {
			pm8937_trip0: pm8937-trip0 {
				temperature = <105000>;
				hysteresis = <0>;
				type = "passive";
			};
			pm8937_trip1: pm8937-trip1 {
				temperature = <125000>;
				hysteresis = <0>;
				type = "passive";
			};
			pm8937_trip2: pm8937-trip2 {
				temperature = <145000>;
				hysteresis = <0>;
				type = "passive";
			};
		};
	};
};
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@
	/delete-node/ xo-therm-buf-adc;
	/delete-node/ case-therm-adc;
	/delete-node/ pa-therm0-adc;
	/delete-node/ pm8937_tz;
};

&soc {