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

Commit 2065b663 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add BCL peripheral configs for PMI8937



Add PMI8937 BCL peripheral related configs in devicetree to
enable the BCL peripheral driver. Add configs like vbat interrupt,
ibat interrupt and vbat/ibat calculation parameters.

Change-Id: I1678ca8804bc25a64ccae10cd9e1227cc2c98e23
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 82133d30
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -350,6 +350,26 @@
		};
	};

	bcl@4200 {
		compatible = "qcom,msm-bcl";
		reg = <0x4200 0xFF>;
		reg-names = "fg_user_adc";
		interrupts = <0x2 0x42 0x0>,
				<0x2 0x42 0x1>;
		interrupt-names = "bcl-high-ibat-int",
				"bcl-low-vbat-int";
		qcom,vbat-scaling-factor = <39000>;
		qcom,vbat-gain-numerator = <1>;
		qcom,vbat-gain-denominator = <128>;
		qcom,vbat-polling-delay-ms = <100>;
		qcom,ibat-scaling-factor = <39000>;
		qcom,ibat-gain-numerator = <1>;
		qcom,ibat-gain-denominator = <128>;
		qcom,ibat-offset-numerator = <1200>;
		qcom,ibat-offset-denominator = <1>;
		qcom,ibat-polling-delay-ms = <100>;
	};

	qcom,pmi8937@3 {
		spmi-slave-container;
		reg = <0x3>;