Debian Codegraph @

Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml

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