The ArmSoM CM5 has an on-module MotorComm YT8531 RGMII PHY with no
crystal. It takes its 25 MHz reference from the SoC (clk_mac_refout /
REFCLKO25M), but rk_gmac_clk_init() only requests that clock group for
RMII, so in RGMII the clock stayed off and the PHY did not answer on
MDIO.
Patch 2 requests the group whenever the SoC drives the clock
(clock_in_out = "output"). Patch 1 updates the binding, since RGMII with
clock_in_out = "output" is now valid.
Changes in v2:
- Add patch 1 documenting clock_in_out = "output" for RGMII in the
rockchip-dwmac binding (Maxime Chevallier).
Jiaxing Hu (2):
dt-bindings: net: rockchip-dwmac: allow output clock_in_out for RGMII
net: stmmac: dwmac-rk: enable the reference clock for output mode
Documentation/devicetree/bindings/net/rockchip-dwmac.yaml | 5 +++--
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
--
2.43.0