Skip to content

Commit 25c8c45

Browse files
ssekar15Lee Jones
authored andcommitted
dt-bindings: mfd: Add document bindings for mp2629
Add device tree binding information for mp2629 mfd driver. Signed-off-by: Saravanan Sekar <sravanhome@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 8f3d9f3 commit 25c8c45

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
7+
title: MP2629 Battery Charger PMIC from Monolithic Power System.
8+
9+
maintainers:
10+
- Saravanan Sekar <sravanhome@gmail.com>
11+
12+
description: |
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+
19+
properties:
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+
36+
required:
37+
- compatible
38+
- reg
39+
- interrupts
40+
- interrupt-controller
41+
- "#interrupt-cells"
42+
43+
additionalProperties: false
44+
45+
examples:
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+
};

0 commit comments

Comments
 (0)