diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-05-21 07:40:06 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-12 08:48:09 -0400 |
commit | 159f8a0209aff155af7f6fcdedd4a4484dd19c23 (patch) | |
tree | 2c3081a053077cceffb1c1651b977846043d1e5f /Documentation/devicetree/bindings/gpio | |
parent | 5fcf4a3c3a5bc08bf72a50ef1332501a3c1b96bb (diff) |
gpio-rcar: Add DT support
Add DT bindings for the gpio-rcar driver and read the device
configuration from the DT node at probe time if available.
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 52 |
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 | |||
3 | Required 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 | |||
29 | Please refer to gpio.txt in this directory for details of the common GPIO | ||
30 | bindings used by client devices. | ||
31 | |||
32 | Example: 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 | }; | ||