About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

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




Custom Search

Based on kernel version 3.13. Page generated on 2014-01-20 22:00 EST.

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 specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the
20	    GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
21	  - gpio-ranges: Range of pins managed by the GPIO controller.
22	
23	Please refer to gpio.txt in this directory for details of gpio-ranges property
24	and the common GPIO bindings used by client devices.
25	
26	The GPIO controller also acts as an interrupt controller. It uses the default
27	two cells specifier as described in Documentation/devicetree/bindings/
28	interrupt-controller/interrupts.txt.
29	
30	Example: R8A7779 (R-Car H1) GPIO controller nodes
31	
32		gpio0: gpio@ffc40000 {
33			compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
34			reg = <0xffc40000 0x2c>;
35			interrupt-parent = <&gic>;
36			interrupts = <0 141 0x4>;
37			#gpio-cells = <2>;
38			gpio-controller;
39			gpio-ranges = <&pfc 0 0 32>;
40			interrupt-controller;
41			#interrupt-cells = <2>;
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			interrupt-controller;
53			#interrupt-cells = <2>;
54		};
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.