aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2015-07-30 10:11:24 +1000
committerSebastian Reichel <sre@kernel.org>2015-08-05 05:21:57 +0200
commitb04b908d8a2901c2cc59db87defd9c08bd4293cc (patch)
treecc66542acca233a902d606d775b66c31a42193f9 /Documentation/ABI
parenttwl4030_charger: add software controlled linear charging mode. (diff)
downloadlinux-dev-b04b908d8a2901c2cc59db87defd9c08bd4293cc.tar.xz
linux-dev-b04b908d8a2901c2cc59db87defd9c08bd4293cc.zip
twl4030_charger: add ac/mode to match usb/mode
This allows AC charging to be turned off, much like usb charging. "continuous" mode is not available though. Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-class-power-twl403010
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-power-twl4030 b/Documentation/ABI/testing/sysfs-class-power-twl4030
index e8baa36aaa2b..be26af0f1895 100644
--- a/Documentation/ABI/testing/sysfs-class-power-twl4030
+++ b/Documentation/ABI/testing/sysfs-class-power-twl4030
@@ -33,3 +33,13 @@ Description:
This is useful for unstable power sources
such as bicycle dynamo, but care should
be taken that battery is not over-charged.
+
+What: /sys/class/power_supply/twl4030_ac/mode
+Description:
+ Changing mode for 'ac' port.
+ Writing to this can disable charging.
+
+ Possible values are:
+ "auto" - draw power as appropriate for detected
+ power source and battery status.
+ "off" - do not draw any power.