From: Fugang Duan <fugang.d...@nxp.com> NXP imx8 family like imx8mp/imx8dxl chips support Synopsys MAC 5.10a IP, the patch set is to add ethernet DWMAC glue layer including clocks, dwmac address width, phy interface mode selection and rgmii txclk rate adjustment in runtime.
v1 -> v2: - suggested by Andrew: add the "snps,dwmac-5.10a" compatible string into NXP binding documentation. - suggested by David: adjust code sequences in order to have reverse christmas tree local variable ordering. Thanks Andrew and David for the review. Fugang Duan (3): stmmac: platform: add "snps, dwmac-5.10a" IP compatible string net: ethernet: dwmac: add ethernet glue logic for NXP imx8 chip dt-bindings: net: imx-dwmac: Add NXP imx8 DWMAC glue layer .../devicetree/bindings/net/imx-dwmac.txt | 56 ++++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 13 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../net/ethernet/stmicro/stmmac/dwmac-imx.c | 315 ++++++++++++++++++ .../ethernet/stmicro/stmmac/stmmac_platform.c | 3 +- 5 files changed, 387 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/net/imx-dwmac.txt create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c -- 2.17.1