[PATCH net-next 0/8] net: enetc: Add i.MX94 ENETC support

Wei Fang posted 8 patches 3 months, 3 weeks ago
There is a newer version of this series
.../bindings/net/ethernet-controller.yaml     |   1 -
.../devicetree/bindings/net/fsl,enetc.yaml    |   1 +
.../bindings/net/nxp,netc-blk-ctrl.yaml       |   1 +
arch/arm64/boot/dts/freescale/imx94.dtsi      | 118 ++++++++++
arch/arm64/boot/dts/freescale/imx943-evk.dts  | 100 +++++++++
drivers/net/ethernet/freescale/enetc/enetc.c  |  28 ++-
drivers/net/ethernet/freescale/enetc/enetc.h  |   8 +
.../net/ethernet/freescale/enetc/enetc4_hw.h  |  32 ++-
.../net/ethernet/freescale/enetc/enetc4_pf.c  |  37 ++--
.../ethernet/freescale/enetc/enetc_ethtool.c  |  64 ++++++
.../net/ethernet/freescale/enetc/enetc_hw.h   |   1 +
.../freescale/enetc/enetc_pf_common.c         |   5 +-
.../ethernet/freescale/enetc/netc_blk_ctrl.c  | 202 ++++++++++++++++++
13 files changed, 574 insertions(+), 24 deletions(-)
[PATCH net-next 0/8] net: enetc: Add i.MX94 ENETC support
Posted by Wei Fang 3 months, 3 weeks ago
i.MX94 NETC has two kinds of ENETCs, one is the same as i.MX95, which
can be used as a standalone network port. The other one is an internal
ENETC, it connects to the CPU port of NETC switch through the pseudo
MAC. Also, i.MX94 have multiple PTP Timers, which is different from
i.MX95. Any PTP Timer can be bound to a specified standalone ENETC by
the IERB ETBCR registers. Currently, this patch only add ENETC support
and Timer support for i.MX94. The switch will be added by a separate
patch set.

---
Note that the DTS patch (patch 8/8) is just for referenece, it will be
removed from this patch set when the dt-bindings patches have been
reviewed. It will be sent for review by another thread in the future.
---

Clark Wang (1):
  net: enetc: add ptp timer binding support for i.MX94

Wei Fang (7):
  dt-bindings: net: netc-blk-ctrl: add compatible string for i.MX94
    platforms
  dt-bindings: net: enetc: add compatible string for ENETC with pseduo
    MAC
  dt-bindings: net: ethernet-controller: remove the enum values of speed
  net: enetc: add preliminary i.MX94 NETC blocks control support
  net: enetc: add basic support for the ENETC with pseudo MAC for i.MX94
  net: enetc: add standalone ENETC support for i.MX94
  arm64: dts: imx94: add basic NETC nodes and properties

 .../bindings/net/ethernet-controller.yaml     |   1 -
 .../devicetree/bindings/net/fsl,enetc.yaml    |   1 +
 .../bindings/net/nxp,netc-blk-ctrl.yaml       |   1 +
 arch/arm64/boot/dts/freescale/imx94.dtsi      | 118 ++++++++++
 arch/arm64/boot/dts/freescale/imx943-evk.dts  | 100 +++++++++
 drivers/net/ethernet/freescale/enetc/enetc.c  |  28 ++-
 drivers/net/ethernet/freescale/enetc/enetc.h  |   8 +
 .../net/ethernet/freescale/enetc/enetc4_hw.h  |  32 ++-
 .../net/ethernet/freescale/enetc/enetc4_pf.c  |  37 ++--
 .../ethernet/freescale/enetc/enetc_ethtool.c  |  64 ++++++
 .../net/ethernet/freescale/enetc/enetc_hw.h   |   1 +
 .../freescale/enetc/enetc_pf_common.c         |   5 +-
 .../ethernet/freescale/enetc/netc_blk_ctrl.c  | 202 ++++++++++++++++++
 13 files changed, 574 insertions(+), 24 deletions(-)

-- 
2.34.1
Re: [PATCH net-next 0/8] net: enetc: Add i.MX94 ENETC support
Posted by Paolo Abeni 3 months, 2 weeks ago
On 10/16/25 12:20 PM, Wei Fang wrote:
> i.MX94 NETC has two kinds of ENETCs, one is the same as i.MX95, which
> can be used as a standalone network port. The other one is an internal
> ENETC, it connects to the CPU port of NETC switch through the pseudo
> MAC. Also, i.MX94 have multiple PTP Timers, which is different from
> i.MX95. Any PTP Timer can be bound to a specified standalone ENETC by
> the IERB ETBCR registers. Currently, this patch only add ENETC support
> and Timer support for i.MX94. The switch will be added by a separate
> patch set.
> 
> ---
> Note that the DTS patch (patch 8/8) is just for referenece, it will be
> removed from this patch set when the dt-bindings patches have been
> reviewed. It will be sent for review by another thread in the future.

Note that such patch is (AFAICS) breaking Robert's tests. Including it
in this series will possibly/likely prevent (or at least slow down) acks
on the initial dst patches. I suggest omitting such patch in the next
iteration.

Thanks,

Paolo
Re: [PATCH net-next 0/8] net: enetc: Add i.MX94 ENETC support
Posted by Rob Herring (Arm) 3 months, 3 weeks ago
On Thu, 16 Oct 2025 18:20:11 +0800, Wei Fang wrote:
> i.MX94 NETC has two kinds of ENETCs, one is the same as i.MX95, which
> can be used as a standalone network port. The other one is an internal
> ENETC, it connects to the CPU port of NETC switch through the pseudo
> MAC. Also, i.MX94 have multiple PTP Timers, which is different from
> i.MX95. Any PTP Timer can be bound to a specified standalone ENETC by
> the IERB ETBCR registers. Currently, this patch only add ENETC support
> and Timer support for i.MX94. The switch will be added by a separate
> patch set.
> 
> ---
> Note that the DTS patch (patch 8/8) is just for referenece, it will be
> removed from this patch set when the dt-bindings patches have been
> reviewed. It will be sent for review by another thread in the future.
> ---
> 
> Clark Wang (1):
>   net: enetc: add ptp timer binding support for i.MX94
> 
> Wei Fang (7):
>   dt-bindings: net: netc-blk-ctrl: add compatible string for i.MX94
>     platforms
>   dt-bindings: net: enetc: add compatible string for ENETC with pseduo
>     MAC
>   dt-bindings: net: ethernet-controller: remove the enum values of speed
>   net: enetc: add preliminary i.MX94 NETC blocks control support
>   net: enetc: add basic support for the ENETC with pseudo MAC for i.MX94
>   net: enetc: add standalone ENETC support for i.MX94
>   arm64: dts: imx94: add basic NETC nodes and properties
> 
>  .../bindings/net/ethernet-controller.yaml     |   1 -
>  .../devicetree/bindings/net/fsl,enetc.yaml    |   1 +
>  .../bindings/net/nxp,netc-blk-ctrl.yaml       |   1 +
>  arch/arm64/boot/dts/freescale/imx94.dtsi      | 118 ++++++++++
>  arch/arm64/boot/dts/freescale/imx943-evk.dts  | 100 +++++++++
>  drivers/net/ethernet/freescale/enetc/enetc.c  |  28 ++-
>  drivers/net/ethernet/freescale/enetc/enetc.h  |   8 +
>  .../net/ethernet/freescale/enetc/enetc4_hw.h  |  32 ++-
>  .../net/ethernet/freescale/enetc/enetc4_pf.c  |  37 ++--
>  .../ethernet/freescale/enetc/enetc_ethtool.c  |  64 ++++++
>  .../net/ethernet/freescale/enetc/enetc_hw.h   |   1 +
>  .../freescale/enetc/enetc_pf_common.c         |   5 +-
>  .../ethernet/freescale/enetc/netc_blk_ctrl.c  | 202 ++++++++++++++++++
>  13 files changed, 574 insertions(+), 24 deletions(-)
> 
> --
> 2.34.1
> 
> 
> 


My bot found new DTB warnings on the .dts files added or changed in this
series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:

  pip3 install dtschema --upgrade


This patch series was applied (using b4) to base:
 Base: attempting to guess base-commit...
 Base: tags/next-20251015 (exact match)
 Base: tags/next-20251015 (use --merge-base to override)

If this is not the correct base, please add 'base-commit' tag
(or use b4 which does this automatically)

New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/freescale/' for 20251016102020.3218579-1-wei.fang@nxp.com:

arch/arm64/boot/dts/freescale/imx943-evk.dtb: system-controller@4ceb0000 (nxp,imx94-netc-blk-ctrl): 'anyOf' conditional failed, one must be fixed:
	'clocks' is a required property
	'#clock-cells' is a required property
	from schema $id: http://devicetree.org/schemas/clock/clock.yaml#