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

Commit fc8a47dd authored by Siva Kumar Akkireddi's avatar Siva Kumar Akkireddi
Browse files

ARM: dts: msm: Enable TSENS driver for qcs405



Enable temperature controller (TSENS) on qcs405.
Thermal clients can read from TSENS temperature sensors,
set temperature thresholds and receive notification.

Change-Id: I1b8d5d36fbab9519bc056db8fed49cf7f8afe266
Signed-off-by: default avatarSiva Kumar Akkireddi <sivaa@codeaurora.org>
parent 42123387
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -25,10 +25,12 @@ Required properties:
	       for the corresponding SoC.
- reg : offset and length of the TSENS registers with associated property in reg-names
	as "tsens_srot_physical" for TSENS SROT physical address region. TSENS TM
	physical address region as "tsens_tm_physical".
	physical address region as "tsens_tm_physical", and "tsens_eeprom_physical" for the
	TSENS calibration fuse register region.
- reg-names : resource names used for the physical address of the TSENS
	      registers. Should be "tsens_srot_physical" for physical address of the TSENS
	      SROT region and "tsens_tm_physical" for physical address of the TM region.
	      SROT region, "tsens_tm_physical" for physical address of the TM region and
		  "tsens_eeprom_physical" for the TSENS calibration fuse register region.
- interrupts : TSENS interrupt to notify Upper/Lower and Critical temperature threshold.
- interrupt-names: Should be "tsens-upper-lower" for temperature threshold.
		   Add "tsens-critical" for Critical temperature threshold notification
@@ -42,7 +44,8 @@ tsens@fc4a8000 {
	reg = <0xfc4a8000 0x10>,
		<0xfc4b8000 0x1ff>;
	reg-names = "tsens_srot_physical",
		    "tsens_tm_physical";
		    "tsens_tm_physical",
			"tsens_eeprom_physical",
	interrupts = <0 184 0>;
	interrupt-names = "tsens-upper-lower";
};
+13 −0
Original line number Diff line number Diff line
@@ -210,4 +210,17 @@
			reg = <0x94c 200>;
		};
	};

	tsens0: tsens@4a8000 {
		compatible = "qcom,qcs405-tsens";
		reg = <0x4a8000 0x1000>,
			<0x4a9000 0x1000>,
			<0xa4000  0x1000>;
		reg-names = "tsens_srot_physical",
			"tsens_tm_physical",
			"tsens_eeprom_physical";
		interrupts = <0 184 0>;
		interrupt-names = "tsens-upper-lower";
		#thermal-sensor-cells = <1>;
	};
};