Commit | Line | Data |
---|---|---|
aca3c354 N |
1 | What: /sys/class/power_supply/twl4030_ac/max_current |
2 | /sys/class/power_supply/twl4030_usb/max_current | |
3 | Description: | |
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. | |
22d4c33f N |
16 | |
17 | ||
18 | What: /sys/class/power_supply/twl4030_usb/mode | |
19 | Description: | |
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. | |
7f4a633d N |
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. | |
b04b908d N |
36 | |
37 | What: /sys/class/power_supply/twl4030_ac/mode | |
38 | Description: | |
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. |