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

Commit cf055a80 authored by Jishnu Prakash's avatar Jishnu Prakash Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add 0C interrupt support for lito

Add device tree entry for 0C interrupt. Update TSENS controller
type for lito. Add user thermal zones for reading min temp for
each controller.

Change-Id: I180559eb98f90ab3ae17c5aadcccaddc4dcb1a65
parent fa0abf0c
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -518,6 +518,21 @@
		};
	};

	min-temp-0-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 16>;
		thermal-governor = "low_limits_floor";
		tracks-low;
		trips {
			active-config0 {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};
	};

	aoss-1-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
@@ -1345,6 +1360,21 @@
		};
	};

	min-temp-1-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 16>;
		thermal-governor = "low_limits_floor";
		tracks-low;
		trips {
			active-config0 {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};
	};

	npu-step {
		polling-delay-passive = <10>;
		polling-delay = <0>;
+14 −6
Original line number Diff line number Diff line
@@ -1798,26 +1798,34 @@
	};

	tsens0: tsens@c222000 {
		compatible = "qcom,tsens24xx";
		compatible = "qcom,tsens26xx";
		reg = <0xc222000 0x8>,
			<0xc263000 0x1ff>;
		reg-names = "tsens_srot_physical",
				"tsens_tm_physical";

		interrupts-extended = <&pdc 26 IRQ_TYPE_LEVEL_HIGH>,
				<&pdc 28 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "tsens-upper-lower", "tsens-critical";
				<&pdc 28 IRQ_TYPE_LEVEL_HIGH>,
				<&pdc 20 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "tsens-upper-lower",
				"tsens-critical", "tsens-0C";
		0C-sensor-num = <16>;
		#thermal-sensor-cells = <1>;
	};

	tsens1: tsens@c223000 {
		compatible = "qcom,tsens24xx";
		compatible = "qcom,tsens26xx";
		reg = <0xc223000 0x8>,
			<0xc265000 0x1ff>;
		reg-names = "tsens_srot_physical",
			"tsens_tm_physical";

		interrupts-extended = <&pdc 27 IRQ_TYPE_LEVEL_HIGH>,
				<&pdc 29 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "tsens-upper-lower", "tsens-critical";
				<&pdc 29 IRQ_TYPE_LEVEL_HIGH>,
				<&pdc 21 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "tsens-upper-lower",
				"tsens-critical", "tsens-0C";
		0C-sensor-num = <16>;
		#thermal-sensor-cells = <1>;
	};