linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to support scc-enet on MPC8247 in Linux 2.6.32.6
@ 2010-04-22  6:41 Peter Pan
  2010-04-22 17:11 ` Scott Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Pan @ 2010-04-22  6:41 UTC (permalink / raw)
  To: linuxppc-dev

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:

            eth2: ethernet@11a40 {
                device_type = "network";
                compatible = "fsl,mpc8247-scc-enet",
                             "fsl,cpm2-scc-enet";
                reg = <0x11a40 0x20 0x8200 0x100 0x11390 0x1>;
                local-mac-address = [ 00 00 00 00 00 00 ]; /* filled
by U-Boot */
                interrupts = <42 8>;
                interrupt-parent = <&PIC>;
                linux,network-index = <0x2>;
                fsl,cpm-command = <0x8c00000>;
                fixed-link = < 0 0 10 0 0 >;
            };
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to support scc-enet on MPC8247 in Linux 2.6.32.6
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2010-04-22 17:11 UTC (permalink / raw)
  To: Peter Pan; +Cc: linuxppc-dev

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:
> 
>             eth2: ethernet@11a40 {
>                 device_type = "network";
>                 compatible = "fsl,mpc8247-scc-enet",
>                              "fsl,cpm2-scc-enet";
>                 reg = <0x11a40 0x20 0x8200 0x100 0x11390 0x1>;
>                 local-mac-address = [ 00 00 00 00 00 00 ]; /* filled
> by U-Boot */
>                 interrupts = <42 8>;
>                 interrupt-parent = <&PIC>;
>                 linux,network-index = <0x2>;
>                 fsl,cpm-command = <0x8c00000>;
>                 fixed-link = < 0 0 10 0 0 >;
>             };
> 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?  If the latter, you need a phy-handle property instead, 
pointing to a PHY node under an MDIO bus node that represents how MDIO 
is wired on your board.

-Scott

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to support scc-enet on MPC8247 in Linux 2.6.32.6
  2010-04-22 17:11 ` Scott Wood
@ 2010-04-23  1:56   ` Peter Pan
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Pan @ 2010-04-23  1:56 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev

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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-23  1:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).