I can not get my MII working on MPC8247 with Linux 2.6.32.6
Peter Pan
pppeterpppan at gmail.com
Wed Mar 31 14:15:59 EST 2010
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 at conspiracy.net <paulfax at conspiracy.net>:
> I had the same issue on a board. The 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. Can'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). Will 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:
>> 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.
>> _______________________________________________
>> Linuxppc-dev mailing list
>> Linuxppc-dev at lists.ozlabs.org
>> https://lists.ozlabs.org/listinfo/linuxppc-dev
>>
>
>
More information about the Linuxppc-dev
mailing list