The dpaa2-eth driver now has support for connecting to its associated PHY device found through standard OF bindings. The PHY interraction is handled by PHYLINK and even though, at the moment, only RGMII_* phy modes are supported by the driver, this is just the first step into adding the necessary changes to support the entire spectrum of capabilities.
This comes after feedback on the initial DPAA2 MAC RFC submitted here: https://lwn.net/Articles/791182/ The notable change is that now, the DPMAC is not a separate driver, and communication between the DPMAC and DPNI no longer happens through firmware. Rather, the DPMAC is now a set of API functions that other net_device drivers (DPNI, DPSW, etc) can use for PHY management. The change is incremental, because the DPAA2 architecture has many modes of connecting net devices in hardware loopback (for example DPNI to DPNI). Those operating modes do not have a DPMAC and phylink instance. The documentation patch provides a more complete view of the software architecture and the current implementation. Ioana Ciornei (4): dpaa2-eth: update the TX frame queues on DPNI_IRQ_EVENT_ENDPOINT_CHANGED bus: fsl-mc: add the fsl_mc_get_endpoint function dpaa2-eth: add MAC/PHY support through phylink net: documentation: add docs for MAC/PHY support in DPAA2 .../device_drivers/freescale/dpaa2/index.rst | 1 + .../freescale/dpaa2/mac-phy-support.rst | 191 ++++++++++++ MAINTAINERS | 4 + drivers/bus/fsl-mc/dprc-driver.c | 6 +- drivers/bus/fsl-mc/dprc.c | 53 ++++ drivers/bus/fsl-mc/fsl-mc-bus.c | 33 ++ drivers/bus/fsl-mc/fsl-mc-private.h | 42 +++ drivers/net/ethernet/freescale/dpaa2/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 124 ++++++-- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h | 3 + .../net/ethernet/freescale/dpaa2/dpaa2-ethtool.c | 25 ++ drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c | 332 +++++++++++++++++++++ drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h | 32 ++ drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h | 62 ++++ drivers/net/ethernet/freescale/dpaa2/dpmac.c | 149 +++++++++ drivers/net/ethernet/freescale/dpaa2/dpmac.h | 144 +++++++++ include/linux/fsl/mc.h | 2 + 17 files changed, 1176 insertions(+), 29 deletions(-) create mode 100644 Documentation/networking/device_drivers/freescale/dpaa2/mac-phy-support.rst create mode 100644 drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c create mode 100644 drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h create mode 100644 drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h create mode 100644 drivers/net/ethernet/freescale/dpaa2/dpmac.c create mode 100644 drivers/net/ethernet/freescale/dpaa2/dpmac.h -- 1.9.1