Skip to contentSkip to conversation

arch: arm64: dts: add delay between CS and CLK signal for flash device

PATCH In review Meng Li 2 participants 3 messages Nov 3, 2021 – Nov 21, 2021

Subsystems (2)
lore
Share & tools
lore

Meng Li

author
#0 lore raw

PATCH 1/1 arch: arm64: dts: add delay between CS and CLK signal for flash device

Based on commit d59c90a2400f("spi: spi-fsl-dspi: Convert TCFQ users to XSPI FIFO mode ") and 6c1c26ecd9a3("spi:
spi-fsl-dspi: Accelerate transfers using larger word size if possible"), on ls1043a-rdb platform, the spi work mode is changed from TCFQ mode to XSPI mode. In order to keep the transmission sequence matches with flash device, it is need to add delay between CS and CLK signal. The strategy of generating delay value refers to QorIQ LS1043A Reference Manual.

---
 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +2 -0
index 3a669238a0b8..3b1a31a063c6 100644
@@ -98,6 +98,8 @@
 		compatible = "n25q128a13", "jedec,spi-nor";  /* 16MB */
 		reg = <0>;
 		spi-max-frequency = <1000000>; /* input clock */
+		fsl,spi-cs-sck-delay = <100>;
+		fsl,spi-sck-cs-delay = <100>;
 	};
 
 	slic@2 {
Signature · 1 line
2.17.1
author
#1 lore raw

Is there any comments about this patch?

Thanks,
Limeng

Quoted 39 lines

-----Original Message-----
From: Li, Meng <[email protected]>
Sent: Wednesday, November 3, 2021 11:39 AM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; Li, Meng <[email protected]>
Subject: [PATCH] arch: arm64: dts: add delay between CS and CLK signal for flash device

Based on commit d59c90a2400f("spi: spi-fsl-dspi: Convert TCFQ users to XSPI FIFO mode ") and 6c1c26ecd9a3("spi:
spi-fsl-dspi: Accelerate transfers using larger word size if possible"), on ls1043a-rdb platform, the spi work mode is changed from TCFQ mode to XSPI mode. In order to keep the transmission sequence matches with flash device, it is need to add delay between CS and CLK signal.
The strategy of generating delay value refers to QorIQ LS1043A Reference Manual.

---
 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +2 -1
index 3a669238a0b8..3b1a31a063c6 100644
@@ -98,6 +98,8 @@
 		compatible = "n25q128a13", "jedec,spi-nor";  /* 16MB */
 		reg = <0>;
 		spi-max-frequency = <1000000>; /* input clock */
+		fsl,spi-cs-sck-delay = <100>;
+		fsl,spi-sck-cs-delay = <100>;
 	};
 
 	slic@2 {
--

2.17.1

#2 lore raw
In reply to Meng Li
Quoted 10 lines · Meng Li

Based on commit d59c90a2400f("spi: spi-fsl-dspi: Convert TCFQ users to XSPI FIFO mode ") and 6c1c26ecd9a3("spi:
spi-fsl-dspi: Accelerate transfers using larger word size if possible"), on ls1043a-rdb platform, the spi work mode is changed from TCFQ mode to XSPI mode. In order to keep the transmission sequence matches with flash device, it is need to add delay between CS and CLK signal. The strategy of generating delay value refers to QorIQ LS1043A Reference Manual.

Updated the subject as below and applied the patch.

arm64: dts: fsl-ls1043a-rdb: add delay between CS and CLK signal for flash device

Shawn