xref: /linux/Documentation/ABI/testing/sysfs-class-power-twl4030 (revision 4c9e94dff65ca75b917ff0b5de2e44881062a8e8)
1What: /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:
7
8		=============	===========================================
9		"auto"		draw power as appropriate for detected
10				power source and battery status.
11		"off"		do not draw any power.
12		"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		=============	===========================================
21
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:
28
29		======	===========================================
30		"auto"	draw power as appropriate for detected
31			power source and battery status.
32		"off"	do not draw any power.
33		======	===========================================
34