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

Commit 56243868 authored by David Collins's avatar David Collins
Browse files

ARM: dts: msm: add PMIC temperature alarm devices for SDM855



Add temperature alarm peripheral devices for PM855, PM855B, and
PM855L.  These devices monitor the die temperature of each PMIC.

Change-Id: Idef27607175e6d445a210a834529a68b5f3cdd72
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 18cdd4da
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
@@ -20,6 +20,14 @@
		reg = <0x0 SPMI_USID>;
		#address-cells = <2>;
		#size-cells = <0>;

		pm855_tz: qcom,temp-alarm@2400 {
			compatible = "qcom,spmi-temp-alarm";
			reg = <0x2400 0x100>;
			interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
			#thermal-sensor-cells = <0>;
			qcom,temperature-threshold-set = <1>;
		};
	};

	qcom,pm855@1 {
@@ -29,3 +37,30 @@
		#size-cells = <0>;
	};
};

&thermal_zones {
	pm855_temp_alarm: pm855_tz {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm855_tz>;

		trips {
			trip0 {
				temperature = <95000>;
				hysteresis = <0>;
				type = "passive";
			};
			trip1 {
				temperature = <115000>;
				hysteresis = <0>;
				type = "passive";
			};
			trip2 {
				temperature = <145000>;
				hysteresis = <0>;
				type = "critical";
			};
		};
	};
};
+35 −0
Original line number Diff line number Diff line
@@ -20,6 +20,14 @@
		reg = <0x2 SPMI_USID>;
		#address-cells = <2>;
		#size-cells = <0>;

		pm855b_tz: qcom,temp-alarm@2400 {
			compatible = "qcom,spmi-temp-alarm";
			reg = <0x2400 0x100>;
			interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
			#thermal-sensor-cells = <0>;
			qcom,temperature-threshold-set = <1>;
		};
	};

	qcom,pm855b@3 {
@@ -29,3 +37,30 @@
		#size-cells = <0>;
	};
};

&thermal_zones {
	pm855b_temp_alarm: pm855b_tz {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm855b_tz>;

		trips {
			trip0 {
				temperature = <95000>;
				hysteresis = <0>;
				type = "passive";
			};
			trip1 {
				temperature = <115000>;
				hysteresis = <0>;
				type = "passive";
			};
			trip2 {
				temperature = <145000>;
				hysteresis = <0>;
				type = "critical";
			};
		};
	};
};
+35 −0
Original line number Diff line number Diff line
@@ -20,6 +20,14 @@
		reg = <0x4 SPMI_USID>;
		#address-cells = <2>;
		#size-cells = <0>;

		pm855l_tz: qcom,temp-alarm@2400 {
			compatible = "qcom,spmi-temp-alarm";
			reg = <0x2400 0x100>;
			interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
			#thermal-sensor-cells = <0>;
			qcom,temperature-threshold-set = <1>;
		};
	};

	qcom,pm855l@5 {
@@ -29,3 +37,30 @@
		#size-cells = <0>;
	};
};

&thermal_zones {
	pm855l_temp_alarm: pm855l_tz {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm855l_tz>;

		trips {
			trip0 {
				temperature = <95000>;
				hysteresis = <0>;
				type = "passive";
			};
			trip1 {
				temperature = <115000>;
				hysteresis = <0>;
				type = "passive";
			};
			trip2 {
				temperature = <145000>;
				hysteresis = <0>;
				type = "critical";
			};
		};
	};
};
+3 −0
Original line number Diff line number Diff line
@@ -1756,6 +1756,9 @@
				 <DCC_READ 0x0c201244 1 0>,
				 <DCC_READ 0x0c202244 1 0>;
	};

	thermal_zones: thermal-zones {
	};
};

&emac_gdsc {