Commit 04aa946d authored by Haibo Chen's avatar Haibo Chen Committed by Shawn Guo

arm64: dts: imx8: change the spi-nor tx

Before commit 0e30f472 ("mtd: spi-nor: add support for DTR protocol"),
for all PP command, it only support 1-1-1 mode, no matter the tx setting
in dts. But after the upper commit, the logic change. It will choose
the best mode(fastest mode) which flash device and spi-nor host controller
both support.

qspi and fspi host controller do not support read 1-4-4 mode. so need to
set the tx to 1, let the common code finally select read 1-1-4 mode.
Signed-off-by: default avatarHaibo Chen <haibo.chen@nxp.com>
Fixes: 0e30f472 ("mtd: spi-nor: add support for DTR protocol")
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent b2a4f4a3
...@@ -91,7 +91,7 @@ flash@0 { ...@@ -91,7 +91,7 @@ flash@0 {
#size-cells = <1>; #size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <80000000>; spi-max-frequency = <80000000>;
spi-tx-bus-width = <4>; spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
}; };
}; };
......
...@@ -48,7 +48,7 @@ flash@0 { ...@@ -48,7 +48,7 @@ flash@0 {
#size-cells = <1>; #size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <80000000>; spi-max-frequency = <80000000>;
spi-tx-bus-width = <4>; spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
}; };
}; };
......
...@@ -101,7 +101,7 @@ flash@0 { ...@@ -101,7 +101,7 @@ flash@0 {
#size-cells = <1>; #size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <80000000>; spi-max-frequency = <80000000>;
spi-tx-bus-width = <4>; spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
}; };
}; };
......
...@@ -74,7 +74,7 @@ som_flash: flash@0 { ...@@ -74,7 +74,7 @@ som_flash: flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <80000000>; spi-max-frequency = <80000000>;
spi-tx-bus-width = <4>; spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
}; };
}; };
......
...@@ -337,6 +337,8 @@ n25q256a: flash@0 { ...@@ -337,6 +337,8 @@ n25q256a: flash@0 {
#size-cells = <1>; #size-cells = <1>;
compatible = "micron,n25q256a", "jedec,spi-nor"; compatible = "micron,n25q256a", "jedec,spi-nor";
spi-max-frequency = <29000000>; spi-max-frequency = <29000000>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
}; };
}; };
......
...@@ -281,7 +281,7 @@ flash@0 { ...@@ -281,7 +281,7 @@ flash@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0>; reg = <0>;
spi-tx-bus-width = <4>; spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>; spi-rx-bus-width = <4>;
m25p,fast-read; m25p,fast-read;
spi-max-frequency = <50000000>; spi-max-frequency = <50000000>;
......
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