aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>2012-07-05 07:29:12 -0400
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-07-13 23:41:58 -0400
commite908c41806bdb9151c8f875c4f9d73c6f66e3bc8 (patch)
treeb8549056773d7686d90a05119f24053995a2d30d /Documentation
parenta66f59ba2e994bf70274ef0513e24e0e7ae20c63 (diff)
power_supply: Add min/max alert properties for CAPACITY, TEMP, TEMP_AMBIENT
Minimum and maximum alerts on power supply properties will help or allow the user space to "proactively" create policies like connect/disconnect charger or stop/start the user apps based on capacity or temperature parameters. These parameters can be used to avoid unnecessary polling from user space and even from kernel space if the underlying HW can support INT triggers (ex: max17042/47). This patch adds the following power supply alert type properties: CAPACITY_ALERT_MIN CAPACITY_ALERT_MAX TEMP_ALERT_MIN TEMP_ALERT_MAX TEMP_AMBIENT_ALERT_MIN TEMP_AMBIENT_ALERT_MAX Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/power/power_supply_class.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/power/power_supply_class.txt b/Documentation/power/power_supply_class.txt
index c0f62ae2b5e0..2f0ddc15b5ac 100644
--- a/Documentation/power/power_supply_class.txt
+++ b/Documentation/power/power_supply_class.txt
@@ -119,11 +119,17 @@ CONSTANT_CHARGE_VOLTAGE - constant charge voltage programmed by charger.
119ENERGY_FULL, ENERGY_EMPTY - same as above but for energy. 119ENERGY_FULL, ENERGY_EMPTY - same as above but for energy.
120 120
121CAPACITY - capacity in percents. 121CAPACITY - capacity in percents.
122CAPACITY_ALERT_MIN - minimum capacity alert value in percents.
123CAPACITY_ALERT_MAX - maximum capacity alert value in percents.
122CAPACITY_LEVEL - capacity level. This corresponds to 124CAPACITY_LEVEL - capacity level. This corresponds to
123POWER_SUPPLY_CAPACITY_LEVEL_*. 125POWER_SUPPLY_CAPACITY_LEVEL_*.
124 126
125TEMP - temperature of the power supply. 127TEMP - temperature of the power supply.
128TEMP_ALERT_MIN - minimum battery temperature alert value in milli centigrade.
129TEMP_ALERT_MAX - maximum battery temperature alert value in milli centigrade.
126TEMP_AMBIENT - ambient temperature. 130TEMP_AMBIENT - ambient temperature.
131TEMP_AMBIENT_ALERT_MIN - minimum ambient temperature alert value in milli centigrade.
132TEMP_AMBIENT_ALERT_MAX - maximum ambient temperature alert value in milli centigrade.
127 133
128TIME_TO_EMPTY - seconds left for battery to be considered empty (i.e. 134TIME_TO_EMPTY - seconds left for battery to be considered empty (i.e.
129while battery powers a load) 135while battery powers a load)