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

Commit 45fab2c6 authored by Brian Norris's avatar Brian Norris Committed by Sebastian Reichel
Browse files

dt-bindings: power: sbs-battery: re-document "ti,bq20z75"



This compatible property was documented before the driver was renamed to
"SBS" (see commit e57f1b68 ("devicetree-bindings: Propagate
bq20z75->sbs rename to dt bindings")). The driver has continued to
support this property as an alternative to "sbs,sbs-battery", and
because we've noticed there are some lingering TI specifics (in the
manufacturer-specific portion of the SBS spec), we'd like to start using
this property again to differentiate.

In typical DT fashion, the <vendor>,<part-number> specifics should be
used ahead of the generic "sbs,sbs-battery" string, so we can handle
vendor specifics -- so document this. Language borrowed mostly from
Documentation/devicetree/bindings/power/supply/sbs_sbs-charger.txt

Also fixup the example to use this property (it's already implying that
it's "bq20z75@b"); fixup the node name to be generic ("battery", not
"<part-number>"); and fixup some whitespace.

Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
Acked-by: default avatarRhyland Klein <rklein@nvidia.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 76b16f4c
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -2,7 +2,11 @@ SBS sbs-battery
~~~~~~~~~~

Required properties :
 - compatible : "sbs,sbs-battery"
 - compatible: "<vendor>,<part-number>", "sbs,sbs-battery" as fallback. The
     part number compatible string might be used in order to take care of
     vendor specific registers.
     Known <vendor>,<part-number>:
       ti,bq20z75

Optional properties :
 - sbs,i2c-retry-count : The number of times to retry i2c transactions on i2c
@@ -14,8 +18,8 @@ Optional properties :

Example:

	bq20z75@b {
		compatible = "sbs,sbs-battery";
	battery@b {
		compatible = "ti,bq20z75", "sbs,sbs-battery";
		reg = <0xb>;
		sbs,i2c-retry-count = <2>;
		sbs,poll-retry-count = <10>;