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: |
NeilBrown | 7f4a633 | 2015-07-30 10:11:24 +1000 | [diff] [blame] | 7 | |
Mauro Carvalho Chehab | 3443333 | 2020-10-30 08:40:39 +0100 | [diff] [blame] | 8 | ============= =========================================== |
Mauro Carvalho Chehab | 54a19b4 | 2020-10-30 08:40:50 +0100 | [diff] [blame] | 9 | "auto" draw power as appropriate for detected |
Mauro Carvalho Chehab | 3443333 | 2020-10-30 08:40:39 +0100 | [diff] [blame] | 10 | power source and battery status. |
Mauro Carvalho Chehab | 54a19b4 | 2020-10-30 08:40:50 +0100 | [diff] [blame] | 11 | "off" do not draw any power. |
Mauro Carvalho Chehab | 3443333 | 2020-10-30 08:40:39 +0100 | [diff] [blame] | 12 | "continuous" activate mode described as "linear" in |
| 13 | TWL data sheets. This uses whatever |
| 14 | current is available and doesn't switch off |
| 15 | when voltage drops. |
| 16 | |
| 17 | This is useful for unstable power sources |
| 18 | such as bicycle dynamo, but care should |
| 19 | be taken that battery is not over-charged. |
| 20 | ============= =========================================== |
NeilBrown | b04b908 | 2015-07-30 10:11:24 +1000 | [diff] [blame] | 21 | |
| 22 | What: /sys/class/power_supply/twl4030_ac/mode |
| 23 | Description: |
| 24 | Changing mode for 'ac' port. |
| 25 | Writing to this can disable charging. |
| 26 | |
| 27 | Possible values are: |
Mauro Carvalho Chehab | 3443333 | 2020-10-30 08:40:39 +0100 | [diff] [blame] | 28 | |
| 29 | ====== =========================================== |
| 30 | "auto" draw power as appropriate for detected |
| 31 | power source and battery status. |
| 32 | "off" do not draw any power. |
| 33 | ====== =========================================== |