Skip to contentSkip to conversation

ARM: dts: dra7: Support QSPI MODE-0 operation at 64MHz

PATCH In review Vignesh R 2 participants 3 messages Feb 25, 2016 – Feb 29, 2016 Device tree bindings

lore
Share & tools
lore

Vignesh R

author
#0 lore raw

PATCH 1/1 ARM: dts: dra7: Support QSPI MODE-0 operation at 64MHz

According to Data Manual(SPRS915P) of AM57x, TI QSPI controller on DRA74(rev 1.1+) can support up to 64MHz in MODE-0, whereas MODE-3 is limited to 48MHz. Hence, switch to MODE-0 for better throughput.

---
 arch/arm/boot/dts/dra7-evm.dts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/dra7-evm.dts +2 -4
index cfc24e52244e..15f10bdc8c31 100644
@@ -653,15 +653,13 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&qspi1_pins>;
 
-	spi-max-frequency = <48000000>;
+	spi-max-frequency = <64000000>;
 	m25p80 at 0 {
 		compatible = "s25fl256s1";
-		spi-max-frequency = <48000000>;
+		spi-max-frequency = <64000000>;
 		reg = <0>;
 		spi-tx-bus-width = <1>;
 		spi-rx-bus-width = <4>;
-		spi-cpol;
-		spi-cpha;
 		#address-cells = <1>;
 		#size-cells = <1>;
 
Signature · 1 line
2.7.1
#1 lore raw

Hi,

Quoted 21 lines · Vignesh R

According to Data Manual(SPRS915P) of AM57x, TI QSPI controller on DRA74(rev 1.1+) can support up to 64MHz in MODE-0, whereas MODE-3 is limited to 48MHz. Hence, switch to MODE-0 for better throughput.

---
 arch/arm/boot/dts/dra7-evm.dts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/dra7-evm.dts +1 -1
index cfc24e52244e..15f10bdc8c31 100644
@@ -653,15 +653,13 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&qspi1_pins>;
 
-	spi-max-frequency = <48000000>;
+	spi-max-frequency = <64000000>;
 	m25p80 at 0 {
 		compatible = "s25fl256s1";

arch/arm/boot/dts/dra7-evm.dts line 665

Quoted 10 lines
arch/arm/boot/dts/dra7-evm.dts +1 -3
-		spi-max-frequency = <48000000>;
+		spi-max-frequency = <64000000>;
 		reg = <0>;
 		spi-tx-bus-width = <1>;
 		spi-rx-bus-width = <4>;
-		spi-cpol;
-		spi-cpha;
 		#address-cells = <1>;
 		#size-cells = <1>;
 

Do we have any earlier pre DRA74(rev 1.1)versions in use too?

What about the spi-cpol and spi-cpha changes? Those should be at least documented?

Regards,

Tony

author
#2 lore raw

Hi,

Quoted 20 lines · Tony Lindgren

Hi,

Quoted 17 lines · Vignesh R

According to Data Manual(SPRS915P) of AM57x, TI QSPI controller on DRA74(rev 1.1+) can support up to 64MHz in MODE-0, whereas MODE-3 is limited to 48MHz. Hence, switch to MODE-0 for better throughput.

---
 arch/arm/boot/dts/dra7-evm.dts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/dra7-evm.dts +0 -0
index cfc24e52244e..15f10bdc8c31 100644
@@ -653,15 +653,13 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&qspi1_pins>;
 
Quoted 16 lines
Quoted 4 lines
arch/arm/boot/dts/dra7-evm.dts +1 -1
-	spi-max-frequency = <48000000>;
+	spi-max-frequency = <64000000>;
 	m25p80 at 0 {
 		compatible = "s25fl256s1";

arch/arm/boot/dts/dra7-evm.dts line 665

Quoted 10 lines
arch/arm/boot/dts/dra7-evm.dts +1 -3
-		spi-max-frequency = <48000000>;
+		spi-max-frequency = <64000000>;
 		reg = <0>;
 		spi-tx-bus-width = <1>;
 		spi-rx-bus-width = <4>;
-		spi-cpol;
-		spi-cpha;
 		#address-cells = <1>;
 		#size-cells = <1>;
 

Do we have any earlier pre DRA74(rev 1.1)versions in use too?

Yes, there are pre 1.1 boards (production boards are all rev 1.1+), but QSPI is broken on them due to erratas (even w/o this patch).

Quoted 4 lines

What about the spi-cpol and spi-cpha changes? Those should be at least documented?

Ok, I will add a NOTE in the documentation saying "spi-cpol" and "spi-cpha" are not supported by ti-qspi in Documentation/devicetree/bindings/spi/ti_qspi.txt.

Signature · 2 lines
Regards
Vignesh