linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance
@ 2018-10-22  7:43 Baolin Wang
  2018-10-22  7:43 ` [PATCH v6 2/6] power: supply: core: Add one field " Baolin Wang
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Baolin Wang @ 2018-10-22  7:43 UTC (permalink / raw)
  To: sre, robh+dt, mark.rutland
  Cc: linux-pm, devicetree, linux-kernel, yuanjiang.yu, baolin.wang,
	broonie, ctatlor97, linus.walleij

The internal resistance of a battery is not a constant in its life cycle,
this varies over the age of the battery or temperature and so on. But we
just want use one constant battery internal resistance to estimate the
battery capacity. Thus this patch introduces one property to present
the battery factory internal resistance for battery information.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
---
Changes from v5:
 - None.

Changes from v4:
 - None.

Changes from v3:
 - Split binding into one separate patch.
 - Add LinusW reviewed tag.

Changes from v2:
 - Rename the property.
 - Improve the commit message.

Changes from v1:
 - New patch in v2.
---
 .../devicetree/bindings/power/supply/battery.txt   |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/supply/battery.txt b/Documentation/devicetree/bindings/power/supply/battery.txt
index f4d3b4a..938d027 100644
--- a/Documentation/devicetree/bindings/power/supply/battery.txt
+++ b/Documentation/devicetree/bindings/power/supply/battery.txt
@@ -22,6 +22,7 @@ Optional Properties:
  - charge-term-current-microamp: current for charge termination phase
  - constant-charge-current-max-microamp: maximum constant input current
  - constant-charge-voltage-max-microvolt: maximum constant input voltage
+ - factory-internal-resistance-micro-ohms: battery factory internal resistance
 
 Battery properties are named, where possible, for the corresponding
 elements in enum power_supply_property, defined in
@@ -42,6 +43,7 @@ Example:
 		charge-term-current-microamp = <128000>;
 		constant-charge-current-max-microamp = <900000>;
 		constant-charge-voltage-max-microvolt = <4200000>;
+		factory-internal-resistance-micro-ohms = <250000>;
 	};
 
 	charger: charger@11 {
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-11-01 17:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-22  7:43 [PATCH v6 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance Baolin Wang
2018-10-22  7:43 ` [PATCH v6 2/6] power: supply: core: Add one field " Baolin Wang
2018-10-22  7:43 ` [PATCH v6 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table Baolin Wang
2018-10-22 22:10   ` Rob Herring
2018-10-22  7:44 ` [PATCH v6 4/6] power: supply: core: Add some helpers to use " Baolin Wang
2018-11-01  7:22   ` Baolin Wang
2018-11-01 13:50     ` Quentin Schulz
2018-11-01 17:30       ` Baolin Wang
2018-10-22  7:44 ` [PATCH v6 5/6] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation Baolin Wang
2018-10-22  7:44 ` [PATCH v6 6/6] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver Baolin Wang
2018-10-31  8:56   ` Linus Walleij
2018-11-01  6:42     ` Baolin Wang
2018-10-25  2:01 ` [PATCH v6 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance Baolin Wang
2018-10-25 20:13   ` Sebastian Reichel
2018-10-26  1:57     ` Baolin Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).