18c2ecf20Sopenharmony_ciDevice-Tree bindings for charger of Active-semi ACT8945A Multi-Function Device
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci - compatible: "active-semi,act8945a-charger".
58c2ecf20Sopenharmony_ci - active-semi,chglev-gpios: charge current level phandle with args
68c2ecf20Sopenharmony_ci   as described in ../gpio/gpio.txt.
78c2ecf20Sopenharmony_ci - active-semi,lbo-gpios: specify the low battery voltage detect phandle
88c2ecf20Sopenharmony_ci   with args as as described in ../gpio/gpio.txt.
98c2ecf20Sopenharmony_ci - interrupts: <a b> where a is the interrupt number and b is a
108c2ecf20Sopenharmony_ci   field that represents an encoding of the sense and level
118c2ecf20Sopenharmony_ci   information for the interrupt.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciOptional properties:
148c2ecf20Sopenharmony_ci - active-semi,input-voltage-threshold-microvolt: unit: mV;
158c2ecf20Sopenharmony_ci   Specifies the charger's input over-voltage threshold value;
168c2ecf20Sopenharmony_ci   The value can be: 6600, 7000, 7500, 8000; default: 6600
178c2ecf20Sopenharmony_ci - active-semi,precondition-timeout: unit: minutes;
188c2ecf20Sopenharmony_ci   Specifies the charger's PRECONDITION safety timer setting value;
198c2ecf20Sopenharmony_ci   The value can be: 40, 60, 80, 0; If 0, it means to disable this timer;
208c2ecf20Sopenharmony_ci   default: 40.
218c2ecf20Sopenharmony_ci - active-semi,total-timeout: unit: hours;
228c2ecf20Sopenharmony_ci   Specifies the charger's total safety timer setting value;
238c2ecf20Sopenharmony_ci   The value can be: 3, 4, 5, 0; If 0, it means to disable this timer;
248c2ecf20Sopenharmony_ci   default: 3.
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciExample:
278c2ecf20Sopenharmony_ci	pmic@5b {
288c2ecf20Sopenharmony_ci		compatible = "active-semi,act8945a";
298c2ecf20Sopenharmony_ci		reg = <0x5b>;
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci		charger {
328c2ecf20Sopenharmony_ci			compatible = "active-semi,act8945a-charger";
338c2ecf20Sopenharmony_ci			pinctrl-names = "default";
348c2ecf20Sopenharmony_ci			pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
358c2ecf20Sopenharmony_ci			interrupt-parent = <&pioA>;
368c2ecf20Sopenharmony_ci			interrupts = <45 IRQ_TYPE_LEVEL_LOW>;
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci			active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>;
398c2ecf20Sopenharmony_ci			active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>;
408c2ecf20Sopenharmony_ci			active-semi,input-voltage-threshold-microvolt = <6600>;
418c2ecf20Sopenharmony_ci			active-semi,precondition-timeout = <40>;
428c2ecf20Sopenharmony_ci			active-semi,total-timeout = <3>;
438c2ecf20Sopenharmony_ci		};
448c2ecf20Sopenharmony_ci	};
45