LX2160A - use of EC1 RGMII with SD2 protocol 9

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

LX2160A - use of EC1 RGMII with SD2 protocol 9

617 Views
womble
Contributor II

I want to configure a protocol on serdes bank 2 which enables at least 4 SGMII lanes while retaining use of an existing RGMII PHY connected to EC1 (dpmac.17).

 

All of the SD2 protocols with at least 4x SGMII use SGMII.17 which clashes with the EC1 mac (dpmac.17). I have tried setting EC1_PMUX to 00 (WRIOP MAC 17 RGMII) in RCW but cannot get the RGMII interface to come up:

fsl_dpaa2_eth dpni.0 (unnamed net_device) (uninitialized): incorrect link mode rgmii f
or in-band status

Is it possible to configure SD2 protocol 9 and retain use of the EC1 RGMII interface?

Labels (1)
Tags (1)
0 Kudos
1 Reply

568 Views
yipingwang
NXP TechSupport
NXP TechSupport

If the serdes protocol will use the 4xSGMII include SGMII.17, the ECx_PMUX precedence over serdes protocol.
see below code in "drivers/net/ldpaa_eth/lx2160a.c"
#ifdef CONFIG_SYS_FSL_EC1
ec = gur_in32(&gur->rcwsr[FSL_CHASSIS3_EC1_REGSR - 1])
& FSL_CHASSIS3_EC1_REGSR_PRTCL_MASK;
ec >>= FSL_CHASSIS3_EC1_REGSR_PRTCL_SHIFT;

if (!ec)
wriop_init_dpmac_enet_if(17, PHY_INTERFACE_MODE_RGMII_ID);
#endif

I'm not sure is there any way to support this request, I will confirm with DPAA team.

0 Kudos