xref: /linux/Documentation/ABI/testing/sysfs-class-power-twl4030 (revision 64282ea2d2a90437c0739ce016b80a1dec16507e)
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		"auto" - draw power as appropriate for detected
8			 power source and battery status.
9		"off"  - do not draw any power.
10		"continuous"
11		       - activate mode described as "linear" in
12		         TWL data sheets.  This uses whatever
13			 current is available and doesn't switch off
14			 when voltage drops.
15
16			 This is useful for unstable power sources
17			 such as bicycle dynamo, but care should
18			 be taken that battery is not over-charged.
19
20What: /sys/class/power_supply/twl4030_ac/mode
21Description:
22	Changing mode for 'ac' port.
23	Writing to this can disable charging.
24
25	Possible values are:
26		"auto" - draw power as appropriate for detected
27			 power source and battery status.
28		"off"  - do not draw any power.
29