aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-nxp-fspi.c
diff options
context:
space:
mode:
authorHan Xu <han.xu@nxp.com>2025-09-22 16:47:14 +0800
committerMark Brown <broonie@kernel.org>2025-10-13 13:32:47 +0100
commitb93b4269791fdebbac2a9ad26f324dc2abb9e60f (patch)
tree19867710f4ef617a5034d07172b4aa97d8bbd3b9 /drivers/spi/spi-nxp-fspi.c
parentspi: spi-nxp-fspi: re-config the clock rate when operation require new clock ... (diff)
downloadlinux-b93b4269791fdebbac2a9ad26f324dc2abb9e60f.tar.gz
linux-b93b4269791fdebbac2a9ad26f324dc2abb9e60f.zip
spi: spi-nxp-fspi: add extra delay after dll locked
Due to the erratum ERR050272, the DLL lock status register STS2 [xREFLOCK, xSLVLOCK] bit may indicate DLL is locked before DLL is actually locked. Add an extra 4us delay as a workaround. refer to ERR050272, on Page 20. https://www.nxp.com/docs/en/errata/IMX8_1N94W.pdf Fixes: 99d822b3adc4 ("spi: spi-nxp-fspi: use DLL calibration when clock rate > 100MHz") Signed-off-by: Han Xu <han.xu@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Link: https://patch.msgid.link/20250922-fspi-fix-v1-2-ff4315359d31@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-nxp-fspi.c')
-rw-r--r--drivers/spi/spi-nxp-fspi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c
index 4e82f9e900ac..96b3654b45ab 100644
--- a/drivers/spi/spi-nxp-fspi.c
+++ b/drivers/spi/spi-nxp-fspi.c
@@ -721,6 +721,12 @@ static void nxp_fspi_dll_calibration(struct nxp_fspi *f)
0, POLL_TOUT, true);
if (ret)
dev_warn(f->dev, "DLL lock failed, please fix it!\n");
+
+ /*
+ * For ERR050272, DLL lock status bit is not accurate,
+ * wait for 4us more as a workaround.
+ */
+ udelay(4);
}
/*