xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/act8945a-charger.txt (revision cab6a39d7b343596a5823e65c0f7b426551ec22d)
1Device-Tree bindings for charger of Active-semi ACT8945A Multi-Function Device
2
3Required 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
13Optional properties:
14 - active-semi,input-voltage-threshold-microvolt: unit: mV;
15   Specifies the charger's input over-voltage threshold value;
16   The value can be: 6600, 7000, 7500, 8000; default: 6600
17 - active-semi,precondition-timeout: unit: minutes;
18   Specifies the charger's PRECONDITION safety timer setting value;
19   The value can be: 40, 60, 80, 0; If 0, it means to disable this timer;
20   default: 40.
21 - active-semi,total-timeout: unit: hours;
22   Specifies the charger's total safety timer setting value;
23   The value can be: 3, 4, 5, 0; If 0, it means to disable this timer;
24   default: 3.
25
26Example:
27	pmic@5b {
28		compatible = "active-semi,act8945a";
29		reg = <0x5b>;
30
31		charger {
32			compatible = "active-semi,act8945a-charger";
33			pinctrl-names = "default";
34			pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
35			interrupt-parent = <&pioA>;
36			interrupts = <45 IRQ_TYPE_LEVEL_LOW>;
37
38			active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>;
39			active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>;
40			active-semi,input-voltage-threshold-microvolt = <6600>;
41			active-semi,precondition-timeout = <40>;
42			active-semi,total-timeout = <3>;
43		};
44	};
45