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

Commit 33b05c30 authored by Gopala Krishna Nuthaki's avatar Gopala Krishna Nuthaki
Browse files

dt-bindings: thermal: Add support to scale ibat current range to bcl driver

Add support to scale ibat current for greater than default max
supported ranges using range factor provided from nvmem.

Change-Id: I63cc53cdba021300839695e9378fc320d57b2840
parent 395981c2
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -41,6 +41,20 @@ Optional Parameters:
			current monitoring(CCM) hardware for battery current
			monitor.

- nvmem-cells:
	Value type: <phandle>
	Definition: phandle pointing to a nvmem-cells node representing the
			sdam registers that has information of ibat scaling range
			factor.When defined, the bcl driver will use it to
			scale ibat current greater than default supported range.

- nvmem-cell-names:
	Value type: <string>
	Definition: Specifies the given nvmem cell name as defined in
			sdam node.
			Documentation/devicetree/bindings/nvmem/nvmem.txt and also
			example below.

Example:
		bcl@4200 {
			compatible = "qcom,bcl-v5";
@@ -51,4 +65,6 @@ Example:
						"bcl-lvl1";
			qcom,pmic7-threshold;
			qcom,ibat-ccm-hw-support;
			nvmem-cells = <&adc_scaling>;
			nvmem-cell-names = "adc_scaling";
		};