blob: b52f7023f8ba0123334e14c3f920c64d3304e786 [file] [log] [blame]
NeilBrown22d4c332015-07-30 10:11:24 +10001What: /sys/class/power_supply/twl4030_usb/mode
2Description:
3 Changing mode for USB port.
4 Writing to this can disable charging.
5
6 Possible values are:
NeilBrown7f4a6332015-07-30 10:11:24 +10007
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +01008 ============= ===========================================
Mauro Carvalho Chehab54a19b42020-10-30 08:40:50 +01009 "auto" draw power as appropriate for detected
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010010 power source and battery status.
Mauro Carvalho Chehab54a19b42020-10-30 08:40:50 +010011 "off" do not draw any power.
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010012 "continuous" activate mode described as "linear" in
13 TWL data sheets. This uses whatever
14 current is available and doesn't switch off
15 when voltage drops.
16
17 This is useful for unstable power sources
18 such as bicycle dynamo, but care should
19 be taken that battery is not over-charged.
20 ============= ===========================================
NeilBrownb04b9082015-07-30 10:11:24 +100021
22What: /sys/class/power_supply/twl4030_ac/mode
23Description:
24 Changing mode for 'ac' port.
25 Writing to this can disable charging.
26
27 Possible values are:
Mauro Carvalho Chehab34433332020-10-30 08:40:39 +010028
29 ====== ===========================================
30 "auto" draw power as appropriate for detected
31 power source and battery status.
32 "off" do not draw any power.
33 ====== ===========================================