xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/renesas,em-gio.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/gpio/renesas,em-gio.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: Renesas EMMA Mobile General Purpose I/O Interface
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Magnus Damm <magnus.damm@gmail.com>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyunproperties:
13*4882a593Smuzhiyun  compatible:
14*4882a593Smuzhiyun    const: renesas,em-gio
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun  reg:
17*4882a593Smuzhiyun    items:
18*4882a593Smuzhiyun      - description: First set of contiguous registers
19*4882a593Smuzhiyun      - description: Second set of contiguous registers
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun  interrupts:
22*4882a593Smuzhiyun    items:
23*4882a593Smuzhiyun      - description: Interrupt for the first set of 16 GPIO ports
24*4882a593Smuzhiyun      - description: Interrupt for the second set of 16 GPIO ports
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun  gpio-controller: true
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun  '#gpio-cells':
29*4882a593Smuzhiyun    const: 2
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun  gpio-ranges:
32*4882a593Smuzhiyun    maxItems: 1
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun  ngpios:
35*4882a593Smuzhiyun    minimum: 1
36*4882a593Smuzhiyun    maximum: 32
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun  interrupt-controller: true
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun  '#interrupt-cells':
41*4882a593Smuzhiyun    const: 2
42*4882a593Smuzhiyun
43*4882a593Smuzhiyunrequired:
44*4882a593Smuzhiyun  - compatible
45*4882a593Smuzhiyun  - reg
46*4882a593Smuzhiyun  - interrupts
47*4882a593Smuzhiyun  - gpio-controller
48*4882a593Smuzhiyun  - '#gpio-cells'
49*4882a593Smuzhiyun  - gpio-ranges
50*4882a593Smuzhiyun  - ngpios
51*4882a593Smuzhiyun  - interrupt-controller
52*4882a593Smuzhiyun  - '#interrupt-cells'
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunadditionalProperties: false
55*4882a593Smuzhiyun
56*4882a593Smuzhiyunexamples:
57*4882a593Smuzhiyun  - |
58*4882a593Smuzhiyun    #include <dt-bindings/interrupt-controller/arm-gic.h>
59*4882a593Smuzhiyun    gpio0: gpio@e0050000 {
60*4882a593Smuzhiyun            compatible = "renesas,em-gio";
61*4882a593Smuzhiyun            reg = <0xe0050000 0x2c>, <0xe0050040 0x20>;
62*4882a593Smuzhiyun            interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
63*4882a593Smuzhiyun                         <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
64*4882a593Smuzhiyun            gpio-controller;
65*4882a593Smuzhiyun            #gpio-cells = <2>;
66*4882a593Smuzhiyun            gpio-ranges = <&pfc 0 0 32>;
67*4882a593Smuzhiyun            ngpios = <32>;
68*4882a593Smuzhiyun            interrupt-controller;
69*4882a593Smuzhiyun            #interrupt-cells = <2>;
70*4882a593Smuzhiyun    };
71