1 # SPDX-License-Identifier: GPL-2.0
4 $id: "http://devicetree.org/schemas/power/supply/maxim,max17040.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: Maxim 17040 fuel gauge series
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
26 - maxim,max77836-battery
31 maxim,alert-low-soc-level:
32 $ref: /schemas/types.yaml#/definitions/uint32
36 The alert threshold that sets the state of charge level (%) where an interrupt is generated.
37 If skipped the power up default value of 4 (%) will be used.
42 Certain devices return double the capacity.
43 Specify this to divide the reported value in 2 and thus normalize it.
44 SoC == State of Charge == Capacity.
47 $ref: /schemas/types.yaml#/definitions/uint32
49 A value to compensate readings for various battery chemistries and operating temperatures.
50 max17040,41 have 2 byte rcomp, default to 0x97 0x00.
51 All other devices have one byte rcomp, default to 0x97.
59 Use this property to use alert low SoC level interrupt as wake up source.
65 additionalProperties: false
74 compatible = "maxim,max17048";
76 maxim,rcomp = /bits/ 8 <0x56>;
77 maxim,alert-low-soc-level = <10>;
82 #include <dt-bindings/interrupt-controller/irq.h>
88 compatible = "maxim,max77836-battery";
90 maxim,alert-low-soc-level = <10>;
91 interrupt-parent = <&gpio7>;
92 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;