0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/mps,mp2629.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: MP2629 Battery Charger PMIC from Monolithic Power System.
0008
0009 maintainers:
0010 - Saravanan Sekar <sravanhome@gmail.com>
0011
0012 description: |
0013 MP2629 is a PMIC providing battery charging and power supply for smartphones,
0014 wireless camera and portable devices. Chip is controlled over I2C.
0015
0016 The battery charge management device handles battery charger controller and
0017 ADC IIO device for battery, system voltage
0018
0019 properties:
0020 compatible:
0021 enum:
0022 - mps,mp2629
0023 - mps,mp2733
0024
0025 reg:
0026 maxItems: 1
0027
0028 interrupts:
0029 maxItems: 1
0030
0031 interrupt-controller: true
0032
0033 "#interrupt-cells":
0034 const: 2
0035 description:
0036 The first cell is the IRQ number, the second cell is the trigger type.
0037
0038 required:
0039 - compatible
0040 - reg
0041 - interrupts
0042 - interrupt-controller
0043 - "#interrupt-cells"
0044
0045 additionalProperties: false
0046
0047 examples:
0048 - |
0049 #include <dt-bindings/interrupt-controller/irq.h>
0050 #include <dt-bindings/input/linux-event-codes.h>
0051 i2c {
0052 #address-cells = <1>;
0053 #size-cells = <0>;
0054
0055 pmic@4b {
0056 compatible = "mps,mp2629";
0057 reg = <0x4b>;
0058
0059 interrupt-controller;
0060 interrupt-parent = <&gpio2>;
0061 #interrupt-cells = <2>;
0062 interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
0063 };
0064 };