Commit 1d831cad authored by Amit Kumar Mahapatra's avatar Amit Kumar Mahapatra Committed by Michal Simek

arm64: zynqmp: Set qspi tx-buswidth to 4

All ZynqMP boards are setting up tx-buswidth to 1. Due to this the
framework only issues 1-1-1 write commands to the GQSPI driver. But the
GQSPI controller is capable of handling 1-4-4 write commands, so updated
the tx-buswidth to 4.
Using all 4 lines will increase the tx data transfer rate, as now the
tx data will be transferred on four lines instead on single line.
Signed-off-by: default avatarAmit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/1f1b0028106d83aa06e0777e91862a07df100fa1.1684767562.git.michal.simek@amd.com
parent f8673fd5
...@@ -124,7 +124,7 @@ spi_flash: flash@0 { /* MT25QU512A */ ...@@ -124,7 +124,7 @@ spi_flash: flash@0 { /* MT25QU512A */
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0>; reg = <0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
spi-max-frequency = <40000000>; /* 40MHz */ spi-max-frequency = <40000000>; /* 40MHz */
partition@0 { partition@0 {
......
...@@ -44,7 +44,7 @@ flash@0 { ...@@ -44,7 +44,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
spi-max-frequency = <108000000>; /* Based on DC1 spec */ spi-max-frequency = <108000000>; /* Based on DC1 spec */
}; };
......
...@@ -45,7 +45,7 @@ flash@0 { ...@@ -45,7 +45,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */ spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
spi-max-frequency = <108000000>; /* Based on DC1 spec */ spi-max-frequency = <108000000>; /* Based on DC1 spec */
}; };
......
...@@ -355,7 +355,7 @@ flash@0 { ...@@ -355,7 +355,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
spi-max-frequency = <108000000>; /* Based on DC1 spec */ spi-max-frequency = <108000000>; /* Based on DC1 spec */
}; };
......
...@@ -173,7 +173,7 @@ flash@0 { ...@@ -173,7 +173,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; /* also DUAL configuration possible */ spi-rx-bus-width = <4>; /* also DUAL configuration possible */
spi-max-frequency = <108000000>; /* Based on DC1 spec */ spi-max-frequency = <108000000>; /* Based on DC1 spec */
}; };
......
...@@ -957,7 +957,7 @@ flash@0 { ...@@ -957,7 +957,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */ spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
spi-max-frequency = <108000000>; /* Based on DC1 spec */ spi-max-frequency = <108000000>; /* Based on DC1 spec */
}; };
......
...@@ -444,7 +444,7 @@ flash@0 { ...@@ -444,7 +444,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
spi-max-frequency = <108000000>; /* Based on DC1 spec */ spi-max-frequency = <108000000>; /* Based on DC1 spec */
}; };
......
...@@ -456,7 +456,7 @@ flash@0 { ...@@ -456,7 +456,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
spi-max-frequency = <108000000>; /* Based on DC1 spec */ spi-max-frequency = <108000000>; /* Based on DC1 spec */
}; };
......
...@@ -964,7 +964,7 @@ flash@0 { ...@@ -964,7 +964,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */ spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
spi-max-frequency = <108000000>; /* Based on DC1 spec */ spi-max-frequency = <108000000>; /* Based on DC1 spec */
}; };
......
...@@ -794,7 +794,7 @@ flash@0 { ...@@ -794,7 +794,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */ spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
spi-max-frequency = <108000000>; /* Based on DC1 spec */ spi-max-frequency = <108000000>; /* Based on DC1 spec */
}; };
......
...@@ -47,7 +47,7 @@ &qspi { ...@@ -47,7 +47,7 @@ &qspi {
flash@0 { flash@0 {
compatible = "m25p80", "jedec,spi-nor"; compatible = "m25p80", "jedec,spi-nor";
reg = <0x0>; reg = <0x0>;
spi-tx-bus-width = <1>; spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
spi-max-frequency = <108000000>; spi-max-frequency = <108000000>;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment