Thread (1 message) 1 message, 1 author, 2011-06-29

Re: Converting i2c-omap driver to use device tree

From: Manjunatha GK <hidden>
Date: 2011-06-29 04:53:25

On 29 June 2011 01:08, Grant Likely [off-list ref] wrote:
[...]
quoted
quoted
Any specific reason for missing entries in device node structures?

Since you explored other ARM boards, is this interrupts field used and
tested?
What tree do you have your work based on top of?

git://git.secretlab.ca/git/linux-2.6.git
branch: devicetree/test

Do you have the irq_domain patch applied?

If so, then the problem is most likely that an
irq_domain has not been registered for the OMAP interrupt controller
(which is not surprising since the gic has not been converted to use
irq_domain yet).  There are patches that have been posted to the list
to do so, but they are not finished yet.
ok.

In the mean time you can use
irq_domain_generate_simple() to create an irq_domain registration for
the OMAP that will get you past this step.

Search the devicetree/test branch for irq_domain_generate_simple() to
see how to use it.

I realized this hence used
node = of_find_matching_node_by_address(NULL, omap_dt_gic_match,
                                                OMAP44XX_GIC_DIST_BASE);
        if (node)
                irq_domain_add_simple(node, 0);

which resolved the irq issue.

Thanks for the info.

-Manjunath
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help