diff options
| author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-01-07 11:57:46 -0500 |
|---|---|---|
| committer | Kumar Gala <galak@kernel.crashing.org> | 2010-05-17 11:48:28 -0400 |
| commit | 345e5c8a1cc30ebd527bcc122d9540538942f1ba (patch) | |
| tree | 7a413e2b6360cb5d8936e5b083279297f08a3080 /Documentation/powerpc | |
| parent | 1ed31d6db90d51010545921e59d369d2f92b7ac2 (diff) | |
powerpc: Add interrupt support to mpc8xxx_gpio
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'Documentation/powerpc')
| -rw-r--r-- | Documentation/powerpc/dts-bindings/fsl/8xxx_gpio.txt | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Documentation/powerpc/dts-bindings/fsl/8xxx_gpio.txt b/Documentation/powerpc/dts-bindings/fsl/8xxx_gpio.txt index d015dcec401..b0019eb5330 100644 --- a/Documentation/powerpc/dts-bindings/fsl/8xxx_gpio.txt +++ b/Documentation/powerpc/dts-bindings/fsl/8xxx_gpio.txt | |||
| @@ -11,7 +11,7 @@ Required properties: | |||
| 11 | 83xx, "fsl,mpc8572-gpio" for 85xx and "fsl,mpc8610-gpio" for 86xx. | 11 | 83xx, "fsl,mpc8572-gpio" for 85xx and "fsl,mpc8610-gpio" for 86xx. |
| 12 | - #gpio-cells : Should be two. The first cell is the pin number and the | 12 | - #gpio-cells : Should be two. The first cell is the pin number and the |
| 13 | second cell is used to specify optional parameters (currently unused). | 13 | second cell is used to specify optional parameters (currently unused). |
| 14 | - interrupts : Interrupt mapping for GPIO IRQ (currently unused). | 14 | - interrupts : Interrupt mapping for GPIO IRQ. |
| 15 | - interrupt-parent : Phandle for the interrupt controller that | 15 | - interrupt-parent : Phandle for the interrupt controller that |
| 16 | services interrupts for this device. | 16 | services interrupts for this device. |
| 17 | - gpio-controller : Marks the port as GPIO controller. | 17 | - gpio-controller : Marks the port as GPIO controller. |
| @@ -38,3 +38,23 @@ Example of gpio-controller nodes for a MPC8347 SoC: | |||
| 38 | 38 | ||
| 39 | See booting-without-of.txt for details of how to specify GPIO | 39 | See booting-without-of.txt for details of how to specify GPIO |
| 40 | information for devices. | 40 | information for devices. |
| 41 | |||
| 42 | To use GPIO pins as interrupt sources for peripherals, specify the | ||
| 43 | GPIO controller as the interrupt parent and define GPIO number + | ||
| 44 | trigger mode using the interrupts property, which is defined like | ||
| 45 | this: | ||
| 46 | |||
| 47 | interrupts = <number trigger>, where: | ||
| 48 | - number: GPIO pin (0..31) | ||
| 49 | - trigger: trigger mode: | ||
| 50 | 2 = trigger on falling edge | ||
| 51 | 3 = trigger on both edges | ||
| 52 | |||
| 53 | Example of device using this is: | ||
| 54 | |||
| 55 | funkyfpga@0 { | ||
| 56 | compatible = "funky-fpga"; | ||
| 57 | ... | ||
| 58 | interrupts = <4 3>; | ||
| 59 | interrupt-parent = <&gpio1>; | ||
| 60 | }; | ||
