xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/maxim,max77705.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1*8ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*8ccc0d23SEmmanuel Vadot%YAML 1.2
3*8ccc0d23SEmmanuel Vadot---
4*8ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/maxim,max77705.yaml#
5*8ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8ccc0d23SEmmanuel Vadot
7*8ccc0d23SEmmanuel Vadottitle: Maxim MAX777705 charger
8*8ccc0d23SEmmanuel Vadot
9*8ccc0d23SEmmanuel Vadotmaintainers:
10*8ccc0d23SEmmanuel Vadot  - Dzmitry Sankouski <dsankouski@gmail.com>
11*8ccc0d23SEmmanuel Vadot
12*8ccc0d23SEmmanuel Vadotdescription: |
13*8ccc0d23SEmmanuel Vadot  This is a device tree bindings for charger found in Maxim MAX77705 chip.
14*8ccc0d23SEmmanuel Vadot
15*8ccc0d23SEmmanuel VadotallOf:
16*8ccc0d23SEmmanuel Vadot  - $ref: power-supply.yaml#
17*8ccc0d23SEmmanuel Vadot
18*8ccc0d23SEmmanuel Vadotproperties:
19*8ccc0d23SEmmanuel Vadot  compatible:
20*8ccc0d23SEmmanuel Vadot    const: maxim,max77705-charger
21*8ccc0d23SEmmanuel Vadot
22*8ccc0d23SEmmanuel Vadot  interrupts:
23*8ccc0d23SEmmanuel Vadot    maxItems: 1
24*8ccc0d23SEmmanuel Vadot
25*8ccc0d23SEmmanuel Vadot  reg:
26*8ccc0d23SEmmanuel Vadot    maxItems: 1
27*8ccc0d23SEmmanuel Vadot
28*8ccc0d23SEmmanuel Vadotrequired:
29*8ccc0d23SEmmanuel Vadot  - compatible
30*8ccc0d23SEmmanuel Vadot  - reg
31*8ccc0d23SEmmanuel Vadot  - monitored-battery
32*8ccc0d23SEmmanuel Vadot
33*8ccc0d23SEmmanuel VadotunevaluatedProperties: false
34*8ccc0d23SEmmanuel Vadot
35*8ccc0d23SEmmanuel Vadotexamples:
36*8ccc0d23SEmmanuel Vadot  - |
37*8ccc0d23SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
38*8ccc0d23SEmmanuel Vadot
39*8ccc0d23SEmmanuel Vadot    i2c {
40*8ccc0d23SEmmanuel Vadot        #address-cells = <1>;
41*8ccc0d23SEmmanuel Vadot        #size-cells = <0>;
42*8ccc0d23SEmmanuel Vadot
43*8ccc0d23SEmmanuel Vadot        charger@69 {
44*8ccc0d23SEmmanuel Vadot            compatible = "maxim,max77705-charger";
45*8ccc0d23SEmmanuel Vadot            reg = <0x69>;
46*8ccc0d23SEmmanuel Vadot            monitored-battery = <&battery>;
47*8ccc0d23SEmmanuel Vadot            interrupt-parent = <&pm8998_gpios>;
48*8ccc0d23SEmmanuel Vadot            interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
49*8ccc0d23SEmmanuel Vadot        };
50*8ccc0d23SEmmanuel Vadot    };
51