]> 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)
commit8241b529e6b7328b2f6bc0e69dce74a76a386cd5
tree2b936f52c3d6517338ba04aa29e1b382e1a7207a
parent3038890e76a5ea5effefe1d5bbd2fb9f333f2227
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