public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Device tree question for 85xx
Date: Tue, 14 Aug 2007 17:00:57 -0500	[thread overview]
Message-ID: <46C22619.3040009@freescale.com> (raw)
In-Reply-To: <f87675ee0708141443p78d04471yd600ff19e40e34a8@mail.gmail.com>

robert lazarski wrote:
> Hi all, please excuse if device tree questions are off topic for this
> list - I already tried linuxppc-embedded2 on usenet with no luck. I've
> also been reading booting-without-of.txt .

I'm not familiar with "linuxppc-embedded2", but 
linuxppc-embedded at ozlabs.org is the place for this kind of thing.

> I'm trying to define the 'mdio' and 'ethernet' nodes for my mpc8548e
> board that arrives soon, using cds for my reference. The cds reference
> has a Quad PHY of either a CIS8204 or a 88E1145 - swappable as a
> mezzanine I believe. Our board has two dual PHY's - 88E1111 and a
> 88E1121R . Our hardware engineer has simply defined four external
> interrupts:
> 
> IRQ0 : PHY 0 - TSEC 1 (P0 of the 88E1121R)
> IRQ1 : PHY 1 - TSEC 2 (P1 of the 88E1121R)
> IRQ2 : PHY 2 - TSEC 3 (88E1111)
> IRQ3 : PHY 3 - TSEC 4 (88E1111)
> 
> The docs say the interrupts depend on the 'type of interrupt
> controller' - which is on chip I believe for the 8548.  Here's how cds
> has it in the linux-2.6.22/arch/powerpc/boot/dts/mpc8548cds.dts - Can
> anyone please help me understand how to define a dts for my board?
> I've been struggling to understand how this works - any help
> appreciated.


External interrupts start at zero (internal interrupt numbers have 0x10 
added to them), so the first cell should correspond to the external IRQ 
number.

The second cell encodes the level and sense information, and is 
documented in Documentation/powerpc/booting-without-of.txt:

         0 = low to high edge sensitive type enabled
         1 = active low level sensitive type enabled
         2 = active high level sensitive type enabled
         3 = high to low edge sensitive type enabled
 

-Scott

      reply	other threads:[~2007-08-14 22:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14 21:43 [U-Boot-Users] Device tree question for 85xx robert lazarski
2007-08-14 22:00 ` 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=46C22619.3040009@freescale.com \
    --to=scottwood@freescale.com \
    --cc=u-boot@lists.denx.de \
    /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