-
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.
Merge tag 'for-v3.8-merged' of git://git.infradead.org/battery-2.6
Pull battery subsystem updates from Anton Vorontsov: "Highlights: - Two new drivers from Pali Rohár and N900 hackers: rx51_battery and bq2415x_charger. The drivers are a part of a solution to replace the proprietary Nokia BME stack - Power supply core now registers devices with a thermal cooling subsystem, so we can now automatically throttle charging. Thanks to Ramakrishna Pallala! - Device tree support for ab8500 and max8925_power drivers - Random fixups and enhancements for a bunch of drivers." * tag 'for-v3.8-merged' of git://git.infradead.org/battery-2.6: (22 commits) max8925_power: Add support for device-tree initialization ab8500: Add devicetree support for chargalg ab8500: Add devicetree support for charger ab8500: Add devicetree support for btemp ab8500: Add devicetree support for fuelgauge twl4030_charger: Change TWL4030_MODULE_* ids to TWL_MODULE_* jz4740-battery: Use devm_request_and_ioremap jz4740-battery: Use devm_kzalloc bq27x00_battery: Fixup nominal available capacity reporting bq2415x_charger: Fix style issues bq2415x_charger: Add Kconfig/Makefile entries power_supply: Add bq2415x charger driver power_supply: Add new Nokia RX-51 (N900) power supply battery driver max17042_battery: Fix missing verify_model_lock() return value check ds2782_battery: Fix signedness bug in ds278x_read_reg16() lp8788-charger: Fix ADC channel names lp8788-charger: Fix wrong ADC conversion lp8788-charger: Use consumer device name on setting IIO channels power_supply: Register power supply for thermal cooling device power_supply: Add support for CHARGE_CONTROL_* attributes ...
- Loading branch information
Showing
31 changed files
with
3,123 additions
and
280 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
16 changes: 16 additions & 0 deletions
16
Documentation/devicetree/bindings/power_supply/ab8500/btemp.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,16 @@ | ||
=== AB8500 Battery Temperature Monitor Driver === | ||
|
||
The properties below describes the node for btemp driver. | ||
|
||
Required Properties: | ||
- compatible = Shall be: "stericsson,ab8500-btemp" | ||
- battery = Shall be battery specific information | ||
|
||
Example: | ||
ab8500_btemp { | ||
compatible = "stericsson,ab8500-btemp"; | ||
battery = <&ab8500_battery>; | ||
}; | ||
|
||
For information on battery specific node, Ref: | ||
Documentation/devicetree/bindings/power_supply/ab8500/fg.txt |
16 changes: 16 additions & 0 deletions
16
Documentation/devicetree/bindings/power_supply/ab8500/chargalg.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,16 @@ | ||
=== AB8500 Charging Algorithm Driver === | ||
|
||
The properties below describes the node for chargalg driver. | ||
|
||
Required Properties: | ||
- compatible = Shall be: "stericsson,ab8500-chargalg" | ||
- battery = Shall be battery specific information | ||
|
||
Example: | ||
ab8500_chargalg { | ||
compatible = "stericsson,ab8500-chargalg"; | ||
battery = <&ab8500_battery>; | ||
}; | ||
|
||
For information on battery specific node, Ref: | ||
Documentation/devicetree/bindings/power_supply/ab8500/fg.txt |
25 changes: 25 additions & 0 deletions
25
Documentation/devicetree/bindings/power_supply/ab8500/charger.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,25 @@ | ||
=== AB8500 Charger Driver === | ||
|
||
Required Properties: | ||
- compatible = Shall be "stericsson,ab8500-charger" | ||
- battery = Shall be battery specific information | ||
Example: | ||
ab8500_charger { | ||
compatible = "stericsson,ab8500-charger"; | ||
battery = <&ab8500_battery>; | ||
}; | ||
|
||
- vddadc-supply: Supply for USB and Main charger | ||
Example: | ||
ab8500-charger { | ||
vddadc-supply = <&ab8500_ldo_tvout_reg>; | ||
} | ||
- autopower_cfg: | ||
Boolean value depicting the presence of 'automatic poweron after powerloss' | ||
Example: | ||
ab8500-charger { | ||
autopower_cfg; | ||
}; | ||
|
||
For information on battery specific node, Ref: | ||
Documentation/devicetree/bindings/power_supply/ab8500/fg.txt |
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
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.