1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/mediatek,mt6360.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MT6360 PMIC from MediaTek Integrated
8
9maintainers:
10  - Gene Chen <gene_chen@richtek.com>
11
12description: |
13  MT6360 is a PMIC device with the following sub modules.
14  It is interfaced to host controller using I2C interface.
15
16  This document describes the binding for PMIC device and its sub module.
17
18properties:
19  compatible:
20    const: mediatek,mt6360
21
22  reg:
23    maxItems: 1
24
25  wakeup-source: true
26
27  interrupts:
28    maxItems: 1
29
30  interrupt-names:
31    const: IRQB
32
33  interrupt-controller: true
34
35  "#interrupt-cells":
36    const: 1
37    description:
38      The first cell is the IRQ number.
39
40required:
41  - compatible
42  - reg
43  - interrupts
44  - interrupt-controller
45  - "#interrupt-cells"
46
47additionalProperties:
48  type: object
49
50examples:
51  - |
52    #include <dt-bindings/interrupt-controller/irq.h>
53    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
54    i2c {
55        #address-cells = <1>;
56        #size-cells = <0>;
57
58        pmic@34 {
59            compatible = "mediatek,mt6360";
60            reg = <0x34>;
61            wakeup-source;
62            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
63            interrupt-names = "IRQB";
64            interrupt-controller;
65            #interrupt-cells = <1>;
66        };
67    };
68