devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Robert Sciuk <robert.sciuk@exfo.com>
Cc: devicetree-discuss@lists.ozlabs.org, linuxppc-dev@lists.ozlabs.org
Subject: Re: fpga driver on custom PPC target platform (P4080) ...
Date: Thu, 3 Nov 2011 22:22:13 +0100	[thread overview]
Message-ID: <E084F63F-C294-471C-AEFB-EBF5F8CCA89E@kernel.crashing.org> (raw)
In-Reply-To: <2DD52030B5146141BEB762A11AE97C4C0100C4AA@SPQCEXC05.exfo.com>

> 	- How does one specify in the device tree an FPGA which uses
> both I2c bus and localbus for programming?

You have two device nodes, one on the localbus and one on the IIC bus.
One of the nodes points to the other, or both do; you point to another
node by having a property containing the phandle of that other node.

It's probably easiest to make the IIC node point to the localbus node,
because you will most likely always have exactly one of those, and you
could have multiple IIC nodes on your FPGA, or none at all.  But this
is something you'll have to put in the device binding for your device,
and it doesn't really matter what you choose -- it will work either way,
some choices are more convenient than others though.


Segher

  reply	other threads:[~2011-11-03 21:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02 22:43 fpga driver on custom PPC target platform (P4080) Robert Sciuk
2011-11-03 21:22 ` Segher Boessenkool [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-11-03 22:12 Robert Sciuk
2011-11-04 16:36 ` Tabi Timur-B04825
     [not found]   ` <CAOZdJXWjS4t9cOKRB3rxy0iCFAYRyEgg6kfQwvydUQSyO1ttoA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-04 16:42     ` Robert Sciuk
2011-11-04 18:19   ` Robert Sciuk
     [not found]     ` <2DD52030B5146141BEB762A11AE97C4C0100C8C1-OMuKRxKQdmAsN9D57aW0LdBPR1lH4CV8@public.gmane.org>
2011-11-05  0:40       ` David Gibson
2011-11-07 18:48         ` Robert Sciuk
     [not found]         ` <20111105004050.GA1384-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2011-11-07 20:09           ` Robert Sciuk
2011-11-07 21:31             ` Mitch Bradley
     [not found]               ` <4EB84E24.9000000-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2011-11-07 21:50                 ` Robert Sciuk
2011-11-07 22:14             ` Scott Wood
2011-11-07 23:07               ` Robert Sciuk
     [not found]               ` <4EB8582A.3070303-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2011-11-07 23:29                 ` Robert Sciuk

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=E084F63F-C294-471C-AEFB-EBF5F8CCA89E@kernel.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=robert.sciuk@exfo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).