aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/power/charger-manager.txt
diff options
context:
space:
mode:
authorDonggeun Kim <dg77.kim@samsung.com>2011-12-27 04:47:49 -0500
committerAnton Vorontsov <cbouatmailru@gmail.com>2012-01-03 23:08:45 -0500
commitad3d13eee78ec44194bf919a37e2f711e53cbdf0 (patch)
treee7a950b1e1d2642c4fae0a7019ac7ceed5241104 /Documentation/power/charger-manager.txt
parent3bb3dbbd56ea39e5537db8f8041ea95d28f16a7f (diff)
power_supply: Charger-Manager: Add properties for power-supply-class
Charger Manager provides power-supply-class aggregating information from multiple chargers and a fuel-gauge. Signed-off-by: Donggeun Kim <dg77.kim@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'Documentation/power/charger-manager.txt')
-rw-r--r--Documentation/power/charger-manager.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/power/charger-manager.txt b/Documentation/power/charger-manager.txt
index 081489f3db25..fdcca991df30 100644
--- a/Documentation/power/charger-manager.txt
+++ b/Documentation/power/charger-manager.txt
@@ -98,6 +98,11 @@ battery), an instance of Charger Manager is attached to it.
98 98
99struct charger_desc { 99struct charger_desc {
100 100
101char *psy_name;
102 : The power-supply-class name of the battery. Default is
103 "battery" if psy_name is NULL. Users can access the psy entries
104 at "/sys/class/power_supply/[psy_name]/".
105
101enum polling_modes polling_mode; 106enum polling_modes polling_mode;
102 : CM_POLL_DISABLE: do not poll this battery. 107 : CM_POLL_DISABLE: do not poll this battery.
103 CM_POLL_ALWAYS: always poll this battery. 108 CM_POLL_ALWAYS: always poll this battery.
@@ -106,6 +111,12 @@ enum polling_modes polling_mode;
106 CM_POLL_CHARGING_ONLY: poll this battery if and only if the 111 CM_POLL_CHARGING_ONLY: poll this battery if and only if the
107 battery is being charged. 112 battery is being charged.
108 113
114unsigned int fullbatt_uV;
115 : If specified with a non-zero value, Charger Manager assumes
116 that the battery is full (capacity = 100) if the battery is not being
117 charged and the battery voltage is equal to or greater than
118 fullbatt_uV.
119
109unsigned int polling_interval_ms; 120unsigned int polling_interval_ms;
110 : Required polling interval in ms. Charger Manager will poll 121 : Required polling interval in ms. Charger Manager will poll
111 this battery every polling_interval_ms or more frequently. 122 this battery every polling_interval_ms or more frequently.
@@ -131,10 +142,13 @@ char *psy_fuel_gauge;
131 : Power-supply-class name of the fuel gauge. 142 : Power-supply-class name of the fuel gauge.
132 143
133int (*temperature_out_of_range)(int *mC); 144int (*temperature_out_of_range)(int *mC);
145bool measure_battery_temp;
134 : This callback returns 0 if the temperature is safe for charging, 146 : This callback returns 0 if the temperature is safe for charging,
135 a positive number if it is too hot to charge, and a negative number 147 a positive number if it is too hot to charge, and a negative number
136 if it is too cold to charge. With the variable mC, the callback returns 148 if it is too cold to charge. With the variable mC, the callback returns
137 the temperature in 1/1000 of centigrade. 149 the temperature in 1/1000 of centigrade.
150 The source of temperature can be battery or ambient one according to
151 the value of measure_battery_temp.
138}; 152};
139 153
1405. Other Considerations 1545. Other Considerations