[PATCH 0/2] net: stmmac: allow sharing MDIO lines

From: Bartosz Golaszewski
Date: Mon Aug 07 2023 - 15:31:39 EST


From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>

Two MACs may share MDIO lines to the PHYs. Let's allow that in the
stmmac driver by providing a new device-tree property allowing one MAC
node to reference the MDIO bus defined on a second MAC node.

Bartosz Golaszewski (2):
dt-bindings: net: snps,dwmac: document the snps,shared-mdio property
net: stmmac: support shared MDIO

Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 ++++++
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 8 ++++++++
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 6 ++++++
include/linux/stmmac.h | 1 +
4 files changed, 21 insertions(+)

--
2.39.2