Skip to content

Add synopsys designware GMAC NCSI support

Minda Chen linux-devicetree lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dt-bindings: net: dwmac: Add snps,use-ncsi propertyDocumentation/devicetree/bindings/net/snps,dwmac.yaml+7 -03 replies
2/6net: stmmac: Checking whether priv->phylink if NULL in NCSI casedrivers/net/ethernet/stmicro/stmmac/stmmac_main.c drivers/net/ethernet/stmicro/stmmac/stmmac_phylink.h+134 -272 replies
3/6net: stmmac: Add register NCSI device supportdrivers/net/ethernet/stmicro/stmmac/stmmac.h drivers/net/ethernet/stmicro/stmmac/stmmac_main.c drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +1 more+51 -50 replies
4/6net: stmmac: Add NCSI VLAN settingdrivers/net/ethernet/stmicro/stmmac/stmmac_main.c+9 -00 replies
5/6net: dwmac4: Add NCSI mac speed and duplex setting in NCSI casedrivers/net/ethernet/stmicro/stmmac/dwmac4_core.c+14 -10 replies
6/6net: stmmac: ethtool: Do NOT call phylink function in NCSI mode.drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c+31 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [net-next v1 0/6] Add synopsys designware GMAC NCSI support

This patch set is for adding jhb100 GMAC NCSI function. jhb100 is a Starfive new RISC-V SoC for datacenter BMC (BaseBoard Managent Controller). Similar with Aspeed 27x0.

jhb100 contains 2 synopsys RMII(RGMII can be use as RMII) interfaces GMAC, can be use as NCSI GMAC (network controller sideband interface), do not connect with mdio PHY but connect with host server OCP network device and share with network port.

The code which calling NCSI netdevice API is similar with driver/net/ethernet/faraday/ftgmac100.c

The NCSI example:

_________________                 _______________
|               |                 |             |           ___________
|       CLK_50M |---------------->|             |<--------->|         |
|        TX_EN  |---------------->|             |<--------->|         |
|        TXD0   |---------------->|  OCP network|<--------->|  RJ45   |
|BMC     TXD1   |---------------->|    device   |<--------->|  port   |
|RMII    CRS_DV |<----------------|             |<--------->|         |
|port    RX_D0  |<----------------|             |<--------->|         |
|        RX_D1  |<----------------|             |<--------->|_________|
|_______________|                 |_____________|
				    | | | | |
                                    | | | | |

host server PCIe interface

The jhb100 minimal system upstream is in progress:
https://patchwork.kernel.org/project/linux-riscv/cover/[email protected]/

The patch base net-next (base commit list below)

Minda Chen (6):
dt-bindings: net: dwmac: Add snps,use-ncsi property
net: stmmac: Checking whether priv->phylink if NULL in NCSI case
net: stmmac: Add register NCSI device support
net: stmmac: Add NCSI VLAN setting
net: dwmac4: Add NCSI mac speed and duplex setting in NCSI case
net: stmmac: ethtool: Do NOT call phylink function in NCSI mode.

 .../devicetree/bindings/net/snps,dwmac.yaml   |   7 ++
 .../net/ethernet/stmicro/stmmac/dwmac4_core.c |  15 ++-
 drivers/net/ethernet/stmicro/stmmac/stmmac.h  |   1 +
 .../ethernet/stmicro/stmmac/stmmac_ethtool.c  |  32 +++++-
 .../net/ethernet/stmicro/stmmac/stmmac_main.c | 108 +++++++++++++-----
 .../ethernet/stmicro/stmmac/stmmac_phylink.h  | 106 +++++++++++++++++
 .../ethernet/stmicro/stmmac/stmmac_platform.c |  10 +-
 include/linux/stmmac.h                        |   1 +
 8 files changed, 246 insertions(+), 34 deletions(-)
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/stmmac_phylink.h

base-commit: 903db046d5579bef0ea699eae4b279dd6455fc9f

Signature · 1 line
2.17.1