diff options
author | Sebastian Reichel <sre@kernel.org> | 2016-06-17 14:12:47 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-08-11 01:11:29 +0200 |
commit | f3332532463fef7d56507c08b33993db398d7a91 (patch) | |
tree | e0fc566c557d70e103c51c7276c33ca57db37041 /Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt | |
parent | power: move power supply drivers to power/supply (diff) | |
download | linux-dev-f3332532463fef7d56507c08b33993db398d7a91.tar.xz linux-dev-f3332532463fef7d56507c08b33993db398d7a91.zip |
power/supply: unify DT documentation
Currently the power supply device tree documentation is spread
in .../bindings/power_supply and .../bindings/power. This
unifies the files for chargers and battery fuel gauges in
.../bindings/power/supply and the ones for system reset/shutdown
in .../bindings/power/reset (same structure as used for the
drivers itself).
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt')
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt b/Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt new file mode 100644 index 000000000000..c40e8926facf --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt @@ -0,0 +1,23 @@ +SBS sbs-battery +~~~~~~~~~~ + +Required properties : + - compatible : "sbs,sbs-battery" + +Optional properties : + - sbs,i2c-retry-count : The number of times to retry i2c transactions on i2c + IO failure. + - sbs,poll-retry-count : The number of times to try looking for new status + after an external change notification. + - sbs,battery-detect-gpios : The gpio which signals battery detection and + a flag specifying its polarity. + +Example: + + bq20z75@b { + compatible = "sbs,sbs-battery"; + reg = < 0xb >; + sbs,i2c-retry-count = <2>; + sbs,poll-retry-count = <10>; + sbs,battery-detect-gpios = <&gpio-controller 122 1>; + } |