Newby trying to get Ethernet going on MPC83xx series device.

Dushara Jayasinghe DusharaJ at optiscan.com
Fri Feb 20 11:36:59 EST 2009


Yes I now base it on mpc834x_mds.c and it works (almost) :-(

The devices are successfully probed, but I'm getting this error on the debug console:

[    7.119389] mdio at 24520:00 not found
[    7.161370] eth0: Could not attach to PHY
[    7.209600] IP-Config: Failed to open eth0
[    7.258879] IP-Config: Device `eth0' not found.

My mdio & Ethernet nodes are as follows (commenting out device_type below is an experiment)

		mdio at 24520 {
			/*device_type = "mdio";*/
			compatible = "fsl,gianfar-mdio";
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <24520 20>;

			phy0: ethernet-phy at 0 {
				interrupt-parent = <&ipic>;
				interrupts = <3 8>;
				reg = <0>;
				device_type = "ethernet-phy";
			};
			phy1: ethernet-phy at 1 {
				interrupt-parent = <&ipic>;
				interrupts = <3 8>;
				reg = <1>;
				device_type = "ethernet-phy";
			};
		};

		enet0: ethernet at 24000 {
			cell-index = <0>;
			device_type = "network";
			model = "TSEC";
			compatible = "gianfar";
			reg = <24000 1000>;
			local-mac-address = [ 00 00 00 00 00 00 ];
			interrupts = <20 8 21 8 22 8>;
			interrupt-parent = <&ipic>;
			phy-handle = <&phy0>;
			linux,network-index = <0>;
		};

		enet1: ethernet at 25000 {
			cell-index = <1>;
			device_type = "network";
			model = "TSEC";
			compatible = "gianfar";
			reg = <25000 1000>;
			local-mac-address = [ 00 00 00 00 00 00 ];
			interrupts = <23 8 24 8 25 8>;
			interrupt-parent = <&ipic>;
			phy-handle = <&phy1>;
			linux,network-index = <1>;
			phy-connection-type = "gmii";
		};

Any clues as to where I should start looking?

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?

Also is top posting ok? I haven't figured out how to enable '>' on bloody Microsoft Outlook, for incoming plain text messages.

Thanks again for all your help.
D

-----Original Message-----
From: Aggrwal Poonam-B10812 [mailto:Poonam.Aggrwal at freescale.com] 
Sent: Thursday, 19 February 2009 6:25 PM
To: Li Yang-R58472; Dushara Jayasinghe
Cc: linuxppc-dev at ozlabs.org
Subject: RE: Newby trying to get Ethernet going on MPC83xx series device.

Probably better would be to check the board file for  mpc834x_mds.c

I mean just cross that you probe all the buses which are on the device.
What is fsl,pq2pro-localbus? Do u have such node in dts as the
mpc8349_itx has.

> -----Original Message-----
> From: pku.leo at gmail.com [mailto:pku.leo at gmail.com] On Behalf 
> Of Li Yang-R58472
> Sent: Thursday, February 19, 2009 12:50 PM
> To: Dushara Jayasinghe
> Cc: linuxppc-dev at ozlabs.org; Aggrwal Poonam-B10812
> Subject: Re: Newby trying to get Ethernet going on MPC83xx 
> series device.
> 
> On Thu, Feb 19, 2009 at 2:58 PM, Dushara Jayasinghe 
> <DusharaJ at optiscan.com> wrote:
> > That did it.
> >
> >
> >
> > I based my board specific file on mpc834x_itx.c which had
> >
> >
> >
> > static struct of_device_id __initdata mpc834x_itx_ids[] = {
> >
> >                 { .compatible = "fsl,pq2pro-localbus", },
> >
> >                 { .compatible = "simple-bus", },
> >
> >                 {},
> >
> > };
> >
> >
> >
> > Don't know if this is broken?
> 
> It's not broken as long as you have compatible = "simple-bus" 
> for your soc node.
> 
> - Leo
> 
> 



More information about the Linuxppc-dev mailing list