]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: atmel-quadspi: Add cs_hold and cs_inactive setting support
authorAlexander Dahl <ada@thorsis.com>
Wed, 18 Sep 2024 08:27:44 +0000 (10:27 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 29 Sep 2024 23:12:26 +0000 (01:12 +0200)
commit625de1881b5aee6a42a3130004e47dbd632429f8
treef43022c6d16138726aa923768cecde4f7de6e988
parent7a4b3ebf1d60349587fee21872536e7bd6a4cf39
spi: atmel-quadspi: Add cs_hold and cs_inactive setting support

spi-cs-inactive-delay-ns in dts is cs_inactive in spi core, and it maps
to DLYCS (Minimum Inactive QCS Delay) in QSPI Mode Register (QSPI_MR).

spi-cs-hold-delay-ns in dts is cs_hold in spi core, and it maps to
DLYBCT (Delay Between Consecutive Transfers) in QSPI_MR.  That one can
be set to other values than 0 only if the chip is not in Serial Memory
Mode (SMM), it must be written to '0' however when in SMM.

Tested on SAM9X60 based board with FPGA implementing custom SPI Memory
protocol.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
Link: https://patch.msgid.link/20240918082744.379610-3-ada@thorsis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c