[4/5] dt-bindings: power: sc27xx: Add a new property to describe the real resistance of coulomb counter chip

Message ID 00202f739348258555dcc40982c330542ac61863.1572245011.git.baolin.wang@linaro.org
State New
Headers show
Series
  • Improve the SC27XX fuel gauge controller
Related show

Commit Message

(Exiting) Baolin Wang Oct. 28, 2019, 7:19 a.m.
Add a new property to describe the real resistance of coulomb counter chip,
which is used to calibrate the accuracy of the coulomb counter chip.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>

---
 .../devicetree/bindings/power/supply/sc27xx-fg.txt |    2 ++
 1 file changed, 2 insertions(+)

-- 
1.7.9.5

Comments

(Exiting) Baolin Wang Oct. 31, 2019, 2:14 a.m. | #1
Hi Rob,

On Wed, 30 Oct 2019 at 22:39, Rob Herring <robh@kernel.org> wrote:
>

> On Mon, Oct 28, 2019 at 03:19:00PM +0800, Baolin Wang wrote:

> > Add a new property to describe the real resistance of coulomb counter chip,

> > which is used to calibrate the accuracy of the coulomb counter chip.

> >

> > Signed-off-by: Baolin Wang <baolin.wang@linaro.org>

> > ---

> >  .../devicetree/bindings/power/supply/sc27xx-fg.txt |    2 ++

> >  1 file changed, 2 insertions(+)

> >

> > diff --git a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt

> > index 0a5705b..fc042d0 100644

> > --- a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt

> > +++ b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt

> > @@ -13,6 +13,7 @@ Required properties:

> >  - io-channel-names: Should be "bat-temp" or "charge-vol".

> >  - nvmem-cells: A phandle to the calibration cells provided by eFuse device.

> >  - nvmem-cell-names: Should be "fgu_calib".

> > +- sprd,calib-resistance: Specify the real resistance of coulomb counter chip in micro Ohms.

> >  - monitored-battery: Phandle of battery characteristics devicetree node.

> >    See Documentation/devicetree/bindings/power/supply/battery.txt

>

> Needs a standard unit suffix.


Got it. Thanks.

-- 
Baolin Wang
Best Regards

Patch

diff --git a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt
index 0a5705b..fc042d0 100644
--- a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt
+++ b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt
@@ -13,6 +13,7 @@  Required properties:
 - io-channel-names: Should be "bat-temp" or "charge-vol".
 - nvmem-cells: A phandle to the calibration cells provided by eFuse device.
 - nvmem-cell-names: Should be "fgu_calib".
+- sprd,calib-resistance: Specify the real resistance of coulomb counter chip in micro Ohms.
 - monitored-battery: Phandle of battery characteristics devicetree node.
   See Documentation/devicetree/bindings/power/supply/battery.txt
 
@@ -52,5 +53,6 @@  Example:
 			nvmem-cells = <&fgu_calib>;
 			nvmem-cell-names = "fgu_calib";
 			monitored-battery = <&bat>;
+			sprd,calib-resistance = <21500>;
 		};
 	};