aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt')
-rw-r--r--Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt52
1 files changed, 52 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
new file mode 100644
index 000000000000..46d76a004246
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
@@ -0,0 +1,52 @@
1* Renesas R-Car GPIO Controller
2
3Required Properties:
4
5 - compatible: should be 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-rcar": for generic R-Car GPIO controller.
10
11 - reg: Base address and length of each memory resource used by the GPIO
12 controller hardware module.
13
14 - interrupt-parent: phandle of the parent interrupt controller.
15 - interrupts: Interrupt specifier for the controllers interrupt.
16
17 - gpio-controller: Marks the device node as a gpio controller.
18 - #gpio-cells: Should be 2. The first cell is the GPIO number and the second
19 cell is used to specify optional parameters as bit flags. Only the GPIO
20 active low flag (bit 0) is currently supported.
21 - gpio-ranges: Range of pins managed by the GPIO controller as a 4-cells
22 tuple using the following syntax.
23
24 <[phandle of the pin controller node]
25 0
26 [index of the first pin]
27 [number of pins]>
28
29Please refer to gpio.txt in this directory for details of the common GPIO
30bindings used by client devices.
31
32Example: R8A7779 (R-Car H1) GPIO controller nodes
33
34 gpio0: gpio@ffc40000 {
35 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
36 reg = <0xffc40000 0x2c>;
37 interrupt-parent = <&gic>;
38 interrupts = <0 141 0x4>;
39 #gpio-cells = <2>;
40 gpio-controller;
41 gpio-ranges = <&pfc 0 0 32>;
42 };
43 ...
44 gpio6: gpio@ffc46000 {
45 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
46 reg = <0xffc46000 0x2c>;
47 interrupt-parent = <&gic>;
48 interrupts = <0 147 0x4>;
49 #gpio-cells = <2>;
50 gpio-controller;
51 gpio-ranges = <&pfc 0 192 9>;
52 };