power: da9150: Add DT bindings documentation for Fuel-Gauge
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Wed, 7 Oct 2015 13:54:21 +0000 (14:54 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 13 Oct 2015 10:28:15 +0000 (11:28 +0100)
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Acked-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/devicetree/bindings/power/da9150-fg.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/power/da9150-fg.txt b/Documentation/devicetree/bindings/power/da9150-fg.txt
new file mode 100644 (file)
index 0000000..00236fe
--- /dev/null
@@ -0,0 +1,23 @@
+Dialog Semiconductor DA9150 Fuel-Gauge Power Supply bindings
+
+Required properties:
+- compatible: "dlg,da9150-fuel-gauge" for DA9150 Fuel-Gauge Power Supply
+
+Optional properties:
+- dlg,update-interval: Interval time (milliseconds) between battery level checks.
+- dlg,warn-soc-level: Battery discharge level (%) where warning event raised.
+      [1 - 100]
+- dlg,crit-soc-level: Battery discharge level (%) where critical event raised.
+  This value should be lower than the warning level.
+      [1 - 100]
+
+
+Example:
+
+       fuel-gauge {
+               compatible = "dlg,da9150-fuel-gauge";
+
+               dlg,update-interval = <10000>;
+               dlg,warn-soc-level = /bits/ 8 <15>;
+               dlg,crit-soc-level = /bits/ 8 <5>;
+       };