diff options
author | Mark Brown <[email protected]> | 2023-01-06 17:26:02 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-01-06 17:26:02 +0000 |
commit | f7038476a12ce6c463f9e777d426a657c6debfd8 (patch) | |
tree | 6942f1fdfaf0ac055f609ef8499ae24ac6aff958 | |
parent | 392af84bddcc96f1546a1ca4ffa71bccce95b897 (diff) | |
parent | e0fe6a31cac84735939c29d1e05055d58325c6c0 (diff) |
SPI core CS delay fixes and additions
Merge series from Hector Martin <[email protected]>:
This brings the name of the cs-setup-ns parameter which was added during
the merge window into line with other delay properties.
-rw-r--r-- | Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml | 4 | ||||
-rw-r--r-- | drivers/spi/spi.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index ead2cccf658f..9a60c0664bbe 100644 --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -44,9 +44,9 @@ properties: description: Maximum SPI clocking speed of the device in Hz. - spi-cs-setup-ns: + spi-cs-setup-delay-ns: description: - Delay in nanosecods to be introduced by the controller after CS is + Delay in nanoseconds to be introduced by the controller after CS is asserted. spi-rx-bus-width: diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 3cc7bb4d03de..15f174f4e056 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2310,7 +2310,7 @@ static int of_spi_parse_dt(struct spi_controller *ctlr, struct spi_device *spi, if (!of_property_read_u32(nc, "spi-max-frequency", &value)) spi->max_speed_hz = value; - if (!of_property_read_u16(nc, "spi-cs-setup-ns", &cs_setup)) { + if (!of_property_read_u16(nc, "spi-cs-setup-delay-ns", &cs_setup)) { spi->cs_setup.value = cs_setup; spi->cs_setup.unit = SPI_DELAY_UNIT_NSECS; } |