R-Car S4-8 environment board requires to change the host interface as SGMII and the host speed as 1000 Mbps because the strap pin was other mode, but the SoC/board cannot work on that mode. Also, after the SoC initialized the SERDES once, we cannot re-initialized it because the initialized procedure seems all black magic... To communicate between R-Car S4-8 (host MAC) and marvell PHY, this patch series adds a new function of_phy_connect_with_host_param() to set host parameters (host_interfaces and host_speed), and rswitch driver sets the paramter. After that, the marvell10g can check the paramters and set specific registers for it. This patch series is based on next-20221017 and the following patches which are not upstreamed yet: https://lore.kernel.org/all/20221019083518.933070-1-yoshihiro.shimoda.uh@xxxxxxxxxxx/T/#m1c3de735de018b5cb90cb3720056ac1497112b36 I'm not sure whether this is a correct way or not. So, I marked this patch series as RFC. Yoshihiro Shimoda (3): net: mdio: Add of_phy_connect_with_host_param() net: phy: marvell10g: Add host interface speed configuration net: renesas: rswitch: Pass host parameters to phydev drivers/net/ethernet/renesas/rswitch.c | 13 ++++++-- drivers/net/mdio/of_mdio.c | 42 ++++++++++++++++++++++++++ drivers/net/phy/marvell10g.c | 23 ++++++++++++++ include/linux/of_mdio.h | 7 +++++ include/linux/phy.h | 8 +++++ 5 files changed, 91 insertions(+), 2 deletions(-) -- 2.25.1