Skip to content

Commit 31eab84

Browse files
dlechbroonie
authored andcommitted
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: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20260123-spi-add-multi-bus-support-v6-2-12af183c06eb@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 37bb403 commit 31eab84

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ properties:
7575
enum: [0, 1, 2, 4, 8]
7676
default: [1]
7777

78+
spi-rx-lane-map:
79+
description: Mapping of peripheral SDO lanes to controller SDI lanes.
80+
Each index in the array represents a peripheral SDO lane, and the value
81+
at that index represents the corresponding controller SDI lane.
82+
$ref: /schemas/types.yaml#/definitions/uint32-array
83+
default: [0, 1, 2, 3, 4, 5, 6, 7]
84+
7885
spi-rx-delay-us:
7986
description:
8087
Delay, in microseconds, after a read transfer.
@@ -99,6 +106,13 @@ properties:
99106
enum: [0, 1, 2, 4, 8]
100107
default: [1]
101108

109+
spi-tx-lane-map:
110+
description: Mapping of peripheral SDI lanes to controller SDO lanes.
111+
Each index in the array represents a peripheral SDI lane, and the value
112+
at that index represents the corresponding controller SDO lane.
113+
$ref: /schemas/types.yaml#/definitions/uint32-array
114+
default: [0, 1, 2, 3, 4, 5, 6, 7]
115+
102116
spi-tx-delay-us:
103117
description:
104118
Delay, in microseconds, after a write transfer.

0 commit comments

Comments
 (0)