* [U-Boot] SMSC LAN8720 support
@ 2010-02-07 21:32 Maxim Podbereznyi
2010-02-08 20:55 ` Ben Warren
0 siblings, 1 reply; 5+ messages in thread
From: Maxim Podbereznyi @ 2010-02-07 21:32 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] SMSC LAN8720 support
2010-02-07 21:32 [U-Boot] SMSC LAN8720 support Maxim Podbereznyi
@ 2010-02-08 20:55 ` Ben Warren
[not found] ` <e0656fd71002091211s10b847d4h4afc11fe192cb823@mail.gmail.com>
2010-02-09 21:04 ` Maxim Podbereznyi
0 siblings, 2 replies; 5+ messages in thread
From: Ben Warren @ 2010-02-08 20:55 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] SMSC LAN8720 support
[not found] ` <e0656fd71002091211s10b847d4h4afc11fe192cb823@mail.gmail.com>
@ 2010-02-09 20:59 ` Ben Warren
0 siblings, 0 replies; 5+ messages in thread
From: Ben Warren @ 2010-02-09 20:59 UTC (permalink / raw)
To: u-boot
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 == 0xffff) {
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] SMSC LAN8720 support
2010-02-08 20:55 ` Ben Warren
[not found] ` <e0656fd71002091211s10b847d4h4afc11fe192cb823@mail.gmail.com>
@ 2010-02-09 21:04 ` Maxim Podbereznyi
2010-02-09 21:07 ` Ben Warren
1 sibling, 1 reply; 5+ messages in thread
From: Maxim Podbereznyi @ 2010-02-09 21:04 UTC (permalink / raw)
To: u-boot
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 <biggerbadderben@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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] SMSC LAN8720 support
2010-02-09 21:04 ` Maxim Podbereznyi
@ 2010-02-09 21:07 ` Ben Warren
0 siblings, 0 replies; 5+ messages in thread
From: Ben Warren @ 2010-02-09 21:07 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-02-09 21:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-07 21:32 [U-Boot] SMSC LAN8720 support Maxim Podbereznyi
2010-02-08 20:55 ` Ben Warren
[not found] ` <e0656fd71002091211s10b847d4h4afc11fe192cb823@mail.gmail.com>
2010-02-09 20:59 ` Ben Warren
2010-02-09 21:04 ` Maxim Podbereznyi
2010-02-09 21:07 ` Ben Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox