The Xilinx AXI Ethernet subsystem is commonly found in FPGA designs. This patch adds a driver and device tree bindings for the Ethernet MAC core and its MDIO controller. The driver was tested on a RISC-V softcore in an FPGA design, with an RGMII phy and Ethernet subsystem version 7.2 Rev. 14. Device tree bindings match the device tree generated by Vitis hsi. Note that Vitis generates one of the two included compatible strings depending on version. Signed-off-by: Eric Ackermann <eric.ackermann@cispa.de>
42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
#
|
|
#Xilinx AXI 1G / 2.5G Ethernet Subsystem
|
|
#
|
|
#Copyright(c) 2024, CISPA Helmholtz Center for Information Security
|
|
#SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
config ETH_XILINX_AXIENET
|
|
bool "Xilinx AXI Ethernet Driver"
|
|
default y
|
|
depends on DT_HAS_XLNX_AXI_ETHERNET_1_00_A_ENABLED
|
|
depends on DMA_XILINX_AXI_DMA
|
|
help
|
|
Enable Xilinx 1G / 2.5G AXI Ethernet driver,
|
|
commonly found on FPGAs.
|
|
|
|
config ETH_XILINX_AXIENET_BUFFER_NUM_TX
|
|
int "Number of buffers for concurrent transmission (TX)."
|
|
depends on ETH_XILINX_AXIENET
|
|
default DMA_XILINX_AXI_DMA_SG_DESCRIPTOR_NUM_TX
|
|
range 2 DMA_XILINX_AXI_DMA_SG_DESCRIPTOR_NUM_TX
|
|
help
|
|
Number of buffers for transmission allocated in the Xilinx AXI Ethernet driver.
|
|
This limits how many transmissions can be in-flight at the same time.
|
|
This cannot exceed the number of available TX buffers in the AXI DMA. However,
|
|
in scenarios with multiple AXI DMAs for different purposes in the system, it
|
|
may be desirable to reduce the number of concurrent transmissions to conserve
|
|
resources.
|
|
|
|
config ETH_XILINX_AXIENET_BUFFER_NUM_RX
|
|
int "Number of buffers for concurrent reception (RX)."
|
|
depends on ETH_XILINX_AXIENET
|
|
default DMA_XILINX_AXI_DMA_SG_DESCRIPTOR_NUM_RX
|
|
range 2 DMA_XILINX_AXI_DMA_SG_DESCRIPTOR_NUM_RX
|
|
help
|
|
Number of buffers for reception allocated in the Xilinx AXI Ethernet driver.
|
|
This limits how many transmissions can be in-flight at the same time.
|
|
This cannot exceed the number of available RX buffers in the AXI DMA. However,
|
|
in scenarios with multiple AXI DMAs for different purposes in the system, it
|
|
may be desirable to reduce the number of concurrent transmissions to conserve
|
|
resources.
|