AnsweredAssumed Answered

etsec fixed link connectino with broadcom switch

Question asked by marc harbonne on May 16, 2016
Latest reply on May 25, 2016 by marc harbonne
Hi

 

 

I will try to describe our current problem,(board based on p1014)
On our board we have two interfaces etsec1, and etsec2, the eth1 (etsec2) is a fixed link to the broadcom switch.

It must configure the serdes interface by the dts.

 

In my dts we have the following lines:

 

 

mdio@25000 {
            #address-cells = <1>;
            #size-cells = <0>;
            compatible = "fsl,etsec2-tbi";
            reg = <0x25000 0x1000 0xb1030 0x4>;

 

            tbi0: tbi-phy@1f {
                reg = <0x1f>;
                device_type = "tbi-phy";
                };

            };
       
       

 

    

 

        enet1: ethernet@b1000 {
            #address-cells = <1>;
            #size-cells = <1>;
            ranges = <>;
            device_type = "network";
            cell-index = <0x1>;
            model = "eTSEC";
            compatible = "fsl,etsec2";
            fsl,num_rx_queues = <0x8>;
            fsl,num_tx_queues = <0x8>;
            fsl,magic-packet;
            local-mac-address = [ 00 a0 12 aa 30 44 ];
            interrupt-parent = <&mpic>;
            fixed-link = <0x1f 1 1000 0 0>;    /* PHY addr @ 0x1f, full-duplex, 1000Gbps, no pause */
            tbi-handle = <&tbi0>;           
           phy-connection-type = "sgmii";
            ptimer-handle = < &ptp_timer >;
           
            queue-group@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                reg = <0xb1000 0x1000>;
                rx-bit-map = <0xff>;
                tx-bit-map = <0xff>;
                interrupts = <35 2 0 0 36 2 0 0 40 2 0 0>;
            };

 

               
       

 

        };

 

 

As you can see the tbi-handle is correctly defined when the fixed-link is configured for enet1 and the connection type is sgmii.

 

 

The problem is that the eth1 is shown correctly from linux side but on the Broadcom side the connected port is never shown as up.(autoneg is on)

 

 

Can you please advice

Outcomes