1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpio/fsl-imx-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale i.MX/MXC GPIO controller
8
9maintainers:
10  - Anson Huang <Anson.Huang@nxp.com>
11
12properties:
13  compatible:
14    enum:
15      - fsl,imx1-gpio
16      - fsl,imx21-gpio
17      - fsl,imx31-gpio
18      - fsl,imx35-gpio
19      - fsl,imx7d-gpio
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    description: |
26      Should be the port interrupt shared by all 32 pins, if one number.
27      If two numbers, the first one is the interrupt shared by low 16 pins
28      and the second one is for high 16 pins.
29    minItems: 1
30    maxItems: 2
31
32  interrupt-controller: true
33
34  "#interrupt-cells":
35    const: 2
36
37  clocks:
38    maxItems: 1
39
40  "#gpio-cells":
41    const: 2
42
43  gpio-controller: true
44
45required:
46  - compatible
47  - reg
48  - interrupts
49  - interrupt-controller
50  - "#interrupt-cells"
51  - "#gpio-cells"
52  - gpio-controller
53
54additionalProperties: false
55
56examples:
57  - |
58    gpio0: gpio@73f84000 {
59        compatible = "fsl,imx35-gpio";
60        reg = <0x73f84000 0x4000>;
61        interrupts = <50 51>;
62        gpio-controller;
63        #gpio-cells = <2>;
64        interrupt-controller;
65        #interrupt-cells = <2>;
66    };
67
68...
69