2013-05-21 19:40:06 +08:00
|
|
|
* Renesas R-Car GPIO Controller
|
|
|
|
|
|
|
|
Required Properties:
|
|
|
|
|
2013-11-30 04:14:57 +08:00
|
|
|
- compatible: should contain one of the following.
|
2013-05-21 19:40:06 +08:00
|
|
|
- "renesas,gpio-r8a7778": for R8A7778 (R-Mobile M1) compatible GPIO controller.
|
|
|
|
- "renesas,gpio-r8a7779": for R8A7779 (R-Car H1) compatible GPIO controller.
|
|
|
|
- "renesas,gpio-r8a7790": for R8A7790 (R-Car H2) compatible GPIO controller.
|
2013-11-30 04:14:57 +08:00
|
|
|
- "renesas,gpio-r8a7791": for R8A7791 (R-Car M2) compatible GPIO controller.
|
2013-05-21 19:40:06 +08:00
|
|
|
- "renesas,gpio-rcar": for generic R-Car GPIO controller.
|
|
|
|
|
|
|
|
- reg: Base address and length of each memory resource used by the GPIO
|
|
|
|
controller hardware module.
|
|
|
|
|
|
|
|
- interrupt-parent: phandle of the parent interrupt controller.
|
|
|
|
- interrupts: Interrupt specifier for the controllers interrupt.
|
|
|
|
|
|
|
|
- gpio-controller: Marks the device node as a gpio controller.
|
|
|
|
- #gpio-cells: Should be 2. The first cell is the GPIO number and the second
|
2013-06-18 18:29:48 +08:00
|
|
|
cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the
|
|
|
|
GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
|
|
|
|
- gpio-ranges: Range of pins managed by the GPIO controller.
|
|
|
|
|
2014-04-15 02:33:12 +08:00
|
|
|
Optional properties:
|
|
|
|
|
|
|
|
- clocks: Must contain a reference to the functional clock. The property is
|
|
|
|
mandatory if the hardware implements a controllable functional clock for
|
|
|
|
the GPIO instance.
|
|
|
|
|
2013-06-18 18:29:48 +08:00
|
|
|
Please refer to gpio.txt in this directory for details of gpio-ranges property
|
|
|
|
and the common GPIO bindings used by client devices.
|
2013-05-21 19:40:06 +08:00
|
|
|
|
2013-07-05 01:44:39 +08:00
|
|
|
The GPIO controller also acts as an interrupt controller. It uses the default
|
|
|
|
two cells specifier as described in Documentation/devicetree/bindings/
|
|
|
|
interrupt-controller/interrupts.txt.
|
|
|
|
|
2013-05-21 19:40:06 +08:00
|
|
|
Example: R8A7779 (R-Car H1) GPIO controller nodes
|
|
|
|
|
|
|
|
gpio0: gpio@ffc40000 {
|
|
|
|
compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
|
|
|
|
reg = <0xffc40000 0x2c>;
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
interrupts = <0 141 0x4>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
|
|
|
gpio-ranges = <&pfc 0 0 32>;
|
2013-07-05 01:44:39 +08:00
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
2013-05-21 19:40:06 +08:00
|
|
|
};
|
|
|
|
...
|
|
|
|
gpio6: gpio@ffc46000 {
|
|
|
|
compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
|
|
|
|
reg = <0xffc46000 0x2c>;
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
interrupts = <0 147 0x4>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
|
|
|
gpio-ranges = <&pfc 0 192 9>;
|
2013-07-05 01:44:39 +08:00
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
2013-05-21 19:40:06 +08:00
|
|
|
};
|