Skip to content

Commit b2a4f4a

Browse files
Haibo ChenShawn Guo
authored andcommitted
ARM: dts: imx: 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. Though the spi-nor device on imx6sx-sdb/imx6ul(l/z)-14x14-evk board do not support PP-1-4-4/PP-1-1-4, but if tx is 4 in dts file, it will also impact the read mode selection. For the spi-nor device on the upper mentioned boards, they support read 1-4-4 mode and read 1-1-4 mode according to the device internal sfdp register. But qspi 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, PP-1-1-1 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 c544674 commit b2a4f4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/arm/boot/dts/imx6sx-sdb.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
compatible = "micron,n25q256a", "jedec,spi-nor";
115115
spi-max-frequency = <29000000>;
116116
spi-rx-bus-width = <4>;
117-
spi-tx-bus-width = <4>;
117+
spi-tx-bus-width = <1>;
118118
reg = <0>;
119119
};
120120

@@ -124,7 +124,7 @@
124124
compatible = "micron,n25q256a", "jedec,spi-nor";
125125
spi-max-frequency = <29000000>;
126126
spi-rx-bus-width = <4>;
127-
spi-tx-bus-width = <4>;
127+
spi-tx-bus-width = <1>;
128128
reg = <2>;
129129
};
130130
};

arch/arm/boot/dts/imx6ul-14x14-evk.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
compatible = "micron,n25q256a", "jedec,spi-nor";
293293
spi-max-frequency = <29000000>;
294294
spi-rx-bus-width = <4>;
295-
spi-tx-bus-width = <4>;
295+
spi-tx-bus-width = <1>;
296296
reg = <0>;
297297
};
298298
};

0 commit comments

Comments
 (0)