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

Commit dd4c049c authored by Umang Agrawal's avatar Umang Agrawal
Browse files

ARM: dts: msm: Add Qgauge device to PM6150



Specify the configuration for QG peripheral of PM6150, which
is responsible for estimating the battery capacity.

Change-Id: I9f8a7c6c6a119225bc444d13af987fb1c6ceb739
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent 20768179
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
@@ -384,6 +384,42 @@
						 <12000 2250>; /* 12V @ 2.25A */
		};

		pm6150_qg: qpnp,qg {
			compatible = "qcom,qpnp-qg";
			#address-cells = <1>;
			#size-cells = <1>;

			qcom,qg-iterm-ma = <100>;
			qcom,hold-soc-while-full;
			qcom,linearize-soc;
			qcom,pmic-revid = <&pm6150_revid>;
			io-channels = <&pm6150_vadc ADC_BAT_THERM_PU2>,
				      <&pm6150_vadc ADC_BAT_ID_PU2>;
			io-channel-names = "batt-therm",
					   "batt-id";

			qcom,qgauge@4800 {
				status = "okay";
				reg = <0x4800 0x100>;
				interrupts =
					<0x0 0x48 0x0 IRQ_TYPE_EDGE_BOTH>,
					<0x0 0x48 0x1 IRQ_TYPE_EDGE_BOTH>,
					<0x0 0x48 0x2 IRQ_TYPE_EDGE_RISING>,
					<0x0 0x48 0x3 IRQ_TYPE_EDGE_RISING>,
					<0x0 0x48 0x4 IRQ_TYPE_EDGE_RISING>;
				interrupt-names = "qg-batt-missing",
						  "qg-vbat-low",
						  "qg-vbat-empty",
						  "qg-fifo-done",
						  "qg-good-ocv";
			};

			qcom,qg-sdam@b500 {
				status = "okay";
				reg = <0xb500 0x100>;
			};
		};

		pm6150_bcl: bcl@1d00 {
			compatible = "qcom,bcl-v5";
			reg = <0x1d00 0x100>;