forked from torvalds/linux
-
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-v4.1' of git://git.infradead.org/battery-2.6
Pull power supply and reset changes from Sebastian Reichel: - new API for safe access of power supply function attrs - devres support for power supply (un)registration - new drivers / chips: - generic syscon based poweroff driver - iio & charger driver for da9150 - fuel gauge driver for axp288 - bq27x00: add support for bq27510 - bq2415x: add support for bq24157s - twl4030-madc-battery: convert to iio consumer - misc fixes * tag 'for-v4.1' of git://git.infradead.org/battery-2.6: (66 commits) power: twl4030_madc_battery: Add missing MODULE_ALIAS power: twl4030-madc-battery: Convert to iio consumer. dt: power: Add docs for generic SYSCON poweroff driver. power: reset: Add generic SYSCON register mapped poweroff. power: max17042_battery: add missed blank power: max17042_battery: Use reg type instead of chip type power/reset: at91: big endian fixes for atsama5d3x power_supply: charger-manager: Fix dereferencing of ERR_PTR HID: input: Fix NULL pointer dereference when power_supply_register fails power: constify of_device_id array power/reset/rmobile-reset.c: Fix !HAS_IOMEM build power_supply: 88pm860x_charger: Fix possible NULL pointer dereference and use of initialized variable arm: mach-pxa: Decrement the power supply's device reference counter mfd: ab8500: Decrement the power supply's device reference counter power_supply: bq2415x_charger: Decrement the power supply's device reference counter power_supply: 88pm860x_charger: Decrement the power supply's device reference counter x86/olpc/xo15/sci: Use newly added power_supply_put API x86/olpc/xo1/sci: Use newly added power_supply_put API power_supply: charger-manager: Decrement the power supply's device reference counter power_supply: Increment power supply use counter when obtaining references ...
- Loading branch information
Showing
106 changed files
with
5,435 additions
and
2,104 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
Documentation/devicetree/bindings/iio/adc/da9150-gpadc.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 @@ | ||
Dialog Semiconductor DA9150 IIO GPADC bindings | ||
|
||
Required properties: | ||
- compatible: "dlg,da9150-gpadc" for DA9150 IIO GPADC | ||
- #io-channel-cells: Should be set to <1> | ||
(See Documentation/devicetree/bindings/iio/iio-bindings.txt for further info) | ||
|
||
For further information on GPADC channels, see device datasheet. | ||
|
||
|
||
Example: | ||
|
||
gpadc: da9150-gpadc { | ||
compatible = "dlg,da9150-gpadc"; | ||
#io-channel-cells = <1>; | ||
}; |
26 changes: 26 additions & 0 deletions
26
Documentation/devicetree/bindings/power/da9150-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,26 @@ | ||
Dialog Semiconductor DA9150 Charger Power Supply bindings | ||
|
||
Required properties: | ||
- compatible: "dlg,da9150-charger" for DA9150 Charger Power Supply | ||
|
||
Optional properties: | ||
- io-channels: List of phandle and IIO specifier pairs | ||
- io-channel-names: List of channel names used by charger | ||
["CHAN_IBUS", "CHAN_VBUS", "CHAN_TJUNC", "CHAN_VBAT"] | ||
(See Documentation/devicetree/bindings/iio/iio-bindings.txt for further info) | ||
|
||
|
||
Example: | ||
|
||
da9150-charger { | ||
compatible = "dlg,da9150-charger"; | ||
|
||
io-channels = <&gpadc 0>, | ||
<&gpadc 2>, | ||
<&gpadc 8>, | ||
<&gpadc 5>; | ||
io-channel-names = "CHAN_IBUS", | ||
"CHAN_VBUS", | ||
"CHAN_TJUNC", | ||
"CHAN_VBAT"; | ||
}; |
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/power/reset/syscon-poweroff.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,23 @@ | ||
Generic SYSCON mapped register poweroff driver | ||
|
||
This is a generic poweroff driver using syscon to map the poweroff register. | ||
The poweroff is generally performed with a write to the poweroff register | ||
defined by the register map pointed by syscon reference plus the offset | ||
with the mask defined in the poweroff node. | ||
|
||
Required properties: | ||
- compatible: should contain "syscon-poweroff" | ||
- regmap: this is phandle to the register map node | ||
- offset: offset in the register map for the poweroff register (in bytes) | ||
- mask: the poweroff value written to the poweroff register (32 bit access) | ||
|
||
Default will be little endian mode, 32 bit access only. | ||
|
||
Examples: | ||
|
||
poweroff { | ||
compatible = "syscon-poweroff"; | ||
regmap = <®mapnode>; | ||
offset = <0x0>; | ||
mask = <0x7a>; | ||
}; |
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
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.