NeilBrown | 22d4c33 | 2015-07-30 10:11:24 +1000 | [diff] [blame] | 1 | What: /sys/class/power_supply/twl4030_usb/mode |
| 2 | Description: |
| 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. |
NeilBrown | 7f4a633 | 2015-07-30 10:11:24 +1000 | [diff] [blame] | 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. |
NeilBrown | b04b908 | 2015-07-30 10:11:24 +1000 | [diff] [blame] | 19 | |
| 20 | What: /sys/class/power_supply/twl4030_ac/mode |
| 21 | Description: |
| 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. |