[PATCH v2 11/11] power: supplies: bq275xx: adds device tree binding documentation.
From: Chris Lapa
Date: Thu Dec 22 2016 - 19:06:08 EST
From: Chris Lapa <chris@xxxxxxxxxxx>
The bq275xx binding is a standard i2c style binding, however the
deprecated compatible fields and different revisions warrant its own
documentation.
Signed-off-by: Chris Lapa <chris@xxxxxxxxxxx>
---
.../devicetree/bindings/power/supply/bq275xx.txt | 27 ++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/supply/bq275xx.txt
diff --git a/Documentation/devicetree/bindings/power/supply/bq275xx.txt b/Documentation/devicetree/bindings/power/supply/bq275xx.txt
new file mode 100644
index 0000000..8f4f759
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/bq275xx.txt
@@ -0,0 +1,27 @@
+binding for BQ275XX fuel gauge family
+
+Supports revisions listed below in the BQ275XX family of fuel gauges.
+Each revision is slightly different enough to warrant separate
+comapatible fields.
+
+Required properties:
+- compatible:
+ * "ti,bq27500" - deprecated
+ * "ti,bq27510" - deprecated
+ * "ti,bq27520" - deprecated
+ * "ti,bq27500-1" - BQ27500/1
+ * "ti,bq27510g1" - BQ27510-g1
+ * "ti,bq27510g2" - BQ27510-g2
+ * "ti,bq27510g3" - BQ27510-g3
+ * "ti,bq27520g1" - BQ27520-g1
+ * "ti,bq27520g2" - BQ27520-g2
+ * "ti,bq27520g3" - BQ27520-g3
+ * "ti,bq27520g4" - BQ27520-g4
+- reg: The 7-bit I2C address.
+
+Example:
+
+ fuelgauge: bq27510g3@55 {
+ compatible = "ti,bq27510g3";
+ reg = <0x55>;
+ };
--
2.1.4