Hello,
I am using latest linux-socfpga with arria5.
The kernel does not detect any mtd device (qspi) on board.
The problem is that I don’t see that probe function for qspi is ever called…
Only if I change in dts file as following:
&qspi {
status = “okay”;
flash: flash@0 {
#address-cells = <1>;
#size-cells = <1>;
-compatible = "n25q256a";
+compatible = "cdns,qspi-nor";
than I finally get that cqspi_probe() and spi_npor_scan() are called:
[ 2.588663] cadence-qspi ff705000.spi: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[ 2.604067] cadence-qspi ff705000.spi: Cadence QSPI NOR probe failed -2
[ 2.610805] cadence-qspi: probe of ff705000.spi failed with error -2
Should I change dts as I did ? Why does it fail to call probe with the original flash device name in dts ?
Thanks!
Ran
flash0: n25q512a@0 {
compatible = "cdns,qspi-nor";
#address-cells = <1>; /* appended from boardinfo */
#size-cells = <1>; /* appended from boardinfo */
reg = <0>; /* appended from boardinfo */
spi-max-frequency = <10000000>; /* appended from boardinfo */
m25p,fast-read; /* appended from boardinfo */
page-size = <256>; /* appended from boardinfo */
block-size = <16>; /* appended from boardinfo */
tshsl-ns = <50>; /* appended from boardinfo */
tsd2d-ns = <50>; /* appended from boardinfo */
tchsh-ns = <4>; /* appended from boardinfo */
tslch-ns = <4>; /* appended from boardinfo */
cdns,page-size = <256>; /* appended from boardinfo */
cdns,block-size = <16>; /* appended from boardinfo */
cdns,tshsl-ns = <50>; /* appended from boardinfo */
cdns,tsd2d-ns = <50>; /* appended from boardinfo */
cdns,tchsh-ns = <4>; /* appended from boardinfo */
cdns,tslch-ns = <4>; /* appended from boardinfo */
cdns,read-delay = <1>;
part0: partition@0 {
label = "Flash 0 Raw Data"; /* appended from boardinfo */
reg = <0x00000000 0x00800000>; /* appended from boardinfo */
}; //end partition@0 (part0)
part1: partition@800000 {
label = "Flash 1 jffs2 Filesystem"; /* appended from boardinfo */
reg = <0x00800000 0x03800000>; /* appended from boardinfo */
}; //end partition@800000 (part1)
}; //end n25q512a@0 (flash0)
}; //end flash@0xff705000 (hps_0_qspi)