About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / gpio / renesas,gpio-rcar.txt




Custom Search

Based on kernel version 4.1. Page generated on 2015-06-28 12:09 EST.

1	* Renesas R-Car GPIO Controller
2	
3	Required Properties:
4	
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-W) compatible GPIO controller.
10	    - "renesas,gpio-r8a7793": for R8A7793 (R-Car M2-N) compatible GPIO controller.
11	    - "renesas,gpio-r8a7794": for R8A7794 (R-Car E2) compatible GPIO controller.
12	    - "renesas,gpio-rcar": for generic R-Car GPIO controller.
13	
14	  - reg: Base address and length of each memory resource used by the GPIO
15	    controller hardware module.
16	
17	  - interrupt-parent: phandle of the parent interrupt controller.
18	  - interrupts: Interrupt specifier for the controllers interrupt.
19	
20	  - gpio-controller: Marks the device node as a gpio controller.
21	  - #gpio-cells: Should be 2. The first cell is the GPIO number and the second
22	    cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the
23	    GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
24	  - gpio-ranges: Range of pins managed by the GPIO controller.
25	
26	Optional properties:
27	
28	  - clocks: Must contain a reference to the functional clock.  The property is
29	    mandatory if the hardware implements a controllable functional clock for
30	    the GPIO instance.
31	
32	Please refer to gpio.txt in this directory for details of gpio-ranges property
33	and the common GPIO bindings used by client devices.
34	
35	The GPIO controller also acts as an interrupt controller. It uses the default
36	two cells specifier as described in Documentation/devicetree/bindings/
37	interrupt-controller/interrupts.txt.
38	
39	Example: R8A7779 (R-Car H1) GPIO controller nodes
40	
41		gpio0: gpio@ffc40000 {
42			compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
43			reg = <0xffc40000 0x2c>;
44			interrupt-parent = <&gic>;
45			interrupts = <0 141 0x4>;
46			#gpio-cells = <2>;
47			gpio-controller;
48			gpio-ranges = <&pfc 0 0 32>;
49			interrupt-controller;
50			#interrupt-cells = <2>;
51		};
52		...
53		gpio6: gpio@ffc46000 {
54			compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
55			reg = <0xffc46000 0x2c>;
56			interrupt-parent = <&gic>;
57			interrupts = <0 147 0x4>;
58			#gpio-cells = <2>;
59			gpio-controller;
60			gpio-ranges = <&pfc 0 192 9>;
61			interrupt-controller;
62			#interrupt-cells = <2>;
63		};
Hide Line Numbers
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.