xref: /linux/Documentation/devicetree/bindings/gpio/nxp,lpc3220-gpio.yaml (revision 566ab427f827b0256d3e8ce0235d088e6a9c28bd)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpio/nxp,lpc3220-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP LPC3220 SoC GPIO controller
8
9maintainers:
10  - Animesh Agarwal <animeshagarwal28@gmail.com>
11
12properties:
13  compatible:
14    const: nxp,lpc3220-gpio
15
16  reg:
17    maxItems: 1
18
19  gpio-controller: true
20
21  '#gpio-cells':
22    const: 3
23    description: |
24      1) bank:
25        0: GPIO P0
26        1: GPIO P1
27        2: GPIO P2
28        3: GPIO P3
29        4: GPI P3
30        5: GPO P3
31      2) pin number
32      3) flags:
33        - bit 0 specifies polarity (0 for normal, 1 for inverted)
34
35required:
36  - compatible
37  - reg
38  - gpio-controller
39  - '#gpio-cells'
40
41additionalProperties: false
42
43examples:
44  - |
45    gpio@40028000 {
46        compatible = "nxp,lpc3220-gpio";
47        reg = <0x40028000 0x1000>;
48        gpio-controller;
49        #gpio-cells = <3>; /* bank, pin, flags */
50    };
51