Skip to content

Commit a8b2263

Browse files
dlechnunojsa
authored andcommitted
spi: dt-bindings: axi-spi-engine: add SPI offload properties
The AXI SPI Engine has support for hardware offloading capabilities. This includes a connection to a DMA controller for streaming RX or TX data and a trigger input for starting execution of the SPI message programmed in the offload. It is designed to support up to 32 offload instances. Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20250207-dlech-mainline-spi-engine-offload-2-v8-6-e48a489be48c@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e6f66fc commit a8b2263

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Documentation/devicetree/bindings/spi/adi,axi-spi-engine.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,26 @@ properties:
4141
- const: s_axi_aclk
4242
- const: spi_clk
4343

44+
trigger-sources:
45+
description:
46+
An array of trigger source phandles for offload instances. The index in
47+
the array corresponds to the offload instance number.
48+
minItems: 1
49+
maxItems: 32
50+
51+
dmas:
52+
description:
53+
DMA channels connected to the input or output stream interface of an
54+
offload instance.
55+
minItems: 1
56+
maxItems: 32
57+
58+
dma-names:
59+
items:
60+
pattern: "^offload(?:[12]?[0-9]|3[01])-[tr]x$"
61+
minItems: 1
62+
maxItems: 32
63+
4464
required:
4565
- compatible
4666
- reg
@@ -59,6 +79,10 @@ examples:
5979
clocks = <&clkc 15>, <&clkc 15>;
6080
clock-names = "s_axi_aclk", "spi_clk";
6181
82+
trigger-sources = <&trigger_clock>;
83+
dmas = <&dma 0>;
84+
dma-names = "offload0-rx";
85+
6286
#address-cells = <1>;
6387
#size-cells = <0>;
6488

0 commit comments

Comments
 (0)