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.9' of git://git.kernel.org/pub/scm/linux/kernel/git…
…/sre/linux-power-supply Pull power supply and reset updates from Sebastian Reichel: - move power supply drivers to drivers/power/supply - unify location of power supply DT documentation - tps65217-charger: IRQ support - act8945a-charger: misc. cleanups & improvements - sbs-battery cleanup - fix users of deprecated create_singlethread_workqueue() - misc fixes. * tag 'for-v4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (46 commits) power: supply: bq27xxx_battery: allow kernel poll_interval parameter runtime update power: supply: sbs-battery: Cleanup removal of chip->pdata power: reset: st: Remove obsolete platforms from dt doc power: reset: st-poweroff: Remove obsolete platforms. power: reset: zx-reboot: Unmap region obtained by of_iomap power: reset: xgene-reboot: Unmap region obtained by of_iomap power: supply: ab8500: cleanup with list_first_entry_or_null() power: reset: add in missing white space in error message text sbs-battery: make writes to ManufacturerAccess optional power: bq24257: Fix use of uninitialized pointer bq->charger power: supply: sbs-battery: simplify DT parsing power: supply: bq24735-charger: Request status GPIO with initial input setup power: supply: sbs-battery: Use gpio_desc and sleeping calls for battery detect power: supply: act8945a_charger: Add max current property power: supply: act8945a_charger: Add capacity level property doc: bindings: power: act8945a-charger: Update properties. power: supply: act8945a_charger: Fix the power supply type power: supply: act8945a_charger: Add status change update support power: supply: act8945a_charger: Improve state handling power: supply: act8945a_charger: Remove "battery_temperature" ...
- Loading branch information
Showing
131 changed files
with
1,638 additions
and
1,315 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
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
35 changes: 0 additions & 35 deletions
35
Documentation/devicetree/bindings/power/act8945a-charger.txt
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
*Device-Tree bindings for ST SW reset functionality | ||
|
||
Required properties: | ||
- compatible: should be "st,<chip>-restart". | ||
- compatible: should be "stih407-restart". | ||
- st,syscfg: should be a phandle of the syscfg node. | ||
|
||
Example node: | ||
restart { | ||
compatible = "st,stih416-restart"; | ||
st,syscfg = <&syscfg_sbc>; | ||
compatible = "st,stih407-restart"; | ||
st,syscfg = <&syscfg_sbc_reg>; | ||
status = "okay"; | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
Documentation/devicetree/bindings/power/supply/act8945a-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,48 @@ | ||
Device-Tree bindings for charger of Active-semi ACT8945A Multi-Function Device | ||
|
||
Required properties: | ||
- compatible: "active-semi,act8945a-charger". | ||
- active-semi,chglev-gpios: charge current level phandle with args | ||
as described in ../gpio/gpio.txt. | ||
- active-semi,lbo-gpios: specify the low battery voltage detect phandle | ||
with args as as described in ../gpio/gpio.txt. | ||
- interrupts: <a b> where a is the interrupt number and b is a | ||
field that represents an encoding of the sense and level | ||
information for the interrupt. | ||
- interrupt-parent: the phandle for the interrupt controller that | ||
services interrupts for this device. | ||
|
||
Optional properties: | ||
- active-semi,input-voltage-threshold-microvolt: unit: mV; | ||
Specifies the charger's input over-voltage threshold value; | ||
The value can be: 6600, 7000, 7500, 8000; default: 6600 | ||
- active-semi,precondition-timeout: unit: minutes; | ||
Specifies the charger's PRECONDITION safety timer setting value; | ||
The value can be: 40, 60, 80, 0; If 0, it means to disable this timer; | ||
default: 40. | ||
- active-semi,total-timeout: unit: hours; | ||
Specifies the charger's total safety timer setting value; | ||
The value can be: 3, 4, 5, 0; If 0, it means to disable this timer; | ||
default: 3. | ||
|
||
Example: | ||
pmic@5b { | ||
compatible = "active-semi,act8945a"; | ||
reg = <0x5b>; | ||
status = "okay"; | ||
|
||
charger { | ||
compatible = "active-semi,act8945a-charger"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>; | ||
interrupt-parent = <&pioA>; | ||
interrupts = <45 GPIO_ACTIVE_LOW>; | ||
|
||
active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>; | ||
active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>; | ||
active-semi,input-voltage-threshold-microvolt = <6600>; | ||
active-semi,precondition-timeout = <40>; | ||
active-semi,total-timeout = <3>; | ||
status = "okay"; | ||
}; | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.