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

Commit b4b52289 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

ARM: dts: msm: Add the QGauge device node for PMI632 on SDM450



Qgauge supports battery SOC and other battery parameter reporting.

Change-Id: I73c13d0866b1560f9059752e3d8ec7ee3347adbe
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 6abe12d2
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
@@ -359,6 +359,40 @@
				regulator-name = "smb5-vbus";
			};
		};

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

			qcom,vbatt-empty-mv = <3200>;
			qcom,vbatt-low-mv = <3500>;
			qcom,vbatt-cutoff-mv = <3400>;
			qcom,qg-iterm-ma = <100>;

			qcom,qg-vadc = <&pmi632_vadc>;
			qcom,pmic-revid = <&pmi632_revid>;

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

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

	pmi632_3: qcom,pmi632@3 {
+13 −0
Original line number Diff line number Diff line
@@ -31,3 +31,16 @@
	extcon = <&pmi632_charger>;
	vbus_dwc3-supply = <&smb5_vbus>;
};

/{
	mtp_batterydata: qcom,battery-data {
		qcom,batt-id-range-pct = <15>;
		#include "qg-batterydata-ascent-3450mah.dtsi"
		#include "qg-batterydata-mlp356477-2800mah.dtsi"
	};
};

&pmi632_qg {
	qcom,battery-data = <&mtp_batterydata>;
	qcom,rbat-conn-mohm = <20>;
};