From: Mike Looijmans <mike.looijmans@topic.nl>
To: sre@kernel.org
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
dbaryshkov@gmail.com, dwmw2@infradead.org,
devicetree@vger.kernel.org,
Mike Looijmans <mike.looijmans@topic.nl>
Subject: [PATCH] Add devicetree binding documentation for the LTC2941/LTC2943 driver
Date: Tue, 28 Oct 2014 08:08:04 +0100 [thread overview]
Message-ID: <1414480084-3604-1-git-send-email-mike.looijmans@topic.nl> (raw)
In-Reply-To: <20141027163842.GB20765@earth.universe>
This adds the devicetree binding documentation for the LTC2941 and LTC2943
driver. These are I2C connected battery gas gauge ICs.
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
---
.../devicetree/bindings/power/ltc2941.txt | 27 ++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/ltc2941.txt
diff --git a/Documentation/devicetree/bindings/power/ltc2941.txt b/Documentation/devicetree/bindings/power/ltc2941.txt
new file mode 100644
index 0000000..ea42ae1
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/ltc2941.txt
@@ -0,0 +1,27 @@
+binding for LTC2941 and LTC2943 battery gauges
+
+Both the LTC2941 and LTC2943 measure battery capacity.
+The LTC2943 is compatible with the LTC2941, it adds voltage and
+temperature monitoring, and uses a slightly different conversion
+formula for the charge counter.
+
+Required properties:
+- compatible: Should contain "ltc2941" or "ltc2943" which also indicates the
+ type of I2C chip attached.
+- reg: The 7-bit I2C address.
+- lltc,resistor-sense: The sense resistor value in milli-ohms. Can be a 32-bit
+ negative value when the battery has been connected to the wrong end of the
+ resistor.
+- lltc,prescaler-exponent: The prescaler exponent as explained in the datasheet.
+ This determines the range and accuracy of the gauge. The value is programmed
+ into the chip only if it differs from the current setting. The setting is
+ lost when the battery is disconnected.
+
+Example from the Topic Miami Florida board:
+
+ fuelgauge: ltc2943@64 {
+ compatible = "ltc2943";
+ reg = <0x64>;
+ lltc,resistor-sense = <15>;
+ lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */
+ };
--
1.7.9.5
next prev parent reply other threads:[~2014-10-28 7:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-01 13:32 [PATCH v2] Added LTC2941/LTC2943 Battery Gauge Driver Mike Looijmans
2014-10-08 6:05 ` [PATCH v3] Add " Mike Looijmans
2014-10-23 12:38 ` [PATCH v4] " Mike Looijmans
2014-10-27 4:14 ` Pavel Machek
2014-10-27 16:38 ` Sebastian Reichel
2014-10-28 7:03 ` Mike Looijmans
2014-10-28 7:05 ` [PATCH] " Mike Looijmans
2015-01-22 2:24 ` Sebastian Reichel
2015-02-11 11:21 ` Mike Looijmans
2015-02-11 17:01 ` Sebastian Reichel
2014-10-28 7:08 ` Mike Looijmans [this message]
[not found] ` <1414480084-3604-1-git-send-email-mike.looijmans-Oq418RWZeHk@public.gmane.org>
2015-01-22 2:24 ` [PATCH] Add devicetree binding documentation for the LTC2941/LTC2943 driver Sebastian Reichel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1414480084-3604-1-git-send-email-mike.looijmans@topic.nl \
--to=mike.looijmans@topic.nl \
--cc=dbaryshkov@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).