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

Commit 2f1b82ef authored by Jishnu Prakash's avatar Jishnu Prakash
Browse files

ARM: dts: msm: Change temp alarm IRQ type to IRQ_TYPE_EDGE_BOTH

The interrupt signal output by GEN2 TEMP_ALARM peripherals
differs from that of early versions.  Instead of outputting a
short pulse on each over-temperature stage transition, it outputs
low for stage 0 and high for stage > 0.  This means that
interrupt triggering needs to be configured for the falling edge
to receive a notification of the stage 1 to 0 transition.

Set IRQ type to IRQ_TYPE_EDGE_BOTH so that it triggers on both
rising and falling edges.

Change-Id: I395685f106158e1f9d300afdfd895236dd063447
parent fb7cc12b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@
		pm6125_tz: qcom,temp-alarm@2400 {
			compatible = "qcom,spmi-temp-alarm";
			reg = <0x2400 0x100>;
			interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
			interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
			#thermal-sensor-cells = <0>;
			qcom,temperature-threshold-set = <1>;
		};
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@
		pmi632_tz: qcom,temp-alarm@2400 {
			compatible = "qcom,spmi-temp-alarm";
			reg = <0x2400 0x100>;
			interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
			interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
			#thermal-sensor-cells = <0>;
			qcom,temperature-threshold-set = <1>;
		};