Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

ADD Full control of yank555.lu's Fast Charge #553

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

micky387
Copy link

This is a full interface for our fast charge.
You can customize your AC ,USB, and Wireless charging current

/*

  • Forced Fast Charge - SysFS interface :

  • /sys/kernel/fast_charge/force_fast_charge (rw)
  • 0 - disabled (default)
  • 1 - substitute AC to USB
  • 2 - use custom mA configured through sysfs interface (see below)
  • /sys/kernel/fast_charge/use_mtp_during_fast_charge (rw)
  • 0 - disabled
  • 1 - enabled (default)
  • /sys/kernel/fast_charge/screen_on_current_limit (rw)
  • 0 - disabled
  • 1 - enabled (default)
  • /sys/kernel/fast_charge/ac_charge_level (rw)
  • rate at which to charge when on AC (1.0A/h to 2.2A/h)
  • /sys/kernel/fast_charge/usb_charge_level (r/w)
  • rate at which to charge when on USB (0.460A/h to 1.2A/h)
  • /sys/kernel/fast_charge/wireless_charge_level (r/w)
  • rate at which to charge when on WIRELESS (0.650A/h to 1.4A/h)
  • /sys/kernel/fast_charge/failsafe (rw)
  • 0 - disabled - allow anything up to 2.2A/h to be used as AC / USB / WIRELESS custom current
  • 1 - enabled - behaviour as described above (default)
  • /sys/kernel/fast_charge/ac_levels (ro)
  • display available levels for AC (for failsafe enabled mode)
  • /sys/kernel/fast_charge/usb_levels (ro)
  • display available levels for USB (for failsafe enabled mode)
  • /sys/kernel/fast_charge/wireless_levels (ro)
  • display available levels for WIRELESS (for failsafe enabled mode)

*/

This is a full interface for our fast charge.
You can customize your AC ,USB, and Wireless charging current

/*
 * Forced Fast Charge - SysFS interface :
 * --------------------------------------
 *
 * /sys/kernel/fast_charge/force_fast_charge (rw)
 *
 *   0 - disabled (default)
 *   1 - substitute AC to USB
 *   2 - use custom mA configured through sysfs interface (see below)
 *
 * /sys/kernel/fast_charge/use_mtp_during_fast_charge (rw)
 *
 *   0 - disabled
 *   1 - enabled (default)
 *
 * /sys/kernel/fast_charge/screen_on_current_limit (rw)
 *
 *   0 - disabled
 *   1 - enabled (default)
 *
 * /sys/kernel/fast_charge/ac_charge_level (rw)
 *
 *   rate at which to charge when on AC (1.0A/h to 2.2A/h)
 *
 * /sys/kernel/fast_charge/usb_charge_level (r/w)
 *
 *   rate at which to charge when on USB (0.460A/h to 1.2A/h)
 *
 * /sys/kernel/fast_charge/wireless_charge_level (r/w)
 *
 *   rate at which to charge when on WIRELESS (0.650A/h to 1.4A/h)
 *
 * /sys/kernel/fast_charge/failsafe (rw)
 *
 *   0 - disabled - allow anything up to 2.2A/h to be used as AC / USB /  WIRELESS custom current
 *   1 - enabled  - behaviour as described above (default)
 *
 * /sys/kernel/fast_charge/ac_levels (ro)
 *
 *   display available levels for AC (for failsafe enabled mode)
 *
 * /sys/kernel/fast_charge/usb_levels (ro)
 *
 *   display available levels for USB (for failsafe enabled mode)
 *
 * /sys/kernel/fast_charge/wireless_levels (ro)
 *
 *   display available levels for WIRELESS (for failsafe enabled mode)
 *
 */
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant