iMX28 DTS GPIO IRQ Definition
Ryan Bryngelson
rabryn at c2development.com
Tue Apr 16 23:41:40 EDT 2013
>
> 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
>
Thanks for the information! I see what you're referring to. In the
latest imx28-cfa10049.dts I see the definition looks like this...
pca9555: pca9555 at 20 {
compatible = "nxp,pca9555";
interrupt-parent = <&gpio2>;
interrupts = <19 0x2>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
reg = <0x20>;
};
I'm learning about the device tree. Is it correct to say "interrupts"
corresponds to "#interrupt-cells" and "gpios" corresponds to
"gpio-cells"? If so, why is "gpios" missing from this definition? I
see that GPIO2_19 is configured to have it's internal pull up enabled
in the hog_pins_cfa10049_pullup node. What are "hog_pins"?
Thanks again for taking the time to respond. I've been stuck with
these questions for a couple days now. I can't seem to find any
resources online to learn about the device tree.
Ryan
More information about the linux-arm-kernel
mailing list