LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* powerpc 405ex emac1 problem connect to single Giga phy
@ 2009-03-10  5:36 zhong wang
  0 siblings, 0 replies; only message in thread
From: zhong wang @ 2009-03-10  5:36 UTC (permalink / raw)
  To: linuxppc-dev


[-- Attachment #1.1: Type: text/plain, Size: 3088 bytes --]

Hello all:
  

We use the AMCC PowerPC 405ex through emac1 way RGMII with realtek RTL8211 Giga phy linked to, At present the PHY Address is: 00110
add delay  2ns for RGMII
CONFIG[8:5]:AUTO_Negotiation
1111=NWay,advertise ,all capabilities,prefer Slave
mode;1=RGMII mode
Clk on the hardware no problem, Mdio, mdc even on, but at Llinux / driver / net / ibm-newemac / core.c discovered phy address, phy ID at  .Config file has joined
NETDEVICE = Y
PHYLIB=Y
                                             REALTEK-PHY=Y
But will be compiled under the best Uimage to board, the feeling of the PHY the driver has not been mounted use. The following is a kernel information
  PPC 4xx OCP EMAC driver, version 3.54
MAL v2 /plb/mcmal, 2 TX channels, 2 RX channels
RGMII /plb/opb/emac-rgmii@ef600b00 initialized with MDIO support
/plb/opb/emac-rgmii@ef600b00: input 0 in RGMII mode
eth0: EMAC-0 /plb/opb/ethernet@ef600900, MAC 00:47:41:52:52:59
/plb/opb/emac-rgmii@ef600b00: input 1 in RGMII mode
/plb/opb/ethernet@ef600a00: find TRL 821X Giga PHY(0x4)
 
But also in Llinux / driver / net / ibm-newemac / phy.c also add the operation of RTL8211bg as follows:
#define RTL821x_PHYSR            0x11
#define RTL821x_PHYSR_DUPLEX    0x2000
#define RTL821x_PHYSR_SPEED       0xc000
#define RTL821x_INER        0x12
#define RTL821x_INER_INIT      0x6400
#define RTL821x_INSR        0x13
static int rtl821x_init(struct mii_phy *phy)
{
       phy_write(phy, RTL821x_INER, 0x6400); //enable interrupt
              return  0;
}
 
static struct mii_phy_ops rtl821x_phy_ops = {
       .init         = rtl821x_init,
       .setup_aneg    = genmii_setup_aneg,
       .setup_forced  = genmii_setup_forced,
       .poll_link = genmii_poll_link,
       .read_link       = genmii_read_link
};
 
static struct mii_phy_def rtl821x_phy_def = {
       .phy_id           = 0x001cc912,  // for rtl8211 single phy 
   // .phy_id         = 0x001cc960,   for 8366sr inside phy 4
       .phy_id_mask = 0x001fffff,
       .name             = "RTL 821X Giga Phy",
       .features  = PHY_GBIT_FEATURES,
       //.flags           = PHY_HAS_INTERRUPT,
       .ops        = &rtl821x_phy_ops
 
But will be compiled under the best Uimage to board, the feeling of the PHY the driver has not been mounted use. The following is a kernel information
     After IP with a good PC PING board, Return Request Time Out! Troublesome players you look at what questions are
 
      Connection diagram, see attachment
 
                                leowang
                                2009:03:10


      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

[-- Attachment #1.2: Type: text/html, Size: 16011 bytes --]

[-- Attachment #2: Connection diagram.pdf --]
[-- Type: application/pdf, Size: 11298 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-10  5:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10  5:36 powerpc 405ex emac1 problem connect to single Giga phy zhong wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox