diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-07-06 08:03:37 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-07-07 08:13:24 -0400 |
commit | 88cde8b78f6914ce542949e5a8dd9031e3035996 (patch) | |
tree | 05ce753b31d68d2f2c8cc61006ff68a5365eb53e /Documentation/devicetree/bindings/gpio | |
parent | c1cb438522f2cd62fb3a261d66a549606c131c93 (diff) |
ARM: dts: imx: update #interrupt-cells for gpio nodes
Change the value of #interrupt-cells of gpio nodes from 1 to 2, so that
the gpio irq type can be specified in device tree. Also update binding
document to make it clear.
Reported-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt index 5f360e7cdd32..4f3929713ae4 100644 --- a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt +++ b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt | |||
@@ -11,6 +11,13 @@ Required properties: | |||
11 | the second cell is used to specify the gpio polarity: | 11 | the second cell is used to specify the gpio polarity: |
12 | 0 = active high | 12 | 0 = active high |
13 | 1 = active low | 13 | 1 = active low |
14 | - interrupt-controller: Marks the device node as an interrupt controller. | ||
15 | - #interrupt-cells : Should be 2. The first cell is the GPIO number. | ||
16 | The second cell bits[3:0] is used to specify 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. | ||
14 | 21 | ||
15 | Example: | 22 | Example: |
16 | 23 | ||
@@ -20,4 +27,6 @@ gpio0: gpio@73f84000 { | |||
20 | interrupts = <50 51>; | 27 | interrupts = <50 51>; |
21 | gpio-controller; | 28 | gpio-controller; |
22 | #gpio-cells = <2>; | 29 | #gpio-cells = <2>; |
30 | interrupt-controller; | ||
31 | #interrupt-cells = <2>; | ||
23 | }; | 32 | }; |