1max17040_battery 2~~~~~~~~~~~~~~~~ 3 4Required properties : 5 - compatible : "maxim,max17040" or "maxim,max77836-battery" 6 - reg: i2c slave address 7 8Optional 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 20Optional properties support interrupt functionality for alert low state of 21charge level, present in some ICs in the same family, and should be used with 22compatible "maxim,max77836-battery". 23 24Example: 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 }; 34