AnsweredAssumed Answered

LS1021a fixed-link SGMII DTS entries. 

Question asked by William Anderson on Feb 20, 2017

Hello,

  We are starting on board bringup of a design referenced off the LS1021a-IOT board.  I am now trying to bring up our 2 ethernet SGMII links on our custom hardware.  We have no phys and will be connecting in one case to a Marvell

1Gbit SW and to a second  LS1021a  chip in the other.  My question concerns the proper DTS config needed.

From what I've read it appears that I need to remove phy-handle, and phy-connection-type properties and add a fixed-link config.    If someone has worked in this area recently Id appreciate your opinion on  the DTB entries and what more might be needed.

 

Thank You

Bill

 

The ls1021a dtsi board aliases enet0 to  

 

                enet0: ethernet@2d10000 {
                        compatible = "fsl,etsec2";
                        device_type = "network";
                        #address-cells = <2>;
                        #size-cells = <2>;
                        interrupt-parent = <&gic>;
                        model = "eTSEC";
                        fsl,magic-packet;
                        rcpm-wakeup = <&rcpm 0x80000000 0x0>;
                        ranges;
                        dma-coherent;

 

                        queue-group@2d10000 {
                                #address-cells = <2>;
                                #size-cells = <2>;
                                reg = <0x0 0x2d10000 0x0 0x1000>;
                                interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
                                        <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
                                        <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
                        };

 

                        queue-group@2d14000  {
                                #address-cells = <2>;
                                #size-cells = <2>;
                                reg = <0x0 0x2d14000 0x0 0x1000>;
                                interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
                                        <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
                                        <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
                        };
                };

 

My DTB entry simply has following  I have removes the unused phy-handle nodes.

 

&enet0 {
tbi-handle = <&tbi1>;
/*phy-handle = <&phy1>;*/
/*phy-connection-type = "sgmii";*/
status = "okay";
fixed-link {
speed = <1000>;
full-duplex;
};

Outcomes