Merge remote-tracking branch 'keys/keys-next'
[deliverable/linux.git] / Documentation / devicetree / bindings / power / supply / act8945a-charger.txt
1 Device-Tree bindings for charger of Active-semi ACT8945A Multi-Function Device
2
3 Required properties:
4 - compatible: "active-semi,act8945a-charger".
5 - active-semi,chglev-gpios: charge current level phandle with args
6 as described in ../gpio/gpio.txt.
7 - active-semi,lbo-gpios: specify the low battery voltage detect phandle
8 with args as as described in ../gpio/gpio.txt.
9 - interrupts: <a b> where a is the interrupt number and b is a
10 field that represents an encoding of the sense and level
11 information for the interrupt.
12 - interrupt-parent: the phandle for the interrupt controller that
13 services interrupts for this device.
14
15 Optional properties:
16 - active-semi,input-voltage-threshold-microvolt: unit: mV;
17 Specifies the charger's input over-voltage threshold value;
18 The value can be: 6600, 7000, 7500, 8000; default: 6600
19 - active-semi,precondition-timeout: unit: minutes;
20 Specifies the charger's PRECONDITION safety timer setting value;
21 The value can be: 40, 60, 80, 0; If 0, it means to disable this timer;
22 default: 40.
23 - active-semi,total-timeout: unit: hours;
24 Specifies the charger's total safety timer setting value;
25 The value can be: 3, 4, 5, 0; If 0, it means to disable this timer;
26 default: 3.
27
28 Example:
29 pmic@5b {
30 compatible = "active-semi,act8945a";
31 reg = <0x5b>;
32 status = "okay";
33
34 charger {
35 compatible = "active-semi,act8945a-charger";
36 pinctrl-names = "default";
37 pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
38 interrupt-parent = <&pioA>;
39 interrupts = <45 GPIO_ACTIVE_LOW>;
40
41 active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>;
42 active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>;
43 active-semi,input-voltage-threshold-microvolt = <6600>;
44 active-semi,precondition-timeout = <40>;
45 active-semi,total-timeout = <3>;
46 status = "okay";
47 };
48 };
This page took 0.034997 seconds and 5 git commands to generate.