mbox series

[net-next,v6,0/3] TSN endpoint Ethernet MAC driver

Message ID 20211119225826.19617-1-gerhard@engleder-embedded.com (mailing list archive)
Headers show
Series TSN endpoint Ethernet MAC driver | expand

Message

Gerhard Engleder Nov. 19, 2021, 10:58 p.m. UTC
This series adds a driver for my FPGA based TSN endpoint Ethernet MAC.
It also includes the device tree binding.

The device is designed as Ethernet MAC for TSN networks. It will be used
in PLCs with real-time requirements up to isochronous communication with
protocols like OPC UA Pub/Sub.

v6:
 - add build time configuration option for selftests (Andrew Lunn)
 - use only of_mdiobus_register (Andrew Lunn)
 - add comment to register length calculation (Andrew Lunn)
 - rework wmb() to dma_wmb() (Heiner Kallweit)
 - add comments to dma_rmb() and dma_wmb() (Heiner Kallweit)
 - fix compilation without CONFIG_NEED_DMA_MAP_STATE (kernel test robot)
 - fix typo 'incrememted'

v5:
 - rebase net-next/master

v4:
 - fix sparse __iomem warnings (Jakub Kicinski, Andrew Lunn)
 - fix sparse endian warnings (Jakub Kicinski, Andrew Lunn)

v3:
 - set MAC mode based on PHY information (Andrew Lunn)
 - remove/postpone loopback mode interface (Andrew Lunn)
 - add suppress_preamble node support (Andrew Lunn)
 - add mdio timeout (Andrew Lunn)
 - no need to call phy_start_aneg (Andrew Lunn)
 - remove unreachable code (Andrew Lunn)
 - move 'struct napi_struct' closer to queues (Vinicius Costa Gomes)
 - remove unused variable (kernel test robot)
 - switch from mdio interrupt to polling
 - mdio register without PHY address flag
 - thread safe interrupt enable register
 - add PTP_1588_CLOCK_OPTIONAL dependency to Kconfig
 - introduce dmadev for DMA allocation
 - mdiobus for platforms without device tree
 - prepare MAC address support for platforms without device tree
 - add missing interrupt disable to probe error path

v2:
 - add C45 check (Andrew Lunn)
 - forward phy_connect_direct() return value (Andrew Lunn)
 - use phy_remove_link_mode() (Andrew Lunn)
 - do not touch PHY directly, use PHY subsystem (Andrew Lunn)
 - remove management data lock (Andrew Lunn)
 - use phy_loopback (Andrew Lunn)
 - remove GMII2RGMII handling, use xgmiitorgmii (Andrew Lunn)
 - remove char device for direct TX/RX queue access (Andrew Lunn)
 - mdio node for mdiobus (Rob Herring)
 - simplify compatible node (Rob Herring)
 - limit number of items of reg and interrupts nodes (Rob Herring)
 - restrict phy-connection-type node (Rob Herring)
 - reference to mdio.yaml under mdio node (Rob Herring)
 - remove device tree (Michal Simek)
 - fix %llx warning (kernel test robot)
 - fix unused tmp variable warning (kernel test robot)
 - add missing of_node_put() for of_parse_phandle()
 - use devm_mdiobus_alloc()
 - simplify mdiobus read/write
 - reduce required nodes
 - ethtool priv flags interface for loopback
 - add missing static for some functions
 - remove obsolete hardware defines

Gerhard Engleder (3):
  dt-bindings: Add vendor prefix for Engleder
  dt-bindings: net: Add tsnep Ethernet controller
  tsnep: Add TSN endpoint Ethernet MAC driver

 .../bindings/net/engleder,tsnep.yaml          |   79 +
 .../devicetree/bindings/vendor-prefixes.yaml  |    2 +
 drivers/net/ethernet/Kconfig                  |    1 +
 drivers/net/ethernet/Makefile                 |    1 +
 drivers/net/ethernet/engleder/Kconfig         |   38 +
 drivers/net/ethernet/engleder/Makefile        |   10 +
 drivers/net/ethernet/engleder/tsnep.h         |  190 +++
 drivers/net/ethernet/engleder/tsnep_ethtool.c |  293 ++++
 drivers/net/ethernet/engleder/tsnep_hw.h      |  230 +++
 drivers/net/ethernet/engleder/tsnep_main.c    | 1273 +++++++++++++++++
 drivers/net/ethernet/engleder/tsnep_ptp.c     |  221 +++
 .../net/ethernet/engleder/tsnep_selftests.c   |  811 +++++++++++
 drivers/net/ethernet/engleder/tsnep_tc.c      |  443 ++++++
 13 files changed, 3592 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/engleder,tsnep.yaml
 create mode 100644 drivers/net/ethernet/engleder/Kconfig
 create mode 100644 drivers/net/ethernet/engleder/Makefile
 create mode 100644 drivers/net/ethernet/engleder/tsnep.h
 create mode 100644 drivers/net/ethernet/engleder/tsnep_ethtool.c
 create mode 100644 drivers/net/ethernet/engleder/tsnep_hw.h
 create mode 100644 drivers/net/ethernet/engleder/tsnep_main.c
 create mode 100644 drivers/net/ethernet/engleder/tsnep_ptp.c
 create mode 100644 drivers/net/ethernet/engleder/tsnep_selftests.c
 create mode 100644 drivers/net/ethernet/engleder/tsnep_tc.c

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 22, 2021, 1:30 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Fri, 19 Nov 2021 23:58:23 +0100 you wrote:
> This series adds a driver for my FPGA based TSN endpoint Ethernet MAC.
> It also includes the device tree binding.
> 
> The device is designed as Ethernet MAC for TSN networks. It will be used
> in PLCs with real-time requirements up to isochronous communication with
> protocols like OPC UA Pub/Sub.
> 
> [...]

Here is the summary with links:
  - [net-next,v6,1/3] dt-bindings: Add vendor prefix for Engleder
    https://git.kernel.org/netdev/net-next/c/2b34a288d200
  - [net-next,v6,2/3] dt-bindings: net: Add tsnep Ethernet controller
    https://git.kernel.org/netdev/net-next/c/603094b2cdb7
  - [net-next,v6,3/3] tsnep: Add TSN endpoint Ethernet MAC driver
    https://git.kernel.org/netdev/net-next/c/403f69bbdbad

You are awesome, thank you!