Skip to content

Commit 8649ce8

Browse files
committed
dts: bindings: spi-device: Add parameters for spi peripherals
Add spi parameters for spi peripherals to spi-device.yaml. These properties and their names are mostly inspired by linux spi-peripheral-props.yaml. Signed-off-by: Declan Snyder <[email protected]>
1 parent 8e5e992 commit 8649ce8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

dts/bindings/spi/spi-device.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ properties:
5050
description: |
5151
SPI clock phase that indicates on which edge data is sampled.
5252
If it is used, data is sampled on the second edge; otherwise, on the first edge.
53+
spi-lsb-first:
54+
type: boolean
55+
description: The device requires least significant bit first data mode.
5356
spi-hold-cs:
5457
type: boolean
5558
description: |
@@ -58,3 +61,23 @@ properties:
5861
without releasing it. A typical use case is variable length SPI packets
5962
where the first spi transaction reads the length and the second spi transaction
6063
reads length bytes.
64+
spi-cs-high:
65+
type: boolean
66+
description: The device requires the chip select to be active high.
67+
spi-delay-ns:
68+
type: int
69+
default: 0
70+
description: |
71+
Delay in nanoseconds between SPI words.
72+
Default of 0 is special value that indicates to do half of the SCK period which should
73+
be okay for most cases.
74+
spi-cs-setup-delay-ns:
75+
type: int
76+
description: |
77+
Delay in nanoseconds to be introduced by the controller after CS is asserted.
78+
Also known as enable lead time.
79+
spi-cs-hold-delay-ns:
80+
type: int
81+
description: |
82+
Delay in nanoseconds to be introduced by the controller before the CS is de-asserted.
83+
Also known as enable lag time.

0 commit comments

Comments
 (0)