summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2016-12-16 10:44:00 +0100
committerSebastian Reichel <sre@kernel.org>2017-01-04 21:58:53 +0100
commit94c7073fe32a3254ac6bd3d194aa5ea230fed5c4 (patch)
treeadc27fa8faf69618a215cdcd7c90f61e7618550e /Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
parentd0ddcba9e9dea9b5d43782da096489b15ffca99f (diff)
downloadop-kernel-dev-94c7073fe32a3254ac6bd3d194aa5ea230fed5c4.zip
op-kernel-dev-94c7073fe32a3254ac6bd3d194aa5ea230fed5c4.tar.gz
dt-bindings: power: supply: bq24735: reverse the polarity of ac-detect
The ACOK pin on the bq24735 is active-high, of course meaning that when AC is OK the pin is high. However, all Tegra dts files have incorrectly specified active-high even though the signal is inverted on the Tegra boards. This has worked since the Linux driver has also inverted the meaning of the GPIO. Fix this situation by simply specifying in the bindings what everybody else agrees on; that the ti,ac-detect-gpios is active on AC adapter absence. Signed-off-by: Peter Rosin <peda@axentia.se> Acked-by: Jon Hunter <jonathanh@nvidia.com> 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.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/ti,bq24735.txt b/Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
index 3bf5575..c95e16e 100644
--- a/Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
+++ b/Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
@@ -8,8 +8,10 @@ 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.
+ status. This is a Host GPIO that is configured as an input and connected
+ to the ACOK pin on the bq24735. Note: for backwards compatibility reasons,
+ the GPIO must be active on AC adapter absence despite ACOK being active
+ (high) on AC adapter presence.
- 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
OpenPOWER on IntegriCloud