]> git.baikalelectronics.ru Git - uboot.git/commit
drivers: net: add marvell MDIO driver
authorAlex Marginean <alexandru.marginean@nxp.com>
Thu, 25 Jul 2019 09:33:19 +0000 (12:33 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 4 Sep 2019 16:37:19 +0000 (11:37 -0500)
commitc5426b71ec08272b80c85af411ca8ea44b0d8f87
tree53225c43ed91c5039ea89ad91a8853dec677d813
parent1494799384dee127c2fa9a112e54022cc36728f0
drivers: net: add marvell MDIO driver

This patch adds a separate driver for the MDIO interface of the
Marvell Ethernet controllers based on driver model. There are two
reasons to have a separate driver rather than including it inside
the MAC driver itself:
  *) The MDIO interface is shared by all Ethernet ports, so a driver
     must guarantee non-concurrent accesses to this MDIO interface. The
     most logical way is to have a separate driver that handles this
     single MDIO interface, used by all Ethernet ports.
  *) The MDIO interface is the same between the existing mv643xx_eth
     driver and the new mvneta/mvpp2 driver. Even though it is for now
     only used by the mvneta/mvpp2 driver, it will in the future be
     used by the mv643xx_eth driver as well.

This driver supports SMI IEEE for 802.3 Clause 22 and XSMI for IEEE
802.3 Clause 45.

This patch also adds device tree binding for marvell MDIO driver.

Signed-off-by: Ken Ma <make@marvell.com>
Signed-off-by: Alex Marginean <alexm.osslist@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
doc/device-tree-bindings/net/marvell-mdio.txt [new file with mode: 0644]
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/mvmdio.c [new file with mode: 0644]