-
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.
dt-bindings: power: Add Spreadtrum SC2731 charger documentation
This patch adds the binding documentation for Spreadtrum SC2731 charger device. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
- Loading branch information
Baolin Wang
authored and
Sebastian Reichel
committed
Sep 20, 2018
1 parent
079cdff
commit 8d1f326
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
Documentation/devicetree/bindings/power/supply/sc2731_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,40 @@ | ||
Spreadtrum SC2731 PMIC battery charger binding | ||
|
||
Required properties: | ||
- compatible: Should be "sprd,sc2731-charger". | ||
- reg: Address offset of charger register. | ||
- phys: Contains a phandle to the USB phy. | ||
|
||
Optional Properties: | ||
- monitored-battery: phandle of battery characteristics devicetree node. | ||
The charger uses the following battery properties: | ||
- charge-term-current-microamp: current for charge termination phase. | ||
- constant-charge-voltage-max-microvolt: maximum constant input voltage. | ||
See Documentation/devicetree/bindings/power/supply/battery.txt | ||
|
||
Example: | ||
|
||
bat: battery { | ||
compatible = "simple-battery"; | ||
charge-term-current-microamp = <120000>; | ||
constant-charge-voltage-max-microvolt = <4350000>; | ||
...... | ||
}; | ||
|
||
sc2731_pmic: pmic@0 { | ||
compatible = "sprd,sc2731"; | ||
reg = <0>; | ||
spi-max-frequency = <26000000>; | ||
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
charger@0 { | ||
compatible = "sprd,sc2731-charger"; | ||
reg = <0x0>; | ||
phys = <&ssphy>; | ||
monitored-battery = <&bat>; | ||
}; | ||
}; |