diff options
author | Karl-Heinz Schneider <karl-heinz@schneider-inet.de> | 2017-08-24 05:31:07 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-10-28 17:43:12 -0400 |
commit | 26b61a652f6d52ec9c14f6be7c5a854a4fe831ae (patch) | |
tree | b71746fc50f064d5213d0b746885e302c719bd49 | |
parent | e460617e85db8af533c9f70c9ab94d4fa111b379 (diff) |
Documentation: Add sbs-manager device tree node documentation
This patch adds device tree documentation for the sbs-manager
Signed-off-by: Karl-Heinz Schneider <karl-heinz@schneider-inet.de>
Signed-off-by: Phil Reid <preid@electromag.com.au>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.txt | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.txt b/Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.txt new file mode 100644 index 000000000000..4b2195571a49 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.txt | |||
@@ -0,0 +1,66 @@ | |||
1 | Binding for sbs-manager | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "<vendor>,<part-number>", "sbs,sbs-charger" as fallback. The part | ||
5 | number compatible string might be used in order to take care of vendor | ||
6 | specific registers. | ||
7 | - reg: integer, i2c address of the device. Should be <0xa>. | ||
8 | Optional properties: | ||
9 | - gpio-controller: Marks the port as GPIO controller. | ||
10 | See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt. | ||
11 | - #gpio-cells: Should be <2>. The first cell is the pin number, the second cell | ||
12 | is used to specify optional parameters: | ||
13 | See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt. | ||
14 | |||
15 | From OS view the device is basically an i2c-mux used to communicate with up to | ||
16 | four smart battery devices at address 0xb. The driver actually implements this | ||
17 | behaviour. So standard i2c-mux nodes can be used to register up to four slave | ||
18 | batteries. Channels will be numerated starting from 1 to 4. | ||
19 | |||
20 | Example: | ||
21 | |||
22 | batman@a { | ||
23 | compatible = "lltc,ltc1760", "sbs,sbs-manager"; | ||
24 | reg = <0x0a>; | ||
25 | #address-cells = <1>; | ||
26 | #size-cells = <0>; | ||
27 | |||
28 | gpio-controller; | ||
29 | #gpio-cells = <2>; | ||
30 | |||
31 | i2c@1 { | ||
32 | #address-cells = <1>; | ||
33 | #size-cells = <0>; | ||
34 | reg = <1>; | ||
35 | |||
36 | battery@b { | ||
37 | compatible = "ti,bq2060", "sbs,sbs-battery"; | ||
38 | reg = <0x0b>; | ||
39 | sbs,battery-detect-gpios = <&batman 1 1>; | ||
40 | }; | ||
41 | }; | ||
42 | |||
43 | i2c@2 { | ||
44 | #address-cells = <1>; | ||
45 | #size-cells = <0>; | ||
46 | reg = <2>; | ||
47 | |||
48 | battery@b { | ||
49 | compatible = "ti,bq2060", "sbs,sbs-battery"; | ||
50 | reg = <0x0b>; | ||
51 | sbs,battery-detect-gpios = <&batman 2 1>; | ||
52 | }; | ||
53 | }; | ||
54 | |||
55 | i2c@3 { | ||
56 | #address-cells = <1>; | ||
57 | #size-cells = <0>; | ||
58 | reg = <3>; | ||
59 | |||
60 | battery@b { | ||
61 | compatible = "ti,bq2060", "sbs,sbs-battery"; | ||
62 | reg = <0x0b>; | ||
63 | sbs,battery-detect-gpios = <&batman 3 1>; | ||
64 | }; | ||
65 | }; | ||
66 | }; | ||