Hi All,
We have a custom board where 2 PHYS are connected through RGMII and another 2 are connected through SGMII (In SGMII ,one is PHY and another ext switch) .Have attached the snapshot of schematics of how the external PHYs are connected .To start with we are configuring the 2 RGMII PHYs which are connected through RGMII5 /RGMII6 pins respectively. These two, we think are connected to internal MAC ports of port no 5 and 6 respectively. So in the switch application software(mcu2_0) we have configured these ports as RGMII in main_tirtos.c assume this will override the default configuration of EVM board.
static const Cpsw_MacPort gCpswMainAppMacPorts[] =
{
CPSW_MAC_PORT_0,
#if defined(SOC_J721E)
CPSW_MAC_PORT_5, /* RGMII */
CPSW_MAC_PORT_6, /* RGMII */
CPSW_MAC_PORT_7, /* SGMII */
#endif
};
Also done the necessary changes in the source files in psdk (board_ethernet_config.c, cpsw_appboardutils_j721e_evm.c) patches to them is added as an attachment. But when running the mcu2_0 with these changes , getting the below errors.
CPSW_9G Test on MAIN NAVSS
Remote demo device (core : mcu2_0) .....
Cps
U-Boot SPL 2019.01-g350f3927b8 (Oct 18 2020 - 19:56:10 +0000)
w_openPorReading on-board EEPROM at 0x50 failed 1
tLink: Invalid Trying to boot from MMC2
SGMII/QSGMII port 5 configuration: -6
Cpsw_ioctlInternal: failed to open port 5 link: -ti_sci_power_domain_on: get_device
6
CpswMcm_enablePorts() failed to open MAC port: -6
Cpsw_openPortLink: Invalid SGMII/QSGMII
U-Boot 2019.01-g350f3927b8 (Oct 18 2020 - 19:56:10 +0000)
SoC: J721E PG 1.0
Model: Texas Instruments K3 J721E SoC
port 6 cReading on-board EEPROM at 0x50 failed 1
Board: J721EX-PM1-SOM rev E2
DRAM: o4 GiB
nfiguration: -6
CpsFlash: 0 Bytes
MMC: w_iosdhci@4f80000: 0, sdhci@4fb0000: 1
Loading Environment from SPI Flash... ti_sci_power_domain_on: get_device(103) faile
ctlInternal: failed to open port 6 link: -6
CpswMcm_enablePorts() failed to open MAC port: -6
PHY 0 is alive
Please find the attached patches done for the configuration and let us know if anything is missed.PHYs_config.zip
With regards,
Jeyaseelan