[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230104093631.15611-6-marcan@marcan.st>
Date: Wed, 4 Jan 2023 18:36:31 +0900
From: Hector Martin <marcan@...can.st>
To: Mark Brown <broonie@...nel.org>, Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>
Cc: Tudor Ambarus <tudor.ambarus@...rochip.com>,
linux-spi@...r.kernel.org, devicetree@...r.kernel.org,
Janne Grunau <j@...nau.net>,
Alyssa Rosenzweig <alyssa@...enzweig.io>,
asahi@...ts.linux.dev, linux-kernel@...r.kernel.org,
Hector Martin <marcan@...can.st>
Subject: [PATCH 5/5] spi: Parse hold/inactive CS delay values from the DT
From: Janne Grunau <j@...nau.net>
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: Janne Grunau <j@...nau.net>
Signed-off-by: Hector Martin <marcan@...can.st>
---
drivers/spi/spi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 370e4c85dc54..0d84f90ab218 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2328,6 +2328,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;
}
--
2.35.1
Powered by blists - more mailing lists