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 };
Cache object: e0c1bb68e06af92bd52d7435c9dc5fea
|