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.13.3. Page generated on 2017-09-23 13:55 EST.

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