Merge tag 'ecryptfs-4.15-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / gpio / renesas,gpio-rcar.txt
1 * Renesas R-Car GPIO Controller
2
3 Required Properties:
4
5   - compatible: should contain one or more of the following:
6     - "renesas,gpio-r8a7743": for R8A7743 (RZ/G1M) compatible GPIO controller.
7     - "renesas,gpio-r8a7745": for R8A7745 (RZ/G1E) compatible GPIO controller.
8     - "renesas,gpio-r8a7778": for R8A7778 (R-Mobile M1) compatible GPIO controller.
9     - "renesas,gpio-r8a7779": for R8A7779 (R-Car H1) compatible GPIO controller.
10     - "renesas,gpio-r8a7790": for R8A7790 (R-Car H2) compatible GPIO controller.
11     - "renesas,gpio-r8a7791": for R8A7791 (R-Car M2-W) compatible GPIO controller.
12     - "renesas,gpio-r8a7792": for R8A7792 (R-Car V2H) compatible GPIO controller.
13     - "renesas,gpio-r8a7793": for R8A7793 (R-Car M2-N) compatible GPIO controller.
14     - "renesas,gpio-r8a7794": for R8A7794 (R-Car E2) compatible GPIO controller.
15     - "renesas,gpio-r8a7795": for R8A7795 (R-Car H3) compatible GPIO controller.
16     - "renesas,gpio-r8a7796": for R8A7796 (R-Car M3-W) compatible GPIO controller.
17     - "renesas,gpio-r8a77970": for R8A77970 (R-Car V3M) compatible GPIO controller.
18     - "renesas,gpio-r8a77995": for R8A77995 (R-Car D3) compatible GPIO controller.
19     - "renesas,rcar-gen1-gpio": for a generic R-Car Gen1 GPIO controller.
20     - "renesas,rcar-gen2-gpio": for a generic R-Car Gen2 or RZ/G1 GPIO controller.
21     - "renesas,rcar-gen3-gpio": for a generic R-Car Gen3 GPIO controller.
22     - "renesas,gpio-rcar": deprecated.
23
24     When compatible with the generic version nodes must list the
25     SoC-specific version corresponding to the platform first followed by
26     the generic version.
27
28   - reg: Base address and length of each memory resource used by the GPIO
29     controller hardware module.
30
31   - interrupt-parent: phandle of the parent interrupt controller.
32   - interrupts: Interrupt specifier for the controllers interrupt.
33
34   - gpio-controller: Marks the device node as a gpio controller.
35   - #gpio-cells: Should be 2. The first cell is the GPIO number and the second
36     cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the
37     GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
38   - gpio-ranges: Range of pins managed by the GPIO controller.
39
40 Optional properties:
41
42   - clocks: Must contain a reference to the functional clock.  The property is
43     mandatory if the hardware implements a controllable functional clock for
44     the GPIO instance.
45
46 Please refer to gpio.txt in this directory for details of gpio-ranges property
47 and the common GPIO bindings used by client devices.
48
49 The GPIO controller also acts as an interrupt controller. It uses the default
50 two cells specifier as described in Documentation/devicetree/bindings/
51 interrupt-controller/interrupts.txt.
52
53 Example: R8A7779 (R-Car H1) GPIO controller nodes
54
55         gpio0: gpio@ffc40000 {
56                 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
57                 reg = <0xffc40000 0x2c>;
58                 interrupt-parent = <&gic>;
59                 interrupts = <0 141 0x4>;
60                 #gpio-cells = <2>;
61                 gpio-controller;
62                 gpio-ranges = <&pfc 0 0 32>;
63                 interrupt-controller;
64                 #interrupt-cells = <2>;
65         };
66         ...
67         gpio6: gpio@ffc46000 {
68                 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
69                 reg = <0xffc46000 0x2c>;
70                 interrupt-parent = <&gic>;
71                 interrupts = <0 147 0x4>;
72                 #gpio-cells = <2>;
73                 gpio-controller;
74                 gpio-ranges = <&pfc 0 192 9>;
75                 interrupt-controller;
76                 #interrupt-cells = <2>;
77         };