dt-bindings: power: supply: sbs-charger bindings
authorNicolas Saenz Julienne <nicolas.saenz@prodys.net>
Tue, 20 Dec 2016 15:31:14 +0000 (16:31 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:00:55 +0000 (22:00 +0100)
Adds device tree documentation for SBS charger compilant devices as defined
here: http://sbs-forum.org/specs/sbc110.pdf

Signed-off-by: Nicolas Saenz Julienne <nicolas.saenz@prodys.net>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Documentation/devicetree/bindings/power/supply/sbs_sbs-charger.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/power/supply/sbs_sbs-charger.txt b/Documentation/devicetree/bindings/power/supply/sbs_sbs-charger.txt
new file mode 100644 (file)
index 0000000..a371962
--- /dev/null
@@ -0,0 +1,23 @@
+SBS sbs-charger
+~~~~~~~~~~
+
+Required properties:
+ - compatible: "<vendor>,<part-number>", "sbs,sbs-charger" as fallback. The part
+     number compatible string might be used in order to take care of vendor
+     specific registers.
+
+Optional properties:
+- interrupt-parent: Should be the phandle for the interrupt controller. Use in
+    conjunction with "interrupts".
+- interrupts: Interrupt mapping for GPIO IRQ. Use in conjunction with
+    "interrupt-parent". If an interrupt is not provided the driver will switch
+    automatically to polling.
+
+Example:
+
+       ltc4100@9 {
+               compatible = "lltc,ltc4100", "sbs,sbs-charger";
+               reg = <0x9>;
+               interrupt-parent = <&gpio6>;
+               interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
+       };