Hi,
We've received a inquiry from my customer. Could you please help them to solve this issue.
FRAM (cy15x116q: QSPI) and Uboot Flash (s28hs512t: OSPI) are connected to OSPI I/F on the customer's board, but FRAM doesn’t work as QSPI.
If qspi (TX=4bit RX=4bit) is set for fram in the device tree settings shown below, an error "spi spi0.1: setup: ignoring unsupported mode bits 200" occurs when starting Linux. Driver can't start.
Is it possible to set the QSPI bus width to 4 bits?
They’re thinking there may be a problem in the driver because it looks like the above setting is allowed according to the hardware specifications.
Could you please give them any comment, and please help to solve this ?
< Device Tree >
&ospi0
pinctrl-names = "default";
pinctrl-0 = <&ospi0_pins_default>;
reg = <0x00 0x0fc40000 0x00 0x100>,
<0x00 0x60000000 0x00 0x04000000>,
<0x00 0x64000000 0x00 0x01000000>;
cs-gpios = <0>, <0>; /* 2 Native CS0,1 */
flash@0{
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-tx-bus-width = <8>;
spi-rx-bus-width = <8>;
spi-max-frequency = <25000000>;
cdns,tshsl-ns = <60>;
cdns,tsd2d-ns = <60>;
cdns,tchsh-ns = <60>;
cdns,tslch-ns = <60>;
cdns,read-delay = <4>;
cdns,phy-mode;
#address-cells = <1>;
#size-cells = <1>;
};
fram@1{
compatible = "jedec,spi-nor";
reg = <0x1>;
spi-tx-bus-width = <4>; <=== if this is set as “4”, Error occurrs.
spi-rx-bus-width = <4>;
spi-max-frequency = <25000000>;
cdns,tshsl-ns = <60>;
cdns,tsd2d-ns = <60>;
cdns,tchsh-ns = <60>;
cdns,tslch-ns = <60>;
cdns,read-delay = <4>;
cdns,phy-mode;
#address-cells = <1>;
#size-cells = <1>;
};
< Output on Linux >
[ 0.531995] spi-nor spi0.0: s28hs512t (65536 Kbytes)
[ 0.532070] 7 fixed-partitions partitions found on MTD device fc40000.spi.0
[ 0.532077] Creating 7 MTD partitions on "fc40000.spi.0":
[ 0.532087] 0x000000000000-0x000000100000 : "tiboot3"
[ 0.558550] 0x000000100000-0x000000300000 : "tispl"
[ 0.586275] 0x000000300000-0x000000700000 : "u-boot"
[ 0.613095] 0x000000700000-0x000000740000 : "u-boot-env"
[ 0.632373] 0x000000740000-0x000000780000 : "u-boot-env.backup"
[ 0.644044] 0x000000800000-0x000004000000 : "file-system"
[ 0.653294] 0x000003fc0000-0x000004000000 : "phypattern"
[ 0.655033] spi spi0.1: setup: ignoring unsupported mode bits 200
[ 0.655875] spi-nor spi0.1: cy15x116q (2048 Kbytes)
Regards,
Hideaki