xref: /linux/Documentation/devicetree/bindings/mfd/maxim,max77759.yaml (revision fbf5df34a4dbcd09d433dd4f0916bf9b2ddb16de)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/maxim,max77759.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Maxim Integrated MAX77759 PMIC for USB Type-C applications
8
9maintainers:
10  - André Draszik <andre.draszik@linaro.org>
11
12description: |
13  This is a part of device tree bindings for the MAX77759 companion Power
14  Management IC for USB Type-C applications.
15
16  The MAX77759 includes Battery Charger, Fuel Gauge, temperature sensors, USB
17  Type-C Port Controller (TCPC), NVMEM, and a GPIO expander.
18
19allOf:
20  - $ref: /schemas/power/supply/power-supply.yaml#
21
22properties:
23  compatible:
24    const: maxim,max77759
25
26  interrupts:
27    maxItems: 1
28
29  interrupt-controller: true
30
31  "#interrupt-cells":
32    const: 2
33
34  reg:
35    maxItems: 1
36
37  gpio:
38    $ref: /schemas/gpio/maxim,max77759-gpio.yaml
39
40  nvmem-0:
41    $ref: /schemas/nvmem/maxim,max77759-nvmem.yaml
42
43  chgin-otg-regulator:
44    type: object
45    description: Provides Boost for sourcing VBUS.
46    $ref: /schemas/regulator/regulator.yaml#
47    unevaluatedProperties: false
48
49required:
50  - compatible
51  - interrupts
52  - reg
53
54unevaluatedProperties: false
55
56examples:
57  - |
58    #include <dt-bindings/interrupt-controller/irq.h>
59
60    i2c {
61        #address-cells = <1>;
62        #size-cells = <0>;
63
64        pmic@66 {
65            compatible = "maxim,max77759";
66            reg = <0x66>;
67            interrupts-extended = <&gpa8 3 IRQ_TYPE_LEVEL_LOW>;
68
69            interrupt-controller;
70            #interrupt-cells = <2>;
71            power-supplies = <&maxtcpci>;
72
73            chgin-otg-regulator {
74                regulator-name = "chgin-otg";
75            };
76
77            gpio {
78                compatible = "maxim,max77759-gpio";
79
80                gpio-controller;
81                #gpio-cells = <2>;
82
83                interrupt-controller;
84                #interrupt-cells = <2>;
85            };
86
87            nvmem-0 {
88                compatible = "maxim,max77759-nvmem";
89
90                nvmem-layout {
91                    compatible = "fixed-layout";
92                    #address-cells = <1>;
93                    #size-cells = <1>;
94
95                    reboot-mode@0 {
96                        reg = <0x0 0x4>;
97                    };
98
99                    boot-reason@4 {
100                        reg = <0x4 0x4>;
101                    };
102
103                    shutdown-user-flag@8 {
104                        reg = <0x8 0x1>;
105                    };
106
107                    rsoc@10 {
108                        reg = <0xa 0x2>;
109                    };
110                };
111            };
112        };
113    };
114