1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*2eb4d8dcSEmmanuel Vadot%YAML 1.2
3*2eb4d8dcSEmmanuel Vadot---
4*2eb4d8dcSEmmanuel Vadot$id: "http://devicetree.org/schemas/power/supply/maxim,max17042.yaml#"
5*2eb4d8dcSEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6*2eb4d8dcSEmmanuel Vadot
7*2eb4d8dcSEmmanuel Vadottitle: Maxim 17042 fuel gauge series
8*2eb4d8dcSEmmanuel Vadot
9*2eb4d8dcSEmmanuel Vadotmaintainers:
10*2eb4d8dcSEmmanuel Vadot  - Sebastian Reichel <sre@kernel.org>
11*2eb4d8dcSEmmanuel Vadot
12*2eb4d8dcSEmmanuel VadotallOf:
13*2eb4d8dcSEmmanuel Vadot  - $ref: power-supply.yaml#
14*2eb4d8dcSEmmanuel Vadot
15*2eb4d8dcSEmmanuel Vadotproperties:
16*2eb4d8dcSEmmanuel Vadot  compatible:
17*2eb4d8dcSEmmanuel Vadot    enum:
18*2eb4d8dcSEmmanuel Vadot      - maxim,max17042
19*2eb4d8dcSEmmanuel Vadot      - maxim,max17047
20*2eb4d8dcSEmmanuel Vadot      - maxim,max17050
21*2eb4d8dcSEmmanuel Vadot      - maxim,max17055
22*2eb4d8dcSEmmanuel Vadot
23*2eb4d8dcSEmmanuel Vadot  reg:
24*2eb4d8dcSEmmanuel Vadot    maxItems: 1
25*2eb4d8dcSEmmanuel Vadot
26*2eb4d8dcSEmmanuel Vadot  interrupts:
27*2eb4d8dcSEmmanuel Vadot    maxItems: 1
28*2eb4d8dcSEmmanuel Vadot
29*2eb4d8dcSEmmanuel Vadot  maxim,rsns-microohm:
30*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
31*2eb4d8dcSEmmanuel Vadot    description: |
32*2eb4d8dcSEmmanuel Vadot      Resistance of rsns resistor in micro Ohms (datasheet-recommended value is 10000).
33*2eb4d8dcSEmmanuel Vadot      Defining this property enables current-sense functionality.
34*2eb4d8dcSEmmanuel Vadot
35*2eb4d8dcSEmmanuel Vadot  maxim,cold-temp:
36*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
37*2eb4d8dcSEmmanuel Vadot    description: |
38*2eb4d8dcSEmmanuel Vadot      Temperature threshold to report battery as cold (in tenths of degree Celsius).
39*2eb4d8dcSEmmanuel Vadot      Default is not to report cold events.
40*2eb4d8dcSEmmanuel Vadot
41*2eb4d8dcSEmmanuel Vadot  maxim,over-heat-temp:
42*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
43*2eb4d8dcSEmmanuel Vadot    description: |
44*2eb4d8dcSEmmanuel Vadot      Temperature threshold to report battery as over heated (in tenths of degree Celsius).
45*2eb4d8dcSEmmanuel Vadot      Default is not to report over heating events.
46*2eb4d8dcSEmmanuel Vadot
47*2eb4d8dcSEmmanuel Vadot  maxim,dead-volt:
48*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
49*2eb4d8dcSEmmanuel Vadot    description: |
50*2eb4d8dcSEmmanuel Vadot      Voltage threshold to report battery as dead (in mV).
51*2eb4d8dcSEmmanuel Vadot      Default is not to report dead battery events.
52*2eb4d8dcSEmmanuel Vadot
53*2eb4d8dcSEmmanuel Vadot  maxim,over-volt:
54*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
55*2eb4d8dcSEmmanuel Vadot    description: |
56*2eb4d8dcSEmmanuel Vadot      Voltage threshold to report battery as over voltage (in mV).
57*2eb4d8dcSEmmanuel Vadot      Default is not to report over-voltage events.
58*2eb4d8dcSEmmanuel Vadot
59*2eb4d8dcSEmmanuel Vadotrequired:
60*2eb4d8dcSEmmanuel Vadot  - compatible
61*2eb4d8dcSEmmanuel Vadot  - reg
62*2eb4d8dcSEmmanuel Vadot
63*2eb4d8dcSEmmanuel VadotadditionalProperties: false
64*2eb4d8dcSEmmanuel Vadot
65*2eb4d8dcSEmmanuel Vadotexamples:
66*2eb4d8dcSEmmanuel Vadot  - |
67*2eb4d8dcSEmmanuel Vadot    i2c0 {
68*2eb4d8dcSEmmanuel Vadot      #address-cells = <1>;
69*2eb4d8dcSEmmanuel Vadot      #size-cells = <0>;
70*2eb4d8dcSEmmanuel Vadot
71*2eb4d8dcSEmmanuel Vadot      battery@36 {
72*2eb4d8dcSEmmanuel Vadot        compatible = "maxim,max17042";
73*2eb4d8dcSEmmanuel Vadot        reg = <0x36>;
74*2eb4d8dcSEmmanuel Vadot        maxim,rsns-microohm = <10000>;
75*2eb4d8dcSEmmanuel Vadot        maxim,over-heat-temp = <600>;
76*2eb4d8dcSEmmanuel Vadot        maxim,over-volt = <4300>;
77*2eb4d8dcSEmmanuel Vadot      };
78*2eb4d8dcSEmmanuel Vadot    };
79