1 * Renesas R-Car GPIO Controller
5 - compatible: should contain one of the following.
6 - "renesas,gpio-r8a7778": for R8A7778 (R-Mobile M1) compatible GPIO controller.
7 - "renesas,gpio-r8a7779": for R8A7779 (R-Car H1) compatible GPIO controller.
8 - "renesas,gpio-r8a7790": for R8A7790 (R-Car H2) compatible GPIO controller.
9 - "renesas,gpio-r8a7791": for R8A7791 (R-Car M2) compatible GPIO controller.
10 - "renesas,gpio-rcar": for generic R-Car GPIO controller.
12 - reg: Base address and length of each memory resource used by the GPIO
13 controller hardware module.
15 - interrupt-parent: phandle of the parent interrupt controller.
16 - interrupts: Interrupt specifier for the controllers interrupt.
18 - gpio-controller: Marks the device node as a gpio controller.
19 - #gpio-cells: Should be 2. The first cell is the GPIO number and the second
20 cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the
21 GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
22 - gpio-ranges: Range of pins managed by the GPIO controller.
24 Please refer to gpio.txt in this directory for details of gpio-ranges property
25 and the common GPIO bindings used by client devices.
27 The GPIO controller also acts as an interrupt controller. It uses the default
28 two cells specifier as described in Documentation/devicetree/bindings/
29 interrupt-controller/interrupts.txt.
31 Example: R8A7779 (R-Car H1) GPIO controller nodes
33 gpio0: gpio@ffc40000 {
34 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
35 reg = <0xffc40000 0x2c>;
36 interrupt-parent = <&gic>;
37 interrupts = <0 141 0x4>;
40 gpio-ranges = <&pfc 0 0 32>;
42 #interrupt-cells = <2>;
45 gpio6: gpio@ffc46000 {
46 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
47 reg = <0xffc46000 0x2c>;
48 interrupt-parent = <&gic>;
49 interrupts = <0 147 0x4>;
52 gpio-ranges = <&pfc 0 192 9>;
54 #interrupt-cells = <2>;