Skip to content

net: stmmac: dwmac-rk: refclk for crystal-less RGMII PHY

Jiaxing Hu linux-arm-kernel linux-rockchip lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 2 repliesIn review

Changes in v2 from the cover letter

- Add patch 1 documenting clock_in_out = "output" for RGMII in the rockchip-dwmac binding (Maxime Chevallier).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: net: rockchip-dwmac: allow output clock_in_out for RGMIIDocumentation/devicetree/bindings/net/rockchip-dwmac.yaml+3 -20 replies
2/2net: stmmac: dwmac-rk: enable the reference clock for output modedrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c+2 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 0/2] net: stmmac: dwmac-rk: refclk for crystal-less RGMII PHY

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(-)
Signature · 1 line
2.43.0