About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / gpio / abilis,tb10x-gpio.txt




Custom Search

Based on kernel version 3.16. Page generated on 2014-08-06 21:37 EST.

1	* Abilis TB10x GPIO controller
2	
3	Required Properties:
4	- compatible: Should be "abilis,tb10x-gpio"
5	- reg: Address and length of the register set for the device
6	- gpio-controller: Marks the device node as a gpio controller.
7	- #gpio-cells: Should be <2>. The first cell is the pin number and the
8	  second cell is used to specify optional parameters:
9	   - bit 0 specifies polarity (0 for normal, 1 for inverted).
10	- abilis,ngpio: the number of GPIO pins this driver controls.
11	
12	Optional Properties:
13	- interrupt-controller: Marks the device node as an interrupt controller.
14	- #interrupt-cells: Should be <1>. Interrupts are triggered on both edges.
15	- interrupts: Defines the interrupt line connecting this GPIO controller to
16	  its parent interrupt controller.
17	- interrupt-parent: Defines the parent interrupt controller.
18	
19	GPIO ranges are specified as described in
20	Documentation/devicetree/bindings/gpio/gpio.txt
21	
22	Example:
23	
24		gpioa: gpio@FF140000 {
25			compatible = "abilis,tb10x-gpio";
26			interrupt-controller;
27			#interrupt-cells = <1>;
28			interrupt-parent = <&tb10x_ictl>;
29			interrupts = <27 2>;
30			reg = <0xFF140000 0x1000>;
31			gpio-controller;
32			#gpio-cells = <2>;
33			abilis,ngpio = <3>;
34			gpio-ranges = <&iomux 0 0 0>;
35			gpio-ranges-group-names = "gpioa_pins";
36		};
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.