PHY lib
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
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
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.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.
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. BeckettQuoted 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_xor 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