Commit graph zephyr/drivers/ethernet
Author SHA1 Message Date
Benjamin Perseghetti
b1f1a79ba0 drivers: ethernet: nxp_enet_qos: offload TX checksums to hardware
The stack computes the IPv4 header and the TCP and UDP checksums in
software for every transmitted frame. On the MCXN947 Cortex-M33 that
per-packet cost is the largest single consumer of CPU on the transmit
path and it saturates the core well below the link rate.

The DesignWare Ethernet QoS MAC can insert these checksums in hardware.
Set the TDES3 checksum insertion control field to full insertion on the
first descriptor of every frame and advertise ETHERNET_HW_TX_CHKSUM_OFFLOAD
so the stack leaves the checksum fields cleared for the engine to fill.
The MAC only rewrites IP frames with a known protocol and leaves other
frames untouched, so the control field can be set unconditionally.

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2026-09-09 12:56:23 -04:00
Madhab Sharma
7b66f8ae9c drivers: ethernet: wch9120: code cleanup, fix wording and bugs
Clean up unused-parameter warnings, fix Kconfig wording, switch to
native Zephyr socket types, and return proper error values.

Signed-off-by: Madhab Sharma <madhabsharma94@gmail.com>
2026-09-08 21:16:04 -07:00
Tim Pambor
92d1639ccc drivers: ethernet: dwc_mac: stm32: reset the MAC during bus init
Hold the Ethernet MAC in reset while the pins, the PHY interface mode
and the clocks are configured and release it once the setup is done.
The PHY interface mode must be selected while the MAC is under reset.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-09-08 19:17:55 -04:00
Fin Maaß
13fe85e797 drivers: ethernet: deprecate numaker ethernet driver
The numaker ethernet driver does not use
the separate  ethernet controller, mdio bus, phy structure.
It does mdio inside the ethernet driver.

Until this is fixed this driver is going to be deprecated and
if not fixed in 2 releases removed.
The better way would it be to replace it with the
existing vendor independent dwc_mac driver.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-09-08 13:38:15 +02:00
Tim Pambor
50f99e1f21 drivers: ethernet: dwc_mac: xmc: document the MAC reset in bus init
XMC_ETH_MAC_Disable() asserts the ETH0 peripheral reset and gates the
MAC clock, so the driver already configures the pins and the PHY
interface mode while the MAC is under reset. Document that, as it is
not apparent from its name.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-09-04 13:43:12 -04:00
Tom Burdick
12d1730973 drivers: eth: xmc4xxx: Fix port_ctrl usage
XMC_ETH_MAC_SetPortControl was being called with a dereference to
port_ctrl. This is already a value and does not need to be dereferenced.
The compiler fails to build. Removing the dereference and passing by
value fixes the issue.

Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
2026-09-04 13:42:50 -04:00
Fin Maaß
62acbd571c drivers: ethernet: dwc_mac: imply NVMEM when a MAC address cell is used
Like the other ethernet drivers, enable NVMEM by default when a MAC
node reads its address from an NVMEM cell, so the board only has to
enable the provider of the cell.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-09-04 06:24:39 -04:00
Sven Ginka
75e71f5d1b drivers: eth: sy1xx: fix promiscuous mode bit handling
With this commit, we fix the unintentionally
inverted promiscuous mode flag.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
2026-09-04 06:21:10 -04:00
Sven Ginka
4c186e0f7d drivers: eth: sy1xx: fix MAC address high register update logic
With this commit, we fix setting the high register
of the mac address by removing the unwanted - OR.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
2026-09-04 06:21:03 -04:00
Tim Pambor
ed26b9adf2 drivers: ethernet: dwc_mac: add support for Infineon XMC4XXX
Add a dwc_mac platform glue driver for the Synopsys DesignWare MAC
integrated in the Infineon XMC4XXX SoC family. The driver applies
pinctrl, configures the port control, connects the interrupt and
provides a small clock-control shim reporting the Ethernet and PTP
clock frequencies from the SCU.

The new ETH_XMC_DWC_ETHER_1000 symbol depends on !ETH_XMC4XXX, so the
generic dwc_mac driver can be used as an alternative to the XMC4XXX
Ethernet driver.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-09-03 09:40:59 +02:00
Tim Pambor
0211ec9515 drivers: ethernet: mdio: xmc4xxx: depend on ETH_XMC4XXX
The Infineon XMC4XXX MDIO driver was tied to the SoC series, so it
was enabled on any XMC4XXX SoC regardless of the Ethernet driver in
use. Depend on ETH_XMC4XXX instead, so the MDIO driver is only built
together with the XMC4XXX Ethernet driver and is left out when the
generic dwc_mac driver is selected.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-09-03 09:40:59 +02:00
Tim Pambor
2b6c6ab002 drivers: ethernet: dwc_mac: nxp: update Kconfig help text
The driver meanwhile supports the MCX N and MCX A series as well,
but the help text still mentioned the MCX E series only. List all
currently supported families instead.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-09-02 19:14:40 +01:00
Tim Pambor
9d75f521ec drivers: ethernet: dwc_mac: nxp: fix IRQ comment placement
The explanation about the MAC raising DMA transfer completion on the
dedicated tx/rx lines and everything else on the common line only
applies to the MCX E31 series. Move that part into the corresponding
#if block and keep the generic note outside of it, so the comment
matches the code it documents.

No functional change.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-09-02 19:14:40 +01:00
Yanzhao Cui
0cc20849eb drivers: ethernet: mdio: dwmac: include pinctrl.h only when used
zephyr/drivers/pinctrl.h was included unconditionally and pulls in
pinctrl_soc.h. SoCs without a pinctrl driver (for example Rockchip
RK3588) fail to build when enabling snps,dwmac-mdio without pinctrl-0.

Guard the include with CONFIG_PINCTRL to match other drivers. Keep
DWMAC_MDIO_PINCTRL_ENABLED for optional pinctrl config and apply paths.

Signed-off-by: Yanzhao Cui <cuiyanzhao@kylinos.cn>
2026-09-02 19:14:22 +01:00
Tim Pambor
213f0eda0f drivers: ethernet: dwc_mac: nxp: add support for the MCX A series
The NXP MCX A family integrates the same DWC Ethernet QoS
controller as the MCX N series, but uses different PHY interface
selection. Extend the driver to also support the MCX A family
by guarding the SoC-specific parts with CONFIG_SOC_FAMILY_MCXA.

Add the PTP clock source and a ptp_clock child node to the MCXA5x
ethernet controller node, so the dwc_mac PTP clock driver can be
used.

ETH_NXP_ENET_QOS does not support PTP for the MCX A family, so
use the dwc_mac driver by default for the MCX A family, if PTP
support is required.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-09-01 21:04:56 -04:00
Tim Pambor
789d148597 drivers: ethernet: dwc_mac: nxp: add support for the MCX N series
The NXP MCX N family integrates the same DWC Ethernet QoS
controller as the MCXE31X series, but uses different clocks, PHY
interface selection and interrupt lines. Extend the driver to
also support the MCX N family by guarding the SoC-specific parts
with CONFIG_SOC_FAMILY_MCXN.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-09-01 21:04:56 -04:00
Benjamin Cabé
5b4278c695 drivers: use inclusive SPI terminology in remaining drivers
Use controller/peripheral and SDO/SDI terminology in the remaining
SPI-using drivers (audio, auxdisplay, bluetooth HCI, dac, eeprom,
ethernet, flash, fpga, gpio, haptics, hdlc_rcp_if, ieee802154,
input, led, led_strip, lora, mfd, misc, mux, rtc, sdhc, stepper,
video, watchdog, wifi) and the ec_host_cmd SPI STM32 backend,
following coding guideline rule A.2: switch to
SPI_OP_MODE_CONTROLLER/PERIPHERAL and SPI_SDO_OVERRUN_DT, rename
Zephyr-owned identifiers (the HCI SPI header buffers, the winc1500
bus wrapper transfer parameters), and update comments, log messages
and Kconfig help prose.

Vendor and out-of-scope identifiers keep their names: STM32
LL_SPI_MODE_SLAVE in the ec_host_cmd backend, the ATWINC1500 SDK I2C
SLAVE_ADDRESS definition, and the I2S codec clock-role variable in
tlv320aic26.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-09-01 21:04:50 -04:00
Fin Maaß
d24d7a9c8e drivers: ethernet: dwc_mac: remove unused DEC_WRAP
remove unused DEC_WRAP macros.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-09-01 16:26:18 -04:00
Fin Maaß
e6d72cdb90 drivers: ethernet: dwc_mac: fix -Werror=unused-value
fix -Werror=unused-value in the dwc_mac ethernet drivers.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-09-01 16:26:18 -04:00
Tim Pambor
35768b7843 drivers: ethernet: native_tap: migrate to devicetree
Instantiate the native_sim TAP ethernet driver from devicetree using a
new `zephyr,native-tap` compatible. Each interface is described by its
own devicetree node, so multiple interfaces are created by adding
multiple nodes rather than increasing an interface count
(`CONFIG_ETH_NATIVE_TAP_INTERFACE_COUNT`).

Per-interface configuration moves from Kconfig to devicetree properties:
- the host interface name comes from the `host-interface` property
- the MAC address from the common `local-mac-address` or
  `zephyr,random-mac-address` properties loaded through
  `net_eth_mac_load()`
- the PTP clock from a child node

The `CONFIG_ETH_NATIVE_TAP_DRV_NAME`, `CONFIG_ETH_NATIVE_TAP_MAC_ADDR` and
`CONFIG_ETH_NATIVE_TAP_RANDOM_MAC` options are removed.

The `--eth-if`, `--mac-addr` and `--ipv4-*` command line options keep
applying to the first interface. In addition, per-interface variants
prefixed with the node name are added for the remaining interfaces.

Assisted-by: Claude:opus-4.8
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-08-31 13:10:01 -04:00
Martin Oliver Pitoňák
e36cba844c drivers: ethernet: nxp_enet_qos: fix MAC config sequence for speed/duplex
The eth_nxp_enet_qos_mac.c driver programs the MAC in a sequence that
violates the Synopsys DWC_ether_qos databook. This fixes that.

Signed-off-by: Martin Oliver Pitoňák <martin.pitonak@nxp.com>
2026-08-31 06:58:46 -04:00
Benjamin Perseghetti
be353a18b5 drivers: ethernet: nxp_enet_qos: pass all multicast frames
The driver never programs the per-address multicast hash table and does
not advertise ETHERNET_HW_FILTERING, so the stack never installs a group
filter. On a MAC that reports a hash table (HASHTBLSZ is nonzero) that
combination dropped every multicast frame, which breaks IPv6 neighbor
discovery and MLD group membership, so a joined group received nothing.

Set the pass-all-multicast bit unconditionally so joined groups are
delivered. The prior code set it only when the MAC reported no hash
table, but pass-all is needed in strictly more cases than that: the
driver never populates the hash table, so perfect multicast filtering
is unavailable regardless of the reported hash-table size.

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2026-08-30 16:43:10 -04:00
Benjamin Perseghetti
73823c3418 drivers: ethernet: nxp_enet: add option to disable multicast filter
This MAC gates inbound multicast through the group-address hash
(GAUR/GALR), which starts empty after ENET_Up. The driver advertises
ETHERNET_HW_FILTERING and installs a hash bit for every group the
stack joins, so IP multicast joined through the stack (including IPv6
neighbor discovery and MLD group membership) is delivered. Multicast
that the stack never joins, such as traffic received through a raw
packet socket, has no hash bit installed and is dropped by the MAC.

Add ETH_NXP_ENET_MULTICAST_FILTER (default y) to preserve the existing
hash-filtered behavior. When it is disabled, the driver stops
advertising ETHERNET_HW_FILTERING, skips the per-group hash
installation, and opens the group-address hash to every multicast
address so reception no longer depends on per-group installation. This
follows the ETH_NXP_S32_MULTICAST_FILTER and ETH_STM32_MULTICAST_FILTER
options already in tree.

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2026-08-30 16:43:10 -04:00
Karthikeyan Sivaji
41e9d8e990 drivers: mdio: microchip: Update G1 MDIO Driver
Increase MDIO_MCHP_OP_TIMEOUT from 25 to 50 microseconds.

Signed-off-by: Karthikeyan Sivaji <Karthikeyan.Sivaji2@microchip.com>
2026-08-28 06:51:47 -04:00
Benjamin Perseghetti
34d8044514 drivers: ethernet: phy: tja1103: init work before enabling IRQ
The delayable phy_work item was initialized only after the link
interrupt had already been enabled and armed. On hardware that
asserts the PHY interrupt GPIO immediately at configuration time,
the ISR (phy_tja1103_handle_irq) could run and call
k_work_reschedule() on phy_work before k_work_init_delayable()
had ever executed, rescheduling a work item with no valid handler
and corrupting the workqueue state (fault or undefined behavior on
early link-up, observed on TJA1103-based 100BASE-T1 hardware).

Initialize data->timeout and the delayable work at the top of
phy_tja1103_cfg_irq_poll(), before the interrupt is enabled, so the
handler is always valid when the ISR fires. Replace the direct
phy_work_handler() call at the end with a K_NO_WAIT reschedule so
the first poll still runs from the workqueue context rather than
inline.

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2026-08-27 22:12:52 -04:00
Jordan Yates
12d57bd872 net: invert ETH_DRIVER and NET_L2_ETHERNET
Invert the in-tree ethernet driver configuration logic.

The current logic is boards enabling `NET_L2_ETHERNET`, which then
unconditionally defaults `ETH_DRIVER` to enabled. This means that
`ETH_DRIVER` end up set for boards that use the L2 Ethernet layer but
don't have an ethernet device (see some WiFi drivers).

This commit:
 * Removes the `default y if NET_L2_ETHERNET` from `ETH_DRIVER`
 * Adds `default y if ETH_DRIVER` to `NET_L2_ETHERNET`
 * Adds `imply ETH_DRIVER` to `NET_QEMU_ETHERNET`
 * Updates in-tree ethernet boards to default `ETH_DRIVER` instead of
   `NET_L2_ETHERNET`

The outcome of this PR is that Kconfig can now use `ETH_DRIVER` to
reasonably assume that an actual ethernet driver is enabled.

Conversion of in-tree boards/samples performed by GPT-5.5.

Assisted-by: GPT-5.5
Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-08-27 12:11:50 +01:00
Fin Maaß
0d5e2d2bea drivers: ethernet: nxp: s32: align devicetree with other snps,dwmac
align devicetree with other snps,dwmac controllers.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-08-26 15:57:24 +01:00
Måns Ansgariusson
792a2b44be drivers: eth_wch9120: Update ring_buf usage to new zero-copy API
This commit updates the usage of ring_buf to utilize the new
put_ptr/commit/get_ptr/consume pattern instead of the traditional
claim/finish approach. This change is part of a larger refactor aimed at
streamlining the ring_buf API and improving its efficiency.

Signed-off-by: Måns Ansgariusson <mansgariusson@gmail.com>
2026-08-26 15:49:20 +01:00
Fin Maaß
58c9e2b6b8 drivers: ethernet: dwc_mac: nxp: add support for the mcxe31b
For the NXP MCXE31B mcu there is currently no
driver support for the ethernet controller, add it via
the generic dwc_mac driver.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-26 15:48:30 +01:00
Fin Maaß
54d88b4bf5 drivers: ethernet: dwc_mac: select ARM_MPU
select ARM_MPU if needed for the descriptors.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-26 15:48:30 +01:00
Fin Maaß
68b8cd44d8 drivers: ethernet: nxp: qos: limit driver to supported SoCs
Limit the nxp based HAL driver to the SoCs,
that it supports.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-26 15:48:30 +01:00
Fin Maaß
1bc05d5cb4 drivers: ethernet: dwc_mac: esp32: disable tx checksum offloading
Deactive tx checksum offloading on the
esp32, while it has a big enough fifo,
the tx checksum is not correctly calculated
on every second packet.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-24 14:12:55 -07:00
Vinicius Carvalho
06a7760b1b drivers: ethernet: nxp_enet: fix compilation on non-1G MCUs
Fixed regression related to ethernet for MCUs that only support 10/100M
and lack RGMII.

Signed-off-by: Vinicius Carvalho <carvalho-vinicius@outlook.com>
2026-08-24 10:25:04 +01:00
Fin Maaß
0759dc6623 ethernet: ptp: infineon: xmc4xxx: use snps,dwmac-ptp-clock
for the xmc4xxx add a ptp clock node
in the devicetree.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-23 14:41:51 -04:00
Fin Maaß
f3612d124a drivers: ethernet: dwc_mac: add multicast filtering
Add multicast filtering to both cores. The filter is rebuilt from
the joined multicast addresses using net_eth_mcast_addr_foreach().
Hash filtering is used when the hardware supports it, otherwise the
addresses are perfect filtered against the spare MAC address
entries, receiving all multicast should they not fit. The mode can
be selected in Kconfig and defaults to hash filtering when
available.

Assisted-by: Claude Code:claude-fable-5
Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-22 19:19:05 -04:00
Hashimoto Kenichi
c0bba90c36 drivers: ethernet: nxp_enet: mask the interrupt status with EIMR
eth_nxp_enet_isr() branches on ENET_GetInterruptStatus(), a plain read
of EIR, which is not the set of pending interrupts: "EIR[RXF] reflects
the state of the interrupt signal even if the corresponding EIMR field
is cleared", and an interrupt is raised only "if the corresponding bit
in the interrupt mask register (EIMR) is also set" (i.MX RT1170 RM rev
5, sections 60.5.1.2 and 60.5.1.3).

So a branch is taken for an event the driver has masked off. The receive
path relies on masking: it disables kENET_RxFrameInterrupt, submits
work, and re-enables only once the handler has drained the ring. Until
then every transmit interrupt re-enters the receive branch and resubmits
work that is already queued.

Masking the status loses nothing, since the interrupt line is itself EIR
qualified by EIMR.

Signed-off-by: Hashimoto Kenichi <hashimoto.kenichi@genetec.co.jp>
Assisted-by: Claude:claude-opus-5
2026-08-19 11:28:53 +02:00
Tim Pambor
7e257141e8 drivers: ethernet: nxp_enet_qos: drop superfluous return
Remove the trailing `return;` at the end of the void RX work function.
A return statement as the last line of a void function is superfluous
and is flagged by the compliance check, so drop it.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-08-19 11:24:05 +02:00
Tim Pambor
90682bd258 drivers: ethernet: nxp_enet_qos: drop redundant mac name suffix
Now that the ENET QoS `nxp,enet-qos-mac` child node has been folded into
the parent `nxp,enet-qos` controller node, the driver no longer models a
separate MAC sub-device, so the `_mac` suffix in the file, symbols and
Kconfig option names is redundant.

- Rename the driver source file `eth_nxp_enet_qos_mac.c` to
  `eth_nxp_enet_qos.c` and update the CMakeLists.txt reference.
- Drop the `_mac` suffix from the log module, init function, ISR and
  device-define macro.
- Rename the Kconfig option `ETH_NXP_ENET_QOS_MAC_UNIQUE_MAC_ADDRESS`
  to `ETH_NXP_ENET_QOS_UNIQUE_MAC_ADDRESS` and update its users.
- Add a migration guide entry documenting the Kconfig rename.

Assisted-by: Claude:opus-4-8
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-08-19 11:24:05 +02:00
Tim Pambor
37600d4e41 dts: nxp: mcx: merge enet_mac into emac node
Fold the NXP ENET QoS child node `nxp,enet-qos-mac` into the parent
`nxp,enet-qos` controller node to match standard `snps,dwmac` bindings
and flatten the devicetree representation.

Summary of changes:
- dts: bindings: Merge `nxp,enet-qos-mac` binding into `nxp,enet-qos`
  and remove the obsolete binding file.
- dts/boards: Flatten devicetree structure across MCX A and MCX N
  families (and EVK/FRDM board overlays) by moving interrupts, MAC
  properties and PTP clock configuration up to the parent `enet` node.
- drivers: Update `nxp_enet_qos` ethernet and PTP clock drivers for the
  single-node layout, remove the redundant `eth_nxp_enet_qos.c` module
  driver and consolidate Kconfig under `ETH_NXP_ENET_QOS`.
- docs: Add a migration guide entry detailing the devicetree node changes.

Assisted-by: Claude:opus-4-8
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-08-19 11:24:05 +02:00
Anas Nashif
4024c955c9 drivers: name the parameters in function declarations
MISRA C:2012 Rule 8.2 requires every parameter in a function type to be
named, including the parameters of function pointer parameters.
The cache, clock control, comparator, entropy, Ethernet, I2S and serial
drivers left callback parameters unnamed, or carried forward
declarations that dropped the names the definitions already use. The two
virtio callbacks get ARG_UNUSED() for the arguments they deliberately
ignore.

Name them after the arguments the documentation or the
definitions already use. No functional change.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-08-18 20:22:43 -04:00
Peter van der Perk
129d27ae39 drivers: ethernet: nxp_imx_netc: add NETC get_stats support
Report per-SI hardware statistics through the Ethernet .get_stats API.
netc_eth_get_stats reads the SI transmit discard counter (SITDFCR) into
tx_dropped and is shared by the PSI and VSI. The PSI additionally reads
the port-level receive-discard counter (rx_missed_errors) through
EP_GetPortDiscardStatistic, which only the PSI can access. All of this is
gated on CONFIG_NET_STATISTICS_ETHERNET.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2026-08-12 13:11:17 -04:00
Peter van der Perk
4d8904725f drivers: ethernet: nxp_imx_netc: add NETC VSI driver
Add a NETC Virtual Station Interface (VSI) driver and its binding so Zephyr
can drive an ENETC virtual function while a separate OS owns the PSI/PF.
The driver brings the SI up off the boot path in a service thread, gating
first access on the NETC clock and the PF's SR-IOV VF-enable bit so it
can't fault on a not-yet-decoding SI. It programs its own unicast MAC and
multicast-promiscuous mode through VSI->PSI messages.

Note: the current Zephyr NETC PSI driver implements neither SR-IOV nor
PSI<->VSI messaging, so only the Zephyr-VSI-to-Linux-PSI path is tested.

Rework the shared Tx datapath for throughput: coalesced Tx-completion
interrupts (frame-threshold + timer), a per-slot buffer ring so frames
aren't serialised on one buffer, and backpressure that blocks on a full
ring instead of dropping. PTP egress timestamps are read with a bounded
busy-wait.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2026-08-12 13:11:17 -04:00
Peter van der Perk
273eecc107 drivers: ethernet: nxp_imx_netc: use net_eth_mac_load for MAC setup
Load the MAC address through the new net_eth_mac_load() /
NET_ETH_MAC_DT_INST_CONFIG_INIT() helpers instead of the driver-specific
NETC_GENERATE_MAC_ADDRESS macro.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2026-08-12 13:11:17 -04:00
Fin Maaß
530e47b9d3 dts: bindings: ethernet: mdio: infineon: xmc4xxx: use snps,dwmac-mdio
As per our documentation, we have to
reuse bindings from Linux, there they use
"snps,dwmac-mdio", so let's use the same one
here in zephyr.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-12 09:47:10 -07:00
Fin Maaß
4de795958d drivers: ethernet: infineon: xmc4xxx: allign devicetree structure
Allign the devicetree structure of the wch ethernet
nodes wich the other existing nodes, that also use the
Synopsys Designware IP.

With that also move the "mdi-port-ctrl" from the
mdio node to the ethernet node, wich is now the
parent of the mdio node.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-12 09:47:10 -07:00
Fin Maaß
2b254cf94c drivers: ethernet: wch: allign devicetree structure
Allign the devicetree structure of the wch ethernet
nodes wich the other existing nodes, that also use the
Synopsys Designware IP.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-12 09:47:10 -07:00
Fin Maaß
82fc84fca0 dts: bindings: ethernet: mdio: wch: use snps,dwmac-mdio
As per our documentation, we have to
reuse bindings from Linux, there they use
"snps,dwmac-mdio", so let's use the same one
here in zephyr.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-12 09:47:10 -07:00
Fin Maaß
ef6cd990e6 dts: bindings: ethernet: mdio: nxp: s32: use snps,dwmac-mdio
As per our documentation, we have to
reuse bindings from Linux, there they use
"snps,dwmac-mdio", so let's use the same one
here in zephyr.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-12 09:47:10 -07:00
Fin Maaß
f7c505e058 dts: bindings: ethernet: mdio: nxp: qos: use snps,dwmac-mdio
As per our documentation, we have to
reuse bindings from Linux, there they use
"snps,dwmac-mdio", so let's use the same one
here in zephyr.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-12 09:47:10 -07:00
Fin Maaß
13fe0a115e dts: bindings: ethernet: mdio: esp32: use snps,dwmac-mdio
As per our documentation, we have to reuse bindings from Linux, there
they use "snps,dwmac-mdio", so let's use the same one here in zephyr.
The esp32 itself is not in Linux, but the ethernet IP from Synopsys is.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-08-12 09:47:10 -07:00