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

Commit 9385482f authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: msm: Define thermal zone for pm660l_tz sensor in pm660l



Add thermal zone definition for pm660l_tz temperature sensor
in pm660l.

Change-Id: I6c5200e9f0083287549d30790b3f99ceea53b54d
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 1d4ebf74
Loading
Loading
Loading
Loading
+28 −1
Original line number Diff line number Diff line
@@ -39,11 +39,12 @@
				<PON_POWER_OFF_SHUTDOWN>;
		};

		qcom,temp-alarm@2400 {
		pm660l_tz: qcom,temp-alarm@2400 {
			compatible = "qcom,qpnp-temp-alarm";
			reg = <0x2400 0x100>;
			interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
			label = "pm660l_tz";
			#thermal-sensor-cells = <0>;
		};

		pm660l_gpios: pinctrl@c000 {
@@ -295,3 +296,29 @@
		};
	};
};

&thermal_zones {
	pm660l_tz {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm660l_tz>;

		trips {
			pm660l_trip0: pm660l-trip0 {
				temperature = <105000>;
				hysteresis = <0>;
				type = "passive";
			};
			 pm660l_trip1: pm660l-trip1 {
				temperature = <125000>;
				hysteresis = <0>;
				type = "passive";
			};
			 pm660l_trip2: pm660l-trip2 {
				temperature = <145000>;
				hysteresis = <0>;
				type = "critical";
			};
		};
	};
};