power_supply: Add TI BQ24257 charger driver
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Thu, 16 Apr 2015 09:31:16 +0000 (12:31 +0300)
committerSebastian Reichel <sre@kernel.org>
Sat, 23 May 2015 16:54:34 +0000 (18:54 +0200)
Based on the datasheet found here:
http://www.ti.com/lit/ds/symlink/bq24257.pdf

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Documentation/devicetree/bindings/power/bq24257.txt [new file with mode: 0644]
drivers/power/Kconfig
drivers/power/Makefile
drivers/power/bq24257_charger.c [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/power/bq24257.txt b/Documentation/devicetree/bindings/power/bq24257.txt
new file mode 100644 (file)
index 0000000..5c9d394
--- /dev/null
@@ -0,0 +1,21 @@
+Binding for TI bq24257 Li-Ion Charger
+
+Required properties:
+- compatible: Should contain one of the following:
+ * "ti,bq24257"
+- reg:                    integer, i2c address of the device.
+- ti,battery-regulation-voltage: integer, maximum charging voltage in uV.
+- ti,charge-current:      integer, maximum charging current in uA.
+- ti,termination-current:  integer, charge will be terminated when current in
+                          constant-voltage phase drops below this value (in uA).
+
+Example:
+
+bq24257 {
+       compatible = "ti,bq24257";
+       reg = <0x6a>;
+
+       ti,battery-regulation-voltage = <4200000>;
+       ti,charge-current = <1000000>;
+       ti,termination-current = <50000>;
+};
Simple merge
Simple merge
Simple merge