* [PATCH net-next v4 0/6] net: enetc: S32N79 pseudo-MAC (PPM) networking support
@ 2026-11-13 15:02 Claudiu Manoil
2026-11-13 15:02 ` [PATCH net-next v4 1/6] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node Claudiu Manoil
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Claudiu Manoil @ 2026-11-13 15:02 UTC (permalink / raw)
To: netdev; +Cc: s32, Rob Herring, Saravana Kannan, devicetree
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.
v4:
- Patch 1: made NXP_ENETC4 depend on OF, as OF_DYNAMIC is only
available with OF; improved the commit message.
- Patch 2: new, allocates the int_vector array dynamically to prevent
an out-of-bounds access on S32N79.
- Patch 3: clarified the commit message.
- Patches 4-6: no changes.
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 3: added sysclk_freq info for the v4.4 ENETC devices.
- Patches 4-6: no changes.
v2:
- Switched the fixed-link patch 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.
- Described why there are two ENETC PF IDs in the commit message, as
per review.
- Replaced the 'msi-parent' stub property with 'msi-map', as per H/W
spec.
- Reworded the PCI patch commit message to match the fixed-link
approach (no functional change); added Bjorn's Acked-by.
v1: initial submission.
Link: https://lore.kernel.org/netdev/cover.1793712309.git.claudiu.manoil@nxp.com/
Claudiu Manoil (6):
net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link
node
net: enetc: Allocate int_vector array dynamically
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 | 2 +
drivers/net/ethernet/freescale/enetc/enetc.c | 34 ++++++
drivers/net/ethernet/freescale/enetc/enetc.h | 3 +-
.../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 +
11 files changed, 214 insertions(+), 12 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH net-next v4 1/6] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node 2026-11-13 15:02 [PATCH net-next v4 0/6] net: enetc: S32N79 pseudo-MAC (PPM) networking support Claudiu Manoil @ 2026-11-13 15:02 ` Claudiu Manoil 2026-11-14 15:17 ` sashiko-bot 2026-11-13 15:02 ` [PATCH net-next v4 4/6] arm64: dts: s32n79: add NETC IEP18 ECAM node for ENETC PPM ports Claudiu Manoil 2026-11-13 15:02 ` [PATCH net-next v4 5/6] arm64: dts: s32n79-rdb: enable NETC IEP18 Claudiu Manoil 2 siblings, 1 reply; 5+ messages in thread From: Claudiu Manoil @ 2026-11-13 15:02 UTC (permalink / raw) To: netdev Cc: 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 ENETCv4 has special internal links when connected to the on-chip NETC switch via internal switch ports, called pseudo-MAC links. These pseudo-MACs are proprietary, they don't implement any standard IEEE interface (like MII), and can be modeled as fixed links with the link speed determined at boot time by the Port PCR[PSPEED] register configuration. We also need to be able to probe the ENETCv4 Ports featuring pseudo-MACs as pure PCI devices, i.e. without any "ethernet" DT node representation. The typical use case for this consists in a board with NETC connected via PCI to another host which probes the ENETC. Note that in this scenario, the pseudo-MAC ENETCs are connected internally to a NETC switch that is not owned by Linux. Since such a port has no "ethernet" DT node, its fixed link has to be synthesized at probe time. Build the fixed-link subnode directly in C with an of_changeset: of_changeset_create_node() adds a "fixed-link" node onto the port's own OF node, and of_changeset_add_prop_*() populate its "speed" and "full-duplex" properties. The changeset is applied with of_changeset_apply(), so the fixed-link node is spliced onto the ENETC netdev's fwnode exactly as if it had come from static DT, and phylink picks it up through dev_fwnode(). The operating speed written into the node is read from PCR[PSPEED] at probe time and mapped to a phylink-supported value, so the fixed link reflects the actual boot-time configuration, as long as it's a phylink supported value. Otherwise, PCR[PSPEED] will be updated to the closest rounded down supported value. The pseudo-MAC path is selected when the port has no OF node, or when it only has the empty PCI-synthesized node (OF_DYNAMIC), which carries no fixed-link description. Ports described by static DT take the regular of_get_phy_mode() path instead. Building the fixed-link node requires the of_changeset API, which is only available with CONFIG_OF_DYNAMIC, so select it. As OF_DYNAMIC itself depends on OF, make NXP_ENETC4 depend on OF as well, rather than force OF_DYNAMIC on without the core OF code being built. The changeset is reverted and destroyed on teardown and on the probe error unwind. The node-less pseudo-MAC path has a runtime dependency on CONFIG_PCI_DYNAMIC_OF_NODES: that is what makes the PCI core synthesize the per-function OF node (of_pci_make_dev_node()) that the fixed-link node is attached onto. This is intentionally not a hard Kconfig dependency, since the ENETC4 driver also serves regular ports described by static DT; when PCI_DYNAMIC_OF_NODES is absent the PCI function has no of_node and the pseudo-MAC probe path fails gracefully with a clear -ENODEV error. Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> --- v4: - Made NXP_ENETC4 depend on OF, since OF_DYNAMIC (selected for the of_changeset API) is only available with OF; added to the commit message. Reported by the kernel test robot on v2 and in review. v3: - Fixed the CONFIG_OF_DYNAMIC dependency. - Refactored enetc4_add_ppm_fixed_link(), as per Wei's feedback. - Improved the commit message. v2: - Switched from a DT overlay blob (of_overlay_fdt_apply() + a .dtso compiled to .dtbo) to of_changeset_create_node(), per review feedback. Drops the embedded overlay externs, the Makefile .dtbo wrapping, and the OF_OVERLAY Kconfig dependency. - Baked the operating speed 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. drivers/net/ethernet/freescale/enetc/Kconfig | 2 + .../net/ethernet/freescale/enetc/enetc4_pf.c | 109 +++++++++++++++++- .../net/ethernet/freescale/enetc/enetc_pf.h | 2 + .../freescale/enetc/enetc_pf_common.c | 41 ++++++- .../freescale/enetc/enetc_pf_common.h | 1 + 5 files changed, 146 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/freescale/enetc/Kconfig b/drivers/net/ethernet/freescale/enetc/Kconfig index f425f82a6213..465c913683c8 100644 --- a/drivers/net/ethernet/freescale/enetc/Kconfig +++ b/drivers/net/ethernet/freescale/enetc/Kconfig @@ -49,12 +49,14 @@ config NXP_ENETC4 tristate "ENETC4 PF driver" depends on PTP_1588_CLOCK_OPTIONAL depends on PCI_MSI + depends on OF select FSL_ENETC_CORE select FSL_ENETC_MDIO select NXP_ENETC_PF_COMMON select NXP_NTMP select PHYLINK select DIMLIB + select OF_DYNAMIC help This driver supports NXP ENETC devices with major revision 4. ENETC is as the NIC functionality in NETC, it supports virtualization/isolation diff --git a/drivers/net/ethernet/freescale/enetc/enetc4_pf.c b/drivers/net/ethernet/freescale/enetc/enetc4_pf.c index 71c971618388..b7e7201e6a71 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc4_pf.c +++ b/drivers/net/ethernet/freescale/enetc/enetc4_pf.c @@ -1,8 +1,9 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) -/* Copyright 2024 NXP */ +/* Copyright 2024, 2026 NXP */ #include <linux/clk.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/of_net.h> #include <linux/of_platform.h> #include <linux/unaligned.h> @@ -932,6 +933,14 @@ static void enetc4_pl_mac_link_down(struct phylink_config *config, enetc4_mac_tx_graceful_stop(pf); } +static void enetc4_get_pcr_speed(struct enetc_hw *hw, int *speed) +{ + u32 val = enetc_port_rd(hw, ENETC4_PCR); + int pspeed = FIELD_GET(PCR_PSPEED, val); + + *speed = (pspeed + 1) * 10; +} + static const struct phylink_mac_ops enetc_pl_mac_ops = { .mac_select_pcs = enetc4_pl_mac_select_pcs, .mac_config = enetc4_pl_mac_config, @@ -946,23 +955,108 @@ static void enetc4_pci_remove(void *data) enetc_pci_remove(pdev); } +static void enetc4_put_ppm_fixed_link(struct enetc_pf *pf) +{ + if (!pf->ppm_ocs) + return; + + of_changeset_revert(pf->ppm_ocs); + of_changeset_destroy(pf->ppm_ocs); + kfree(pf->ppm_ocs); + pf->ppm_ocs = NULL; +} + +/* Pseudo-MAC ports have no real PHY; the link is fixed, with the operating + * speed set at probe time from PCR[PSPEED]. Describe this with a fixed-link + * subnode synthesized at runtime onto the port's own OF node, so phylink + * picks it up through dev_fwnode() exactly as if it came from static DT. + */ +static int enetc4_add_ppm_fixed_link(struct enetc_pf *pf, + struct device_node *np) +{ + struct device_node *fixed_link; + struct of_changeset *ocs; + int speed, err; + + enetc4_get_pcr_speed(&pf->si->hw, &speed); + speed = enetc_phylink_match_pseudo_mac_speed(speed); + + ocs = kzalloc_obj(*ocs); + if (!ocs) + return -ENOMEM; + + of_changeset_init(ocs); + + fixed_link = of_changeset_create_node(ocs, np, "fixed-link"); + if (!fixed_link) { + err = -ENOMEM; + goto err_destroy; + } + + err = of_changeset_add_prop_u32(ocs, fixed_link, "speed", speed); + if (err) + goto err_put_node; + + err = of_changeset_add_prop_bool(ocs, fixed_link, "full-duplex"); + if (err) + goto err_put_node; + + err = of_changeset_apply(ocs); + if (err) + goto err_put_node; + + of_node_put(fixed_link); + pf->ppm_ocs = ocs; + + return 0; + +err_put_node: + of_node_put(fixed_link); +err_destroy: + of_changeset_destroy(ocs); + kfree(ocs); + + return err; +} + static int enetc4_link_init(struct enetc_ndev_priv *priv, struct device_node *node) { + bool dynamic = node && of_node_check_flag(node, OF_DYNAMIC); struct enetc_pf *pf = enetc_si_priv(priv->si); struct device *dev = priv->dev; int err; - err = of_get_phy_mode(node, &pf->if_mode); - if (err) { - dev_err(dev, "Failed to get PHY mode\n"); - return err; + /* Pseudo-MAC ENETCs are described by a runtime-synthesized fixed-link + * node rather than static DT. This covers both a missing OF node and a + * PCI-synthesized (OF_DYNAMIC) node, which is an empty node created + * by the PCI core and thus carries no fixed-link description. + */ + if (enetc_is_pseudo_mac(priv->si) && (!node || dynamic)) { + pf->if_mode = PHY_INTERFACE_MODE_INTERNAL; + + if (!node) { + dev_err(dev, "Missing of_node for Pseudo-MAC port\n"); + return -ENODEV; + } + + err = enetc4_add_ppm_fixed_link(pf, node); + if (err) { + dev_err(dev, "Failed to add fixed-link node\n"); + return err; + } + } else { + err = of_get_phy_mode(node, &pf->if_mode); + if (err) { + dev_err(dev, "Failed to get PHY mode\n"); + return err; + } } err = enetc_mdiobus_create(pf, node); if (err) { dev_err(dev, "Failed to create MDIO bus\n"); - return err; + goto err_mdiobus_create; } err = enetc_phylink_create(priv, node, &enetc_pl_mac_ops); @@ -975,6 +1069,8 @@ static int enetc4_link_init(struct enetc_ndev_priv *priv, err_phylink_create: enetc_mdiobus_destroy(pf); +err_mdiobus_create: + enetc4_put_ppm_fixed_link(pf); return err; } @@ -985,6 +1081,7 @@ static void enetc4_link_deinit(struct enetc_ndev_priv *priv) enetc_phylink_destroy(priv); enetc_mdiobus_destroy(pf); + enetc4_put_ppm_fixed_link(pf); } static void enetc4_pf_link_status_task(struct work_struct *work) diff --git a/drivers/net/ethernet/freescale/enetc/enetc_pf.h b/drivers/net/ethernet/freescale/enetc/enetc_pf.h index 1f92d16d8ca8..ab11e40cfdbb 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_pf.h +++ b/drivers/net/ethernet/freescale/enetc/enetc_pf.h @@ -67,6 +67,8 @@ struct enetc_pf { bool sriov_enabled; bool link_up; u16 link_status_ms_mask; + + struct of_changeset *ppm_ocs; /* pseudo-MAC fixed-link changeset */ }; #define phylink_to_enetc_pf(config) \ diff --git a/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c b/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c index 8facc8bf8693..b032b586f07b 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c @@ -436,6 +436,43 @@ void enetc_mdiobus_destroy(struct enetc_pf *pf) } EXPORT_SYMBOL_GPL(enetc_mdiobus_destroy); +static struct { + unsigned long mac_cap; + int speed; /* descending order sorted */ +} enetc_phylink_pseudo_mac_caps[] = { + { MAC_25000FD, SPEED_25000 }, + { MAC_20000FD, SPEED_20000 }, + { MAC_10000FD, SPEED_10000 }, + { MAC_5000FD, SPEED_5000 }, + { MAC_2500FD, SPEED_2500 }, + { MAC_1000FD, SPEED_1000 }, + { MAC_100FD, SPEED_100 }, + { MAC_10FD, SPEED_10 }, +}; + +static unsigned long enetc_phylink_get_pseudo_mac_caps(void) +{ + unsigned long mac_caps = 0; + int i; + + for (i = 0; i < ARRAY_SIZE(enetc_phylink_pseudo_mac_caps); i++) + mac_caps |= enetc_phylink_pseudo_mac_caps[i].mac_cap; + + return mac_caps; +} + +int enetc_phylink_match_pseudo_mac_speed(int speed) +{ + int i; + + for (i = 0; i < ARRAY_SIZE(enetc_phylink_pseudo_mac_caps); i++) + if (enetc_phylink_pseudo_mac_caps[i].speed <= speed) + return enetc_phylink_pseudo_mac_caps[i].speed; + + return SPEED_UNKNOWN; +} +EXPORT_SYMBOL_GPL(enetc_phylink_match_pseudo_mac_speed); + int enetc_phylink_create(struct enetc_ndev_priv *priv, struct device_node *node, const struct phylink_mac_ops *ops) { @@ -471,9 +508,7 @@ int enetc_phylink_create(struct enetc_ndev_priv *priv, struct device_node *node, phy_interface_set_rgmii(pf->phylink_config.supported_interfaces); } else { - mac_caps |= MAC_10FD | MAC_100FD | MAC_1000FD | MAC_2500FD | - MAC_5000FD | MAC_10000FD | MAC_20000FD | - MAC_25000FD; + mac_caps |= enetc_phylink_get_pseudo_mac_caps(); } pf->phylink_config.mac_capabilities = mac_caps; diff --git a/drivers/net/ethernet/freescale/enetc/enetc_pf_common.h b/drivers/net/ethernet/freescale/enetc/enetc_pf_common.h index c9eed879d5a3..aede1aad6362 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_pf_common.h +++ b/drivers/net/ethernet/freescale/enetc/enetc_pf_common.h @@ -13,6 +13,7 @@ void enetc_mdiobus_destroy(struct enetc_pf *pf); int enetc_phylink_create(struct enetc_ndev_priv *priv, struct device_node *node, const struct phylink_mac_ops *ops); void enetc_phylink_destroy(struct enetc_ndev_priv *priv); +int enetc_phylink_match_pseudo_mac_speed(int speed); void enetc_set_default_rss_key(struct enetc_pf *pf); int enetc_vlan_rx_add_vid(struct net_device *ndev, __be16 prot, u16 vid); int enetc_vlan_rx_del_vid(struct net_device *ndev, __be16 prot, u16 vid); -- 2.34.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v4 1/6] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node 2026-11-13 15:02 ` [PATCH net-next v4 1/6] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node Claudiu Manoil @ 2026-11-14 15:17 ` sashiko-bot 0 siblings, 0 replies; 5+ messages in thread From: sashiko-bot @ 2026-11-14 15:17 UTC (permalink / raw) To: Claudiu Manoil; +Cc: imx, devicetree, robh, conor+dt, Frank.Li Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] net: enetc: enetc_phylink_match_pseudo_mac_speed() returns >10G fixed-link -- commit 15e36db0338302292004a6cbf3727d8f9d63565f Author: Claudiu Manoil <claudiu.manoil@nxp.com> net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node This commit adds pseudo-MAC support for ENETCv4 ports lacking static DT nodes by synthesizing a fixed-link DT subnode at probe time with the speed derived from PCR[PSPEED]. > diff --git a/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c b/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c > index 8facc8bf8693a..b032b586f07b4 100644 > --- a/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c > +++ b/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c > @@ -436,6 +436,43 @@ void enetc_mdiobus_destroy(struct enetc_pf *pf) > } > EXPORT_SYMBOL_GPL(enetc_mdiobus_destroy); > > +static struct { > + unsigned long mac_cap; > + int speed; /* descending order sorted */ > +} enetc_phylink_pseudo_mac_caps[] = { > + { MAC_25000FD, SPEED_25000 }, > + { MAC_20000FD, SPEED_20000 }, > + { MAC_10000FD, SPEED_10000 }, > + { MAC_5000FD, SPEED_5000 }, > + { MAC_2500FD, SPEED_2500 }, > + { MAC_1000FD, SPEED_1000 }, > + { MAC_100FD, SPEED_100 }, > + { MAC_10FD, SPEED_10 }, > +}; > + > +static unsigned long enetc_phylink_get_pseudo_mac_caps(void) > +{ > + unsigned long mac_caps = 0; > + int i; > + > + for (i = 0; i < ARRAY_SIZE(enetc_phylink_pseudo_mac_caps); i++) > + mac_caps |= enetc_phylink_pseudo_mac_caps[i].mac_cap; > + > + return mac_caps; > +} > + > +int enetc_phylink_match_pseudo_mac_speed(int speed) > +{ > + int i; > + > + for (i = 0; i < ARRAY_SIZE(enetc_phylink_pseudo_mac_caps); i++) > + if (enetc_phylink_pseudo_mac_caps[i].speed <= speed) > + return enetc_phylink_pseudo_mac_caps[i].speed; > + > + return SPEED_UNKNOWN; > +} > +EXPORT_SYMBOL_GPL(enetc_phylink_match_pseudo_mac_speed); [Severity: Medium] Can phylink_parse_fixedlink() handle SPEED_20000 or SPEED_25000 when enetc4_add_ppm_fixed_link() writes the result of enetc_phylink_match_pseudo_mac_speed() into the fixed-link DT node? When PCR[PSPEED] is configured for 20 Gbps or 25 Gbps at boot, enetc_phylink_match_pseudo_mac_speed() returns 20000 or 25000, but phylink_fill_fixedlink_supported() only populates linkmodes up to 10000baseT_Full: drivers/net/phy/phylink.c:phylink_fill_fixedlink_supported() { ... linkmode_set_bit(ETHTOOL_LINK_MODE_2500baseT_Full_BIT, supported); linkmode_set_bit(ETHTOOL_LINK_MODE_5000baseT_Full_BIT, supported); linkmode_set_bit(ETHTOOL_LINK_MODE_10000baseT_Full_BIT, supported); } As a result, phy_caps_lookup() in phylink_parse_fixedlink() returns NULL, triggering a phylink warning ("fixed link full duplex 20000Mbps not recognised") and leaving pl->supported, pl->link_config.advertising, and pl->link_config.lp_advertising with no speed linkmode bits set. -- Sashiko AI review · https://sashiko.dev/#/patchset/cover.1794581338.git.claudiu.manoil@nxp.com?part=1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH net-next v4 4/6] arm64: dts: s32n79: add NETC IEP18 ECAM node for ENETC PPM ports 2026-11-13 15:02 [PATCH net-next v4 0/6] net: enetc: S32N79 pseudo-MAC (PPM) networking support Claudiu Manoil 2026-11-13 15:02 ` [PATCH net-next v4 1/6] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node Claudiu Manoil @ 2026-11-13 15:02 ` Claudiu Manoil 2026-11-13 15:02 ` [PATCH net-next v4 5/6] arm64: dts: s32n79-rdb: enable NETC IEP18 Claudiu Manoil 2 siblings, 0 replies; 5+ messages in thread From: Claudiu Manoil @ 2026-11-13 15:02 UTC (permalink / raw) To: netdev Cc: s32, Frank Li, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Rob Herring, Krzysztof Kozlowski, Conor Dooley, imx, linux-arm-kernel, devicetree, linux-kernel Add the netc_iep18 PCIe ECAM host node describing the NETC integrated endpoint bus allocated to the first Linux cohort on S32N79. The bus is enumerated via the generic pci-host-ecam-generic driver and hosts the ENETC v4 Pseudo-MAC (PPM) PF and its VFs, which connect internally to the on-chip NETC switch (not owned by Linux). The node is kept disabled at the SoC level; boards that wire up NETC enable it. MSIs are routed through the GIC-v3 ITS (msi-map) and DMA is translated by the SMMUv3 (iommu-map). Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> --- v4: none v3: none v2: - Replaced the 'msi-parent' stub property with 'msi-map', as per H/W spec. arch/arm64/boot/dts/freescale/s32n79.dtsi | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32n79.dtsi b/arch/arm64/boot/dts/freescale/s32n79.dtsi index 94ab58783fdc..65cf65e82832 100644 --- a/arch/arm64/boot/dts/freescale/s32n79.dtsi +++ b/arch/arm64/boot/dts/freescale/s32n79.dtsi @@ -122,6 +122,30 @@ irqsteer_coss: interrupt-controller@4ed00000 { }; }; + nwss-bus { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x48800000 0x0 0x48800000 0x0 0x4b0000>, + <0x2 0x40000000 0x2 0x40000000 0x0 0x20000000>; + + netc_iep18: pcie@241200000 { + compatible = "pci-host-ecam-generic"; + reg = <0x2 0x41200000 0x0 0x100000>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + bus-range = <0x0 0x0>; + iommu-map = <0x0 &smmu 0xc0000 0x100>; + msi-map = <0x0 &its 0xc0000 0x100>; + dma-coherent; + status = "disabled"; + + /* All NETC PCIe functions */ + ranges = <0x82000000 0x0 0x48800000 0x0 0x48800000 0x0 0x4b0000>; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; -- 2.34.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH net-next v4 5/6] arm64: dts: s32n79-rdb: enable NETC IEP18 2026-11-13 15:02 [PATCH net-next v4 0/6] net: enetc: S32N79 pseudo-MAC (PPM) networking support Claudiu Manoil 2026-11-13 15:02 ` [PATCH net-next v4 1/6] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node Claudiu Manoil 2026-11-13 15:02 ` [PATCH net-next v4 4/6] arm64: dts: s32n79: add NETC IEP18 ECAM node for ENETC PPM ports Claudiu Manoil @ 2026-11-13 15:02 ` Claudiu Manoil 2 siblings, 0 replies; 5+ messages in thread From: Claudiu Manoil @ 2026-11-13 15:02 UTC (permalink / raw) To: netdev Cc: s32, Frank Li, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Rob Herring, Krzysztof Kozlowski, Conor Dooley, imx, linux-arm-kernel, devicetree, linux-kernel Enable the NETC v4 ECAM bus #18 on the S32N79-RDB board so that the ENETC v4 Pseudo-MAC port (PPM) PF and VF instances are probed. Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> --- v4: none v3: none v2: none arch/arm64/boot/dts/freescale/s32n79-rdb.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32n79-rdb.dts b/arch/arm64/boot/dts/freescale/s32n79-rdb.dts index 1feccd61258e..897ba24ac03a 100644 --- a/arch/arm64/boot/dts/freescale/s32n79-rdb.dts +++ b/arch/arm64/boot/dts/freescale/s32n79-rdb.dts @@ -68,3 +68,7 @@ &usdhc0 { no-sdio; status = "okay"; }; + +&netc_iep18 { + status = "okay"; +}; -- 2.34.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-14 15:17 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-13 15:02 [PATCH net-next v4 0/6] net: enetc: S32N79 pseudo-MAC (PPM) networking support Claudiu Manoil 2026-11-13 15:02 ` [PATCH net-next v4 1/6] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node Claudiu Manoil 2026-11-14 15:17 ` sashiko-bot 2026-11-13 15:02 ` [PATCH net-next v4 4/6] arm64: dts: s32n79: add NETC IEP18 ECAM node for ENETC PPM ports Claudiu Manoil 2026-11-13 15:02 ` [PATCH net-next v4 5/6] arm64: dts: s32n79-rdb: enable NETC IEP18 Claudiu Manoil
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox