Skip to content

Commit c5a0a64

Browse files
clamor-ssre
authored andcommitted
dt-bindings: power: supply: Document Maxim MAX8971 charger
Add bindings for Maxim MAX8971 charger. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20250430055114.11469-2-clamor95@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent d055f51 commit c5a0a64

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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,max8971.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Maxim MAX8971 IC charger
8+
9+
maintainers:
10+
- Svyatoslav Ryhel <clamor95@gmail.com>
11+
12+
description:
13+
The MAX8971 is a compact, high-frequency, high-efficiency switch-mode charger
14+
for a one-cell lithium-ion (Li+) battery.
15+
16+
allOf:
17+
- $ref: power-supply.yaml#
18+
19+
properties:
20+
compatible:
21+
const: maxim,max8971
22+
23+
reg:
24+
maxItems: 1
25+
26+
interrupts:
27+
maxItems: 1
28+
29+
monitored-battery: true
30+
31+
port:
32+
description:
33+
An optional port node to link the extcon device to detect type of plug.
34+
$ref: /schemas/graph.yaml#/properties/port
35+
36+
required:
37+
- compatible
38+
- reg
39+
- interrupts
40+
41+
unevaluatedProperties: false
42+
43+
examples:
44+
- |
45+
#include <dt-bindings/gpio/gpio.h>
46+
#include <dt-bindings/interrupt-controller/irq.h>
47+
48+
i2c {
49+
#address-cells = <1>;
50+
#size-cells = <0>;
51+
52+
charger@35 {
53+
compatible = "maxim,max8971";
54+
reg = <0x35>;
55+
56+
interrupt-parent = <&gpio>;
57+
interrupts = <74 IRQ_TYPE_LEVEL_LOW>;
58+
59+
monitored-battery = <&battery>;
60+
61+
port {
62+
charger_input: endpoint {
63+
remote-endpoint = <&extcon_output>;
64+
};
65+
};
66+
};
67+
};
68+
...

0 commit comments

Comments
 (0)