Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[sfrench/cifs-2.6.git] / Documentation / ABI / testing / sysfs-class-power
index 5e23e22dce1b514d133ac6371163da37fe5a7ed1..b77e30b9014efb862f12e71f3e5efcee7431b805 100644 (file)
@@ -114,15 +114,60 @@ Description:
                Access: Read
                Valid values: Represented in microamps
 
                Access: Read
                Valid values: Represented in microamps
 
+What:          /sys/class/power_supply/<supply_name>/charge_control_limit
+Date:          Oct 2012
+Contact:       linux-pm@vger.kernel.org
+Description:
+               Maximum allowable charging current. Used for charge rate
+               throttling for thermal cooling or improving battery health.
+
+               Access: Read, Write
+               Valid values: Represented in microamps
+
+What:          /sys/class/power_supply/<supply_name>/charge_control_limit_max
+Date:          Oct 2012
+Contact:       linux-pm@vger.kernel.org
+Description:
+               Maximum legal value for the charge_control_limit property.
+
+               Access: Read
+               Valid values: Represented in microamps
+
+What:          /sys/class/power_supply/<supply_name>/charge_control_start_threshold
+Date:          April 2019
+Contact:       linux-pm@vger.kernel.org
+Description:
+               Represents a battery percentage level, below which charging will
+               begin.
+
+               Access: Read, Write
+               Valid values: 0 - 100 (percent)
+
+What:          /sys/class/power_supply/<supply_name>/charge_control_end_threshold
+Date:          April 2019
+Contact:       linux-pm@vger.kernel.org
+Description:
+               Represents a battery percentage level, above which charging will
+               stop.
+
+               Access: Read, Write
+               Valid values: 0 - 100 (percent)
+
 What:          /sys/class/power_supply/<supply_name>/charge_type
 Date:          July 2009
 Contact:       linux-pm@vger.kernel.org
 Description:
                Represents the type of charging currently being applied to the
 What:          /sys/class/power_supply/<supply_name>/charge_type
 Date:          July 2009
 Contact:       linux-pm@vger.kernel.org
 Description:
                Represents the type of charging currently being applied to the
-               battery.
+               battery. "Trickle", "Fast", and "Standard" all mean different
+               charging speeds. "Adaptive" means that the charger uses some
+               algorithm to adjust the charge rate dynamically, without
+               any user configuration required. "Custom" means that the charger
+               uses the charge_control_* properties as configuration for some
+               different algorithm.
 
 
-               Access: Read
-               Valid values: "Unknown", "N/A", "Trickle", "Fast"
+               Access: Read, Write
+               Valid values: "Unknown", "N/A", "Trickle", "Fast", "Standard",
+                             "Adaptive", "Custom"
 
 What:          /sys/class/power_supply/<supply_name>/charge_term_current
 Date:          July 2014
 
 What:          /sys/class/power_supply/<supply_name>/charge_term_current
 Date:          July 2014