12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/maxim,max17042.yaml# 5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 72eb4d8dcSEmmanuel Vadottitle: Maxim 17042 fuel gauge series 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 102eb4d8dcSEmmanuel Vadot - Sebastian Reichel <sre@kernel.org> 112eb4d8dcSEmmanuel Vadot 122eb4d8dcSEmmanuel VadotallOf: 132eb4d8dcSEmmanuel Vadot - $ref: power-supply.yaml# 142eb4d8dcSEmmanuel Vadot 152eb4d8dcSEmmanuel Vadotproperties: 162eb4d8dcSEmmanuel Vadot compatible: 172eb4d8dcSEmmanuel Vadot enum: 182eb4d8dcSEmmanuel Vadot - maxim,max17042 192eb4d8dcSEmmanuel Vadot - maxim,max17047 202eb4d8dcSEmmanuel Vadot - maxim,max17050 212eb4d8dcSEmmanuel Vadot - maxim,max17055 22354d7675SEmmanuel Vadot - maxim,max77849-battery 232eb4d8dcSEmmanuel Vadot 242eb4d8dcSEmmanuel Vadot reg: 252eb4d8dcSEmmanuel Vadot maxItems: 1 262eb4d8dcSEmmanuel Vadot 272eb4d8dcSEmmanuel Vadot interrupts: 282eb4d8dcSEmmanuel Vadot maxItems: 1 29354d7675SEmmanuel Vadot description: | 30354d7675SEmmanuel Vadot The ALRT pin, an open-drain interrupt. 312eb4d8dcSEmmanuel Vadot 322eb4d8dcSEmmanuel Vadot maxim,rsns-microohm: 332eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 342eb4d8dcSEmmanuel Vadot description: | 352eb4d8dcSEmmanuel Vadot Resistance of rsns resistor in micro Ohms (datasheet-recommended value is 10000). 362eb4d8dcSEmmanuel Vadot Defining this property enables current-sense functionality. 372eb4d8dcSEmmanuel Vadot 382eb4d8dcSEmmanuel Vadot maxim,cold-temp: 392eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 402eb4d8dcSEmmanuel Vadot description: | 412eb4d8dcSEmmanuel Vadot Temperature threshold to report battery as cold (in tenths of degree Celsius). 422eb4d8dcSEmmanuel Vadot Default is not to report cold events. 432eb4d8dcSEmmanuel Vadot 442eb4d8dcSEmmanuel Vadot maxim,over-heat-temp: 452eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 462eb4d8dcSEmmanuel Vadot description: | 472eb4d8dcSEmmanuel Vadot Temperature threshold to report battery as over heated (in tenths of degree Celsius). 482eb4d8dcSEmmanuel Vadot Default is not to report over heating events. 492eb4d8dcSEmmanuel Vadot 502eb4d8dcSEmmanuel Vadot maxim,dead-volt: 512eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 522eb4d8dcSEmmanuel Vadot description: | 532eb4d8dcSEmmanuel Vadot Voltage threshold to report battery as dead (in mV). 542eb4d8dcSEmmanuel Vadot Default is not to report dead battery events. 552eb4d8dcSEmmanuel Vadot 562eb4d8dcSEmmanuel Vadot maxim,over-volt: 572eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 582eb4d8dcSEmmanuel Vadot description: | 592eb4d8dcSEmmanuel Vadot Voltage threshold to report battery as over voltage (in mV). 602eb4d8dcSEmmanuel Vadot Default is not to report over-voltage events. 612eb4d8dcSEmmanuel Vadot 628bab661aSEmmanuel Vadot power-supplies: true 638bab661aSEmmanuel Vadot 642eb4d8dcSEmmanuel Vadotrequired: 652eb4d8dcSEmmanuel Vadot - compatible 662eb4d8dcSEmmanuel Vadot - reg 672eb4d8dcSEmmanuel Vadot 682eb4d8dcSEmmanuel VadotadditionalProperties: false 692eb4d8dcSEmmanuel Vadot 702eb4d8dcSEmmanuel Vadotexamples: 712eb4d8dcSEmmanuel Vadot - | 72*fac71e4eSEmmanuel Vadot i2c { 732eb4d8dcSEmmanuel Vadot #address-cells = <1>; 742eb4d8dcSEmmanuel Vadot #size-cells = <0>; 752eb4d8dcSEmmanuel Vadot 762eb4d8dcSEmmanuel Vadot battery@36 { 772eb4d8dcSEmmanuel Vadot compatible = "maxim,max17042"; 782eb4d8dcSEmmanuel Vadot reg = <0x36>; 792eb4d8dcSEmmanuel Vadot maxim,rsns-microohm = <10000>; 802eb4d8dcSEmmanuel Vadot maxim,over-heat-temp = <600>; 812eb4d8dcSEmmanuel Vadot maxim,over-volt = <4300>; 822eb4d8dcSEmmanuel Vadot }; 832eb4d8dcSEmmanuel Vadot }; 84