[PATCH net-next v2 0/5] net: enetc: S32N79 pseudo-MAC (PPM) networking support

From: Claudiu Manoil

Date: Tue Oct 13 2026 - 15:33:45 EST


This series adds networking support for the ENETCv4.4 pseudo-MAC (PPM)
ports found on the NXP S32N79 SoC. On S32N79, the ENETCv4 ports are
not wired to any external PHY/MII; instead they are internal "pseudo-MAC"
links into the on-chip NETC switch. These links are proprietary, expose
no standard IEEE interface, and run at a speed fixed at boot time by the
Port PCR[PSPEED] register.

A key use case is a port that has no "ethernet" DT node at all: NETC is
reached over PCI from a host that probes the ENETC, while the internal
NETC switch it connects to is not owned by Linux. Such a port must have
its fixed link synthesized at probe time.

The driver synthesizes the fixed link directly in C using an of_changeset:
of_changeset_create_node() adds a "fixed-link" subnode onto the PCI
function's dynamic OF node (CONFIG_PCI_DYNAMIC_OF_NODES), with the "speed"
property read from PCR[PSPEED] at probe time and "full-duplex" set.
phylink then picks up the fixed-link node through dev_fwnode().

The series touches three subsystems:
- net/enetc: pseudo-MAC fixed-link support + probing of 4.4 devices
- arm64 dts: NETC IEP18 ECAM node on S32N79 and its RDB board enable
- PCI: a quirk creating the OF node for the ENETC PMAC functions

Because this is primarily a networking feature and the pieces are
interdependent at runtime, it would be most convenient to merge the
whole series through the netdev tree.

Patch 1 has a runtime (not Kconfig) dependency on
CONFIG_PCI_DYNAMIC_OF_NODES; absent that, the pseudo-MAC probe path
fails gracefully with -ENODEV.

v2:
- Switched patch 1 from a DT overlay blob (of_overlay_fdt_apply() + a
.dtso compiled to .dtbo) to of_changeset_create_node(), per review
feedback. This drops the embedded overlay externs, the Makefile
.dtbo wrapping, and the OF_OVERLAY Kconfig dependency. The operating
speed is now baked directly into the changeset-created fixed-link
node (read once from PCR[PSPEED] at probe time); the phylink
get_fixed_state callback is no longer needed and was removed.
- Patch 2: described why there are two ENETC PF IDs in the commit
message, as per review.
- Patch 3: replaced the 'msi-parent' stub property with 'msi-map', as
per H/W spec.
- Patch 5: reworded the commit message to match patch 1's fixed-link
approach (no functional change); added Bjorn's Acked-by.
v1: initial submission.

Claudiu Manoil (5):
net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link
node
net: enetc: Enable probing of version 4.4 devices
arm64: dts: s32n79: add NETC IEP18 ECAM node for ENETC PPM ports
arm64: dts: s32n79-rdb: enable NETC IEP18
PCI: Create OF node for NXP ENETC pseudo-MAC functions

arch/arm64/boot/dts/freescale/s32n79-rdb.dts | 4 +
arch/arm64/boot/dts/freescale/s32n79.dtsi | 24 ++++
drivers/net/ethernet/freescale/enetc/enetc.c | 12 ++
drivers/net/ethernet/freescale/enetc/enetc.h | 1 +
.../net/ethernet/freescale/enetc/enetc4_pf.c | 113 +++++++++++++++++-
.../net/ethernet/freescale/enetc/enetc_hw.h | 1 +
.../freescale/enetc/enetc_pf_common.c | 41 ++++++-
.../freescale/enetc/enetc_pf_common.h | 1 +
drivers/pci/quirks.c | 2 +
9 files changed, 190 insertions(+), 9 deletions(-)

--
2.34.1