WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / power / supply / sc2731_charger.txt
blob5266fab165754b6bdf87afdd0bae4e901e403b88
1 Spreadtrum SC2731 PMIC battery charger binding
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.
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
15 Example:
17         bat: battery {
18                 compatible = "simple-battery";
19                 charge-term-current-microamp = <120000>;
20                 constant-charge-voltage-max-microvolt = <4350000>;
21                 ......
22         };
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>;
34                 charger@0 {
35                         compatible = "sprd,sc2731-charger";
36                         reg = <0x0>;
37                         phys = <&ssphy>;
38                         monitored-battery = <&bat>;
39                 };
40         };