Connecting SGMII PHY to eTSEC1 on P1022

Felix Radensky felix at embedded-sol.com
Thu Jun 23 01:58:11 EST 2011


Hi,

On a custom P1022-based board I have SGMII PHY connected to eTSEC1.
PHY address is 0x1. Ethernet works fine in u-boot, but in linux 
there's no link.
I have the following in my device tree:

         mdio at 24000 {
             #address-cells = <1>;
             #size-cells = <0>;
             compatible = "fsl,etsec2-mdio";
             reg = <0x24000 0x1000 0xb0030 0x4>;

             phy0: ethernet-phy at 1 {
                 interrupt-parent = <&mpic>;
                 interrupts = <3 1>;
                 reg = <0x1>;
             };

             tbi0: tbi-phy at 11 {
                 reg = <0x11>;
                 device_type = "tbi-phy";
             };

         };

         enet0: ethernet at B0000 {
             #address-cells = <1>;
             #size-cells = <1>;
             cell-index = <0>;
             device_type = "network";
             model = "eTSEC";
             compatible = "fsl,etsec2";
             fsl,num_rx_queues = <0x8>;
             fsl,num_tx_queues = <0x8>;
             fsl,magic-packet;
             fsl,wake-on-filer;
             clk-handle = <&etsec1_clk>;
             local-mac-address = [ 00 00 00 00 00 00 ];
             interrupt-parent = <&mpic>;
             phy-handle = <&phy0>;
             tbi-handle = <&tbi0>;
             phy-connection-type = "sgmii";
             ...
         };

What am I doing wrong ?

Thanks a lot in advance.

Felix.


More information about the Linuxppc-dev mailing list