Hi friends,
My board have mx66u51235f flash.
If I check at u-boot I detect like this:
=> sf probe
SF: select 4B addr cmd set
SF: Detected mx66u51235f with page size 256 Bytes, erase size 64 KiB, total 64 MiB
SF: read_cmd c
SF: erase_cmd dc
SF: write_cmd 12
So then I added spi-nor.c and another module to run flash from kernel.
My device-tree like that :
pinctrl_flexspi0: flexspi0grp {
fsl,pins = <
SC_P_QSPI0A_DATA0_LSIO_QSPI0A_DATA0 0x00000040
SC_P_QSPI0A_DATA1_LSIO_QSPI0A_DATA1 0x00000040
SC_P_QSPI0A_DATA2_LSIO_QSPI0A_DATA2 0x00000040
SC_P_QSPI0A_DATA3_LSIO_QSPI0A_DATA3 0x00000040
SC_P_QSPI0A_DQS_LSIO_QSPI0A_DQS 0x00000040
SC_P_QSPI0A_SCLK_LSIO_QSPI0A_SCLK 0x00000040
SC_P_QSPI0A_SS0_B_LSIO_QSPI0A_SS0_B 0x00000020
SC_P_QSPI0A_SS1_B_LSIO_QSPI0A_SS1_B 0x00000020
>;
};
&flexspi0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flexspi0>;
status = "okay";
fpgacom: fpgacom0@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
compatible = "macronix,mx66u51235f";
spi-max-frequency = <108000000>;
spi-nor,ddr-quad-read-dummy = <8>;
};
};
But after init system I get error :
root@imx8qxpmek:~# dmesg | grep flex
[ 2.263447] fsl-flexspi 5d120000.flexspi: can't select read settings supported by both the SPI controller and memory.
[ 2.274153] fsl-flexspi 5d120000.flexspi: Freescale FlexSPI probe failed
[ 2.280979] fsl-flexspi: probe of 5d120000.flexspi failed with error -22
What is the problem? Can you help me? I want to access flash from linux side via mtd access.
Thanks.
Best regards.