xref: /linux/Documentation/ABI/testing/sysfs-class-power-twl4030 (revision 9f30a04d768f64280dc0c40b730746e82f298d88)
1What: /sys/class/power_supply/twl4030_ac/max_current
2      /sys/class/power_supply/twl4030_usb/max_current
3Description:
4	Read/Write limit on current which may
5	be drawn from the ac (Accessory Charger) or
6	USB port.
7
8	Value is in micro-Amps.
9
10	Value is set automatically to an appropriate
11	value when a cable is plugged or unplugged.
12
13	Value can the set by writing to the attribute.
14	The change will only persist until the next
15	plug event.  These event are reported via udev.
16
17
18What: /sys/class/power_supply/twl4030_usb/mode
19Description:
20	Changing mode for USB port.
21	Writing to this can disable charging.
22
23	Possible values are:
24		"auto" - draw power as appropriate for detected
25			 power source and battery status.
26		"off"  - do not draw any power.
27		"continuous"
28		       - activate mode described as "linear" in
29		         TWL data sheets.  This uses whatever
30			 current is available and doesn't switch off
31			 when voltage drops.
32
33			 This is useful for unstable power sources
34			 such as bicycle dynamo, but care should
35			 be taken that battery is not over-charged.
36
37What: /sys/class/power_supply/twl4030_ac/mode
38Description:
39	Changing mode for 'ac' port.
40	Writing to this can disable charging.
41
42	Possible values are:
43		"auto" - draw power as appropriate for detected
44			 power source and battery status.
45		"off"  - do not draw any power.
46