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

spi: dt-bindings: add spi-{tx,rx}-lane-map properties



Add spi-tx-lane-map and spi-rx-lane-map properties to the SPI peripheral
device tree binding. These properties allow specifying the mapping of
peripheral data lanes to controller data lanes. This is needed e.g. when
some lanes are skipped on the controller side so that the controller
can correctly route data to/from the peripheral.

Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Reviewed-by: default avatarJonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: default avatarDavid Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20260123-spi-add-multi-bus-support-v6-2-12af183c06eb@baylibre.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 37bb4033
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -75,6 +75,13 @@ properties:
      enum: [0, 1, 2, 4, 8]
    default: [1]

  spi-rx-lane-map:
    description: Mapping of peripheral SDO lanes to controller SDI lanes.
      Each index in the array represents a peripheral SDO lane, and the value
      at that index represents the corresponding controller SDI lane.
    $ref: /schemas/types.yaml#/definitions/uint32-array
    default: [0, 1, 2, 3, 4, 5, 6, 7]

  spi-rx-delay-us:
    description:
      Delay, in microseconds, after a read transfer.
@@ -99,6 +106,13 @@ properties:
      enum: [0, 1, 2, 4, 8]
    default: [1]

  spi-tx-lane-map:
    description: Mapping of peripheral SDI lanes to controller SDO lanes.
      Each index in the array represents a peripheral SDI lane, and the value
      at that index represents the corresponding controller SDO lane.
    $ref: /schemas/types.yaml#/definitions/uint32-array
    default: [0, 1, 2, 3, 4, 5, 6, 7]

  spi-tx-delay-us:
    description:
      Delay, in microseconds, after a write transfer.