summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-10-09 23:05:22 +0200
committerMark Brown <broonie@kernel.org>2026-10-09 23:05:22 +0200
commit2d239d4a7ccccba62254f287862ea5b7014a267d (patch)
treeb353afdc1df6efade52615447b412a16fdec2f1f /include
parent12c22d3e44f0ba490728d4a48f04fabd131633f5 (diff)
parent85b0e19de168d82cbd879a4c8e13fabad5ef4dd8 (diff)
downloadlinux-next-2d239d4a7ccccba62254f287862ea5b7014a267d.tar.gz
linux-next-2d239d4a7ccccba62254f287862ea5b7014a267d.zip
Merge branch 'for-next' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
Diffstat (limited to 'include')
-rw-r--r--include/linux/spi/spi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 88d17fce02dc..fb4baa0d3398 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -169,6 +169,12 @@ extern void spi_transfer_cs_change_delay_exec(struct spi_message *msg,
* @cs_inactive: delay to be introduced by the controller after CS is
* deasserted. If @cs_change_delay is used from @spi_transfer, then the
* two delays will be added up.
+ * @rx_sample_delay_ns: Delay in nanoseconds by which the controller should
+ * postpone sampling the incoming data, relative to the sampling point it
+ * uses by default. Describes the board rather than the device, namely the
+ * flight time of the clock and data signals between controller and
+ * device, and comes from the "rx-sample-delay-ns" property. Zero when the
+ * property is absent.
* @chip_select: Array of physical chipselect, spi->chipselect[i] gives
* the corresponding physical CS for logical CS i.
* @num_chipselect: Number of physical chipselects used.
@@ -235,6 +241,9 @@ struct spi_device {
struct spi_delay cs_hold;
struct spi_delay cs_inactive;
+ /* Additional delay before the incoming data is sampled, in ns */
+ u32 rx_sample_delay_ns;
+
u8 chip_select[SPI_DEVICE_CS_CNT_MAX];
u8 num_chipselect;