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

Commit d656915d authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

dt-bindings: bcl_pmic5: Add ibat scaling factor support for ibat conversion

For some pmic, based on pmic FG/QG ADC range, BCL Ibat scaling factor
needs to be changed. Add an optional devicetree property to choose
QG_ADC with 5A range.

Change-Id: Ib6f0815e9277fe41ad1cec8b1057135e04f675f0
parent f85a9766
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -30,6 +30,12 @@ Required Parameters:
		"bcl-lvl1",
		"bcl-lvl2",

Optional Parameters:
- qcom,ibat-use-qg-adc-5a: This optional property is used to divide Ibat
		scaling factor by two for PMIC QG_ADC with ibat range of 5A.
		By default, this Ibat scaling factor will be 1 corresponding
		to FG_ADC with 10A range.

Example:
		bcl@4200 {
			compatible = "qcom,bcl-v5";
@@ -38,4 +44,5 @@ Example:
					<0x2 0x42 0x1 IRQ_TYPE_NONE>;
			interrupt-names = "bcl-lvl0",
						"bcl-lvl1";
			qcom,ibat-use-qg-adc-5a;
		};