Skip to content

Commit 8d1f326

Browse files
wangbaolin719sre
authored andcommitted
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>
1 parent 079cdff commit 8d1f326

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Spreadtrum SC2731 PMIC battery charger binding
2+
3+
Required properties:
4+
- compatible: Should be "sprd,sc2731-charger".
5+
- reg: Address offset of charger register.
6+
- phys: Contains a phandle to the USB phy.
7+
8+
Optional Properties:
9+
- monitored-battery: phandle of battery characteristics devicetree node.
10+
The charger uses the following battery properties:
11+
- charge-term-current-microamp: current for charge termination phase.
12+
- constant-charge-voltage-max-microvolt: maximum constant input voltage.
13+
See Documentation/devicetree/bindings/power/supply/battery.txt
14+
15+
Example:
16+
17+
bat: battery {
18+
compatible = "simple-battery";
19+
charge-term-current-microamp = <120000>;
20+
constant-charge-voltage-max-microvolt = <4350000>;
21+
......
22+
};
23+
24+
sc2731_pmic: pmic@0 {
25+
compatible = "sprd,sc2731";
26+
reg = <0>;
27+
spi-max-frequency = <26000000>;
28+
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
29+
interrupt-controller;
30+
#interrupt-cells = <2>;
31+
#address-cells = <1>;
32+
#size-cells = <0>;
33+
34+
charger@0 {
35+
compatible = "sprd,sc2731-charger";
36+
reg = <0x0>;
37+
phys = <&ssphy>;
38+
monitored-battery = <&bat>;
39+
};
40+
};

0 commit comments

Comments
 (0)