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