xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/mps,mp2629.yaml (revision c1d255d3ffdbe447de3ab875bf4e7d7accc5bfc5)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/mps,mp2629.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MP2629 Battery Charger PMIC from Monolithic Power System.
8
9maintainers:
10  - Saravanan Sekar <sravanhome@gmail.com>
11
12description: |
13  MP2629 is a PMIC providing battery charging and power supply for smartphones,
14  wireless camera and portable devices. Chip is controlled over I2C.
15
16  The battery charge management device handles battery charger controller and
17  ADC IIO device for battery, system voltage
18
19properties:
20  compatible:
21    const: mps,mp2629
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29  interrupt-controller: true
30
31  "#interrupt-cells":
32    const: 2
33    description:
34      The first cell is the IRQ number, the second cell is the trigger type.
35
36required:
37  - compatible
38  - reg
39  - interrupts
40  - interrupt-controller
41  - "#interrupt-cells"
42
43additionalProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/interrupt-controller/irq.h>
48    #include <dt-bindings/input/linux-event-codes.h>
49    i2c {
50        #address-cells = <1>;
51        #size-cells = <0>;
52
53        pmic@4b {
54            compatible = "mps,mp2629";
55            reg = <0x4b>;
56
57            interrupt-controller;
58            interrupt-parent = <&gpio2>;
59            #interrupt-cells = <2>;
60            interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
61        };
62    };
63