Hi Dushara,<br><br>Sorry, I'm a late comer here, but I might have an idea. First off, I don't see below what <br>kernel version you are using? I may have missed it somewhere.<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
The devices are successfully probed, but I'm getting this error on the debug console:<br>
<br>
[ 7.119389] mdio@24520:00 not found<br>
[ 7.161370] eth0: Could not attach to PHY<br>
[ 7.209600] IP-Config: Failed to open eth0<br>
[ 7.258879] IP-Config: Device `eth0' not found.</blockquote><div><br>I have similar output on my MPC8313E RDB. In my case, eth0 shared lines with the external USB OTG and its PHY. I modified the resister banks on the board that essentially cuts off the interrupt to the eth0 PHY. So, I don't expect it to find it. Here is the kernel output at init time:<br>
<br>24520:01 not found<br>eth0: Could not attach to PHY<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My mdio & Ethernet nodes are as follows (commenting out device_type below is an experiment)<br>
<br>
mdio@24520 {<br>
/*device_type = "mdio";*/<br>
compatible = "fsl,gianfar-mdio";<br>
#address-cells = <1>;<br>
#size-cells = <0>;<br>
reg = <24520 20>;</blockquote><div><br>Hmm, well, the first thing I catch is this is an old dts format. Depending on your kernel version, you <br>may want to comply with the dts v1 spec. The v1 spec is much more strict on the format of the values<br>
that are provided for the properties. <br><br>ex. reg = <0x24520 0x20> makes it very clear that these values are hex, not decimal. <br><br>You will notice this ambiguity below with the 'interrupts' properties. Are the values decimal or hex?<br>
Turns out that the values are hex. You will find dts version specifier " /dts-v1/; " at the top or just before <br>the root node in any dts file that meets the v1 spec.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
phy0: ethernet-phy@0 {<br>
interrupt-parent = <&ipic>;<br>
interrupts = <3 8>;<br>
reg = <0>;<br>
device_type = "ethernet-phy";<br>
};<br>
phy1: ethernet-phy@1 {<br>
interrupt-parent = <&ipic>;<br>
interrupts = <3 8>;<br>
reg = <1>;<br>
device_type = "ethernet-phy";<br>
};<br>
};</blockquote><div> </div><div>Are you sure both PHY's use interrupt 3? I would think not.<br> <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
enet0: ethernet@24000 {<br>
cell-index = <0>;<br>
device_type = "network";<br>
model = "TSEC";<br>
compatible = "gianfar";<br>
reg = <24000 1000>;<br>
local-mac-address = [ 00 00 00 00 00 00 ];<br>
interrupts = <20 8 21 8 22 8>;<br>
interrupt-parent = <&ipic>;<br>
phy-handle = <&phy0>;<br>
linux,network-index = <0>;<br>
};<br>
<br>
enet1: ethernet@25000 {<br>
cell-index = <1>;<br>
device_type = "network";<br>
model = "TSEC";<br>
compatible = "gianfar";<br>
reg = <25000 1000>;<br>
local-mac-address = [ 00 00 00 00 00 00 ];<br>
interrupts = <23 8 24 8 25 8>;<br>
interrupt-parent = <&ipic>;<br>
phy-handle = <&phy1>;<br>
linux,network-index = <1>;<br>
phy-connection-type = "gmii";<br>
};</blockquote><div><br>Finally, I don't know which silicon rev that you are using, but I have seen the enet0 and enet1 interrupts swapped.<br> <br>As in the very latest silicon may have the interrupt lines switched between them. You can find a statement to that<br>
affect on this list somewhere. I am using a revB MPC8313E and I specify the interrupts as you have them here. <br>However, the dts file for the mpc8313erdb in the 2.6.28 kernel has them reversed. Presumably for a revC chip.<br>
<br>ex. <br>enet0: ethernet@24000 {<br>...<br> interrupts = <23 8 24 8 25 8>;<br>...<br>};<br><br>enet1: ethernet@25000 {<br>...<br> interrupts = <20 8 21 8 22 8>;<br>...<br>};<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
BTW, I assume CCing all those who replied to me is accepted/expected conduct or should I avoid this and just write to the list?</blockquote><div><br>Yes, you should cc those who have replied. It is expected --- well, at least by me.<br>
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also is top posting ok? I haven't figured out how to enable '>' on bloody Microsoft Outlook, for incoming plain text messages.</blockquote><div><br>I'm a little new to this list, but in general top posting is frowned upon. Unfortunately, I can't help you with the Outlook problem. <br>
I can tell you that not being able to determine what part of a message came when is extremely annoying. I hope you find a fix<br>for it. Or, you could try Thunderbird :)<br><br></div></div>Mike<br>