Skip to content

add basic support for i.MX95 NETC

Wei Fang imx linux-devicetree linux-pci lkml netdev 6 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest12 patches 4 repliesApplied 12/12
  2. v513 patches 24 repliesSuperseded
  3. v413 patches 28 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v313 patches24 repliesSuperseded
v213 patches29 repliesSuperseded
v111 patches30 repliesSuperseded

Patches in v6 All 12 applied

#Subject and filesSizeRepliesApplied
1/12dt-bindings: net: add compatible string for i.MX95 EMDIODocumentation/devicetree/bindings/net/fsl,enetc-mdio.yaml+7 -40 repliesApplied
2/12dt-bindings: net: add i.MX95 ENETC supportDocumentation/devicetree/bindings/net/fsl,enetc.yaml+25 -32 repliesApplied
3/12dt-bindings: net: add bindings for NETC blocks controlDocumentation/devicetree/bindings/net/nxp,netc-blk-ctrl.yaml+104 -00 repliesApplied
4/12net: enetc: add initial netc-blk-ctrl driver supportdrivers/net/ethernet/freescale/enetc/Kconfig drivers/net/ethernet/freescale/enetc/Makefile drivers/net/ethernet/freescale/enetc/netc_blk_ctrl.c +1 more+481 -00 repliesApplied
5/12net: enetc: extract common ENETC PF parts for LS1028A and i.MX95 platformsdrivers/net/ethernet/freescale/enetc/Makefile drivers/net/ethernet/freescale/enetc/enetc_pf.c drivers/net/ethernet/freescale/enetc/enetc_pf_common.c +1 more+319 -2950 repliesApplied
6/12net: enetc: build enetc_pf_common.c as a separate moduledrivers/net/ethernet/freescale/enetc/Kconfig drivers/net/ethernet/freescale/enetc/Makefile drivers/net/ethernet/freescale/enetc/enetc_pf.c +3 more+89 -160 repliesApplied
7/12net: enetc: remove ERR050089 workaround for i.MX95drivers/net/ethernet/freescale/enetc/enetc_hw.h drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c+52 -100 repliesApplied
8/12net: enetc: add i.MX95 EMDIO supportdrivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c+3 -00 repliesApplied
9/12net: enetc: extract enetc_int_vector_init/destroy() from enetc_alloc_msix()drivers/net/ethernet/freescale/enetc/enetc.c+92 -850 repliesApplied
10/12net: enetc: optimize the allocation of tx_bdrdrivers/net/ethernet/freescale/enetc/enetc.c+8 -20 repliesApplied
11/12net: enetc: add preliminary support for i.MX95 ENETC PFdrivers/net/ethernet/freescale/enetc/Kconfig drivers/net/ethernet/freescale/enetc/Makefile drivers/net/ethernet/freescale/enetc/enetc.c +11 more+1113 -282 repliesApplied
12/12MAINTAINERS: update ENETC driver files and maintainersMAINTAINERS+7 -00 repliesApplied

Reviews trailers per patch

6 of 12 patches have a Reviewed-by or Acked-by.

PatchFrank LiVladimir OlteanRob Herring (Arm)Claudiu Manoil
1/12R-b R-b R-b
2/12R-b R-b
3/12R-b
4/12R-b
5/12
6/12
7/12
8/12
9/12
10/12R-b R-b
11/12R-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH v6 net-next 00/12] add basic support for i.MX95 NETC

This is first time that the NETC IP is applied on i.MX MPU platform. Its revision has been upgraded to 4.1, which is very different from the NETC of LS1028A (its revision is 1.0). Therefore, some existing drivers of NETC devices in the Linux kernel are not compatible with the current hardware. For example, the fsl-enetc driver is used to drive the ENETC PF of LS1028A, but for i.MX95 ENETC PF, its registers and tables configuration are very different from those of LS1028A, and only the station interface (SI) part remains basically the same. For the SI part, Vladimir has separated the fsl-enetc-core driver, so we can reuse this driver on i.MX95. However, for other parts of PF, the fsl-enetc driver cannot be reused, so the nxp-enetc4 driver is added to support revision 4.1 and later.

During the development process, we found that the two PF drivers have some interfaces with basically the same logic, and the only difference is the hardware configuration. So in order to reuse these interfaces and reduce code redundancy, we extracted these interfaces and compiled them into a separate nxp-enetc-pf-common driver for use by the two PF drivers.

In addition, we have developed the nxp-netc-blk-ctrl driver, which is used to control three blocks, namely Integrated Endpoint Register Block (IERB), Privileged Register Block (PRB) and NETCMIX block. The IERB contains registers that are used for pre-boot initialization, debug, and non-customer configuration. The PRB controls global reset and global error handling for NETC. The NETCMIX block is mainly used to set MII protocol and PCS protocol of the links, it also contains settings for some other functions.

---
v1 Link: https://lore.kernel.org/imx/[email protected]/
v2 Link: https://lore.kernel.org/imx/[email protected]/
v3 Link: https://lore.kernel.org/imx/[email protected]/
v4 Link: https://lore.kernel.org/imx/[email protected]/
v5 Link: https://lore.kernel.org/imx/[email protected]/
---

Clark Wang (2):
net: enetc: extract enetc_int_vector_init/destroy() from
enetc_alloc_msix()
net: enetc: optimize the allocation of tx_bdr

Vladimir Oltean (1):
net: enetc: remove ERR050089 workaround for i.MX95

Wei Fang (9):
dt-bindings: net: add compatible string for i.MX95 EMDIO
dt-bindings: net: add i.MX95 ENETC support
dt-bindings: net: add bindings for NETC blocks control
net: enetc: add initial netc-blk-ctrl driver support
net: enetc: extract common ENETC PF parts for LS1028A and i.MX95
platforms
net: enetc: build enetc_pf_common.c as a separate module
net: enetc: add i.MX95 EMDIO support
net: enetc: add preliminary support for i.MX95 ENETC PF
MAINTAINERS: update ENETC driver files and maintainers

 .../bindings/net/fsl,enetc-mdio.yaml          |  11 +-
 .../devicetree/bindings/net/fsl,enetc.yaml    |  28 +-
 .../bindings/net/nxp,netc-blk-ctrl.yaml       | 104 +++
 MAINTAINERS                                   |   7 +
 drivers/net/ethernet/freescale/enetc/Kconfig  |  40 +
 drivers/net/ethernet/freescale/enetc/Makefile |   9 +
 drivers/net/ethernet/freescale/enetc/enetc.c  | 269 ++++---
 drivers/net/ethernet/freescale/enetc/enetc.h  |  30 +-
 .../net/ethernet/freescale/enetc/enetc4_hw.h  | 155 ++++
 .../net/ethernet/freescale/enetc/enetc4_pf.c  | 756 ++++++++++++++++++
 .../ethernet/freescale/enetc/enetc_ethtool.c  |  35 +-
 .../net/ethernet/freescale/enetc/enetc_hw.h   |  53 +-
 .../ethernet/freescale/enetc/enetc_pci_mdio.c |  31 +
 .../net/ethernet/freescale/enetc/enetc_pf.c   | 313 +-------
 .../net/ethernet/freescale/enetc/enetc_pf.h   |  21 +
 .../freescale/enetc/enetc_pf_common.c         | 336 ++++++++
 .../freescale/enetc/enetc_pf_common.h         |  19 +
 .../net/ethernet/freescale/enetc/enetc_qos.c  |   2 +-
 .../net/ethernet/freescale/enetc/enetc_vf.c   |   6 +
 .../ethernet/freescale/enetc/netc_blk_ctrl.c  | 445 +++++++++++
 include/linux/fsl/netc_global.h               |  19 +
 21 files changed, 2273 insertions(+), 416 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/nxp,netc-blk-ctrl.yaml
 create mode 100644 drivers/net/ethernet/freescale/enetc/enetc4_hw.h
 create mode 100644 drivers/net/ethernet/freescale/enetc/enetc4_pf.c
 create mode 100644 drivers/net/ethernet/freescale/enetc/enetc_pf_common.c
 create mode 100644 drivers/net/ethernet/freescale/enetc/enetc_pf_common.h
 create mode 100644 drivers/net/ethernet/freescale/enetc/netc_blk_ctrl.c
 create mode 100644 include/linux/fsl/netc_global.h
Signature · 1 line
2.34.1