From 1bdbb13c6d5fa19d3b94c2274ade03b7deb815bb Mon Sep 17 00:00:00 2001 From: Chaitanya Bandi Date: Fri, 14 Mar 2014 12:28:28 +0530 Subject: 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 Reviewed-on: http://git-master/r/380285 Reviewed-by: Laxman Dewangan --- Documentation/devicetree/bindings/power/bq2477x-charger.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Documentation') 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>; }; -- cgit v1.2.3