linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "David Müller (ELSOFT AG)" <d.mueller@elsoft.ch>
To: andrew may <acmay@acmay.homeip.net>
Cc: Armin <akuster@pacbell.net>,
	Stefan Roese <stefan.roese@esd-electronics.com>,
	linuxppc-embedded@lists.linuxppc.org
Subject: 405 MII-PHY communication problem (was: Re: PPC405gp enet Soft Reset)
Date: Wed, 13 Feb 2002 09:37:16 +0100	[thread overview]
Message-ID: <3C6A25BC.7010704@elsoft.ch> (raw)
In-Reply-To: 20020211164906.A1822@ecam.san.rr.com


Hi

andrew may wrote:
> On Mon, Feb 11, 2002 at 12:55:05PM +0100, David Müller (ELSOFT AG) wrote:
>
>>Hi
>>
>>andrew may wrote:
>>
>>>Here is a log from ppcboot since it is easy to test this there without doing
>>>a kernel build. My phy is at address 0x1f.
>>>
>>>=> mii read 0x1 2
>>>07FF
>>>=> mii read 0x1 3
>>>read err 3
>>>a2: read: EMAC_STACR=0xffffc023, i=2
>>>Error reading from the PHY
>>>07FF
>>>
>>>
>>I'm seeing this error too on our boards. But i'm not certain, if it's a
>>problem of the MII controller in the 405 or a problem of the LXT971.
>>What revision of the 405 do you have? What clock frequency your 405 run at?
>>
>
> Well since I have no phy at address 1 I expect to get an error, but the problem
> is that I am not getting an error when the register number is even.
>
> The phy is at address 0x1f since it was easier for our hw guy to tie all the pins
> to the same thing rather than put it at low address.
>
> It is a RevE chip running at 266Mhz, the phy is an AMD Am79C874/ Altima AC101.
>
>

Our board is also a PPC405GP Rev E processor running @ 266MHz. Attached
to the MII port is an Intel LXT971ALE PHY chip @ address #1.

There i see the same error as you are describing (even-numbered PHY
registers give no error):

=> mii info
read err 3
a2: read: EMAC_STACR=0xffffc003, i=2
PHY 0x01: OUI = 0x04DE, Model = 0x0E, Rev = 0x02, 100baseT, FDX
read err 3
a2: read: EMAC_STACR=0xffffc043, i=2
read err 3
a2: read: EMAC_STACR=0xffffc063, i=2
read err 3
a2: read: EMAC_STACR=0xffffc083, i=2
read err 3
a2: read: EMAC_STACR=0xffffc0a3, i=2
read err 3

=> mii read 0 0
07FF
=> mii read 0 1
read err 3
a2: read: EMAC_STACR=0xffffc001, i=2
Error reading from the PHY
07FF
=> mii read 0 2
07FF
=> mii read 0 3
read err 3
a2: read: EMAC_STACR=0xffffc003, i=2
Error reading from the PHY
07FF
=> mii read 1 0
3100
=> mii read 1 1
7829
=> mii read 1 2
0013
=> mii read 1 3
78E2
=> mii read 2 0
07FF
=> mii read 2 1
read err 3
a2: read: EMAC_STACR=0xffffc041, i=2
Error reading from the PHY
07FF
=> mii read 2 2
07FF
=> mii read 2 3
read err 3
a2: read: EMAC_STACR=0xffffc043, i=2
Error reading from the PHY
07FF


On another custom board there is a PPC405GP Rev D processor running @
200MHz. Attached to the MII port is a Cirrus "Crystal LAN" CS8952 PHY
chip @ address #1.

With this configuration the MII controller sees a "ghost" PHY device at
adresse #0:

=> mii info
PHY 0x00: OUI = 0x0688, Model = 0x20, Rev = 0x05, 100baseT, FDX
PHY 0x01: OUI = 0x0688, Model = 0x20, Rev = 0x05, 100baseT, FDX
read err 3
a2: read: EMAC_STACR=0xffffc043, i=4
read err 3
a2: read: EMAC_STACR=0xffffc063, i=4
read err 3
a2: read: EMAC_STACR=0xffffc083, i=4
read err 3
a2: read: EMAC_STACR=0xffffc0a3, i=4
read err 3

=> mii read 0 0
3000
=> mii read 0 1
786D
=> mii read 0 2
001A
=> mii read 0 3
2205
=> mii read 1 0
3000
=> mii read 1 1
786D
=> mii read 1 2
001A
=> mii read 1 3
2205
=> mii read 2 0
read err 3
a2: read: EMAC_STACR=0xffffc040, i=4
Error reading from the PHY
2205
=> mii read 2 1
read err 3
a2: read: EMAC_STACR=0xffffc041, i=4
Error reading from the PHY
2205
=> mii read 2 2
read err 3
a2: read: EMAC_STACR=0xffffc042, i=4
Error reading from the PHY
2205
=> mii read 2 3
read err 3
a2: read: EMAC_STACR=0xffffc043, i=4
Error reading from the PHY
2205

My previously posted patch to fix the "even-numbered" problem will not
work in this case!


Dave

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2002-02-13  8:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-08  3:17 PPC405gp enet Soft Reset andrew may
2002-02-08 10:03 ` Stefan Roese
2002-02-08 18:35   ` andrew may
2002-02-08 10:53     ` Armin
2002-02-08 20:01       ` andrew may
2002-02-11 11:55         ` David Müller (ELSOFT AG)
2002-02-12  0:49           ` andrew may
2002-02-13  8:37             ` David Müller (ELSOFT AG) [this message]
2002-02-13 15:15               ` 405 MII-PHY communication problem (was: Re: PPC405gp enet Soft Reset) Stefan Roese
2002-02-19 12:05               ` David Müller (ELSOFT AG)
2002-02-19 12:21                 ` Stefan Roese
2002-02-22  0:56                 ` andrew may

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=3C6A25BC.7010704@elsoft.ch \
    --to=d.mueller@elsoft.ch \
    --cc=acmay@acmay.homeip.net \
    --cc=akuster@pacbell.net \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=stefan.roese@esd-electronics.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).