Skip to contentSkip to conversation

PHY lib

U-Boot Michal Simek 5 participants 6 messages Nov 25, 2008 – Dec 2, 2008

lore
Share & tools
lore
#0 lore raw

Hi Ben,

how does look like your propose work about PHY lib?

Thanks,
Michal

Signature · 2 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
#1 lore raw

Hi Michal,

Quoted 8 lines · Michal Simek

Hi Ben,

how does look like your propose work about PHY lib?

Thanks,
Michal

I'd like to have the PHY library included in the 02.2009 release. One of the things I'm struggling with is how so specify MDIO busses and PHY addresses. For example, is it preferable to have a bunch of CONFIG_PHY_ADDR_x or a board-code struct? How to link/register PHYs with MDIO buses, since conceivably a board could have hardware MDIO and/or bit-banged MDIO, and any PHY could be on any bus.

If we pulled all board info from a device tree, as people were talking about a few months ago, this would be easy and scalable. I don't know the status of that idea, and am very interested in what you and others think.

regards,
Ben

#2 lore raw

Dear Ben,

Quoted 2 lines · In message <[email protected]> you wrote:

I'd like to have the PHY library included in the 02.2009 release. One

v2009.02, that is :-)

Quoted 4 lines

If we pulled all board info from a device tree, as people were talking about a few months ago, this would be easy and scalable. I don't know the status of that idea, and am very interested in what you and others think.

I would really appreciate a move into this direction.

BTW - Wolfgang: do you still plan to rebase & post your "Configure U-Boot with a Device Tree" patches? They must have grown out of sync terribly?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Veni, Vidi, VISA:
        I came, I saw, I did a little shopping.
#3 lore raw
Quoted 12 lines · Wolfgang Denk

Dear Ben,

Quoted 1 line · In message <[email protected]> you wrote:

I'd like to have the PHY library included in the 02.2009 release. One

v2009.02, that is :-)

Quoted 4 lines

If we pulled all board info from a device tree, as people were talking about a few months ago, this would be easy and scalable. I don't know the status of that idea, and am very interested in what you and others think.

Quoted 5 lines

I would really appreciate a move into this direction.

BTW - Wolfgang: do you still plan to rebase & post your "Configure U-Boot with a Device Tree" patches? They must have grown out of sync terribly?

Well, not really. The patch providing access to the FDT is quite simple, making use of it is another subject and requires a FDT aware device interface, in the first place. Search for

"[U-Boot-Users] using a flat device tree to drive u-boot config"

to find the last discussion on this topic.

Wolfgang.

#4 lore raw

Dear Wolfgang,

Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 4 lines

BTW - Wolfgang: do you still plan to rebase & post your "Configure U-Boot with a Device Tree" patches? They must have grown out of sync terribly?

Quoted 7 lines

Well, not really. The patch providing access to the FDT is quite simple, making use of it is another subject and requires a FDT aware device interface, in the first place. Search for

"[U-Boot-Users] using a flat device tree to drive u-boot config"

to find the last discussion on this topic.

yes, I know. Maybe we should make the old stuff available in a branch in our git repo so we can at least show others the existing code? That would require little effort and probably be a good base for further discussions?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Ever try. Ever fail. No matter. Try again. Fail again.  Fail  better.
                                                        -- S. Beckett
#5 lore raw
In reply to Ben Warren
Quoted 10 lines · Ben Warren

Hi Michal,

Quoted 8 lines · Michal Simek

Hi Ben,

how does look like your propose work about PHY lib?

Thanks,
Michal

Quoted 6 lines

I'd like to have the PHY library included in the 02.2009 release. One of the things I'm struggling with is how so specify MDIO busses and PHY addresses. For example, is it preferable to have a bunch of CONFIG_PHY_ADDR_x or a board-code struct? How to link/register PHYs with MDIO buses, since conceivably a board could have hardware MDIO and/or bit-banged MDIO, and any PHY could be on any bus.

I think the board-code should pass it in. Each nic just needs a pointer to its PHY. Some boards will have hard-coded addresses, and some will have addresses that change depending on circumstances (the DS boards use different PHYs when they are operating in SGMII mode, for instance). Some boards will even have set it up so you have to scan for a PHY. Many PCI nics seem to require this, despite its inherent fragility.

So I think if the board code were able to find PHY handles, then we can let the boards decide how to get that information (and eventually transition to pulling it out of a device tree)

Andy