linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Peter Pan <pppeterpppan@gmail.com>
To: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: How to support scc-enet on MPC8247 in Linux 2.6.32.6
Date: Fri, 23 Apr 2010 09:56:49 +0800	[thread overview]
Message-ID: <l2x48abf2c21004221856t63786e04o9dc0599b9335e12c@mail.gmail.com> (raw)
In-Reply-To: <4BD0834A.3020508@freescale.com>

There is an MDIO used by FCC, but the SCC is connected with LXT905,
which is Ethernet Interface Adapter. So I think the SCC should be
fixed-link. But how can I set the fixed-link property? I searched
through the Document directory, there is nothing about the fixed-link
property.

2010/4/23 Scott Wood <scottwood@freescale.com>:
> Peter Pan wrote:
>>
>> I'm porting Linux 2.6.32.6 to our MPC8247 based board. We use SCC3 and
>> SCC4 as ethernet port. These two ports are connect with LXT905 PHY
>> chip.
>> I'm now using fs_enet driver, how should I config the scc port in dtc
>> file. I copied from mgcoge.dts file, and my dtc file of scc enet is
>> follows:
>>
>> =A0 =A0 =A0 =A0 =A0 =A0eth2: ethernet@11a40 {
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0device_type =3D "network";
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0compatible =3D "fsl,mpc8247-scc-enet",
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "fsl,cpm2-scc-en=
et";
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0reg =3D <0x11a40 0x20 0x8200 0x100 0x1139=
0 0x1>;
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0local-mac-address =3D [ 00 00 00 00 00 00=
 ]; /* filled
>> by U-Boot */
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0interrupts =3D <42 8>;
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0interrupt-parent =3D <&PIC>;
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0linux,network-index =3D <0x2>;
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fsl,cpm-command =3D <0x8c00000>;
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fixed-link =3D < 0 0 10 0 0 >;
>> =A0 =A0 =A0 =A0 =A0 =A0};
>> But i does not working. Linux says that PHY 0:00 is not found. I dive
>> into the code, and that's according to the fixed-link property.
>> I'm wondering how to support scc-enet in my situation.
>
> Do you really want fixed-link, or does the board have a working MDIO
> interface? =A0If the latter, you need a phy-handle property instead, poin=
ting
> to a PHY node under an MDIO bus node that represents how MDIO is wired on
> your board.
>
> -Scott
>

      reply	other threads:[~2010-04-23  1:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-22  6:41 How to support scc-enet on MPC8247 in Linux 2.6.32.6 Peter Pan
2010-04-22 17:11 ` Scott Wood
2010-04-23  1:56   ` Peter Pan [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=l2x48abf2c21004221856t63786e04o9dc0599b9335e12c@mail.gmail.com \
    --to=pppeterpppan@gmail.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scottwood@freescale.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).