Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: document tx/rx clock delay properties

Tegra SPI controller has TX and RX trimmers to tuning the delay of
SPI master clock with respect to the data.

TX and RX tap values are based on the platform validation across the
PVT and the trimmer values vary based on the trace lengths to the
corresponding SPI devices.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Sowjanya Komatineni and committed by
Mark Brown
7558f978 f1ca9992

+20
+20
Documentation/devicetree/bindings/spi/nvidia,tegra114-spi.txt
··· 23 23 Recommended properties: 24 24 - spi-max-frequency: Definition as per 25 25 Documentation/devicetree/bindings/spi/spi-bus.txt 26 + Optional properties: 27 + - nvidia,tx-clk-tap-delay: Delays the clock going out to the external device 28 + with this tap value. This property is used to tune the outgoing data from 29 + Tegra SPI master with respect to outgoing Tegra SPI master clock. 30 + Tap values vary based on the platform design trace lengths from Tegra SPI 31 + to corresponding slave devices. Valid tap values are from 0 thru 63. 32 + - nvidia,rx-clk-tap-delay: Delays the clock coming in from the external device 33 + with this tap value. This property is used to adjust the Tegra SPI master 34 + clock with respect to the data from the SPI slave device. 35 + Tap values vary based on the platform design trace lengths from Tegra SPI 36 + to corresponding slave devices. Valid tap values are from 0 thru 63. 37 + 26 38 Example: 27 39 28 40 spi@7000d600 { ··· 50 38 reset-names = "spi"; 51 39 dmas = <&apbdma 16>, <&apbdma 16>; 52 40 dma-names = "rx", "tx"; 41 + <spi-client>@<bus_num> { 42 + ... 43 + ... 44 + nvidia,rx-clk-tap-delay = <0>; 45 + nvidia,tx-clk-tap-delay = <16>; 46 + ... 47 + }; 48 + 53 49 };