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

Commit 21a66874 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

thermal: tsens: Add interrupt-names DT property



Add property to get the interrupt by name for the Upper/Lower
TSENS (Temperature Sensor) threshold interrupt.

Change-Id: I9bea1ae647739408d09fe97ea3fa514ac3ac5a00
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 3511ae2a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ Required properties:
	      calibration data is stored. This includes the backup
	      calibration address region if TSENS calibration data is stored
	      in the region.
- interrupts : TSENS interrupt for cool/warm temperature threshold.
- interrupts : TSENS interrupt to notify Upper/Lower temperature threshold.
- interrupt-names: Should be "tsens-upper-lower" for temperature threshold.
- qcom,sensors : Total number of available Temperature sensors for TSENS.
- qcom,slope : One point calibration characterized slope data for each
	       sensor used to compute the offset. Slope is represented
@@ -57,6 +58,7 @@ tsens@fc4a8000 {
	reg-names = "tsens_physical",
		    "tsens_eeprom_physical";
	interrupts = <0 184 0>;
	interrupt-names = "tsens-upper-lower";
	qcom,calibration-less-mode;
	qcom,sensors = <11>;
	qcom,slope = <3200 3200 3200 3200 3200 3200 3200 3200 3200
+1 −0
Original line number Diff line number Diff line
@@ -4484,6 +4484,7 @@
		      <0xfc4bc000 0x1000>;
		reg-names = "tsens_physical", "tsens_eeprom_physical";
		interrupts = <0 184 0>;
		interrupt-names = "tsens-upper-lower";
		qcom,sensors = <11>;
		qcom,slope = <3200 3200 3200 3200 3200 3200 3200 3200 3200
				3200 3200>;
+1 −0
Original line number Diff line number Diff line
@@ -690,6 +690,7 @@
			<0xfc4bc000 0x1000>;
		reg-names = "tsens_physical", "tsens_eeprom_physical";
		interrupts = <0 184 0>;
		interrupt-names = "tsens-upper-lower";
		qcom,sensors = <7>;
		qcom,slope = <3200 3200 3200 3200 3200 3200 3200>;
	};
+1 −0
Original line number Diff line number Diff line
@@ -769,6 +769,7 @@
		      <0xfc4bc000 0x1000>;
		reg-names = "tsens_physical", "tsens_eeprom_physical";
		interrupts = <0 184 0>;
		interrupt-names = "tsens-upper-lower";
		qcom,sensors = <5>;
		qcom,slope = <2901 2846 3200 3200 3200>;
	};
+1 −0
Original line number Diff line number Diff line
@@ -1232,6 +1232,7 @@
		      <0xfc4bc000 0x1000>;
		reg-names = "tsens_physical", "tsens_eeprom_physical";
		interrupts = <0 184 0>;
		interrupt-names = "tsens-upper-lower";
		qcom,sensors = <4>;
		qcom,slope = <2901 2846 3038 2955>;
	};
Loading