Re: I can not get my MII working on MPC8247 with Linux 2.6.32.6
From: Peter Pan <hidden>
Date: 2010-03-31 03:16:02
I tried to skip the turn around bit check in source, but the mii bus still get the 0xffffffff PHYIDs. I will check if there is any pull ups on mdio line. Thank you. 2010/3/31 paul@conspiracy.net [off-list ref]:
I had the same issue on a board. =A0The original was config was a 8247 with 2.6.27 and changed the CPU card in the system to 8567 & 2.6.32. The old code did not check the turn around bit. =A0Can't remember the exact fix but as I remember if there are no pull ups on the mdio line the turn around bit will not be in the correct state (it just opens the line not not driving it to 1). =A0Will try to ask the hw guy if he remembers when he comes in tomorrow. Paul On 3/30/2010 8:46 PM, Peter Pan wrote:quoted
Recently, I'm porting Linux 2.6.32.6 to our customized MPC8247 based board. Everything is fine out except my ethernets. I uses cpm2-scc-enet and cpm2-fcc-enet drivers. My ethernet works fine in U-Boot with the same setting, and our previous Linux 2.6.22 is also working, so there should be nothing wrong with the hardware. The boot log of the MII part is: CPM2 Bitbanged MII: probed mdio_bus f0010d00: error probing PHY at address 0 mdio_bus f0010d00: error probing PHY at address 1 I add some print, and find out that the MII bus can not be get the turn around bit, and can not get the PHYIDs. That makes the PHY probe failed. Maybe it's because my wrongly typed dts file? My ethernet part of my dts file is: My MDIO pin is using PA23, MDC pin is using PA22.
quoted
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev