[LS1028A]:How to enable SGMII PHY ethernet on ls1028a based board?.

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

[LS1028A]:How to enable SGMII PHY ethernet on ls1028a based board?.

3,516 Views
Amit_Keshri
Contributor III

Dear NXP Team,

We are using LS1028A based custom board and want to enable SGMII PHY ethernet which is connected to ls1028a processor as shown in attached schematic diagram.

I have set the RCW value as given below:

ENETC_RCW=3

SPI3_PMUX=0
GTX_CLK125_PMUX=1
SRDS_PLL_PD_PLL1=0
SRDS_PLL_PD_PLL2=1

Please find the below dts configuration for SGMI PHY ethernet:

/*-----------------------------------------------*/

&enetc_port1 {
phy-handle = <&sgmii_phy0>;
phy-connection-type = "sgmii";

mdio {
#address-cells = <1>;
#size-cells = <0>;
sgmii_phy0: ethernet-phy@0 {
reg = <0x0>;
};
};
};

&enetc_port0 {
status = "disabled";
};

&enetc_mdio_pf3 {

qsgmii_phy1: ethernet-phy@10 {
reg = <0x10>;
};

qsgmii_phy2: ethernet-phy@11 {
reg = <0x11>;
};
qsgmii_phy3: ethernet-phy@12 {
reg = <0x12>;
};

qsgmii_phy4: ethernet-phy@13 {
reg = <0x13>;
};
};


/* l2switch ports */
&mscc_felix_ports {
port@0 {
status = "okay";
phy-handle = <&qsgmii_phy1>;
phy-mode = "qsgmii";
managed = "in-band-status";
};

port@1 {
status = "okay";
phy-handle = <&qsgmii_phy2>;
phy-mode = "qsgmii";
managed = "in-band-status";
};
port@2 {
status = "okay";
phy-handle = <&qsgmii_phy3>;

/*-----------------------------------------------*/

In U-boot Ethernet is up and showing Alive as show in attached log ,after doing below configuration :

mii device emdio-3

mii write 0 0x16 0x12
mii write 0 0x14 0x8001

mii write 0 0x16 0x1
mii write 0 0x0 0x8140

mii write 0 0x16 0x0
mii write 0 0x0 0x8140

But in linux after setting ip address using ifconfig ,Ethernet is not pinging.

Please find all the required files i.e log ,schematic diagram for your reference.

Please tell me how i can enable SGNMII ethernet in linux?.

 

Regards,

Amit Kumar Keshri

 

0 Kudos
Reply
3 Replies

3,504 Views
Amit_Keshri
Contributor III

Dear NXP Support Team,

Thank you for your reply

Regards,

Amit Kumar Keshri

0 Kudos
Reply

3,506 Views
yipingwang
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

3,475 Views
Amit_Keshri
Contributor III

Dear NXP Support Team,

Eagerly Waiting for you reply.

Regards,

Amit Keshri

0 Kudos
Reply