1eb3b616eSSebastian Reichel# SPDX-License-Identifier: GPL-2.0
2eb3b616eSSebastian Reichel%YAML 1.2
3eb3b616eSSebastian Reichel---
41ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/maxim,max17042.yaml#
51ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6eb3b616eSSebastian Reichel
7eb3b616eSSebastian Reicheltitle: Maxim 17042 fuel gauge series
8eb3b616eSSebastian Reichel
9eb3b616eSSebastian Reichelmaintainers:
10eb3b616eSSebastian Reichel  - Sebastian Reichel <sre@kernel.org>
11eb3b616eSSebastian Reichel
12eb3b616eSSebastian ReichelallOf:
13eb3b616eSSebastian Reichel  - $ref: power-supply.yaml#
14eb3b616eSSebastian Reichel
15eb3b616eSSebastian Reichelproperties:
16eb3b616eSSebastian Reichel  compatible:
17eb3b616eSSebastian Reichel    enum:
18eb3b616eSSebastian Reichel      - maxim,max17042
19eb3b616eSSebastian Reichel      - maxim,max17047
20eb3b616eSSebastian Reichel      - maxim,max17050
21eb3b616eSSebastian Reichel      - maxim,max17055
22e759e1b9SNikita Travkin      - maxim,max77849-battery
23eb3b616eSSebastian Reichel
24eb3b616eSSebastian Reichel  reg:
25eb3b616eSSebastian Reichel    maxItems: 1
26eb3b616eSSebastian Reichel
27eb3b616eSSebastian Reichel  interrupts:
28eb3b616eSSebastian Reichel    maxItems: 1
299c425fa3SKrzysztof Kozlowski    description: |
309c425fa3SKrzysztof Kozlowski      The ALRT pin, an open-drain interrupt.
31eb3b616eSSebastian Reichel
32eb3b616eSSebastian Reichel  maxim,rsns-microohm:
33eb3b616eSSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint32
34eb3b616eSSebastian Reichel    description: |
35eb3b616eSSebastian Reichel      Resistance of rsns resistor in micro Ohms (datasheet-recommended value is 10000).
36eb3b616eSSebastian Reichel      Defining this property enables current-sense functionality.
37eb3b616eSSebastian Reichel
38eb3b616eSSebastian Reichel  maxim,cold-temp:
39eb3b616eSSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint32
40eb3b616eSSebastian Reichel    description: |
41eb3b616eSSebastian Reichel      Temperature threshold to report battery as cold (in tenths of degree Celsius).
42eb3b616eSSebastian Reichel      Default is not to report cold events.
43eb3b616eSSebastian Reichel
44eb3b616eSSebastian Reichel  maxim,over-heat-temp:
45eb3b616eSSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint32
46eb3b616eSSebastian Reichel    description: |
47eb3b616eSSebastian Reichel      Temperature threshold to report battery as over heated (in tenths of degree Celsius).
48eb3b616eSSebastian Reichel      Default is not to report over heating events.
49eb3b616eSSebastian Reichel
50eb3b616eSSebastian Reichel  maxim,dead-volt:
51eb3b616eSSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint32
52eb3b616eSSebastian Reichel    description: |
53eb3b616eSSebastian Reichel      Voltage threshold to report battery as dead (in mV).
54eb3b616eSSebastian Reichel      Default is not to report dead battery events.
55eb3b616eSSebastian Reichel
56eb3b616eSSebastian Reichel  maxim,over-volt:
57eb3b616eSSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint32
58eb3b616eSSebastian Reichel    description: |
59eb3b616eSSebastian Reichel      Voltage threshold to report battery as over voltage (in mV).
60eb3b616eSSebastian Reichel      Default is not to report over-voltage events.
61eb3b616eSSebastian Reichel
6270547f34SKrzysztof Kozlowski  power-supplies: true
6370547f34SKrzysztof Kozlowski
64eb3b616eSSebastian Reichelrequired:
65eb3b616eSSebastian Reichel  - compatible
66eb3b616eSSebastian Reichel  - reg
67eb3b616eSSebastian Reichel
68eb3b616eSSebastian ReicheladditionalProperties: false
69eb3b616eSSebastian Reichel
70eb3b616eSSebastian Reichelexamples:
71eb3b616eSSebastian Reichel  - |
72*20a72af1SRob Herring    i2c {
73eb3b616eSSebastian Reichel      #address-cells = <1>;
74eb3b616eSSebastian Reichel      #size-cells = <0>;
75eb3b616eSSebastian Reichel
76eb3b616eSSebastian Reichel      battery@36 {
77eb3b616eSSebastian Reichel        compatible = "maxim,max17042";
78eb3b616eSSebastian Reichel        reg = <0x36>;
79eb3b616eSSebastian Reichel        maxim,rsns-microohm = <10000>;
80eb3b616eSSebastian Reichel        maxim,over-heat-temp = <600>;
81eb3b616eSSebastian Reichel        maxim,over-volt = <4300>;
82eb3b616eSSebastian Reichel      };
83eb3b616eSSebastian Reichel    };
84