* Re: [PATCH v4 0/6] net: enetc: S32N79 pseudo-MAC (PPM) networking support
[not found] <4f51bfd237fa584c7d9187d7b82f36e261853ea3.1794581338.git.claudiu.manoil@nxp.com.mbx>
@ 2026-11-19 22:00 ` Enric Balletbo i Serra
0 siblings, 0 replies; only message in thread
From: Enric Balletbo i Serra @ 2026-11-19 22:00 UTC (permalink / raw)
To: netdev
Cc: Claudiu Manoil, s32, Vladimir Oltean, Wei Fang, Clark Wang,
Andrew Lunn, David S . Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Saravana Kannan, Russell King, imx,
linux-kernel, devicetree, Enric Balletbo i Serra
On Fri, Nov 13, 2026 at 05:02:31PM +0200, Claudiu Manoil wrote:
> 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
> and a fix for more than 6 ring interrupt vectors
> - 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.
>
Hi Claudiu,
I tested this series on the S32N79-RDB board running latest mainline kernel
and applied your v4 pseudo-MAC/PPM patches on top.
I used, though, the MRU MSI controller for NETC IEP18 overriding
the upstream msi-map property with msi-parent pointing to
the NXP MRU MSI controller (this driver is not upstream yet but I ported it).
With that configuration the ENETC PF probes successfully and networking is
functional on the board. So,
Tested-by: Enric Balletbo i Serra <eballetb@redhat.com>
[1] device-tree diff
diff --git a/arch/arm64/boot/dts/freescale/s32n79-rdb.dts b/arch/arm64/boot/dts/freescale/s32n79-rdb.dts
index 897ba24ac03a..a8a3602505e2 100644
--- a/arch/arm64/boot/dts/freescale/s32n79-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/s32n79-rdb.dts
@@ -70,5 +70,37 @@ &usdhc0 {
};
&netc_iep18 {
+ /delete-property/ msi-map;
+ msi-parent = <&mru_msi_controller>;
status = "okay";
};
+
+/ {
+ aps-bus {
+ compatible = "simple-bus";
+ ranges = <0x40a00000 0x0 0x40a00000 0x2000000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ mru_msi_controller: msi-controller {
+ compatible = "nxp,s32n79-mru-msi";
+ msi-controller;
+ reg = <0x40a40000 0x40000>,
+ <0x40a80000 0x40000>,
+ <0x40ac0000 0x40000>,
+ <0x40b00000 0x40000>,
+ <0x41a40000 0x40000>,
+ <0x41a80000 0x40000>,
+ <0x41ac0000 0x40000>,
+ <0x41b00000 0x40000>;
+ interrupts = <GIC_SPI 705 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 706 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 707 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 708 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 735 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 736 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 737 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 738 IRQ_TYPE_LEVEL_HIGH>;
+ };
+ };
+};
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-19 22:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4f51bfd237fa584c7d9187d7b82f36e261853ea3.1794581338.git.claudiu.manoil@nxp.com.mbx>
2026-11-19 22:00 ` [PATCH v4 0/6] net: enetc: S32N79 pseudo-MAC (PPM) networking support Enric Balletbo i Serra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox