Regarding irq_of_parse_and_map

Scott Wood scottwood at freescale.com
Tue Feb 17 05:08:58 EST 2009


On Mon, Feb 16, 2009 at 05:25:23PM +0530, Vijay Nikam wrote:
> 2. Also I would like to ask how I can determine the virtual irq using
> irq_of_parse_and_map (struct device_node *dev, int index)  ? ? ?
> 
> here I am not getting what I should pass *dev and index ? ? ? as in my
> mpc8313erdb.dts I could not find any node name 'gpio' so I do not know
> what I can use ...

You'd need to add a gpio node to the device tree.  If you do this, be
sure to follow existing bindings.

> 
> Kindly please acknowledge ... thank you ...
> 
> Following is the content of mpc8313erdb.dts

That device tree looks very old, as if it came from a BSP rather than
upstream Linux.

-Scott



More information about the Linuxppc-dev mailing list