Hello Obi,
It seems that your design is similar as T1040RDB, please refer the following, so you could follow u-boot and dts configuration for T1040RDB.

u-boot configuration:
Please refer to drivers/net/fm/t1040.c,
case FM1_DTSEC1:
case FM1_DTSEC2:
if (is_serdes_configured(QSGMII_SW1_A + port - FM1_DTSEC1) ||
is_serdes_configured(SGMII_SW1_MAC1 + port - FM1_DTSEC1))
return PHY_INTERFACE_MODE_QSGMII;
Please refer to board/freescale/t104xrdb/eth.c:
/* Connect DTSEC1 to L2 switch if it doesn't have a PHY */
if (serdes_get_first_lane(FSL_SRDS_1, SGMII_FM1_DTSEC1) < 0)
vsc9953_port_enable(8);
/* Connect DTSEC2 to L2 switch if it doesn't have a PHY */
if (serdes_get_first_lane(FSL_SRDS_1, SGMII_FM1_DTSEC2) < 0) {
/* Enable L2 On MAC2 using SCFG */
struct ccsr_scfg *scfg = (struct ccsr_scfg *)
CONFIG_SYS_MPC85xx_SCFG;
out_be32(&scfg->esgmiiselcr, in_be32(&scfg->esgmiiselcr) |
(0x80000000));
vsc9953_port_enable(9);
}
Please refer to include/configs/T104xRDB.h:
#if defined(CONFIG_T1040RDB) || defined(CONFIG_T1040D4RDB)
#define CONFIG_VSC9953
#define CONFIG_CMD_ETHSW
#ifdef CONFIG_T1040RDB
#define CONFIG_SYS_FM1_QSGMII11_PHY_ADDR 0x04
#define CONFIG_SYS_FM1_QSGMII21_PHY_ADDR 0x08
For Linux dts configuration, please refer to the following.
Please refer to arch/powerpc/boot/dts/fsl/t1040d4rdb.dts
soc: soc@ffe000000 {
fman0: fman@400000 {
rcpm-wakeup = <&rcpm 0x00000008>;
enet0: ethernet@e0000 {
fixed-link = <0 1 1000 0 0>;
phy-connection-type = "sgmii";
rcpm-wakeup = <&rcpm 0x80000000>;
};
enet1: ethernet@e2000 {
fixed-link = <1 1 1000 0 0>;
phy-connection-type = "sgmii";
rcpm-wakeup = <&rcpm 0x40000000>;
};
... ...
Please refer to arch/powerpc/boot/dts/fsl/t1040si-post.dtsi
l2switch@800000 {
... ...
port@180000 {
fixed-link = <2 1 2500 0 0>;
phy-connection-type = "sgmii";
};
port@190000 {
fixed-link = <3 1 2500 0 0>;
phy-connection-type = "sgmii";
};
... ...
}
For RGMII port problem, I am not sure whether it is caused by hardware or environment configuration, would you please check the status with "ethtool fm1-gb3"? Please check whether it is possible to ping other networking device from fm1-gb3?
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------