]> git.baikalelectronics.ru Git - kernel.git/commit
net: bgmac: support MDIO described in DT
authorRafał Miłecki <rafal@milecki.pl>
Sat, 2 Oct 2021 17:58:12 +0000 (19:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2021 10:38:37 +0000 (11:38 +0100)
commitb829207fe43c467f8a308493de8a369c44600de1
tree2b936f52c3d6517338ba04aa29e1b382e1a7207a
parentbb75e4456d71238a91155f6a829f9d15b4a6c170
net: bgmac: support MDIO described in DT

Check ethernet controller DT node for "mdio" subnode and use it with
of_mdiobus_register() when present. That allows specifying MDIO and its
PHY devices in a standard DT based way.

This is required for BCM53573 SoC support. That family is sometimes
called Northstar (by marketing?) but is quite different from it. It uses
different CPU(s) and many different hw blocks.

One of shared blocks in BCM53573 is Ethernet controller. Switch however
is not SRAB accessible (as it Northstar) but is MDIO attached.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c