Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
29 lines
868 B
Plaintext
29 lines
868 B
Plaintext
What: /sys/class/power_supply/twl4030_usb/mode
|
|
Description:
|
|
Changing mode for USB port.
|
|
Writing to this can disable charging.
|
|
|
|
Possible values are:
|
|
"auto" - draw power as appropriate for detected
|
|
power source and battery status.
|
|
"off" - do not draw any power.
|
|
"continuous"
|
|
- activate mode described as "linear" in
|
|
TWL data sheets. This uses whatever
|
|
current is available and doesn't switch off
|
|
when voltage drops.
|
|
|
|
This is useful for unstable power sources
|
|
such as bicycle dynamo, but care should
|
|
be taken that battery is not over-charged.
|
|
|
|
What: /sys/class/power_supply/twl4030_ac/mode
|
|
Description:
|
|
Changing mode for 'ac' port.
|
|
Writing to this can disable charging.
|
|
|
|
Possible values are:
|
|
"auto" - draw power as appropriate for detected
|
|
power source and battery status.
|
|
"off" - do not draw any power.
|