GMAC port in SGMII mode

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

GMAC port in SGMII mode

934 Views
Akshay_BR
Contributor I

Can anyone share the experience of using GMAC port of NXP driver in SGMII mode if they were successful in changing the mode, if so could you please give the information on what were the challenges face and how did you overcome them.

0 Kudos
Reply
2 Replies

926 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

For S32G2 family, there is an "Ethernet Enablement Guide" that shows the steps on how to enable the different ethernet ports available on the RDB2 platform. This is available under the RDB2 product page (link: S32G2 Vehicle Networking Reference Design | NXP Semiconductors).

Given that SGMII under GMAC seems to be supported under SerDes_0 and RDB2 does not enable SerDes_0 for anything else than PCIe, there is no documentation that goes over the configuration for GMAC under SGMII.

Some steps are provided to configure "PCIe+GMAC0 SGMII on Serdes 0 and 2.5G on Serdes 1" from our internal team:

"1. hwconfig

setenv hwconfig "pcie0:mode=rc,clock=ext,fmhz=100,xpcs_mode=0;pcie1:mode=sgmii,clock=ext,fmhz=125,xpcs_mode=2G5"

2. dts for u-boot

&gmac0 {
    phy-mode = "sgmii";
};

3. dts for kernel

/ethernet@4033c000{
    phy-mode="sgmii";
};

As the following DTS configuration, pinctrl-0 corresponds to RGMII, pinctrl-1 corresponds to SGMII.

&gmac0 {
        clocks = <&clks S32GEN1_SCMI_CLK_GMAC0_RX_SGMII>,
                 <&clks S32GEN1_SCMI_CLK_GMAC0_TX_SGMII>,
                 <&clks S32GEN1_SCMI_CLK_GMAC0_TS_SGMII>,
                 <&clks S32GEN1_SCMI_CLK_GMAC0_RX_RGMII>,
                 <&clks S32GEN1_SCMI_CLK_GMAC0_TX_RGMII>,
                 <&clks S32GEN1_SCMI_CLK_GMAC0_TS_RGMII>,
                 <&clks S32GEN1_SCMI_CLK_GMAC0_AXI>;
        clock-names = "rx_sgmii", "tx_sgmii", "ts_sgmii",
                      "rx_rgmii", "tx_rgmii", "ts_rgmii",
                      "axi";
        pinctrl-0 = <&pinctrl0_gmac0 &pinctrl0_gmac0_mdio>;
        pinctrl-1 = <&pinctrl0_gmac0_mdio>;
        pinctrl-names = "gmac_rgmii", "gmac_sgmii";
};

"

Please, let us know if this information was helpful or not.

0 Kudos
Reply

852 Views
Jayanth_Ramamurthy
Contributor I

Can you share the procedure on how to configure SGMII for S32G-VNP-EVB3 using RTD.

0 Kudos
Reply