Article View: linux.kernel.netdev
Article #10425[PATCH net-next v3 0/5] net: enetc: S32N79 pseudo-MAC (PPM) networking support
From: Claudiu Manoil
Date: Tue, 03 Nov 2026 14:09
Date: Tue, 03 Nov 2026 14:09
76 lines
12243 bytes
12243 bytes
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.
v3:
- Patch 1: fixed the CONFIG_OF_DYNAMIC dependency, refactored
enetc4_add_ppm_fixed_link() as per Wei's feedback, and improved the
commit message.
- Patch 2: added sysclk_freq info for the v4.4 ENETC devices.
- Patches 3-5: no changes.
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/Kconfig | 1 +
drivers/net/ethernet/freescale/enetc/enetc.c | 26 +++++
.../net/ethernet/freescale/enetc/enetc4_pf.c | 109 +++++++++++++++++-
.../net/ethernet/freescale/enetc/enetc_hw.h | 4 +-
.../net/ethernet/freescale/enetc/enetc_pf.h | 2 +
.../freescale/enetc/enetc_pf_common.c | 41 ++++++-
.../freescale/enetc/enetc_pf_common.h | 1 +
drivers/pci/quirks.c | 2 +
10 files changed, 204 insertions(+), 10 deletions(-)
--
2.34.1
Technical Details
Message-ID:
<cover.1793712309.git.claudiu.manoil@nxp.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355702-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355702-linux-kernel-netdev=dewy.ru From: claudiu.manoil@nxp.com (Claudiu Manoil) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v3 0/5] net: enetc: S32N79 pseudo-MAC (PPM) networking support Date: Tue, 3 Nov 2026 16:09:06 +0200 Organization: Usenet Network Message-ID: <cover.1793712309.git.claudiu.manoil@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3184930"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:LGcLp1NNYX+iulHT8fhK/HsWD4w= sha256:AKrzyAnbQoAZw+fT/rqz2YYPnd4gLjBBanp3ErVKSAI= sha1:8TgYNAhAKNZdMeQ4GB9WDZeHda0= sha256:zY/OvI/7RvntSQ6gD7vE8ElgFBYy+XrDnNRQCPEVuXQ= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id C32A81128DB; Tue, 3 Nov 2026 17:20:35 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.151 X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=nxp.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cvQSxqKevI6c; Tue, 3 Nov 2026 17:20:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-355702-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=nxp.com X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 04AE51128CF; Tue, 3 Nov 2026 17:20:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 82F3660A9BD; Tue, 3 Nov 2026 14:10:02 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793714967; b=oOQjFyfF/MTd1r9XXpHEQdgFOK5pwxOk+4WydKl3EGYnXIj7hc54n9ZB28WESBkNa5FT VZ5lNgSZgdwHzb+wp303BgUu7tg6+/RliWnqJzlqs1/wiGflYvnx1MtItNOCJchloO7+r YZ7MWxDTf8ObkgCghY4oNtJSBpgIqjVr576ujmD0EEofh2j/CuBidO7pvOx711PW01f6z rmk9r9mufeRuePDhH/aQcnWq3vJ+eVP3G/I9CongzYIIguKS4m/nI4SldWb/cSklJm23/ JSD0UqRk2Mi2WhPt1svucwEtnZMRzp4RxqxtpX1iGywz9HyXGee35Q8fizwD5BCtBUw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793714967; h=X-Original-To:Received:DMARC-Filter:Received:X-Virus-Scanned: Received:Received:DKIM-Filter:DKIM-Signature:Received:From:To:Cc: Subject:Date:Message-Id:X-Mailer:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Transfer-Encoding; bh=OgSB2dLpNlVg6m8t+Mucq+MCmoGh3nhFHSqkGHmNRqM=; b=bp1IiGWL6nQcTtojEziRkNZBW11ICZErcBRRi2c61NwBk40NasELWpvrrmtCylvGDKr4 UwDOVeEMXaN/AugeOy7yzB78vDgxmfR7ahJ3/ma23TCCxDkZAupsbzGYpwIT05ejivwY6 PsHgBFP8v0nqZOyRfkaogc1pt4O3pdr5LkXChHmXEgSl2+GH2aAblAz/nr4YNkjqHqRVf /WxjZf30F23R+rJh+qhrOTIVO2mR0gJQNC/WYhxygZ643MUTav6Vm+rYjcIv8uAgcWm64 CdImvJ774Ev1YCZhnUM7N6XT2daMzVHHO0JTalCaNZWnbMWnSaNhgbYq9sxfAR7LZVA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=nselector2 header.b=NBsR73Do; dmarc=pass header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A7B5606EE9B; Tue, 3 Nov 2026 14:09:27 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=nselector2 header.b=NBsR73Do X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=92.121.32.54 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793714961; b=Fw3EsGl0Lon05amV9lObwzec3cFLyI+2ggThHYws21XrLAXgUaspoKbxYnmAQiJTsM+w wqOXsLLhdjqix2dTv3YZa3Ch/PVGOnBw68x+Zo6Uw/w2U59RUWEDVsB3FISSd5ArRj+av kN5hZzPQGP2thNhnPpoVfj7Luk6itPxMId1GPvUu+qdAra+N/q+AurF6eDRjmgSqQFeTP 6QbkJtug+bm0N6TxWZ60fK2vdAsTQu6cqYBkC4NI1D8qVfceZSEnbUDooUx7NQ00I/zGi Cy99DXoEgyHpHKC59jp0N+H5phybb8ewlTC/uGVYUwxjRFyn5/hVl2xUrM4YsuT0R8A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793714961; h=DMARC-Filter:Received:X-Virus-Scanned:Received:Received:DKIM-Filter: DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=OgSB2dLpNlVg6m8t+Mucq+MCmoGh3nhFHSqkGHmNRqM=; b=Of18uZoRTAGnRVTrN2bw82JQjhi/R5HPrUb5dD6FmJPhb72oUXy92DkSF3MvOh2cCQ+r zBIE0Kr3DHZ1hfX0S0CGU6Yv9qIjNlBIXHELFatlZ4ABa3WgioDiVr9ZWSzHFq2Qn2RfN YDe1TdFKEX1A5eVV7qbA8bwNO7qDQrmzKpgwk2xB4nz7vSSzKtD44WUsLtRoNIp0BRz9/ d4ScyBIztI5FaYzLWqwMW36Qif7zgEpPRstQV0CAhokL3fUGUuWGZ3mpnouYA4Zl1Fmn9 70FUeeXttne7WjTUX91lyxlaWR8iap38OY1HbGkQIFnFFSo3P9j9Y2ExOct3LGJSdXA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=nselector2 header.b=NBsR73Do; arc=none smtp.remote-ip=92.121.32.54 X-Received: from inva129.nxp.com (inva129.nxp.com [92.121.32.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36FCB606A32C; Tue, 3 Nov 2026 14:09:21 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 36FCB606A32C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com X-Received: from localhost (localhost [127.0.0.1]) by inva129.nxp.com (Postfix) with ESMTP id 058A260000B9; Tue, 3 Nov 2026 15:09:14 +0100 (CET) X-Virus-Scanned: amavis at nxp.com X-Received: from inva129.nxp.com ([127.0.0.1]) by localhost (inva129.nxp.com [127.0.0.1]) (amavis, port 10024) with ESMTP id V0_MSZfE6aKZ; Tue, 3 Nov 2026 15:09:13 +0100 (CET) X-Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva129.nxp.com (Postfix) with ESMTP id 75F26600009F; Tue, 3 Nov 2026 15:09:13 +0100 (CET) X-DKIM-Filter: OpenDKIM Filter v2.11.0 inva129.nxp.com 75F26600009F X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=nselector2; t=1793714953; bh=OgSB2dLpNlVg6m8t+Mucq+MCmoGh3nhFHSqkGHmNRqM=; h=From:To:Cc:Subject:Date:From; b=NBsR73DoN5Cj8DrvwHiGKj4Y4InQjSibwVevXoNk7vjlRi1LX30HzSE3zTnW0c+Dr trkPs4PzKwC7Uql0MrIRLZTs6XGh+Rw5niKOcvDnqpaUuCgwg8Lx2p01PNSZQBISM3 LXHKNYFhp0cnrWDeLYLqQ2ULQrvpwQIMNriYLt8VxRMZRBwHJByVK8ELOF0AMaxHBF X8M0uTp3LoM9EvEbyKAZR/sveE6/VvSuVTApq4YgZVpcWuYuWpg8aUk6DYQdThDkDT /UvfHkaRpNseqJ8H17hNpYEagOkNqBBYGsiG9QVf7vTLcFfsdg7aUucfgEnLuVp6Gs EOMRemYbuajSw== X-Received: from lsv15141.swis.ro-buh01.nxp.com (lsv15141.swis.ro-buh01.nxp.com [10.162.246.138]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id EE84A202AF; Tue, 3 Nov 2026 15:09:12 +0100 (CET) X-Cc: s32@nxp.com, Rob Herring <robh@kernel.org>, Saravana Kannan <saravanak@kernel.org>, devicetree@vger.kernel.org X-Mailer: git-send-email 2.34.1 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list