Benoit Cousson | 384ebe1 | 2011-08-16 11:53:02 +0200 | [diff] [blame] | 1 | OMAP GPIO controller bindings |
| 2 | |
| 3 | Required 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 Canillas | 5dad5ec | 2013-03-15 14:31:57 +0100 | [diff] [blame] | 8 | - gpio-controller : Marks the device node as a GPIO controller. |
Benoit Cousson | 384ebe1 | 2011-08-16 11:53:02 +0200 | [diff] [blame] | 9 | - #gpio-cells : Should be two. |
| 10 | - first cell is the pin number |
| 11 | - second cell is used to specify optional parameters (unused) |
Javier Martinez Canillas | 5dad5ec | 2013-03-15 14:31:57 +0100 | [diff] [blame] | 12 | - interrupt-controller: Mark the device node as an interrupt controller. |
Benoit Cousson | 384ebe1 | 2011-08-16 11:53:02 +0200 | [diff] [blame] | 13 | - #interrupt-cells : Should be 2. |
Benoit Cousson | 384ebe1 | 2011-08-16 11:53:02 +0200 | [diff] [blame] | 14 | 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 | |
| 22 | OMAP specific properties: |
Jon Hunter | a2797be | 2013-04-04 15:16:15 -0500 | [diff] [blame] | 23 | - ti,hwmods: Name of the hwmod associated to the GPIO: |
| 24 | "gpio<X>", <X> being the 1-based instance number |
| 25 | from the HW spec. |
| 26 | - ti,gpio-always-on: Indicates if a GPIO bank is always powered and |
| 27 | so will never lose its logic state. |
Benoit Cousson | 384ebe1 | 2011-08-16 11:53:02 +0200 | [diff] [blame] | 28 | |
| 29 | |
| 30 | Example: |
| 31 | |
| 32 | gpio4: gpio4 { |
| 33 | compatible = "ti,omap4-gpio"; |
| 34 | ti,hwmods = "gpio4"; |
Benoit Cousson | 384ebe1 | 2011-08-16 11:53:02 +0200 | [diff] [blame] | 35 | gpio-controller; |
Javier Martinez Canillas | 5dad5ec | 2013-03-15 14:31:57 +0100 | [diff] [blame] | 36 | #gpio-cells = <2>; |
Benoit Cousson | 384ebe1 | 2011-08-16 11:53:02 +0200 | [diff] [blame] | 37 | interrupt-controller; |
Javier Martinez Canillas | 5dad5ec | 2013-03-15 14:31:57 +0100 | [diff] [blame] | 38 | #interrupt-cells = <2>; |
Benoit Cousson | 384ebe1 | 2011-08-16 11:53:02 +0200 | [diff] [blame] | 39 | }; |