EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Change PHY chip

Started by MengJianjun March 5, 2010
Hi all,

I have a project take a demo board as reference design and we want to change PHY chip from RTL8201 to KSZ8041. I am using Linux 2.6.23 as OS, what should I do?

I need change something to let kernel support ksz8041?

_________________________________________________________________
MSNʮÿλucirc;uuml;25ԪĿ2010룬ȡ
http://kaba.msn.com.cn/?k=1

An Engineer's Guide to the LPC2100 Series

The RTL8201 and the KSZ8041 are both just the PHY.
ie. the hardware line-driver.

So you are still keeping the same MAC hardware?

The MAC is what Linux drivers talk to - it is the ethernet controller
hardware (the registers that software programs)
In most cases Linux does not need to know anything about the PHY. the
PHY is connected to the MII or RMII interface that is output from the
MAC. MII/RMII is an interface standard so you should not need to
change anything. Other PHY chips that have RMII/MII interface should
in theory be interchangeable (apart from different pinout of course).
At 08:54 05/03/2010, MengJianjun wrote:
> I have a project take a demo board as reference design and we
> want to change PHY chip from RTL8201 to KSZ8041. I am using Linux
> 2.6.23 as OS, what should I do?
>
> I need change something to let kernel support ksz8041?

Hi Andy,

Thanks for your answer.

Yes we still keep the samp MAC hardware.

But when I compare the datasheet between RTL8201 and KSZ8041 found that KSZ8041 has more registers than RTL8201. I am not sure whether need control these registers.

I am not familiar with net architecture in Linux so thanks for your help.

John

To: l...
From: s...@evfarm.co.uk
Date: Sat, 6 Mar 2010 10:50:40 +0000
Subject: Re: [lpc2000] Change PHY chip

The RTL8201 and the KSZ8041 are both just the PHY.
ie. the hardware line-driver.

So you are still keeping the same MAC hardware?

The MAC is what Linux drivers talk to - it is the ethernet controller
hardware (the registers that software programs)
In most cases Linux does not need to know anything about the PHY. the
PHY is connected to the MII or RMII interface that is output from the
MAC. MII/RMII is an interface standard so you should not need to
change anything. Other PHY chips that have RMII/MII interface should
in theory be interchangeable (apart from different pinout of course).

At 08:54 05/03/2010, MengJianjun wrote:
> I have a project take a demo board as reference design and we
> want to change PHY chip from RTL8201 to KSZ8041. I am using Linux
> 2.6.23 as OS, what should I do?
>
> I need change something to let kernel support ksz8041?

_________________________________________________________________
约会说不清地方?来试试微软地图最新msn互动功能!
http://ditu.live.com/?form=TL&swm=1
I don't know what the linux driver does in detail, but IMHO changeing
the PHY does matter. At least it does in my (not Linux) based code. As
you found out yourself, PHY registers are not compatible amongst
different PHYs. The driver has to query the PHY i.e. in order to learn
about the link state of the connection, or to configure the linke
(speed, duplex half duplex and so on) and as such it does matter. The
change needed code wise does not seem to be a big issue but of course
this holds only true if you are familiar with linux drivers etc. I thus
suggest you check if there is documentation available on the issue or
look at the source code of the linux ethernet driver to see if there are
defines in header or configuration files that change the type of PHY in
use.

Just my 2¢

Markus

MengJianjun schrieb:
>
>
> Hi Andy,
>
> Thanks for your answer.
>
> Yes we still keep the samp MAC hardware.
>
> But when I compare the datasheet between RTL8201 and KSZ8041 found
> that KSZ8041 has more registers than RTL8201. I am not sure whether
> need control these registers.
>
> I am not familiar with net architecture in Linux so thanks for your
> help.
>
> John
>
>
>
> To: l...
> From: s...@evfarm.co.uk
> Date: Sat, 6 Mar 2010 10:50:40 +0000
> Subject: Re: [lpc2000] Change PHY chip
>
>
> The RTL8201 and the KSZ8041 are both just the PHY.
> ie. the hardware line-driver.
>
> So you are still keeping the same MAC hardware?
>
> The MAC is what Linux drivers talk to - it is the ethernet controller
> hardware (the registers that software programs)
> In most cases Linux does not need to know anything about the PHY. the
> PHY is connected to the MII or RMII interface that is output from the
> MAC. MII/RMII is an interface standard so you should not need to
> change anything. Other PHY chips that have RMII/MII interface should
> in theory be interchangeable (apart from different pinout of course).
>
> At 08:54 05/03/2010, MengJianjun wrote:
> > I have a project take a demo board as reference design and we
> > want to change PHY chip from RTL8201 to KSZ8041. I am using Linux
> > 2.6.23 as OS, what should I do?
> >
> > I need change something to let kernel support ksz8041?
>
>
> 更多热辣资讯尽在新版MSN首页! 立刻访问!

Memfault Beyond the Launch