-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ab8500: Add devicetree support for fuelgauge
- This patch adds device tree support for fuelgauge driver - optimize bm devices platform_data usage and of_probe(...) Note: of_probe() routine for battery managed devices is made common across all bm drivers. - test status: - interrupt numbers assigned differs between legacy and FDT mode. Signed-off-by: Rajanikanth H.V <rajanikanth.hv@stericsson.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
- Loading branch information
Rajanikanth H.V
authored and
Anton Vorontsov
committed
Nov 19, 2012
1 parent
e9f14c1
commit e0f1abe
Showing
11 changed files
with
667 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
Documentation/devicetree/bindings/power_supply/ab8500/fg.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
=== AB8500 Fuel Gauge Driver === | ||
|
||
AB8500 is a mixed signal multimedia and power management | ||
device comprising: power and energy-management-module, | ||
wall-charger, usb-charger, audio codec, general purpose adc, | ||
tvout, clock management and sim card interface. | ||
|
||
Fuelgauge support is part of energy-management-modules, other | ||
components of this module are: | ||
main-charger, usb-combo-charger and battery-temperature-monitoring. | ||
|
||
The properties below describes the node for fuelgauge driver. | ||
|
||
Required Properties: | ||
- compatible = This shall be: "stericsson,ab8500-fg" | ||
- battery = Shall be battery specific information | ||
Example: | ||
ab8500_fg { | ||
compatible = "stericsson,ab8500-fg"; | ||
battery = <&ab8500_battery>; | ||
}; | ||
|
||
dependent node: | ||
ab8500_battery: ab8500_battery { | ||
}; | ||
This node will provide information on 'thermistor interface' and | ||
'battery technology type' used. | ||
|
||
Properties of this node are: | ||
thermistor-on-batctrl: | ||
A boolean value indicating thermistor interface to battery | ||
|
||
Note: | ||
'btemp' and 'batctrl' are the pins interfaced for battery temperature | ||
measurement, 'btemp' signal is used when NTC(negative temperature | ||
coefficient) resister is interfaced external to battery whereas | ||
'batctrl' pin is used when NTC resister is internal to battery. | ||
|
||
Example: | ||
ab8500_battery: ab8500_battery { | ||
thermistor-on-batctrl; | ||
}; | ||
indicates: NTC resister is internal to battery, 'batctrl' is used | ||
for thermal measurement. | ||
|
||
The absence of property 'thermal-on-batctrl' indicates | ||
NTC resister is external to battery and 'btemp' signal is used | ||
for thermal measurement. | ||
|
||
battery-type: | ||
This shall be the battery manufacturing technology type, | ||
allowed types are: | ||
"UNKNOWN" "NiMH" "LION" "LIPO" "LiFe" "NiCd" "LiMn" | ||
Example: | ||
ab8500_battery: ab8500_battery { | ||
stericsson,battery-type = "LIPO"; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.