summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorChaitanya Bandi <bandik@nvidia.com>2014-03-14 12:28:28 +0530
committerLaxman Dewangan <ldewangan@nvidia.com>2014-03-19 04:31:28 -0700
commit1bdbb13c6d5fa19d3b94c2274ade03b7deb815bb (patch)
tree6931eb588bba8e28d97b535abe4108ccf1a68c14 /Documentation
parentecd7ce39e52296a1a9094af05311528749199c8d (diff)
power: bq2477x: Add adapter detection through GPIO
Added support for AC adapter detection through GPIO in bq2477x charger. Bug 1457299 Change-Id: I344d264312142121342403194aa5adeaec66d47d Signed-off-by: Chaitanya Bandi <bandik@nvidia.com> Reviewed-on: http://git-master/r/380285 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/power/bq2477x-charger.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/bq2477x-charger.txt b/Documentation/devicetree/bindings/power/bq2477x-charger.txt
index 6f9eee6a943f..33e90da6e6f3 100644
--- a/Documentation/devicetree/bindings/power/bq2477x-charger.txt
+++ b/Documentation/devicetree/bindings/power/bq2477x-charger.txt
@@ -8,6 +8,10 @@ Required properties :
- ti,dac-minsv : The minimum System voltage that must be programmed
- ti,dac-iin : The input current that must be programmed
- ti,wdt-refresh-timeout : watch dog timer that must be programmed
+ - charger-detect-gpio : the GPIO used for AC adapter detection
+ - ti,charger-detect-gpio-active-low : The flag that determines if AC adapter
+ presence is indicated by active low. Set this to 1 if active low
+ indicates adapter is present, else 0.
Example:
@@ -19,4 +23,6 @@ Example:
ti,dac-minsv = <4608>;
ti,dac-iin = <4992>;
ti,wdt-refresh-timeout = <40>;
+ charger-detect-gpio = <&gpio 85 0>;
+ ti,charger-detect-gpio-active-low = <1>;
};