add basic support for i.MX95 NETC
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
- v6 Latest12 patches 4 repliesApplied 12/12
- v513 patches 24 repliesSuperseded
- v413 patches 28 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 13 patches | 24 replies | Superseded | |
| v2 | 13 patches | 29 replies | Superseded | |
| v1 | 11 patches | 30 replies | Superseded |
Patches in v6 All 12 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | dt-bindings: net: add compatible string for i.MX95 EMDIODocumentation/ | +7 | 0 replies | Applied |
| 2/12 | dt-bindings: net: add i.MX95 ENETC supportDocumentation/ | +25 | 2 replies | Applied |
| 3/12 | dt-bindings: net: add bindings for NETC blocks controlDocumentation/ | +104 | 0 replies | Applied |
| 4/12 | net: enetc: add initial netc-blk-ctrl driver supportdrivers/ drivers/ drivers/ +1 more | +481 | 0 replies | Applied |
| 5/12 | net: enetc: extract common ENETC PF parts for LS1028A and i.MX95 platformsdrivers/ drivers/ drivers/ +1 more | +319 | 0 replies | Applied |
| 6/12 | net: enetc: build enetc_pf_common.c as a separate moduledrivers/ drivers/ drivers/ +3 more | +89 | 0 replies | Applied |
| 7/12 | net: enetc: remove ERR050089 workaround for i.MX95drivers/ drivers/ | +52 | 0 replies | Applied |
| 8/12 | net: enetc: add i.MX95 EMDIO supportdrivers/ | +3 | 0 replies | Applied |
| 9/12 | net: enetc: extract enetc_int_vector_init/destroy() from enetc_alloc_msix()drivers/ | +92 | 0 replies | Applied |
| 10/12 | net: enetc: optimize the allocation of tx_bdrdrivers/ | +8 | 0 replies | Applied |
| 11/12 | net: enetc: add preliminary support for i.MX95 ENETC PFdrivers/ drivers/ drivers/ +11 more | +1113 | 2 replies | Applied |
| 12/12 | MAINTAINERS: update ENETC driver files and maintainersMAINTAINERS | +7 | 0 replies | Applied |
Reviews trailers per patch
6 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Frank Li | Vladimir Oltean | Rob Herring (Arm) | Claudiu Manoil |
|---|---|---|---|---|
| 1/12 | R-b | R-b | R-b | |
| 2/12 | R-b | R-b | ||
| 3/12 | R-b | |||
| 4/12 | R-b | |||
| 5/12 | ||||
| 6/12 | ||||
| 7/12 | ||||
| 8/12 | ||||
| 9/12 | ||||
| 10/12 | R-b | R-b | ||
| 11/12 | R-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.
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