Merge tag 'for-v5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / power / supply / max17040_battery.txt
1 max17040_battery
2 ~~~~~~~~~~~~~~~~
3
4 Required properties :
5  - compatible : "maxim,max17040" or "maxim,max77836-battery"
6  - reg: i2c slave address
7
8 Optional properties :
9 - maxim,alert-low-soc-level :   The alert threshold that sets the state of
10                                 charge level (%) where an interrupt is
11                                 generated. Can be configured from 1 up to 32
12                                 (%). If skipped the power up default value of
13                                 4 (%) will be used.
14 - interrupts :                  Interrupt line see Documentation/devicetree/
15                                 bindings/interrupt-controller/interrupts.txt
16 - wakeup-source :               This device has wakeup capabilities. Use this
17                                 property to use alert low SOC level interrupt
18                                 as wake up source.
19
20 Optional properties support interrupt functionality for alert low state of
21 charge level, present in some ICs in the same family, and should be used with
22 compatible "maxim,max77836-battery".
23
24 Example:
25
26         battery-fuel-gauge@36 {
27                 compatible = "maxim,max77836-battery";
28                 reg = <0x36>;
29                 maxim,alert-low-soc-level = <10>;
30                 interrupt-parent = <&gpio7>;
31                 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
32                 wakeup-source;
33         };