Unverified Commit e1101373 authored by David Lechner's avatar David Lechner Committed by Mark Brown
Browse files

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: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarDavid Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250207-dlech-mainline-spi-engine-offload-2-v8-6-e48a489be48c@baylibre.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 700a2819
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -41,6 +41,26 @@ properties:
      - const: s_axi_aclk
      - const: spi_clk

  trigger-sources:
    description:
      An array of trigger source phandles for offload instances. The index in
      the array corresponds to the offload instance number.
    minItems: 1
    maxItems: 32

  dmas:
    description:
      DMA channels connected to the input or output stream interface of an
      offload instance.
    minItems: 1
    maxItems: 32

  dma-names:
    items:
      pattern: "^offload(?:[12]?[0-9]|3[01])-[tr]x$"
    minItems: 1
    maxItems: 32

required:
  - compatible
  - reg
@@ -59,6 +79,10 @@ examples:
        clocks = <&clkc 15>, <&clkc 15>;
        clock-names = "s_axi_aclk", "spi_clk";

        trigger-sources = <&trigger_clock>;
        dmas = <&dma 0>;
        dma-names = "offload0-rx";

        #address-cells = <1>;
        #size-cells = <0>;