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/uint8-array
51 A value to compensate readings for various battery chemistries and operating temperatures.
52 max17040,41 have 2 byte rcomp, default to 0x97 0x00.
53 All other devices have one byte rcomp, default to 0x97.
60 - description: battery temperature
69 Use this property to use alert low SoC level interrupt as wake up source.
75 unevaluatedProperties: false
84 compatible = "maxim,max17048";
86 maxim,rcomp = /bits/ 8 <0x56>;
87 maxim,alert-low-soc-level = <10>;
92 #include <dt-bindings/interrupt-controller/irq.h>
98 compatible = "maxim,max77836-battery";
100 maxim,alert-low-soc-level = <10>;
101 interrupt-parent = <&gpio7>;
102 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
107 #include <dt-bindings/interrupt-controller/irq.h>
109 #address-cells = <1>;
113 compatible = "maxim,max17043";
116 interrupt-parent = <&gpio>;
117 interrupts = <144 IRQ_TYPE_EDGE_FALLING>;
119 monitored-battery = <&battery>;
120 power-supplies = <&charger>;
122 io-channels = <&adc 8>;
123 io-channel-names = "temp";
125 maxim,alert-low-soc-level = <10>;