net: designware: socfpga: fix phy setup for Arria10
Barebox-version of the Linux v5.2 patch:

    40ae255
    net: stmmac: socfpga: fix phy and ptp_ref setup for Arria10/Stratix10

    On the Arria10, Agilex, and Stratix10 SoC, there are a few differences from
    the Cyclone5 and Arria5:
     - The emac PHY setup bits are in separate registers.
     - The PTP reference clock select mask is different.
     - The register to enable the emac signal from FPGA is different.

    Thus, this patch creates a separate function for setting the phy modes on
    Arria10/Agilex/Stratix10. The separation is based a new DTS binding:
    "altr,socfpga-stmmac-a10-s10".

    Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>

The new DTS binding is already part of v2019.10.0 and the driver doesn't
probe on Arria10 without the new binding introduced in this patch.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e096d05 commit 1cf24373c00b05cf1a1e08ba37522c0593e57106
@Steffen Trumtrar Steffen Trumtrar authored on 17 Oct 2019
Sascha Hauer committed on 18 Oct 2019
Showing 2 changed files
View
drivers/net/designware.h
View
drivers/net/designware_socfpga.c