From: Scott Wood <scottwood@freescale.com>
To: wael showair <showair2003@yahoo.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: How to add my device node in the device tree
Date: Mon, 10 Nov 2008 17:18:16 -0600 [thread overview]
Message-ID: <4918C138.9040701@freescale.com> (raw)
In-Reply-To: <20389723.post@talk.nabble.com>
wael showair wrote:
> i want to add a node for the DMA in this tree. the PIC PDF tells me that DMA
> channel 0 is connected to Internal interrupt number 4 so i add the following
> node just before the pic node & after the serial node:
>
> ******************************************
>
> DMA@21100 {
> reg = <21100 44>;
> interrupts = <4 2>;
> interrupt-parent = <40000>;
> };
> ******************************************
Copy the dma (eloplus) node in one of the existing device trees, rather
than make up a new binding. BTW, internal interrupts on the MPIC have
to have 16 added to the interrupt number.
> but when i called the of_find_node_by_name(NULL, "DMA");
> unfortunately it returns NULL & i cant the a node with such a name.
> i have checked this by printing all of the nodes in my tree which are:
> cpus
> PowerPC,8555
> memory
> soc8555
> i2c
> mdio
> ...
> serial
> pic
> choosen
> choosen
>
> without a node of name DMA for sure.
> so what else should i do to create this node?
> thanks in advance for your help.
Not sure, are you sure you properly rebuilt the device tree, and are
using the new blob rather than the old one?
-Scott
prev parent reply other threads:[~2008-11-10 23:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-07 22:52 How to add my device node in the device tree wael showair
2008-11-10 23:18 ` Scott Wood [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4918C138.9040701@freescale.com \
--to=scottwood@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=showair2003@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.