Skip to content

Commit 5e63c5e

Browse files
Radhey Shyam Pandeykuba-moo
authored andcommitted
dt-bindings: net: xlnx,axi-ethernet: Introduce DMA support
Xilinx 1G/2.5G Ethernet Subsystem provides 32-bit AXI4-Stream buses to move transmit and receive Ethernet data to and from the subsystem. These buses are designed to be used with an AXI Direct Memory Access(DMA) IP or AXI Multichannel Direct Memory Access (MCDMA) IP core, AXI4-Stream Data FIFO, or any other custom logic in any supported device. Primary high-speed DMA data movement between system memory and stream target is through the AXI4 Read Master to AXI4 memory-mapped to stream (MM2S) Master, and AXI stream to memory-mapped (S2MM) Slave to AXI4 Write Master. AXI DMA/MCDMA enables channel of data movement on both MM2S and S2MM paths in scatter/gather mode. AXI DMA has two channels where as MCDMA has 16 Tx and 16 Rx channels. To uniquely identify each channel use 'chan' suffix. Depending on the usecase AXI ethernet driver can request any combination of multichannel DMA channels using generic dmas, dma-names properties. Example: dma-names = tx_chan0, rx_chan0, tx_chan1, rx_chan1; Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/1700074613-1977070-2-git-send-email-radhey.shyam.pandey@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent a0bc96c commit 5e63c5e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,20 @@ properties:
122122
and "phy-handle" should point to an external PHY if exists.
123123
maxItems: 1
124124

125+
dmas:
126+
minItems: 2
127+
maxItems: 32
128+
description: TX and RX DMA channel phandle
129+
130+
dma-names:
131+
items:
132+
pattern: "^[tr]x_chan([0-9]|1[0-5])$"
133+
description:
134+
Should be "tx_chan0", "tx_chan1" ... "tx_chan15" for DMA Tx channel
135+
Should be "rx_chan0", "rx_chan1" ... "rx_chan15" for DMA Rx channel
136+
minItems: 2
137+
maxItems: 32
138+
125139
required:
126140
- compatible
127141
- interrupts
@@ -143,6 +157,8 @@ examples:
143157
clocks = <&axi_clk>, <&axi_clk>, <&pl_enet_ref_clk>, <&mgt_clk>;
144158
phy-mode = "mii";
145159
reg = <0x40c00000 0x40000>,<0x50c00000 0x40000>;
160+
dmas = <&xilinx_dma 0>, <&xilinx_dma 1>;
161+
dma-names = "tx_chan0", "rx_chan0";
146162
xlnx,rxcsum = <0x2>;
147163
xlnx,rxmem = <0x800>;
148164
xlnx,txcsum = <0x2>;

0 commit comments

Comments
 (0)