xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/maxim,max77714.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2c9ccf3a3SEmmanuel Vadot%YAML 1.2
3c9ccf3a3SEmmanuel Vadot---
4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/maxim,max77714.yaml#
5c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c9ccf3a3SEmmanuel Vadot
7c9ccf3a3SEmmanuel Vadottitle: MAX77714 PMIC with GPIO, RTC and watchdog from Maxim Integrated.
8c9ccf3a3SEmmanuel Vadot
9c9ccf3a3SEmmanuel Vadotmaintainers:
10*d5b0e70fSEmmanuel Vadot  - Luca Ceresoli <luca.ceresoli@bootlin.com>
11c9ccf3a3SEmmanuel Vadot
12c9ccf3a3SEmmanuel Vadotdescription: |
13c9ccf3a3SEmmanuel Vadot  MAX77714 is a Power Management IC with 4 buck regulators, 9
14c9ccf3a3SEmmanuel Vadot  low-dropout regulators, 8 GPIOs, RTC and watchdog.
15c9ccf3a3SEmmanuel Vadot
16c9ccf3a3SEmmanuel Vadotproperties:
17c9ccf3a3SEmmanuel Vadot  compatible:
18c9ccf3a3SEmmanuel Vadot    const: maxim,max77714
19c9ccf3a3SEmmanuel Vadot
20c9ccf3a3SEmmanuel Vadot  reg:
21c9ccf3a3SEmmanuel Vadot    maxItems: 1
22c9ccf3a3SEmmanuel Vadot
23c9ccf3a3SEmmanuel Vadot  interrupts:
24c9ccf3a3SEmmanuel Vadot    maxItems: 1
25c9ccf3a3SEmmanuel Vadot
26c9ccf3a3SEmmanuel Vadot  interrupt-controller: true
27c9ccf3a3SEmmanuel Vadot
28c9ccf3a3SEmmanuel Vadot  "#interrupt-cells":
29c9ccf3a3SEmmanuel Vadot    const: 2
30c9ccf3a3SEmmanuel Vadot    description:
31c9ccf3a3SEmmanuel Vadot      The first cell is the IRQ number, the second cell is the trigger type.
32c9ccf3a3SEmmanuel Vadot
33c9ccf3a3SEmmanuel Vadot  regulators:
34c9ccf3a3SEmmanuel Vadot    type: object
35c9ccf3a3SEmmanuel Vadot    additionalProperties: false
36c9ccf3a3SEmmanuel Vadot
37c9ccf3a3SEmmanuel Vadot    patternProperties:
38c9ccf3a3SEmmanuel Vadot      '^(buck[0-3]|ldo[0-8])$':
39c9ccf3a3SEmmanuel Vadot        type: object
40c9ccf3a3SEmmanuel Vadot        unevaluatedProperties: false
41c9ccf3a3SEmmanuel Vadot        $ref: /schemas/regulator/regulator.yaml#
42c9ccf3a3SEmmanuel Vadot
43c9ccf3a3SEmmanuel Vadotrequired:
44c9ccf3a3SEmmanuel Vadot  - compatible
45c9ccf3a3SEmmanuel Vadot  - reg
46c9ccf3a3SEmmanuel Vadot  - interrupts
47c9ccf3a3SEmmanuel Vadot  - interrupt-controller
48c9ccf3a3SEmmanuel Vadot  - "#interrupt-cells"
49c9ccf3a3SEmmanuel Vadot
50c9ccf3a3SEmmanuel VadotadditionalProperties: false
51c9ccf3a3SEmmanuel Vadot
52c9ccf3a3SEmmanuel Vadotexamples:
53c9ccf3a3SEmmanuel Vadot  - |
54c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
55c9ccf3a3SEmmanuel Vadot    i2c {
56c9ccf3a3SEmmanuel Vadot        #address-cells = <1>;
57c9ccf3a3SEmmanuel Vadot        #size-cells = <0>;
58c9ccf3a3SEmmanuel Vadot
59c9ccf3a3SEmmanuel Vadot        pmic@1c {
60c9ccf3a3SEmmanuel Vadot            compatible = "maxim,max77714";
61c9ccf3a3SEmmanuel Vadot            reg = <0x1c>;
62c9ccf3a3SEmmanuel Vadot            interrupt-parent = <&gpio2>;
63c9ccf3a3SEmmanuel Vadot            interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
64c9ccf3a3SEmmanuel Vadot
65c9ccf3a3SEmmanuel Vadot            interrupt-controller;
66c9ccf3a3SEmmanuel Vadot            #interrupt-cells = <2>;
67c9ccf3a3SEmmanuel Vadot        };
68c9ccf3a3SEmmanuel Vadot    };
69