xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/maxim,max77759.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
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
19properties:
20  compatible:
21    const: maxim,max77759
22
23  interrupts:
24    maxItems: 1
25
26  interrupt-controller: true
27
28  "#interrupt-cells":
29    const: 2
30
31  reg:
32    maxItems: 1
33
34  gpio:
35    $ref: /schemas/gpio/maxim,max77759-gpio.yaml
36
37  nvmem-0:
38    $ref: /schemas/nvmem/maxim,max77759-nvmem.yaml
39
40required:
41  - compatible
42  - interrupts
43  - reg
44
45additionalProperties: false
46
47examples:
48  - |
49    #include <dt-bindings/interrupt-controller/irq.h>
50
51    i2c {
52        #address-cells = <1>;
53        #size-cells = <0>;
54
55        pmic@66 {
56            compatible = "maxim,max77759";
57            reg = <0x66>;
58            interrupts-extended = <&gpa8 3 IRQ_TYPE_LEVEL_LOW>;
59
60            interrupt-controller;
61            #interrupt-cells = <2>;
62
63            gpio {
64                compatible = "maxim,max77759-gpio";
65
66                gpio-controller;
67                #gpio-cells = <2>;
68
69                interrupt-controller;
70                #interrupt-cells = <2>;
71            };
72
73            nvmem-0 {
74                compatible = "maxim,max77759-nvmem";
75
76                nvmem-layout {
77                    compatible = "fixed-layout";
78                    #address-cells = <1>;
79                    #size-cells = <1>;
80
81                    reboot-mode@0 {
82                        reg = <0x0 0x4>;
83                    };
84
85                    boot-reason@4 {
86                        reg = <0x4 0x4>;
87                    };
88
89                    shutdown-user-flag@8 {
90                        reg = <0x8 0x1>;
91                    };
92
93                    rsoc@10 {
94                        reg = <0xa 0x2>;
95                    };
96                };
97            };
98        };
99    };
100