1 What: /sys/class/power_supply/twl4030_ac/max_current
2 /sys/class/power_supply/twl4030_usb/max_current
4 Read/Write limit on current which may
5 be drawn from the ac (Accessory Charger) or
8 Value is in micro-Amps.
10 Value is set automatically to an appropriate
11 value when a cable is plugged or unplugged.
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.
18 What: /sys/class/power_supply/twl4030_usb/mode
20 Changing mode for USB port.
21 Writing to this can disable charging.
24 "auto" - draw power as appropriate for detected
25 power source and battery status.
26 "off" - do not draw any power.
28 - activate mode described as "linear" in
29 TWL data sheets. This uses whatever
30 current is available and doesn't switch off
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.
37 What: /sys/class/power_supply/twl4030_ac/mode
39 Changing mode for 'ac' port.
40 Writing to this can disable charging.
43 "auto" - draw power as appropriate for detected
44 power source and battery status.
45 "off" - do not draw any power.