Skip to content

Commit 04aa946

Browse files
Haibo ChenShawn Guo
authored andcommitted
arm64: dts: imx8: change the spi-nor tx
Before commit 0e30f47 ("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: Haibo Chen <[email protected]> Fixes: 0e30f47 ("mtd: spi-nor: add support for DTR protocol") Signed-off-by: Shawn Guo <[email protected]>
1 parent b2a4f4a commit 04aa946

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
#size-cells = <1>;
9292
compatible = "jedec,spi-nor";
9393
spi-max-frequency = <80000000>;
94-
spi-tx-bus-width = <4>;
94+
spi-tx-bus-width = <1>;
9595
spi-rx-bus-width = <4>;
9696
};
9797
};

arch/arm64/boot/dts/freescale/imx8mm-evk.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#size-cells = <1>;
4949
compatible = "jedec,spi-nor";
5050
spi-max-frequency = <80000000>;
51-
spi-tx-bus-width = <4>;
51+
spi-tx-bus-width = <1>;
5252
spi-rx-bus-width = <4>;
5353
};
5454
};

arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
#size-cells = <1>;
102102
compatible = "jedec,spi-nor";
103103
spi-max-frequency = <80000000>;
104-
spi-tx-bus-width = <4>;
104+
spi-tx-bus-width = <1>;
105105
spi-rx-bus-width = <4>;
106106
};
107107
};

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
compatible = "jedec,spi-nor";
7575
reg = <0>;
7676
spi-max-frequency = <80000000>;
77-
spi-tx-bus-width = <4>;
77+
spi-tx-bus-width = <1>;
7878
spi-rx-bus-width = <4>;
7979
};
8080
};

arch/arm64/boot/dts/freescale/imx8mq-evk.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@
337337
#size-cells = <1>;
338338
compatible = "micron,n25q256a", "jedec,spi-nor";
339339
spi-max-frequency = <29000000>;
340+
spi-tx-bus-width = <1>;
341+
spi-rx-bus-width = <4>;
340342
};
341343
};
342344

arch/arm64/boot/dts/freescale/imx8mq-kontron-pitx-imx8m.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
#address-cells = <1>;
282282
#size-cells = <1>;
283283
reg = <0>;
284-
spi-tx-bus-width = <4>;
284+
spi-tx-bus-width = <1>;
285285
spi-rx-bus-width = <4>;
286286
m25p,fast-read;
287287
spi-max-frequency = <50000000>;

0 commit comments

Comments
 (0)