Linux-libre 5.4.48-gnu
[librecmc/linux-libre.git] / Documentation / devicetree / bindings / power / supply / sbs_sbs-battery.txt
1 SBS sbs-battery
2 ~~~~~~~~~~
3
4 Required properties :
5  - compatible: "<vendor>,<part-number>", "sbs,sbs-battery" as fallback. The
6      part number compatible string might be used in order to take care of
7      vendor specific registers.
8      Known <vendor>,<part-number>:
9        ti,bq20z75
10
11 Optional properties :
12  - sbs,i2c-retry-count : The number of times to retry i2c transactions on i2c
13    IO failure.
14  - sbs,poll-retry-count : The number of times to try looking for new status
15    after an external change notification.
16  - sbs,battery-detect-gpios : The gpio which signals battery detection and
17    a flag specifying its polarity.
18
19 Example:
20
21         battery@b {
22                 compatible = "ti,bq20z75", "sbs,sbs-battery";
23                 reg = <0xb>;
24                 sbs,i2c-retry-count = <2>;
25                 sbs,poll-retry-count = <10>;
26                 sbs,battery-detect-gpios = <&gpio-controller 122 1>;
27         }