public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@oss.nxp.com>
To: alice.guo@oss.nxp.com
Cc: Ye Li <ye.li@nxp.com>, Tim Harvey <tharvey@gateworks.com>,
	Marek Vasut <marex@nabladev.com>,
	Fabio Estevam <festevam@gmail.com>,
	u-boot@lists.denx.de, Jerome Forissier <jerome.forissier@arm.com>,
	Tom Rini <trini@konsulko.com>, Michael Walle <mwalle@kernel.org>,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	Heiko Thiery <heiko.thiery@gmail.com>,
	Clark Wang <xiaoning.wang@nxp.com>,
	Thomas Schaefer <thomas.schaefer@kontron.com>,
	Christian Marangi <ansuelsmth@gmail.com>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Simon Glass <sjg@chromium.org>,
	Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>,
	Robert Marko <robert.marko@sartura.hr>, Yao Zi <me@ziyao.cc>,
	Peng Fan <peng.fan@nxp.com>,
	Andrew Goodbody <andrew.goodbody@linaro.org>,
	Jacky Bai <ping.bai@nxp.com>, Alice Guo <alice.guo@nxp.com>
Subject: Re: [PATCH v2 2/2] net: fsl_enetc: Add support for i.MX952
Date: Tue, 21 Apr 2026 21:47:49 +0800	[thread overview]
Message-ID: <aeeABQnCvsEFAgY6@nxa18884-linux.ap.freescale.net> (raw)
In-Reply-To: <20260413-netc-v1-2-8670e5ce2d49@nxp.com>

On Mon, Apr 13, 2026 at 04:15:40PM +0800, alice.guo@oss.nxp.com wrote:
>From: Ye Li <ye.li@nxp.com>
>
>Extend ENETC driver to support i.MX952 platform where 2 ENETC
>controllers are located on different PCIe buses.
>
>Key changes:
>- Add enetc_dev_id_imx() to derive device ID from device tree "reg"
>  property for i.MX952, mapping bus_devfn values 0x0 and 0x100 to device
>  IDs 0 and 1 respectively
>- Implement imx952_netcmix_init() to configure MII protocol and PCS
>  settings based on PHY mode parsed from device tree
>- Add i.MX952 to FSL_ENETC_NETC_BLK_CTRL Kconfig dependencies
>
>Signed-off-by: Ye Li <ye.li@nxp.com>
>Signed-off-by: Alice Guo <alice.guo@nxp.com>
>---
> drivers/net/Kconfig                   |  4 +-
> drivers/net/fsl_enetc.c               | 28 +++++++++++++-
> drivers/net/fsl_enetc_netc_blk_ctrl.c | 72 +++++++++++++++++++++++++++++++++++
> 3 files changed, 101 insertions(+), 3 deletions(-)
>
>diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
>index ed07e286676..4da10ed1289 100644
>--- a/drivers/net/Kconfig
>+++ b/drivers/net/Kconfig
>@@ -1018,8 +1018,8 @@ config FSL_ENETC
> config FSL_ENETC_NETC_BLK_CTRL
> 	bool "NXP ENETC NETC blocks control driver"
> 	depends on FSL_ENETC
>-	depends on IMX95 || IMX94
>-	default y if IMX95 || IMX94
>+	depends on IMX95 || IMX94 || IMX952
>+	default y if IMX95 || IMX94 || IMX952
> 	help
> 	  This driver configures Integrated Endpoint Register Block (IERB) and
> 	  Privileged Register Block (PRB) of NETC. For i.MX platforms, it also
>diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c
>index 766aea035d3..a1569b9d989 100644
>--- a/drivers/net/fsl_enetc.c
>+++ b/drivers/net/fsl_enetc.c
>@@ -67,10 +67,36 @@ static int enetc_is_ls1028a(struct udevice *dev)
> 	       pplat->vendor == PCI_VENDOR_ID_FREESCALE;
> }
> 
>+static int enetc_dev_id_imx(struct udevice *dev)
>+{
>+	if (IS_ENABLED(CONFIG_IMX952)) {
>+		int bus_devfn;
>+		u32 reg[5];
>+		int error;
>+
>+		error = ofnode_read_u32_array(dev_ofnode(dev), "reg", reg, ARRAY_SIZE(reg));

nit: use dev_read_u32_array. with this addressed, you could add:

Reviewed-by: Peng Fan <peng.fan@nxp.com>

>+		if (error)
>+			return error;
>+

      reply	other threads:[~2026-04-21 12:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-13  8:15 [PATCH v2 0/2] net: enetc: add i.MX952 support alice.guo
2026-04-13  8:15 ` [PATCH v2 1/2] net: fsl_enetc: fix the duplex setting on the iMX platform alice.guo
2026-04-21 13:42   ` Peng Fan
2026-04-13  8:15 ` [PATCH v2 2/2] net: fsl_enetc: Add support for i.MX952 alice.guo
2026-04-21 13:47   ` Peng Fan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aeeABQnCvsEFAgY6@nxa18884-linux.ap.freescale.net \
    --to=peng.fan@oss.nxp.com \
    --cc=alice.guo@nxp.com \
    --cc=alice.guo@oss.nxp.com \
    --cc=andrew.goodbody@linaro.org \
    --cc=ansuelsmth@gmail.com \
    --cc=festevam@gmail.com \
    --cc=heiko.thiery@gmail.com \
    --cc=jerome.forissier@arm.com \
    --cc=marex@nabladev.com \
    --cc=me@ziyao.cc \
    --cc=mikhail.kshevetskiy@iopsys.eu \
    --cc=mwalle@kernel.org \
    --cc=peng.fan@nxp.com \
    --cc=ping.bai@nxp.com \
    --cc=quentin.schulz@cherry.de \
    --cc=robert.marko@sartura.hr \
    --cc=sjg@chromium.org \
    --cc=tharvey@gateworks.com \
    --cc=thomas.schaefer@kontron.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vladimir.oltean@nxp.com \
    --cc=xiaoning.wang@nxp.com \
    --cc=ye.li@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox