diff options
| -rw-r--r-- | Documentation/devicetree/bindings/power/supply/sc2731_charger.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/sc2731_charger.txt b/Documentation/devicetree/bindings/power/supply/sc2731_charger.txt new file mode 100644 index 000000000000..5266fab16575 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/sc2731_charger.txt | |||
| @@ -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 | }; | ||
