u-boot/board/freescale
Vladimir Oltean 7c2d5d1642 net: freescale: replace usage of phy-mode = "sgmii-2500" with "2500base-x"
After the discussion here:
https://lore.kernel.org/netdev/20210603143453.if7hgifupx5k433b@pali/

which resulted in this patch:
https://patchwork.kernel.org/project/netdevbpf/patch/20210704134325.24842-1-pali@kernel.org/

and many other discussions before it, notably:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/1512016235-15909-1-git-send-email-Bhaskar.Upadhaya@nxp.com/

it became apparent that nobody really knows what "SGMII 2500" is.
Certainly, Freescale/NXP hardware engineers name this protocol
"SGMII 2500" in the reference manuals, but the PCS devices do not
support any "SGMII" specific features when operating at the speed of
2500 Mbps, no in-band autoneg and no speed change via symbol replication
. So that leaves a fixed speed of 2500 Mbps using a coding of 8b/10b
with a SERDES lane frequency of 3.125 GHz. In fact, "SGMII 2500 without
in-band autoneg and at a fixed speed" is indistinguishable from
"2500base-x without in-band autoneg", which is precisely what these NXP
devices support.

So it just appears that "SGMII 2500" is an unclear name with no clear
definition that stuck.

As such, in the Linux kernel, the drivers which use this SERDES protocol
use the 2500base-x phy-mode.

This patch converts U-Boot to use 2500base-x too, or at least, as much
as it can.

Note that I would have really liked to delete PHY_INTERFACE_MODE_SGMII_2500
completely, but the mvpp2 driver seems to even distinguish between SGMII
2500 and 2500base-X. Namely, it enables in-band autoneg for one but not
the other, and forces flow control for one but not the other. This goes
back to the idea that maybe 2500base-X is a fiber protocol and SGMII-2500
is an MII protocol (connects a MAC to a PHY such as Aquantia), but the
two are practically indistinguishable through everything except use case.

NXP devices can support both use cases through an identical configuration,
for example RX flow control can be unconditionally enabled in order to
support rate adaptation performed by an Aquantia PHY. At least I can
find no indication in online documents published by Cisco which would
point towards "SGMII-2500" being an actual standard with an actual
definition, so I cannot say "yes, NXP devices support it".

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
2021-09-28 18:50:56 +03:00
..
common common/spl: Drop [ST]PL_HASH_SUPPORT in favor of [ST]PL_HASH 2021-09-08 16:11:46 -04:00
corenet_ds board: corenet_ds: MAINTAINERS: Remove redundant entries 2021-03-05 10:25:41 +05:30
imx8mm_evk imx8mm_evk: switch to use binman to pack images 2021-04-08 20:29:53 +02:00
imx8mn_evk imx8mn-ddr4-evk: switch to use binman 2021-04-08 20:29:53 +02:00
imx8mp_evk u-boot-imx-20210409 2021-04-09 10:08:52 -04:00
imx8mq_evk imx8mq_evk: Enable the USB3.0 host port 2021-07-17 13:12:23 +02:00
imx8qm_mek imx: imx8: Update README with somewhat correct firmware versions 2021-05-02 12:46:54 +02:00
imx8qxp_mek reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
imx8ulp_evk arm: imx: add i.MX8ULP EVK support 2021-08-09 14:46:51 +02:00
imxrt1020-evk board: freescale: imxrt1020-evk: fix console is not enabled while init dram 2021-04-08 20:29:53 +02:00
imxrt1050-evk board: freescale: imxrt1050-evk: fix console is not enabled while init dram 2021-04-08 20:29:53 +02:00
ls1012afrdm ls1012a: net: pfe: remove pfe stop from bootcmd 2021-06-16 18:14:08 +05:30
ls1012aqds net: freescale: replace usage of phy-mode = "sgmii-2500" with "2500base-x" 2021-09-28 18:50:56 +03:00
ls1012ardb net: freescale: replace usage of phy-mode = "sgmii-2500" with "2500base-x" 2021-09-28 18:50:56 +03:00
ls1021aiot board: ls1021aiot: Update MAINTAINERS 2021-03-05 10:25:42 +05:30
ls1021aqds i2c: Rename SPL/TPL_I2C_SUPPORT to I2C 2021-07-28 14:29:37 -04:00
ls1021atsn net: update NXP copyright text 2021-09-28 18:50:56 +03:00
ls1021atwr freescale: ls1021atwr: Drop use of CONFIG_RESET 2021-04-15 14:22:17 +05:30
ls1028a board: ls1028a: Update MAINTAINERS 2021-03-05 10:25:42 +05:30
ls1043aqds net: freescale: replace usage of phy-mode = "sgmii-2500" with "2500base-x" 2021-09-28 18:50:56 +03:00
ls1043ardb net: replace the "xfi" phy-mode with "10gbase-r" 2021-09-28 18:50:56 +03:00
ls1046afrwy board: freescale: ls1046a: Update I2C mux config 2021-07-20 14:18:05 +05:30
ls1046aqds net: freescale: replace usage of phy-mode = "sgmii-2500" with "2500base-x" 2021-09-28 18:50:56 +03:00
ls1046ardb net: replace the "xfi" phy-mode with "10gbase-r" 2021-09-28 18:50:56 +03:00
ls1088a net: replace the "xfi" phy-mode with "10gbase-r" 2021-09-28 18:50:56 +03:00
ls2080aqds net: replace the "xfi" phy-mode with "10gbase-r" 2021-09-28 18:50:56 +03:00
ls2080ardb net: replace the "xfi" phy-mode with "10gbase-r" 2021-09-28 18:50:56 +03:00
lx2160a global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
m5208evbe common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5235evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5249evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5253demo common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5272c3 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5275evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5282evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5329evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5373evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m53017evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc837xerdb pci: Drop pci_init_board() 2021-08-06 08:26:48 -04:00
mpc8349emds pci: Drop pci_init_board() 2021-08-06 08:26:48 -04:00
mpc8548cds pci: freescale: Drop old code 2021-08-05 16:14:36 -04:00
mx6memcal reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
mx6sabreauto MAINTAINERS: Use my personal e-mail address 2021-04-08 20:29:53 +02:00
mx6sabresd MAINTAINERS: Use my personal e-mail address 2021-04-08 20:29:53 +02:00
mx6slevk MAINTAINERS: Use my personal e-mail address 2021-04-08 20:29:53 +02:00
mx6sllevk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sxsabreauto MAINTAINERS: Use my personal e-mail address 2021-04-08 20:29:53 +02:00
mx6sxsabresd mx6sabresd: Make checkboard respect CONFIG_NXP_BOARD_REVISION 2021-07-10 18:14:25 +02:00
mx6ul_14x14_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6ullevk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx7dsabresd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx7ulp_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx23evk mx23evk: Add myself as maintainer 2021-03-01 10:21:36 +01:00
mx28evk mx28evk: Convert to driver model 2021-08-09 14:46:50 +02:00
mx51evk mx51evk: Add myself as maintainer 2021-03-01 10:21:36 +01:00
mx53loco mx53loco: Add myself as maintainer 2021-03-01 10:21:36 +01:00
p1_p2_rdb_pc pci: freescale: Drop old code 2021-08-05 16:14:36 -04:00
p1010rdb pci: freescale: Drop old code 2021-08-05 16:14:36 -04:00
p2041rdb global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
t4rdb net: replace the "xfi" phy-mode with "10gbase-r" 2021-09-28 18:50:56 +03:00
t102xrdb net: freescale: replace usage of phy-mode = "sgmii-2500" with "2500base-x" 2021-09-28 18:50:56 +03:00
t104xrdb pci: freescale: Drop old code 2021-08-05 16:14:36 -04:00
t208xqds net: replace the "xfi" phy-mode with "10gbase-r" 2021-09-28 18:50:56 +03:00
t208xrdb net: replace the "xfi" phy-mode with "10gbase-r" 2021-09-28 18:50:56 +03:00
vf610twr common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00