mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

On the Huawei Matebook E Go tablet the EC provides access to the adapter and battery status. Add the driver to read power supply status on the tablet. This driver is inspired by the following drivers: drivers/power/supply/lenovo_yoga_c630_battery.c drivers/platform/arm64/acer-aspire1-ec.c drivers/acpi/battery.c drivers/acpi/ac.c base-commit: 613af589b566093ce7388bf3202fca70d742c166 Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com> Link: https://lore.kernel.org/r/20250313103437.108772-1-mitltlatltl@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
27 lines
853 B
Text
27 lines
853 B
Text
What: /sys/class/power_supply/gaokun-ec-battery/smart_charge_delay
|
|
Date: March 2025
|
|
KernelVersion: 6.15
|
|
Contact: Pengyu Luo <mitltlatltl@gmail.com>
|
|
Description:
|
|
This entry allows configuration of smart charging delay.
|
|
|
|
Smart charging behavior: when the power adapter is connected
|
|
for delay hours, battery charging will follow the rules of
|
|
charge_control_start_threshold and charge_control_end_threshold.
|
|
For more information about charge control, please refer to
|
|
sysfs-class-power.
|
|
|
|
Access: Read, Write
|
|
|
|
Valid values: In hours (non-negative)
|
|
|
|
What: /sys/class/power_supply/gaokun-ec-battery/battery_adaptive_charge
|
|
Date: March 2025
|
|
KernelVersion: 6.15
|
|
Contact: Pengyu Luo <mitltlatltl@gmail.com>
|
|
Description:
|
|
This entry allows enabling battery adaptive charging.
|
|
|
|
Access: Read, Write
|
|
|
|
Valid values: 0 (disabled) or 1 (enabled)
|