From: Sebastian Reichel <sre@kernel.org>
To: Matt Ranostay <matt@ranostay.consulting>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>
Cc: tony@atomide.com, devicetree@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [PATCH v2 2/3] devicetree: bq27425: add documentation for bq27425 fuel gauge
Date: Fri, 6 Jan 2017 01:56:29 +0100 [thread overview]
Message-ID: <20170106005628.qp4mdz6abv4g6if5@earth> (raw)
In-Reply-To: <20170105021007.22088-3-matt@ranostay.consulting>
[-- Attachment #1: Type: text/plain, Size: 2175 bytes --]
Hi,
On Wed, Jan 04, 2017 at 06:10:06PM -0800, Matt Ranostay wrote:
> Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
> ---
> .../devicetree/bindings/power/bq27425.txt | 25 ++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/power/bq27425.txt
>
> diff --git a/Documentation/devicetree/bindings/power/bq27425.txt b/Documentation/devicetree/bindings/power/bq27425.txt
> new file mode 100644
> index 000000000000..5d33b61cf9b7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/bq27425.txt
> @@ -0,0 +1,25 @@
> +* TI BQ27425 Fuel Gauge
> +
> +http://www.ti.com/lit/ds/symlink/bq27425-g2a.pdf
> +
> +Please note that if any of the optional properties are defined
> +then all settings must be.
> +
> +Required properties:
> +- compatible: Should be "ti,bq27425"
> +- reg: integer, I2C address of the device
> +
> +Optional properties:
> +- ti,design-microamp-hours: integer of mAh of the battery
> +- ti,design-microvolt-hours: integer of the mWh of the battery
> +- ti,terminate-microvolt: integer of mV of the dead voltage of
> + the battery
> +
> +bq27425 {
> + compatible = "ti,bq27425";
> + reg = <0x55>;
> +
> + ti,design-microamp-hours = <1360>;
> + ti,design-microwatt-hours = <4970>;
> + ti,terminate-microvolt = <3200>;
> +};
The design capacity of the battery is not a property of the fuel
gauge. It should be modelled more like this:
/ {
bat0: battery {
/* Nokia BL-5J */
nominal-microvolt = <3700000>;
design-microwatt-hours = <4900000>;
design-microamp-hours = <1320000>;
chemistry-type = <POWER_SUPPLY_LI_ION>;
/* other battery specific stuff */
};
};
&i2c3 {
bq27425 {
compatible = "ti,bq27425";
reg = <0x55>;
monitored-battery = <&bat0>;
/* other fuel-gauge specific stuff */
};
};
Also there is another pending patch series, that documents bq27xxx.
bq27425 should be documented inside of it. The battery binding would
be generic, so it should be described in its own document.
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-01-06 0:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-05 2:10 [PATCH v2 0/3] power: bq27xxx: add support for NVRAM R/W access Matt Ranostay
[not found] ` <20170105021007.22088-1-matt-sk+viVC6FLCDq+mSdOJa79kegs52MxvZ@public.gmane.org>
2017-01-05 2:10 ` [PATCH v2 1/3] devicetree: property-units: add mWh and mAh units Matt Ranostay
[not found] ` <20170105021007.22088-2-matt-sk+viVC6FLCDq+mSdOJa79kegs52MxvZ@public.gmane.org>
2017-01-06 0:24 ` Sebastian Reichel
2017-01-09 17:53 ` Rob Herring
2017-01-05 2:10 ` [PATCH v2 2/3] devicetree: bq27425: add documentation for bq27425 fuel gauge Matt Ranostay
2017-01-06 0:56 ` Sebastian Reichel [this message]
[not found] ` <20170105021007.22088-3-matt-sk+viVC6FLCDq+mSdOJa79kegs52MxvZ@public.gmane.org>
2017-01-09 17:53 ` Rob Herring
2017-01-05 2:10 ` [PATCH v2 3/3] power: bq27xxx: add support for NVRAM R/W access Matt Ranostay
[not found] ` <20170105021007.22088-4-matt-sk+viVC6FLCDq+mSdOJa79kegs52MxvZ@public.gmane.org>
2017-01-06 1:53 ` Sebastian Reichel
2017-01-06 2:34 ` Matt Ranostay
2017-01-06 3:23 ` Matt Ranostay
2017-01-06 17:28 ` Sebastian Reichel
2017-01-06 3:50 ` kbuild test robot
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=20170106005628.qp4mdz6abv4g6if5@earth \
--to=sre@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=matt@ranostay.consulting \
--cc=robh+dt@kernel.org \
--cc=tony@atomide.com \
/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