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

Commit 87d01e3b authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

ARM: dts: msm: Add BCL sensors for pm855l



Add BCL vph sensor for pm855l. This sensor will be used by thermal
framework to monitor and mitigate lower battery voltage condition.

Change-Id: Icf25109a015951d875d67ba05cadc9cc293a9425
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent a543f526
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
@@ -105,6 +105,18 @@
				qcom,pre-scaling = <1 1>;
			};
		};

		pm855l_bcl: bcl@3d00 {
			compatible = "qcom,bcl-v5";
			reg = <0x3d00 0x100>;
			interrupts = <0x4 0x3d 0x0 IRQ_TYPE_NONE>,
					<0x4 0x3d 0x1 IRQ_TYPE_NONE>,
					<0x4 0x3d 0x2 IRQ_TYPE_NONE>;
			interrupt-names = "bcl-vbat-lvl0",
						"bcl-vbat-lvl1",
						"bcl-vbat-lvl2";
			#thermal-sensor-cells = <1>;
		};
	};

	qcom,pm855l@5 {
@@ -322,4 +334,52 @@
			};
		};
	};

	pm855l-vph-lvl0 {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&pm855l_bcl 2>;
		tracks-low;

		trips {
			vph_lvl0: vph-lvl0 {
				temperature = <3500>;
				hysteresis = <200>;
				type = "passive";
			};
		};
	};

	pm855l-vph-lvl1 {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&pm855l_bcl 3>;
		tracks-low;

		trips {
			vph_lvl1:vph-lvl1 {
				temperature = <3000>;
				hysteresis = <200>;
				type = "passive";
			};
		};
	};

	pm855l-vph-lvl2 {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&pm855l_bcl 4>;
		tracks-low;

		trips {
			vph_lvl2:vph-lvl2 {
				temperature = <2800>;
				hysteresis = <200>;
				type = "passive";
			};
		};
	};
};