blob: a56e3a53a3604265cb7212a40e9453916f8a1197 [file] [log] [blame]
Benoit Cousson384ebe12011-08-16 11:53:02 +02001OMAP GPIO controller bindings
2
3Required properties:
4- compatible:
5 - "ti,omap2-gpio" for OMAP2 controllers
6 - "ti,omap3-gpio" for OMAP3 controllers
7 - "ti,omap4-gpio" for OMAP4 controllers
Javier Martinez Canillas5dad5ec2013-03-15 14:31:57 +01008- gpio-controller : Marks the device node as a GPIO controller.
Benoit Cousson384ebe12011-08-16 11:53:02 +02009- #gpio-cells : Should be two.
10 - first cell is the pin number
11 - second cell is used to specify optional parameters (unused)
Javier Martinez Canillas5dad5ec2013-03-15 14:31:57 +010012- interrupt-controller: Mark the device node as an interrupt controller.
Benoit Cousson384ebe12011-08-16 11:53:02 +020013- #interrupt-cells : Should be 2.
Benoit Cousson384ebe12011-08-16 11:53:02 +020014 The first cell is the GPIO number.
15 The second cell is used to specify flags:
16 bits[3:0] trigger type and level flags:
17 1 = low-to-high edge triggered.
18 2 = high-to-low edge triggered.
19 4 = active high level-sensitive.
20 8 = active low level-sensitive.
21
22OMAP specific properties:
23- ti,hwmods: Name of the hwmod associated to the GPIO:
24 "gpio<X>", <X> being the 1-based instance number from the HW spec
25
26
27Example:
28
29gpio4: gpio4 {
30 compatible = "ti,omap4-gpio";
31 ti,hwmods = "gpio4";
Benoit Cousson384ebe12011-08-16 11:53:02 +020032 gpio-controller;
Javier Martinez Canillas5dad5ec2013-03-15 14:31:57 +010033 #gpio-cells = <2>;
Benoit Cousson384ebe12011-08-16 11:53:02 +020034 interrupt-controller;
Javier Martinez Canillas5dad5ec2013-03-15 14:31:57 +010035 #interrupt-cells = <2>;
Benoit Cousson384ebe12011-08-16 11:53:02 +020036};