summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2016-06-17 14:12:47 +0200
committerSebastian Reichel <sre@kernel.org>2016-08-11 01:11:29 +0200
commitf3332532463fef7d56507c08b33993db398d7a91 (patch)
treee0fc566c557d70e103c51c7276c33ca57db37041 /Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
parent8c0984e5a75337df513047ec92a6c09d78e3e5cd (diff)
downloadop-kernel-dev-f3332532463fef7d56507c08b33993db398d7a91.zip
op-kernel-dev-f3332532463fef7d56507c08b33993db398d7a91.tar.gz
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/ti,bq24735.txt')
-rw-r--r--Documentation/devicetree/bindings/power/supply/ti,bq24735.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/ti,bq24735.txt b/Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
new file mode 100644
index 0000000..3bf5575
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
@@ -0,0 +1,35 @@
+TI BQ24735 Charge Controller
+~~~~~~~~~~
+
+Required properties :
+ - compatible : "ti,bq24735"
+
+Optional properties :
+ - interrupts : Specify the interrupt to be used to trigger when the AC
+ adapter is either plugged in or removed.
+ - ti,ac-detect-gpios : This GPIO is optionally used to read the AC adapter
+ presence. This is a Host GPIO that is configured as an input and
+ connected to the bq24735.
+ - ti,charge-current : Used to control and set the charging current. This value
+ must be between 128mA and 8.128A with a 64mA step resolution. The POR value
+ is 0x0000h. This number is in mA (e.g. 8192), see spec for more information
+ about the ChargeCurrent (0x14h) register.
+ - ti,charge-voltage : Used to control and set the charging voltage. This value
+ must be between 1.024V and 19.2V with a 16mV step resolution. The POR value
+ is 0x0000h. This number is in mV (e.g. 19200), see spec for more information
+ about the ChargeVoltage (0x15h) register.
+ - ti,input-current : Used to control and set the charger input current. This
+ value must be between 128mA and 8.064A with a 128mA step resolution. The
+ POR value is 0x1000h. This number is in mA (e.g. 8064), see the spec for
+ more information about the InputCurrent (0x3fh) register.
+ - ti,external-control : Indicates that the charger is configured externally
+ and that the host should not attempt to enable/disable charging or set the
+ charge voltage/current.
+
+Example:
+
+ bq24735@9 {
+ compatible = "ti,bq24735";
+ reg = <0x9>;
+ ti,ac-detect-gpios = <&gpio 72 0x1>;
+ }
OpenPOWER on IntegriCloud