Skip to content

Commit ad0aa23

Browse files
Dimitri Fedrausre
authored andcommitted
dt-bindings: power: supply: add support for MAX17201/MAX17205 fuel gauge
Adding documentation for MAXIMs MAX17201/MAX17205 fuel gauge. Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Dimitri Fedrau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent b498ddb commit ad0aa23

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/power/supply/maxim,max17201.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Maxim MAX17201 fuel gauge
8+
9+
maintainers:
10+
- Dimitri Fedrau <[email protected]>
11+
12+
allOf:
13+
- $ref: power-supply.yaml#
14+
15+
properties:
16+
compatible:
17+
oneOf:
18+
- const: maxim,max17201
19+
- items:
20+
- enum:
21+
- maxim,max17205
22+
- const: maxim,max17201
23+
24+
reg:
25+
items:
26+
- description: ModelGauge m5 registers
27+
- description: Nonvolatile registers
28+
29+
reg-names:
30+
items:
31+
- const: m5
32+
- const: nvmem
33+
34+
interrupts:
35+
maxItems: 1
36+
37+
required:
38+
- compatible
39+
- reg
40+
- reg-names
41+
42+
unevaluatedProperties: false
43+
44+
examples:
45+
- |
46+
#include <dt-bindings/interrupt-controller/irq.h>
47+
i2c {
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
51+
fuel-gauge@36 {
52+
compatible = "maxim,max17201";
53+
reg = <0x36>, <0xb>;
54+
reg-names = "m5", "nvmem";
55+
interrupt-parent = <&gpio0>;
56+
interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
57+
};
58+
};

0 commit comments

Comments
 (0)