etsec fixed link connectino with broadcom switch

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

etsec fixed link connectino with broadcom switch

1,334 Views
marcharbonne
Contributor I
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

Labels (2)
0 Kudos
3 Replies

545 Views
marcharbonne
Contributor I

Hi,

How can I dump the TBI registers.

I run linux 3.10 , so I used ethtool -d to dump etsec registers.

The tbi phy address is not shown at  offset 0x30 in comparison of the dump of linux 2.6.

But the ethtool eth1 shows correctly the phy address set to 0x1f.

Marc

0 Kudos

545 Views
bpe
NXP Employee
NXP Employee

If following the above suggestion does not fix the issue, please provide:

1. The version of QorIQ SDK you are working with

2. Vales of TBI management registers at the addresses mentioned in Section 15.11 of P1014RM taken after the driver

    brings the link up.

0 Kudos

545 Views
bpe
NXP Employee
NXP Employee

A little quick fix to your DTS: the first cell in the fixed-link link property in _not_ the TBI PHY address. It is an _emulated_ PHY address. Choose any but unique. 


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos