| 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 <[email protected]> |
| 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 |
... |