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)
commit45c9d966688e7fad7f24bfc450547d91e4304d0b
tree2b936f52c3d6517338ba04aa29e1b382e1a7207a
parentb5375509184dc23d2b7fa0c5ed8763899ccc9674
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