xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/st,nomadik-gpio.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*01950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*01950c46SEmmanuel Vadot%YAML 1.2
3*01950c46SEmmanuel Vadot---
4*01950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/st,nomadik-gpio.yaml#
5*01950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*01950c46SEmmanuel Vadot
7*01950c46SEmmanuel Vadottitle: Nomadik GPIO controller
8*01950c46SEmmanuel Vadot
9*01950c46SEmmanuel Vadotdescription:
10*01950c46SEmmanuel Vadot  The Nomadik GPIO driver handles Nomadik SoC GPIO blocks. This block has also
11*01950c46SEmmanuel Vadot  been called ST STA2X11. On the Nomadik platform, this driver is intertwined
12*01950c46SEmmanuel Vadot  with pinctrl-nomadik.
13*01950c46SEmmanuel Vadot
14*01950c46SEmmanuel Vadotmaintainers:
15*01950c46SEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
16*01950c46SEmmanuel Vadot
17*01950c46SEmmanuel Vadotproperties:
18*01950c46SEmmanuel Vadot  $nodename:
19*01950c46SEmmanuel Vadot    pattern: "^gpio@[0-9a-f]+$"
20*01950c46SEmmanuel Vadot
21*01950c46SEmmanuel Vadot  compatible:
22*01950c46SEmmanuel Vadot    enum:
23*01950c46SEmmanuel Vadot      - st,nomadik-gpio
24*01950c46SEmmanuel Vadot      - mobileye,eyeq5-gpio
25*01950c46SEmmanuel Vadot
26*01950c46SEmmanuel Vadot  reg:
27*01950c46SEmmanuel Vadot    maxItems: 1
28*01950c46SEmmanuel Vadot
29*01950c46SEmmanuel Vadot  interrupts:
30*01950c46SEmmanuel Vadot    maxItems: 1
31*01950c46SEmmanuel Vadot
32*01950c46SEmmanuel Vadot  "#gpio-cells":
33*01950c46SEmmanuel Vadot    const: 2
34*01950c46SEmmanuel Vadot
35*01950c46SEmmanuel Vadot  gpio-controller: true
36*01950c46SEmmanuel Vadot
37*01950c46SEmmanuel Vadot  interrupt-controller: true
38*01950c46SEmmanuel Vadot
39*01950c46SEmmanuel Vadot  "#interrupt-cells":
40*01950c46SEmmanuel Vadot    const: 2
41*01950c46SEmmanuel Vadot
42*01950c46SEmmanuel Vadot  gpio-bank:
43*01950c46SEmmanuel Vadot    description: System-wide GPIO bank index.
44*01950c46SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
45*01950c46SEmmanuel Vadot
46*01950c46SEmmanuel Vadot  st,supports-sleepmode:
47*01950c46SEmmanuel Vadot    description: Whether the controller can sleep or not.
48*01950c46SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
49*01950c46SEmmanuel Vadot
50*01950c46SEmmanuel Vadot  clocks:
51*01950c46SEmmanuel Vadot    maxItems: 1
52*01950c46SEmmanuel Vadot
53*01950c46SEmmanuel Vadot  gpio-ranges:
54*01950c46SEmmanuel Vadot    maxItems: 1
55*01950c46SEmmanuel Vadot
56*01950c46SEmmanuel Vadot  ngpios:
57*01950c46SEmmanuel Vadot    minimum: 0
58*01950c46SEmmanuel Vadot    maximum: 32
59*01950c46SEmmanuel Vadot
60*01950c46SEmmanuel Vadot  resets:
61*01950c46SEmmanuel Vadot    maxItems: 1
62*01950c46SEmmanuel Vadot
63*01950c46SEmmanuel Vadotrequired:
64*01950c46SEmmanuel Vadot  - compatible
65*01950c46SEmmanuel Vadot  - reg
66*01950c46SEmmanuel Vadot  - interrupts
67*01950c46SEmmanuel Vadot  - "#gpio-cells"
68*01950c46SEmmanuel Vadot  - gpio-controller
69*01950c46SEmmanuel Vadot  - interrupt-controller
70*01950c46SEmmanuel Vadot  - gpio-bank
71*01950c46SEmmanuel Vadot
72*01950c46SEmmanuel VadotunevaluatedProperties: false
73*01950c46SEmmanuel Vadot
74*01950c46SEmmanuel VadotallOf:
75*01950c46SEmmanuel Vadot  - if:
76*01950c46SEmmanuel Vadot      properties:
77*01950c46SEmmanuel Vadot        compatible:
78*01950c46SEmmanuel Vadot          contains:
79*01950c46SEmmanuel Vadot            const: mobileye,eyeq5-gpio
80*01950c46SEmmanuel Vadot    then:
81*01950c46SEmmanuel Vadot      properties:
82*01950c46SEmmanuel Vadot        st,supports-sleepmode: false
83*01950c46SEmmanuel Vadot
84*01950c46SEmmanuel Vadotexamples:
85*01950c46SEmmanuel Vadot  - |
86*01950c46SEmmanuel Vadot    gpio@8012e080 {
87*01950c46SEmmanuel Vadot        compatible = "st,nomadik-gpio";
88*01950c46SEmmanuel Vadot        reg =  <0x8012e080 0x80>;
89*01950c46SEmmanuel Vadot        interrupts = <0 120 0x4>;
90*01950c46SEmmanuel Vadot        #gpio-cells = <2>;
91*01950c46SEmmanuel Vadot        gpio-controller;
92*01950c46SEmmanuel Vadot        interrupt-controller;
93*01950c46SEmmanuel Vadot        st,supports-sleepmode;
94*01950c46SEmmanuel Vadot        gpio-bank = <1>;
95*01950c46SEmmanuel Vadot    };
96