Unverified Commit 5827b31d authored by Janne Grunau's avatar Janne Grunau Committed by Mark Brown
Browse files

spi: Parse hold/inactive CS delay values from the DT



Now that we support parsing the setup time from the Device Tree, we can
also easily support the remaining hold and inactive time delay values.

Signed-off-by: default avatarJanne Grunau <j@jannau.net>
Signed-off-by: default avatarHector Martin <marcan@marcan.st>
Link: https://lore.kernel.org/r/20230113102309.18308-4-marcan@marcan.st


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 34f89f23
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2327,6 +2327,8 @@ static int of_spi_parse_dt(struct spi_controller *ctlr, struct spi_device *spi,

	/* Device CS delays */
	of_spi_parse_dt_cs_delay(nc, &spi->cs_setup, "spi-cs-setup-delay-ns");
	of_spi_parse_dt_cs_delay(nc, &spi->cs_hold, "spi-cs-hold-delay-ns");
	of_spi_parse_dt_cs_delay(nc, &spi->cs_inactive, "spi-cs-inactive-delay-ns");

	return 0;
}