iMX28 DTS GPIO IRQ Definition

Shawn Guo shawn.guo at linaro.org
Tue Apr 16 23:15:15 EDT 2013


On Tue, Apr 16, 2013 at 11:47:57AM -0500, Ryan Bryngelson wrote:
> I don't see how I should define a node in the imx28-evk.dts that
> defines a GPIO that is an IRQ.  The "interrupts" in the dtsi file, 127
> in the example above, refer to the IRQ source in the ICOLL.  Where are
> the definitions of the interrupt-cells and gpio-cells at that are
> described in the gpio-mxs.txt documentation?

There is an example in arch/arm/boot/dts/imx28-cfa10049.dts.

pca9555: pca9555 at 20 {
	compatible = "nxp,pca9555";
	interrupt-parent = <&gpio2>;
	interrupts = <19 0x2>;
};

In this example, the device pca9555 uses GPIO2_19 as the IRQ line which
is high-to-low edge triggered.

Shawn




More information about the linux-arm-kernel mailing list