From: Remi Machet <rmachet@slac.stanford.edu>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: Linux PPC <linuxppc-dev@ozlabs.org>, Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH 1/5 v3] powerpc: DTS file for the C2K
Date: Tue, 20 May 2008 09:38:08 -0700 [thread overview]
Message-ID: <1211301489.19212.32.camel@pcds-ts102.slac.stanford.edu> (raw)
In-Reply-To: <20080520011304.GG22279@yookeroo.seuss>
On Tue, 2008-05-20 at 11:13 +1000, David Gibson wrote:
> On Mon, May 19, 2008 at 05:00:23PM -0700, Remi Machet wrote:
> > Support for the C2K cPCI Single Board Computer from GEFanuc
> > (PowerPC MPC7448 with a Marvell MV64460 chipset)
> > All features of the board are not supported yet, but the board
> > boots, flash works, all Ethernet ports are working and PCI
> > devices are all found (USB and SATA on PCI1 do not work yet).
> >
> > Part 1 of 5: DTS file describing the board peripherals. As far as I know
> > all peripherals except the FPGA are listed in there (I did not included
> > the FPGA because a lot of work is needed there).
>
> [snip]
> > + ethernet-group@2000 {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > + compatible = "marvell,mv64360-eth-group";
> > + reg = <0x2000 0x2000>;
> > + PHY0: ethernet-phy@0 {
> > + device_type = "ethernet-phy";
> > + interrupts = <76>; /* GPP 12 */
> > + interrupt-parent = <&PIC>;
> > + reg = <0>;
> > + };
> > + ethernet@0 {
> > + device_type = "network";
> > + compatible = "marvell,mv64360-eth";
> > + reg = <0>;
> > + interrupts = <32>;
> > + interrupt-parent = <&PIC>;
> > + phy = <&PHY0>;
> > + local-mac-address = [ 00 00 00 00 00 00 ];
> > + };
>
> Not sure if this is new, or I just didn't notice it before. Also not
> sure if this is your mistake, or a mistake in the binding for the
> marvell device here.
>
> The address in "reg" should be unique within the bus the device
> appears on. So having both the PHY and the MAC devices with the same
> "reg" and same unit address here is bad.
>
> Having both the PHYs and the MACs as children of the ethernet-group
> node is possible, but the addresses must be encoded to distinguish
> them (e.g. MACs are 0x0, 0x1, 0x2, PHYS are 0x1000 0x1001 0x1002).
>
It was an attempt at getting rid of the mdio group since the PHY is
effectively managed by the Ethernet hardware. The problem is that the
reg field must contain those values ... if I change this, I must change
the driver and other boards DTS files that depend on it which I would
rather not do at the same time I am pushing this patch through.
I will put back the mdio group and add a reg field to it as you
suggested previously.
Remi
next prev parent reply other threads:[~2008-05-20 16:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-20 0:00 [PATCH 1/5 v3] powerpc: DTS file for the C2K Remi Machet
2008-05-20 1:13 ` David Gibson
2008-05-20 16:38 ` Remi Machet [this message]
2008-05-22 0:26 ` David Gibson
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=1211301489.19212.32.camel@pcds-ts102.slac.stanford.edu \
--to=rmachet@slac.stanford.edu \
--cc=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/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).