Newby trying to get Ethernet going on MPC83xx series device.

Li Yang-R58472 LeoLi at freescale.com
Thu Feb 19 16:21:43 EST 2009


> -----Original Message-----
> From: linuxppc-dev-bounces+leoli=freescale.com at ozlabs.org 
> [mailto:linuxppc-dev-bounces+leoli=freescale.com at ozlabs.org] 
> On Behalf Of Dushara Jayasinghe
> Sent: Thursday, February 19, 2009 12:27 PM
> To: 'linuxppc-dev at ozlabs.org'
> Subject: Newby trying to get Ethernet going on MPC83xx series device.
> 
> Hi I'm having difficulty getting an Ethernet device up on a 
> dev board with an MPX8349 controller.
>  
> The contents of my .dts file are as follows (based on 
> mpc8349emitx.dts):
>  
>         soc8349 at e0000000 {
>                 ...
>  
>                 mdio at 24520 {
>                         #address-cells = <1>;
>                         #size-cells = <0>;
>                         compatible = "fsl,gianfar-mdio";
>                         reg = <24520 20>;
>  
>                         /* Vitesse 8201 */
>                         phy1c: ethernet-phy at 1c {
>                                 interrupt-parent = <&ipic>;
>                                 interrupts = <3 8>;
>                                 reg = <0>;
>                                 device_type = "ethernet-phy";
>                         };
>                         tbi0: tbi-phy at 11 {
>                                 reg = <11>;
>                                 device_type = "tbi-phy";
>                         };
>                 };
>  
>                 mdio at 25520 {
>                         #address-cells = <1>;
>                         #size-cells = <0>;
>                         compatible = "fsl,gianfar-tbi";
>                         reg = <25520 20>;
>  
>                         tbi1: tbi-phy at 11 {
>                                 reg = <11>;
>                                 device_type = "tbi-phy";
>                         };
>                 };
>  
>                 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>;
>                         tbi-handle = <&tbi0>;
>                         phy-handle = <&phy1c>;
>                         linux,network-index = <0>;
>                 };
>  
>                 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>;
>                         /* Vitesse 7385 isn't on the MDIO bus */
>                         fixed-link = <1 1 1000 0 0>;
>                         linux,network-index = <1>;
>                         tbi-handle = <&tbi1>;
>                         phy-connection-type = "gmii";
>                 };
>         };
>  
> I get the following error during the boot sequence:
>  
> IP-Config: Device `eth0' not found
>  
> I also found that both gfar_init (in gianfar.c) and 
> gfar_mdio_init (in gianfar_mii.c) are called but the probe 
> handlers of either of these devices are not executed.
>  
> What am I missing?

Don't find any obvious problem.  I suggest you to debug gfar_of_init()
in arch/powerpc/sysdev/fsl_soc.c to see if it works correctly.

- Leo



More information about the Linuxppc-dev mailing list