NeilBrown | aca3c35 | 2015-07-30 10:11:24 +1000 | [diff] [blame] | 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. |
NeilBrown | 22d4c33 | 2015-07-30 10:11:24 +1000 | [diff] [blame^] | 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. |