mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
49fb384653
Since we now support the standard 'input_current_limit' property by
commit 3fb319c2cd
("power: supply: twl4030-charger: add writable INPUT_CURRENT_LIMIT property")
we can now remove the nonstandard 'max_current' sysfs attribute.
See Documentation/power/power_supply_class.txt line 125
Both are functionally equivalent. From ABI point of view it is just a rename
of the property.
This also removes the entry in Documentation/ABI/testing/sysfs-class-power-twl4030
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
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.
|