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