Re: [U-Boot] SMSC LAN8720 support

2010-02-09 Thread Ben Warren
Hi Maxim,

Two housekeeping items:
1. Please don't top-post
2. Please CC the mailing list.  There are others that may be able to 
help you.

On 2/9/2010 12:11 PM, Maxim Podbereznyi wrote:
 Hi Ben!

 Thank you for answering!

 Unfortunately I don't have any other board to check the Ethernet. I
 began to check sources and found that PHY ID is not read well.

 In the following code I have No PHY present on the console:
 /* Check if the PHY is up to snuff... */
  phy_id = macb_mdio_read(macb, MII_PHYSID1);
  if (phy_id == 0x) {
  printf(%s: No PHY present\n, netdev-name);
  return 0;
  }
 }

 I think at least ID must be read well. Bad luck :(


Are you passing the correct PHY address as parameter 3 to 
macb_eth_initialize()?  You should know the address from the board 
schematic.  Alternatively, it appears that MACB has an option called 
CONFIG_MACB_SEARCH_PHY that will probe the MDIO bus.  You might wish to 
enable that option.

The MII_PHYSID1 is an IEEE 802.3-specified register.  If you can't read 
it, it's not anything peculiar to the new type of PHY, but more likely a 
hardware/bootstrap issue.   Any incompatibilities with this PHY will 
come later when you try to configure some of the less-standard things 
such as RGMII etc.

regards,
Ben
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] SMSC LAN8720 support

2010-02-09 Thread Maxim Podbereznyi
Hi Ben!

I've made LAN8720 work with AT91SAM9G45 MPU. The problem was in a wrong
address assigning during the PHY reset. The PHY has internal pull-down on
the PHYAD0 line but the init code for AT91 turns off processor's pull-up
during PHY reset only for a few lines and they are not PHYAD0. So I disabled
also the processor's pull-up to the right line and the PHY got alive. I've
tested tftp - works perfect!

Thank you for the help!

2010/2/8 Ben Warren biggerbadder...@gmail.com

 Hi Maxim,

 On 2/7/2010 1:32 PM, Maxim Podbereznyi wrote:

 Hi all!

 I need enable the support of the new SMSC Ethernet PHY LAN8720 in
 AT91SAM based system. Can anybody give me a piece of advice how I can
 do it?



  I don't have any direct experience with either this PHY or AT91SAM, but a
 cursory glance of the PHY datasheet makes it seem that there's nothing
 special here, so it might just work without modification.  Do you have a
 working reference board that has a different PHY that this can be compared
 to?

 Any help is appreciated!

 Regards,
 Max
 _


 regards,
 Ben

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] SMSC LAN8720 support

2010-02-09 Thread Ben Warren
On 2/9/2010 1:04 PM, Maxim Podbereznyi wrote:
 Hi Ben!

 I've made LAN8720 work with AT91SAM9G45 MPU. The problem was in a 
 wrong address assigning during the PHY reset. The PHY has internal 
 pull-down on the PHYAD0 line but the init code for AT91 turns off 
 processor's pull-up during PHY reset only for a few lines and they are 
 not PHYAD0. So I disabled also the processor's pull-up to the right 
 line and the PHY got alive. I've tested tftp - works perfect!

 Thank you for the help!

You're welcome.  Congratulations!

--Ben
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] SMSC LAN8720 support

2010-02-08 Thread Ben Warren
Hi Maxim,
On 2/7/2010 1:32 PM, Maxim Podbereznyi wrote:
 Hi all!

 I need enable the support of the new SMSC Ethernet PHY LAN8720 in
 AT91SAM based system. Can anybody give me a piece of advice how I can
 do it?


  I don't have any direct experience with either this PHY or AT91SAM, 
but a cursory glance of the PHY datasheet makes it seem that there's 
nothing special here, so it might just work without modification.  Do 
you have a working reference board that has a different PHY that this 
can be compared to?
 Any help is appreciated!

 Regards,
 Max
 _

regards,
Ben
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] SMSC LAN8720 support

2010-02-07 Thread Maxim Podbereznyi
Hi all!

I need enable the support of the new SMSC Ethernet PHY LAN8720 in
AT91SAM based system. Can anybody give me a piece of advice how I can
do it?

Any help is appreciated!

Regards,
Max
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot